:root {
  --orange: #ff8a00;
  --orange-2: #ff5e00;
  --green: #00a650;
  --green-dark: #04130b;
  --green-card: #0b2516;
  --line: rgba(255, 255, 255, .1);
  --text: #f4f7f5;
  --muted: #a7b8ad;
  --gold: #ffd34d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--green-dark);
  color: var(--text);
  line-height: 1.45;
  padding-bottom: 84px;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; border: 0; }
.wrap { max-width: 520px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(4, 19, 11, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 22px; letter-spacing: .5px; }
.logo .ball { font-size: 24px; }
.logo b { color: var(--orange); }
.btn-mini {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff; font-weight: 800; font-size: 14px;
  padding: 9px 16px; border-radius: 999px;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 26px 0 30px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 138, 0, .35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(0, 166, 80, .35), transparent 50%),
    linear-gradient(180deg, #08311b 0%, var(--green-dark) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.hero .wrap { position: relative; text-align: center; }
.flag-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.flag { display: inline-flex; width: 22px; height: 15px; border-radius: 2px; overflow: hidden; }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: #f77f00; }
.flag i:nth-child(2) { background: #fff; }
.flag i:nth-child(3) { background: #009e60; }

.hero h1 { font-size: 30px; line-height: 1.15; font-weight: 900; margin: 16px 0 10px; }
.hero h1 em { font-style: normal; color: var(--orange); }

.bonus-box {
  margin: 18px auto 16px; padding: 18px 16px 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 138, 0, .22), rgba(255, 94, 0, .08));
  border: 2px solid rgba(255, 138, 0, .7);
  box-shadow: 0 0 40px rgba(255, 138, 0, .25);
}
.bonus-box .label { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; color: var(--gold); }
.bonus-amount {
  font-size: 50px; font-weight: 900; line-height: 1.1; margin: 4px 0;
  background: linear-gradient(180deg, #fff6c8, var(--gold) 55%, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.bonus-amount small { font-size: 24px; }
.bonus-box .note { font-size: 14px; color: #ffe1bf; }

.hero p.sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

.btn-main {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 17px 20px; border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff; font-size: 19px; font-weight: 900; letter-spacing: .3px;
  box-shadow: 0 10px 28px rgba(255, 94, 0, .45);
  animation: pulse 1.8s ease-in-out infinite;
}
.btn-main svg { width: 24px; height: 24px; flex: none; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

.timer { margin-top: 14px; font-size: 14px; color: var(--muted); }
.timer b { color: var(--gold); font-variant-numeric: tabular-nums; font-size: 16px; }

.pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.pay span {
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
}

/* ---------- sections ---------- */
section { padding: 30px 0; }
.sec-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sec-title h2 { font-size: 21px; font-weight: 900; }
.sec-title h2 span { color: var(--orange); }
.tag-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; color: #ff4d4d;
}
.tag-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d;
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* steps */
.steps { display: grid; gap: 10px; }
.step {
  display: flex; align-items: center; gap: 14px;
  background: var(--green-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px;
}
.step .num {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  font-weight: 900; font-size: 18px;
}
.step h3 { font-size: 16px; }
.step p { font-size: 13px; color: var(--muted); }

/* leagues */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--text);
}
.chip.on { background: var(--green); border-color: var(--green); }
.chip .flag { width: 18px; height: 12px; vertical-align: -1px; margin-right: 2px; }

/* match cards */
.match {
  background: var(--green-card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; margin-bottom: 12px;
}
.match-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.match-head .live { color: #ff4d4d; font-weight: 800; }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 12px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 14px; font-weight: 700; }
.crest {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 14px;
  border: 2px solid rgba(255, 255, 255, .25);
}
.score { font-size: 22px; font-weight: 900; color: var(--gold); }
.vs { font-size: 14px; font-weight: 800; color: var(--muted); }
.odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.odd {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 4px; color: var(--text); text-align: center;
}
.odd small { display: block; font-size: 11px; color: var(--muted); }
.odd b { font-size: 16px; color: var(--gold); }
.odd:active { background: rgba(255, 138, 0, .25); }

/* esport */
.esport { background: linear-gradient(180deg, transparent, rgba(102, 51, 204, .12), transparent); }
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.game {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: #140f26; border: 1px solid rgba(160, 120, 255, .25);
  border-radius: 14px; padding: 12px; color: var(--text);
}
.game .ico { font-size: 26px; }
.game h3 { font-size: 14px; }
.game p { font-size: 12px; color: #b7a8e8; }

/* features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.feat {
  background: var(--green-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; text-align: center;
}
.feat .ico { font-size: 28px; }
.feat h3 { font-size: 15px; margin: 6px 0 2px; }
.feat p { font-size: 12px; color: var(--muted); }

/* faq */
.faq details {
  background: var(--green-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; margin-bottom: 10px;
}
.faq summary { font-weight: 800; font-size: 15px; cursor: pointer; list-style: none; position: relative; padding-right: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 20px; color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* final cta */
.final {
  text-align: center; border-radius: 20px; padding: 24px 18px;
  background: linear-gradient(135deg, #0e4d2a, #08311b);
  border: 1px solid rgba(0, 166, 80, .5);
}
.final h2 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.final p { color: var(--muted); margin-bottom: 16px; font-size: 14px; }

footer { text-align: center; font-size: 12px; color: #6f8577; padding: 20px 16px 10px; border-top: 1px solid var(--line); }
footer .age {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #6f8577; font-weight: 900; margin-bottom: 8px;
}

/* sticky bottom bar */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(4, 19, 11, .96); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.dock .wrap { display: flex; align-items: center; gap: 12px; padding: 0; }
.dock .txt { flex: 1; font-size: 13px; line-height: 1.25; }
.dock .txt b { display: block; font-size: 16px; color: var(--gold); white-space: nowrap; }
.dock .btn-main { width: auto; flex: none; padding: 13px 20px; font-size: 16px; border-radius: 12px; }

/* popup */
.popup {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, .78);
}
.popup.show { display: flex; }
.popup-card {
  position: relative; width: 100%; max-width: 360px; text-align: center;
  background: linear-gradient(180deg, #123d24, #06180d);
  border: 2px solid var(--orange); border-radius: 22px; padding: 28px 20px 22px;
  animation: pop .35s ease-out;
}
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-card .gift { font-size: 56px; line-height: 1; }
.popup-card h3 { font-size: 20px; margin: 10px 0 4px; }
.popup-card .bonus-amount { font-size: 42px; }
.popup-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.popup-close {
  position: absolute; top: 8px; right: 10px; width: 32px; height: 32px;
  background: transparent; color: var(--muted); font-size: 24px; line-height: 1;
}

img.ic { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.28em; object-fit: contain; }
.btn-main img.ic { width: 28px; height: 28px; flex: none; }
.game .ico img.ic, .feat .ico img.ic { width: 38px; height: 38px; }
.popup-card .gift img.ic { width: 84px; height: 84px; }
.bonus-amount.range { font-size: 38px; }
.hero .btn-main { font-size: 17px; }
.bonus-amount.range small { font-size: 20px; }
.popup-card .bonus-amount.range { font-size: 32px; }
.match-head .live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; margin-right: 5px; vertical-align: 1px; }

@media (min-width: 560px) {
  .hero h1 { font-size: 36px; }
  .bonus-amount { font-size: 58px; }
}
