:root {
  --brown: #33251d;
  --brown-2: #4a382d;
  --ink: #1a1310;
  --gold: #c6a052;
  --gold-2: #e6cd8f;
  --gold-3: #a07c33;
  --red: #b3261e;
  --green: #8fd16a;
  --bg: #efedea;
  --card: #fff;
  --line: #e6e1da;
  --text: #2b241f;
  --muted: #8d847b;
  --num: "Barlow Condensed", "DIN Alternate", "Arial Narrow", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 100px; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.num { font-family: var(--num); font-weight: 700; letter-spacing: .5px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--brown); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 54px; }
.logo-text {
  display: flex; flex-direction: column; line-height: 1.05;
  font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 3px; color: var(--gold-2);
}
.logo-text small {
  font-family: var(--num); font-size: 10px; font-weight: 600; letter-spacing: 3px; color: #a8998a; margin-top: 3px;
}
.topnav { display: flex; gap: 28px; margin-left: auto; }
.topnav a { color: #d8cec3; font-size: 14px; }
.topnav a:hover { color: var(--gold-2); }
.top-cta {
  padding: 6px 16px; border: 1px solid var(--gold); border-radius: 3px;
  color: var(--gold-2); font-size: 13px; white-space: nowrap;
}
.top-cta:hover { background: var(--gold); color: var(--ink); }

/* language switcher */
.lang { position: relative; margin-left: 16px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
  border: 1px solid rgba(230,205,143,.4); border-radius: 16px; background: none;
  color: #e9e1d8; font-family: inherit; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold-2); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 140px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: .15s;
}
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu li {
  padding: 8px 12px; border-radius: 4px; color: var(--text); font-size: 14px; cursor: pointer;
}
.lang-menu li:hover { background: #f4efe4; }
.lang-menu li.on { background: #f6efe0; color: var(--gold-3); font-weight: 600; }

.subnav { background: var(--brown-2); }
.subnav-inner { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; padding: 9px 0; color: #cfc4b8; font-size: 14px; border-bottom: 2px solid transparent; }
.subnav a.active { color: var(--gold-2); border-bottom-color: var(--gold); }
.subnav a.hot { color: #f0a46a; }

/* ---------- Banner (first screen = welfare) ---------- */
.banner { position: relative; overflow: hidden; background: #120c09; color: #fff; }
.banner-img {
  position: absolute; inset: 0;
  background: url("img/hero-banner.jpg") right center / cover no-repeat;
}
.banner-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,12,9,.95) 0%, rgba(18,12,9,.7) 38%, rgba(18,12,9,0) 65%);
}
.banner-inner { position: relative; padding-top: 64px; padding-bottom: 56px; }
.banner-eyebrow { margin: 0 0 10px; color: var(--gold-2); font-size: 14px; letter-spacing: 4px; }
.banner-title {
  margin: 0; font-family: var(--serif); font-size: 40px; font-weight: 700; letter-spacing: 4px; line-height: 1.1;
}
.banner-title .num {
  display: block; margin-top: 4px; font-size: 120px; line-height: .95; letter-spacing: 0; color: var(--gold-2);
  text-shadow: 0 6px 30px rgba(198,160,82,.35);
}
.banner-sub { margin: 12px 0 28px; font-size: 18px; color: #d9cfc4; letter-spacing: 1px; }
.banner-sub .num { font-size: 26px; color: #fff; }
.banner-btns { display: flex; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; min-width: 136px; padding: 0 26px; border-radius: 3px;
  font-size: 15px; letter-spacing: 2px; transition: .2s;
}
.btn-gold { background: var(--gold); color: var(--ink); font-weight: 600; }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-line:hover { border-color: var(--gold-2); color: var(--gold-2); }
.banner-sub { margin-bottom: 16px; }
.banner-quota {
  display: inline-flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 22px;
  padding: 7px 14px; background: rgba(179,38,30,.85); border-radius: 3px; font-size: 13px;
}
.banner-quota b { font-size: 19px; color: #ffe08a; margin: 0 2px; }
.banner-cd b { letter-spacing: 1px; }
.banner-code { margin: 18px 0 0; font-size: 13px; color: #b9ab9c; }
.banner-code b { color: var(--gold-2); }
.btn-pulse { position: relative; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,205,143,.55); }
  50% { box-shadow: 0 0 0 10px rgba(230,205,143,0); }
}

/* ---------- Total welfare box ---------- */
.total {
  position: relative; margin-top: 24px; padding: 22px 20px 20px; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, rgba(198,160,82,.35), transparent 70%), var(--brown);
  border: 1px solid var(--gold-3); border-radius: 4px;
}
.total p { margin: 0; }
.total-label { font-size: 14px; letter-spacing: 4px; color: #cfc4b8; }
.total-num { font-size: 72px; line-height: 1; color: var(--gold-2); text-shadow: 0 4px 24px rgba(198,160,82,.4); }
.total-sub { margin-top: 4px !important; font-size: 13px; color: #a8998a; }
.total-list {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin: 18px 0;
  padding: 0; list-style: none; background: rgba(230,205,143,.18);
}
.total-list li { display: flex; flex-direction: column; padding: 10px 4px; background: var(--brown); }
.total-list span { font-size: 12px; color: #a8998a; }
.total-list b { font-size: 22px; color: #fff; }
.total-btn { min-width: 220px; height: 46px; font-size: 16px; }

/* ---------- Code box ---------- */
.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 12px; padding: 16px 18px; background: #fff8e8;
  border: 1px dashed var(--gold); border-radius: 4px;
}
.code-box p { margin: 0; }
.code-title { font-weight: 700; color: var(--brown); font-size: 15px; }
.code-text { font-size: 13px; color: #6f665d; }
.code-text b { color: var(--red); }
.code-btn {
  display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
  padding: 6px 18px; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--red); color: #fff; font-family: inherit;
}
.code-word { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.code-hint { font-size: 11px; opacity: .85; }
.promo-body p strong { color: var(--red); font-weight: 600; }
.tag i { font-style: normal; }
.contact-lead b { color: var(--gold-2); font-size: 18px; }

/* ---------- Ticker ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: center; gap: 12px; height: 40px; }
.ticker-tag { flex-shrink: 0; padding: 1px 8px; background: var(--brown-2); color: var(--gold-2); font-size: 12px; }
.ticker-track { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track p { display: inline-block; margin: 0; padding-left: 100%; font-size: 13px; color: #6f665d; animation: tick 28s linear infinite; }
.ticker-track b { color: var(--red); font-family: var(--num); font-size: 15px; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- Section title ---------- */
.sec-title {
  display: flex; align-items: center; gap: 18px; margin: 36px 0 18px;
  font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--brown); letter-spacing: 4px;
}
.sec-title::before, .sec-title::after { content: ""; flex: 1; height: 1px; background: #d6cdc2; }
.sec-title span { white-space: nowrap; }
.sec-title--light { color: var(--gold-2); }
.sec-title--light::before, .sec-title--light::after { background: rgba(230,205,143,.3); }

/* ---------- Promo cards (reference sport cards) ---------- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo {
  position: relative; overflow: hidden; min-height: 168px;
  background: var(--card); border-radius: 4px; box-shadow: 0 1px 3px rgba(51,37,29,.08);
}
.promo--wide { grid-column: 1 / -1; }
.tab-title {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  min-width: 58%; padding: 8px 44px 8px 16px;
  background: var(--brown-2); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 2px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
}
.tag { padding: 0 8px; font-size: 12px; line-height: 20px; letter-spacing: 1px; background: #d9534a; color: #fff; transform: skewX(-12deg); }
.tag--gold { background: var(--gold); color: var(--ink); }
.promo-body { position: relative; z-index: 2; max-width: 62%; padding: 12px 16px 16px; }
.promo-stats { display: flex; gap: 26px; }
.promo-stats small { display: block; font-size: 12px; color: var(--muted); }
.promo-stats b { display: block; font-size: 17px; line-height: 1.5; color: var(--gold-3); font-weight: 600; }
.promo-stats b.num { font-size: 32px; line-height: 1.1; }
.promo-body p { margin: 8px 0 6px; font-size: 13px; color: #6f665d; }
.promo-link { font-size: 13px; color: var(--gold-3); }
.promo-link:hover { color: var(--red); }
.promo-img {
  position: absolute; right: -6px; bottom: 0; height: 88%; width: auto;
  mix-blend-mode: multiply; pointer-events: none;
}
.promo-img--tall { height: 100%; right: -20px; }
.promo--hot { box-shadow: inset 0 0 0 1px var(--gold), 0 1px 3px rgba(51,37,29,.08); }
.promo-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- Odds board ---------- */
.odds-board { background: var(--card); border-radius: 4px; overflow: hidden; }
.odds-head { background: linear-gradient(135deg, #1b2414, #2c2016); padding: 12px 16px; }
.odds-sports { display: flex; gap: 22px; color: #b5aa9d; font-size: 14px; }
.odds-sports .on { color: var(--gold-2); border-bottom: 2px solid var(--gold); padding-bottom: 6px; }
.odds-chips { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.odds-chips span { flex-shrink: 0; padding: 2px 14px; border-radius: 14px; background: #fff; font-size: 12px; }
.odds-chips .on { background: var(--gold); color: #fff; }
.odds-league { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
.flag-de { display: inline-block; width: 18px; height: 12px; background: linear-gradient(#111 33%, #d00 33% 66%, #ffce00 66%); }
.ot-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 6px; align-items: center; }
.ot-th { padding: 7px 16px; font-size: 12px; color: var(--muted); background: #faf8f6; }
.ot-th span:not(:first-child) { text-align: center; }
.ot-match { padding: 10px 16px 12px; border-bottom: 6px solid var(--bg); }
.ot-match:last-child { border-bottom: 0; }
.ot-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ot-team { font-weight: 600; line-height: 2.5; }
.ot-team i { display: block; font-style: normal; }
.ot-cell { display: grid; grid-template-columns: 1fr; }
.ot-cell em, .ot-cell b { border: 1px solid var(--line); text-align: center; }
.ot-cell em { font-style: normal; font-size: 11px; color: #666; border-bottom: 0; border-radius: 3px 3px 0 0; padding-top: 2px; }
.ot-cell b { font-family: var(--num); font-size: 16px; color: var(--red); border-top: 0; border-radius: 0 0 3px 3px; margin-bottom: 4px; padding-bottom: 2px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 18px 16px; background: var(--card); border-radius: 4px; }
.steps .num { font-size: 30px; color: var(--gold); line-height: 1; }
.steps b { display: block; margin: 8px 0 2px; font-size: 15px; color: var(--brown); }
.steps p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { background: var(--card); border-radius: 4px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 15px 18px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "›"; font-size: 20px; color: var(--muted); transform: rotate(90deg); transition: .2s; }
.faq details[open] summary::after { transform: rotate(-90deg); }
.faq p { margin: 0; padding: 0 18px 15px; font-size: 13px; color: #6f665d; }

/* ---------- Contact ---------- */
.contact { margin-top: 44px; padding: 4px 0 44px; background: var(--brown); }
.contact-lead { margin: -6px 0 22px; text-align: center; color: #a8998a; font-size: 13px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cbtn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 18px 12px; border: 1px solid rgba(230,205,143,.35); border-radius: 3px; transition: .2s;
}
.cbtn:hover { border-color: var(--gold-2); }
.cbtn b { font-size: 17px; letter-spacing: 2px; color: #fff; font-weight: 600; }
.cbtn small { font-size: 12px; color: #a8998a; }
.cbtn--gold { background: var(--gold); border-color: var(--gold); }
.cbtn--gold b { color: var(--ink); }
.cbtn--gold small { color: #4d3a1f; }

/* ---------- Footer ---------- */
.footer { background: #fff; padding: 20px 0 22px; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 13px; color: #555; }
.foot-copy { margin: 12px 0 0; font-size: 12px; color: #aaa; }

.tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .topbar-inner { height: 50px; }
  .topnav { display: none; }
  .lang { margin-left: auto; }
  .lang-btn { height: 30px; padding: 0 8px; font-size: 12px; }
  .lang-menu { right: 0; }
  .top-cta { margin-left: 8px; padding: 4px 10px; font-size: 12px; }
  .logo-text { font-size: 17px; }
  .subnav-inner { gap: 22px; }
  .subnav a { font-size: 13px; padding: 8px 0; }

  .banner-img { background-position: 72% center; }
  .banner-img::after {
    background: linear-gradient(90deg, rgba(18,12,9,.92) 0%, rgba(18,12,9,.55) 55%, rgba(18,12,9,.1) 100%);
  }
  .banner-inner { padding-top: 34px; padding-bottom: 26px; }
  .banner-eyebrow { font-size: 12px; letter-spacing: 3px; }
  .banner-title { font-size: 26px; letter-spacing: 3px; }
  .banner-title .num { font-size: 84px; }
  .banner-sub { font-size: 15px; margin: 8px 0 20px; }
  .banner-sub .num { font-size: 22px; }
  .btn { height: 40px; min-width: 0; padding: 0 22px; font-size: 14px; }
  .banner-quota { font-size: 12px; padding: 6px 10px; margin-bottom: 18px; }
  .banner-quota b { font-size: 17px; }
  .banner-code { margin-top: 14px; font-size: 12px; }
  .total { margin-top: 18px; padding: 18px 12px 16px; }
  .total-num { font-size: 60px; }
  .total-list { grid-template-columns: repeat(3, 1fr); margin: 14px 0; }
  .total-list b { font-size: 20px; }
  .total-btn { width: 100%; }
  .code-box { padding: 12px 14px; }

  .sec-title { margin: 26px 0 14px; font-size: 18px; }
  .promo-grid { grid-template-columns: 1fr; gap: 10px; }
  .promo { min-height: 150px; }
  .tab-title { font-size: 15px; min-width: 62%; }
  .promo-body { max-width: 66%; padding: 10px 14px 14px; }
  .promo-stats { gap: 20px; }
  .promo-stats b.num { font-size: 28px; }
  .promo-stats small, .promo-stats b { white-space: nowrap; }
  .promo--wide .promo-stats div:nth-child(3) { display: none; }
  .promo-img { height: 80%; right: -10px; }
  .promo-img--tall { height: 96%; right: -34px; }

  .odds-head { padding: 10px 12px; }
  .odds-sports { gap: 16px; font-size: 13px; white-space: nowrap; overflow-x: auto; }
  .odds-league, .ot-th, .ot-match { padding-left: 10px; padding-right: 10px; }
  .ot-row { grid-template-columns: 1.05fr 1fr 1fr 1fr; gap: 4px; }
  .ot-team { font-size: 13px; }

  .steps { gap: 10px; }
  .steps li { padding: 14px 12px; }

  .contact { margin-top: 32px; padding-bottom: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 10px; }
  .cbtn { flex-direction: row; justify-content: space-between; padding: 15px 18px; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--brown);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    height: 56px; color: #c9bdb0; font-size: 11px;
  }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .tab-main { background: var(--gold); color: var(--ink); }
  .tabbar .tab-main b { font-size: 22px; line-height: 1; }
  .tabbar .tab-main small { font-size: 11px; }
  .tabbar .tab-svc { color: var(--green); }
}
