:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --bg: #0f172a;
  --card: #1e293b;
  --alt: #334155;
  --text: #ffffff;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --gold: #eab308;
  --radius: 16px;
  --nav-h: 78px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: #020617;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
}

.blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  max-width: 430px;
  margin: 0 auto;
}
.blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.blobs span:nth-child(1) {
  width: 280px; height: 280px; left: -60px; top: 12%;
  background: rgba(59, 130, 246, .16);
  animation: pulse 8s ease-in-out infinite;
}
.blobs span:nth-child(2) {
  width: 200px; height: 200px; right: -40px; bottom: 18%;
  background: rgba(59, 130, 246, .1);
  animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.15); opacity: 1; }
}

.page {
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--nav-h) + 48px);
  min-height: 100dvh;
}

/* ===== Tickers ===== */
.ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(37, 99, 235, .35);
}
.ticker.top { position: sticky; top: 0; z-index: 40; }
.ticker.bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--nav-h);
  width: 100%;
  max-width: 430px;
  z-index: 45;
}
.ticker .dot {
  width: 18px; height: 18px; border-radius: 6px;
  background: rgba(255,255,255,.2);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ticker .msg { animation: fadeSwap .4s ease; }

@keyframes fadeSwap {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ===== Filters ===== */
.filters {
  display: flex;
  gap: 8px;
  padding: 14px 12px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.search {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 86px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-2);
  flex-shrink: 0;
}
.search input {
  width: 64px;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.search input::placeholder { color: #94a3b8; }
.search:focus-within { min-width: 140px; }
.search:focus-within input { width: 110px; }

.chip {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, .35);
}

.section-label {
  text-align: center;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  padding: 10px 0 8px;
}

/* ===== Premium banners ===== */
/* ===== Site cards ===== */
.banners,
.table { padding: 0 12px; display: grid; gap: 10px; }
.site-card {
  display: grid;
  grid-template-columns: minmax(118px, 1.4fr) minmax(70px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 76px;
  padding: 10px 10px 10px 12px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.site-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 52px;
}
.site-brand img {
  max-height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.3));
}
.site-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-name {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-offer {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-betvole .site-name { color: #0f172a; }
.theme-betvole .site-offer { color: #64748b; }
.go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 8px 18px rgba(37,99,235,.4);
}

.banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 108px;
  padding: 12px 16px;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.banner.has-banner { padding: 0; }
.banner-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-logo {
  height: 48px;
  max-width: 58%;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.theme-winbum { background: linear-gradient(135deg, #020617, #1e3a8a); }
.theme-mars { background: #120308; }
.theme-betebet { background: linear-gradient(135deg, #0a0a0a, #1c1404); }
.theme-betvole { background: linear-gradient(135deg, #f8fafc, #e0f2fe); color: #0f172a; }
.theme-betvole .offer, .theme-betvole .sub { color: #0f172a; text-shadow: none; }
.theme-grand { background: linear-gradient(135deg, #0c0b09, #1a1408); color: #e3b649; }
.theme-grand .offer, .theme-grand .sub { color: #f5e6b8; text-shadow: none; }
.banner .copy {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner .name {
  font-weight: 900;
  line-height: .9;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.banner .offer {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.6px;
}
.banner .sub { font-size: 12px; font-weight: 700; opacity: .9; margin-top: 2px; }
.banner .deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.theme-madrid {
  background:
    radial-gradient(circle at 80% 50%, rgba(250,204,21,.25), transparent 40%),
    linear-gradient(110deg, #111827 0%, #1f2937 45%, #92400e 100%);
  color: #fff;
}
.theme-madrid .name { font-size: 28px; color: #facc15; }
.theme-madrid .offer { color: #fff; }
.theme-madrid .sub { color: #fde68a; }
.theme-madrid .deco::after {
  content: "";
  position: absolute;
  right: -10px; top: -20px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,224,71,.4), transparent 70%);
}

.theme-king {
  background:
    radial-gradient(circle at 85% 40%, rgba(244,114,182,.5), transparent 42%),
    linear-gradient(120deg, #4a044e, #9d174d 55%, #fb7185);
  color: #fff;
}
.theme-king .name { font-size: 26px; color: #fde047; }
.theme-king .offer { color: #fff; font-size: 20px; }
.theme-king .deco::before,
.theme-king .deco::after {
  content: "7";
  position: absolute;
  font-size: 86px;
  font-weight: 900;
  color: rgba(253, 224, 71, .35);
  right: 18px; top: -8px;
}
.theme-king .deco::after { right: 58px; top: 18px; font-size: 64px; opacity: .5; }

.theme-crypto, .theme-crypto-alt {
  background:
    radial-gradient(circle at 82% 70%, rgba(74,222,128,.35), transparent 38%),
    linear-gradient(160deg, #052e16, #14532d 50%, #022c22);
  color: #fff;
}
.theme-crypto .name, .theme-crypto-alt .name {
  font-size: 28px;
  line-height: .85;
  text-transform: none;
}
.theme-crypto .name span, .theme-crypto-alt .name span { color: #4ade80; display: block; }
.theme-crypto .offer, .theme-crypto-alt .offer { color: #86efac; font-size: 18px; }
.theme-crypto .deco::before, .theme-crypto-alt .deco::before {
  content: "";
  position: absolute;
  right: 22px; bottom: 10px;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: conic-gradient(#f7931a, #fbbf24, #f7931a);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.theme-crypto .deco::after, .theme-crypto-alt .deco::after {
  content: "";
  position: absolute;
  right: 78px; top: 18px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e2e8f0, #64748b);
}

.theme-merit, .theme-merit-dice {
  background:
    radial-gradient(circle at 88% 30%, rgba(248,113,113,.25), transparent 36%),
    linear-gradient(135deg, #0b1220, #1e293b 60%, #111827);
  color: #fff;
}
.theme-merit .name, .theme-merit-dice .name {
  font-size: 24px;
  color: #93c5fd;
  letter-spacing: 1px;
}
.theme-merit .offer { color: #fff; }
.theme-merit .badge, .theme-merit-dice .badge {
  display: inline-block;
  margin-top: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  width: max-content;
}
.theme-merit-dice .deco::before,
.theme-merit-dice .deco::after {
  content: "";
  position: absolute;
  width: 42px; height: 42px;
  background: #ef4444;
  border-radius: 10px;
  transform: rotate(18deg);
  box-shadow: inset 8px 8px 0 -6px #fff, inset -8px -8px 0 -6px #fff, inset 8px -8px 0 -6px #fff;
}
.theme-merit-dice .deco::before { right: 28px; top: 22px; }
.theme-merit-dice .deco::after { right: 68px; bottom: 12px; transform: rotate(-12deg); }

/* ===== Trend table ===== */
.table { padding: 8px 12px 0; display: grid; gap: 10px; }
.row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(30, 41, 59, .85);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  min-width: 0;
}
.row.pinned { border-color: rgba(234, 179, 8, .45); box-shadow: inset 3px 0 0 var(--gold); }
.logo {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.give-card .logo img { padding: 3px; }
.meta .name { font-size: 14px; font-weight: 800; }
.meta .desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.amount {
  text-align: right;
  font-size: 15px;
  font-weight: 800;
  color: #86efac;
  white-space: nowrap;
}
.amount small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; margin-top: 2px; }

.hidden { display: none !important; }

/* ===== Bottom nav ===== */
.nav-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 50;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 8px;
  box-sizing: border-box;
}
.nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2px;
  padding: 6px 4px 8px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.nav a {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  height: 52px;
  border-radius: 16px;
  color: rgba(255,255,255,.7);
  font-size: 9px;
  font-weight: 600;
}
.nav a span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}
.nav a.active {
  background: rgba(255,255,255,.2);
  color: #fff;
  transform: scale(1.04);
}
.nav a.tg { color: #229ED9; }
.nav svg { width: 22px; height: 22px; }

/* ===== Pages ===== */
.panel { padding: 12px; }
.panel .site-card { margin-bottom: 10px; }
.page-title {
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0 14px;
}

.winner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(30,41,59,.9);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  min-width: 0;
}
.winner .meta-user { min-width: 0; flex: 1; }
.winner .av {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #22c55e);
  font-weight: 800;
}
.winner .who { font-weight: 700; font-size: 14px; }
.winner .where { font-size: 11px; color: var(--muted); }
.winner > div:last-child { margin-left: auto; text-align: right; }
.winner .won { color: #fbbf24; font-weight: 800; }
.winner .time { font-size: 10px; color: var(--muted); text-align: right; }

/* Wheel */
.wheel-box { text-align: center; padding-top: 8px; }
.wheel-wrap { position: relative; width: 300px; height: 300px; margin: 12px auto 18px; }
.wheel {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 8px solid #1e293b;
  box-shadow: 0 0 0 6px rgba(59,130,246,.35), 0 20px 40px rgba(0,0,0,.5);
  transition: transform 4.6s cubic-bezier(.17,.67,.12,1);
  background: conic-gradient(
    #2563eb 0 12.5%, #0f172a 0 25%,
    #22c55e 0 37.5%, #0f172a 0 50%,
    #eab308 0 62.5%, #0f172a 0 75%,
    #ef4444 0 87.5%, #0f172a 0 100%
  );
}
.pointer {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #fbbf24;
  z-index: 2;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.4));
}
.spin-btn {
  border: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37,99,235,.4);
}
.spin-result {
  min-height: 24px;
  margin-top: 14px;
  color: #86efac;
  font-weight: 800;
}
.wheel-prizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.wheel-prizes span {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: #cbd5e1;
}

.give-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: rgba(30,41,59,.9);
  border: 1px solid rgba(255,255,255,.1);
}
.give-card strong { display: block; font-size: 15px; }
.give-card span { font-size: 12px; color: var(--muted); }
.give-card em {
  margin-left: auto;
  font-style: normal;
  color: #86efac;
  font-weight: 800;
}

/* Splash */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 12px 0;
}
.overlay.hidden { display: none; }
.splash {
  position: relative;
  width: min(340px, 92vw);
  aspect-ratio: 9 / 16;
  max-height: 78dvh;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0b1224, #020617 55%, #000);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  color: #fff;
  padding: 28px 20px 20px;
}
.splash-logo {
  width: min(240px, 80%);
  margin: 28px auto 8px;
  display: block;
  object-fit: contain;
}
.splash .close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.splash .coins {
  position: absolute;
  inset: auto 12px 78px auto;
  right: 18px;
  bottom: 78px;
  width: 150px;
  height: 150px;
  pointer-events: none;
}
.splash .coins i {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}
.splash .coins i:nth-child(1) {
  width: 86px; height: 86px; right: 8px; bottom: 8px;
  background: radial-gradient(circle at 30% 30%, #fde68a, #d97706 60%, #92400e);
}
.splash .coins i:nth-child(2) {
  width: 58px; height: 58px; left: 8px; top: 18px;
  background: radial-gradient(circle at 30% 30%, #e2e8f0, #64748b);
}
.splash h2 {
  font-size: 42px;
  line-height: .85;
  font-weight: 900;
  text-transform: lowercase;
  margin-top: 18px;
}
.splash h2 span { color: #4ade80; display: block; }
.splash .pill {
  display: inline-block;
  margin-top: 14px;
  background: #16a34a;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}
.splash .hero-txt {
  margin-top: 28px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
}
.splash .hero-txt b { color: #4ade80; }
.splash .cta {
  position: absolute;
  left: 16px; bottom: 16px;
  background: #4ade80;
  color: #052e16;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  cursor: pointer;
}

/* Toasts */
.toasts {
  position: fixed;
  left: 50%;
  top: auto;
  bottom: calc(var(--nav-h) + 46px);
  transform: translateX(-50%);
  z-index: 60;
  width: max-content;
  max-width: min(250px, calc(100% - 48px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.8);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  animation: toastIn .4s ease;
  white-space: nowrap;
}
.toast b { color: #86efac; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
  font-size: 13px;
}

.seo-hero {
  padding: 18px 16px 4px;
  text-align: center;
}
.seo-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.seo-hero h1,
.page-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.seo-lead {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0 10px;
  text-align: left;
}
.seo-hero .seo-lead { text-align: center; }

h2.section-label {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 1.2px;
}

.seo-block {
  margin: 18px 12px 8px;
  padding: 14px 14px 12px;
  background: rgba(30, 41, 59, .72);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}
.seo-block h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}
.seo-block p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.seo-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.seo-block table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.seo-block th,
.seo-block td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
}
.seo-block th {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.seo-block td a { color: #93c5fd; font-weight: 700; }

.faq details {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 8px 0 4px;
}
.faq details:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--primary-light);
  font-weight: 800;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 8px 0 4px; }

.legal {
  padding: 8px 16px 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.panel .seo-lead { padding: 0; margin-top: -6px; margin-bottom: 14px; }
