/*
Theme Name: GGItem Kingdom
Theme URI: https://ggitem.com
Author: GGItem
Description: GGItem landing theme for Kingshot (China version): hero, top bars with Discord invite and kingdom countdown, rewards, top-up, milestones, gift codes, visitor statistics, SEO and image optimiser — everything editable from the dashboard.
Version: 1.6.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ggitem
*/

:root {
  --bg: #0e0c0a;
  --bg-2: #16120e;
  --stone: #1e1914;
  --stone-2: #2a221a;
  --line: rgba(230, 182, 92, 0.18);
  --gold: #e6b65c;
  --gold-2: #f6d58e;
  --gold-deep: #a8792b;
  --crimson: #a3322c;
  --crimson-2: #c9483f;
  --text: #efe6d6;
  --muted: #b3a690;
  --live: #4fbf6a;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  --display: "Cinzel", "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top-h, 84px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .02em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.screen-reader-text { position: absolute; right: -9999px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 10px;
  font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg, .eyebrow svg { width: 18px; height: 18px; flex: none; }
.btn-gold {
  background: linear-gradient(-180deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
  color: #2a1a05; box-shadow: 0 8px 24px -8px rgba(230, 182, 92, .6), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-gold:hover { color: #2a1a05; box-shadow: 0 12px 30px -8px rgba(230, 182, 92, .8), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6d78f5; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: rgba(14, 12, 10, .97); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand svg { width: 38px; height: 44px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: .08em; }
.brand-name b { color: var(--gold); font-weight: 800; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; }
.nav a:hover { color: var(--gold-2); background: rgba(230,182,92,.08); }
.header-cta { display: none; }
.menu-toggle { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; font-size: 1.2rem; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; padding: .6em 1.1em; font-size: .8rem; }
  .menu-toggle { display: none; }
}
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 16px 16px; }
.mobile-nav.open { display: grid; }
.mobile-nav a { color: var(--text); padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 50% 10%, rgba(230,182,92,.18), transparent 60%),
    radial-gradient(700px 400px at 85% 70%, rgba(163,50,44,.18), transparent 60%),
    linear-gradient(-180deg, #1a140e 0%, var(--bg) 100%);
}
.embers span {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-2); box-shadow: 0 0 10px 2px rgba(246,213,142,.7);
  animation: rise linear infinite; opacity: 0; z-index: -1;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .9; }
  100% { transform: translateY(-520px) translateX(-40px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .embers { display: none; } }
.hero-inner { text-align: center; max-width: 820px; margin: 0 auto; padding-bottom: 290px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(230,182,92,.06); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 800;
  background: linear-gradient(-180deg, #fff3d6 0%, var(--gold-2) 40%, var(--gold) 70%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 30px rgba(230,182,92,.15);
}
.hero p.lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 620px; margin: 0 auto 30px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.section.alt { background: linear-gradient(-180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--gold); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.section-head h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); margin-top: 8px; }
.section-head p { color: var(--muted); }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin: 6px auto 14px; }
.divider::before, .divider::after { content: ""; width: 60px; height: 1px; background: linear-gradient(-90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {  .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(-180deg, var(--stone-2), var(--stone));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(230,182,92,.4); }
.card h3 { font-size: 1.15rem; color: var(--gold-2); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: radial-gradient(circle at 30% 25%, rgba(246,213,142,.35), rgba(168,121,43,.15));
  border: 1px solid rgba(230,182,92,.35); color: var(--gold-2);
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Guides ---------- */
.guide-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; }
.guide-card:hover { color: inherit; }
.guide-thumb { aspect-ratio: 16/9; background: var(--stone); position: relative; overflow: hidden; }
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.guide-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag { align-self: flex-start; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.guide-body h3 { margin: 0; }
.read-more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .9rem; color: var(--gold); }

/* ---------- Events ---------- */
.status { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
.status.live { background: rgba(79,191,106,.15); color: var(--live); }
.status.live::before { content: "● "; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.timer div { text-align: center; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 10px 4px; }
.timer b { display: block; font-family: var(--display); font-size: 1.45rem; color: var(--text); font-variant-numeric: tabular-nums; }
.timer small { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.tz-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 22px; }

/* ---------- Gift codes ---------- */
.codes { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.code-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(-90deg, rgba(230,182,92,.07), rgba(30,25,20,.6));
}
.code-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; font-weight: 700;
  color: var(--gold-2); background: rgba(0,0,0,.35); padding: 6px 12px; border-radius: 8px; border: 1px dashed rgba(230,182,92,.4);
}
.code-reward { flex: 1; min-width: 160px; color: var(--muted); font-size: .92rem; }
.code-row .btn { padding: .55em 1em; font-size: .75rem; }
.code-row.expired { opacity: .5; }
.code-row.expired code { text-decoration: line-through; }
.empty { text-align: center; color: var(--muted); padding: 22px; border: 1px dashed var(--line); border-radius: 12px; }

/* ---------- Calculator ---------- */
.calc { max-width: 900px; margin: 0 auto; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .calc { grid-template-columns: 1.3fr 1fr; } }
.calc label { display: grid; gap: 6px; font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.calc input {
  width: 100%; padding: 10px 12px; border-radius: 9px; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1);
}
.calc input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230,182,92,.2); }

/* ---------- Community ---------- */
.community {
  display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr;
  padding: 36px; border-radius: 20px; border: 1px solid rgba(88,101,242,.35);
  background: radial-gradient(600px 300px at 0% 0%, rgba(88,101,242,.25), transparent 70%), linear-gradient(-180deg, var(--stone-2), var(--stone));
}
@media (min-width: 860px) { .community { grid-template-columns: 1.3fr 1fr; padding: 48px; } }
.community h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.community ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; color: var(--muted); }
.community li::before { content: "◆"; color: var(--gold); margin-left: 10px; font-size: .7em; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--stone); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.faq details.is-open summary::after { transform: rotate(-45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #0a0907; padding: 52px 0 28px; color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer h4 { font-size: .9rem; color: var(--text); letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-2); }
.disclaimer { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); font-size: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Blog / pages ---------- */
.page-hero { padding: 64px 0 34px; text-align: center; background: linear-gradient(-180deg, #1a140e, var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--gold-2); }
.page-hero .meta { color: var(--muted); font-size: .9rem; }
.entry { max-width: 760px; margin: 0 auto; padding: 48px 0 80px; }
.entry h2, .entry h3 { color: var(--gold-2); margin-top: 1.6em; }
.entry img { border-radius: 12px; height: auto; }
.entry blockquote { border-right: 3px solid var(--gold); margin: 1.5em 0; padding: .4em 1.2em; color: var(--muted); background: rgba(230,182,92,.05); }
.entry table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 12px; text-align: right; }
.entry th { background: var(--stone-2); color: var(--gold-2); }
.entry a { text-decoration: underline; text-underline-offset: 3px; }
.pagination { display: flex; justify-content: center; gap: 8px; padding-bottom: 60px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.pagination .current { background: var(--gold); color: #2a1a05; }
.toast {
  position: fixed; right: 50%; bottom: 24px; transform: translateX(50%) translateY(120px);
  background: var(--gold); color: #2a1a05; font-weight: 700; padding: 12px 20px; border-radius: 10px;
  transition: transform .25s ease, opacity .25s; opacity: 0; z-index: 100; box-shadow: var(--shadow);
}
.toast.show { transform: translateX(50%) translateY(0); opacity: 1; }

/* ---------- Referral / China page ---------- */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px; font-size: .88rem; font-weight: 600; text-align: center;
  background: linear-gradient(-90deg, #6e1f1b, var(--crimson), #6e1f1b); color: #fff3e0;
}
.announce:hover { color: #fff; }
.announce .pill { background: var(--gold); color: #2a1a05; font-size: .68rem; font-weight: 800; letter-spacing: .1em; padding: 2px 8px; border-radius: 999px; }
.ref-note { margin-top: 16px; font-size: .78rem; color: var(--muted); opacity: .8; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { padding: 24px 12px; text-align: center; display: grid; gap: 4px; border-left: 1px solid rgba(230,182,92,.1); }
.stats div:last-child { border-left: 0; }
.stats b { font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--gold-2); }
.stats span { font-size: .8rem; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; padding: 24px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(-180deg, var(--stone-2), var(--stone)); display: grid; gap: 6px; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; background: var(--gold); color: #2a1a05; margin-bottom: 8px; }
.steps b { font-family: var(--display); color: var(--gold-2); }
.steps span { color: var(--muted); font-size: .92rem; }
.final-cta { background: radial-gradient(600px 300px at 50% 0%, rgba(230,182,92,.15), transparent 70%); }
.final-cta h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); color: var(--gold-2); }

/* ---------- Game Landing template ---------- */
.hero-landing { --hero-img: none; }
.hero-landing::after {
  content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center/cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); opacity: .55;
}
.hero-landing .hero-inner { padding-bottom: 96px; }
.hero-landing p.lead.has-box { display: table; width: auto; max-width: min(680px, 100%); padding: .8em 1.2em; margin-right: auto; margin-left: auto; }
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 12px; width: 210px; padding: 12px 18px; border-radius: 12px;
  background: #0b0907; border: 1px solid rgba(230,182,92,.55); color: var(--text);
  box-shadow: 0 10px 26px -12px rgba(230,182,92,.55); transition: transform .15s, border-color .2s, box-shadow .2s;
}
.dl-btn:hover { color: #fff; transform: translateY(-2px); border-color: var(--gold-2); box-shadow: 0 14px 32px -12px rgba(230,182,92,.8); }
.dl-btn svg { width: 30px; height: 30px; flex: none; color: var(--gold-2); }
.dl-btn span { display: grid; text-align: right; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.dl-btn small { font-family: var(--body); font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.season-count { margin: 34px auto 0; max-width: 440px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(22,18,14,.78); backdrop-filter: blur(6px); }
.season-count .label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.video-frame { max-width: 960px; margin: 0 auto; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; border: 1px solid rgba(230,182,92,.4); box-shadow: 0 30px 60px -30px rgba(230,182,92,.35); background: radial-gradient(circle at 50% 40%, var(--stone-2), #0a0807); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-ph { height: 100%; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); font-size: .9rem; text-align: center; padding: 16px; }
.play-ring { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(-180deg, var(--gold-2), var(--gold-deep)); color: #2a1a05; box-shadow: 0 0 0 10px rgba(230,182,92,.12), 0 0 0 22px rgba(230,182,92,.06); }
.play-ring svg { width: 36px; height: 36px; }
.reward { text-align: center; padding: 22px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(circle at 50% 30%, rgba(230,182,92,.14), transparent 70%), var(--stone); display: grid; gap: 4px; justify-items: center; }
.reward b { font-family: var(--display); font-size: 1.25rem; color: var(--gold-2); }
.reward span { font-size: .82rem; color: var(--muted); }
.earn { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 20px; }
.earn span { color: var(--text); font-weight: 600; }
.earn b { font-family: var(--display); color: var(--gold-2); }
.pack { text-align: center; display: grid; gap: 4px; justify-items: center; padding: 26px 14px 20px; }
.pack .btn { width: 100%; justify-content: center; padding: .7em 1em; }
.tabs { max-width: 960px; margin: 0 auto; }
.reviews { margin-top: 28px; }
.review { margin: 0; }
.review blockquote { margin: 0 0 12px; color: var(--text); font-style: italic; }
.review figcaption { color: var(--gold); font-weight: 600; font-size: .9rem; }
.empty code { color: var(--gold-2); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--stone); color: var(--gold-2); transition: background .2s, color .2s, transform .15s; }
.footer-social a:hover { background: var(--gold); color: #2a1a05; transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.disclaimer { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.disclaimer .note { max-width: 720px; margin-top: 6px; }
.site-footer h4 { color: var(--gold); font-family: var(--display); font-weight: 800; letter-spacing: .1em; margin-bottom: 16px; }
.explore-cols { grid-template-columns: 1fr 1fr; column-gap: 24px; max-width: 360px; row-gap: 10px !important; }
.help-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--text) !important; font-weight: 600; transition: border-color .2s, background .2s; }
.help-btn:hover { border-color: var(--gold); background: rgba(230,182,92,.08); color: var(--gold-2) !important; }
.help-btn svg { width: 18px; height: 18px; }
.online-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--live); background: rgba(79,191,106,.12); border: 1px solid rgba(79,191,106,.35); }
.online-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); }
.footer-grid > div:last-child { display: flex; flex-direction: column; align-items: flex-start; }
.cta-note { font-size: .85rem; letter-spacing: .04em; color: var(--gold); opacity: .9; margin-top: 18px; }
.lang-grid { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 1000px; margin: 0 auto; }
@media (min-width: 760px) { .lang-grid { grid-template-columns: 1fr 1fr; } }
.lang-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(-180deg, var(--stone-2), var(--stone)); transition: border-color .2s, transform .2s; }
.lang-card:hover { border-color: rgba(230,182,92,.45); transform: translateY(-2px); }
.lang-code { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; letter-spacing: .04em; color: #2a1a05; background: linear-gradient(-180deg, var(--gold-2), var(--gold-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 10px -4px rgba(230,182,92,.6); }
.lang-card b { display: block; color: var(--gold-2); margin-bottom: 4px; }
.lang-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.hashtags { max-width: 900px; margin: 44px auto 0; text-align: center; }
.ht-line { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.ht-line svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.ht-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ht-cloud li { padding: 6px 13px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--gold-2); background: rgba(230,182,92,.07); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.ht-cloud li:hover { background: rgba(230,182,92,.16); border-color: rgba(230,182,92,.5); }

/* ---------- Reviews ---------- */
.rev-grid { display: grid; gap: 18px; grid-template-columns: 1fr; max-width: 1000px; margin: 0 auto; }
@media (min-width: 760px) { .rev-grid { grid-template-columns: 1fr 1fr; } }
.rev-card {
  margin: 0; padding: 22px 24px; border-radius: 16px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(-180deg, var(--stone-2), var(--stone)); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: opacity .45s ease, transform .45s ease;
}
.rev-card.fade { opacity: 0; transform: translateY(8px); }
.rev-top { display: flex; justify-content: space-between; align-items: flex-start; }
.rev-stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.rev-stars i { font-style: normal; color: rgba(230,182,92,.25); }
.rev-mark { font-family: Georgia, serif; font-size: 3.2rem; line-height: .8; color: rgba(230,182,92,.22); }
.rev-card blockquote { margin: 0; color: var(--text); font-size: .98rem; flex: 1; }
.rev-card figcaption { display: flex; align-items: center; gap: 12px; }
.rev-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); flex: none; }
.rev-card figcaption b { display: block; font-family: var(--display); color: var(--gold-2); }
.rev-card figcaption small { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8b95f5; }
.rev-card figcaption small svg { width: 14px; height: 14px; }

.rev-viewport { max-width: 1000px; margin: 0 auto; overflow: hidden; position: relative; }
.rev-viewport .rev-grid { will-change: transform; }
.rev-card { box-shadow: none; }
.rev-card figcaption small.src-discord { color: #8b95f5; }
.rev-card figcaption small.src-verified { color: var(--live); }
.rev-card figcaption small.src-tiktok { color: #ff4f7b; }
.rev-card figcaption small.src-youtube { color: #ff5a4f; }

.faq details { transition: border-color .3s ease, background .3s ease; }
.faq details.is-open { border-color: rgba(230,182,92,.45); background: linear-gradient(-180deg, var(--stone-2), var(--stone)); }
.faq summary { transition: color .25s ease; }
.faq details.is-open summary { color: var(--gold-2); }

/* FAQ smooth accordion */
.faq-js details .answer {
  display: grid; grid-template-rows: 0fr; padding: 0 22px; opacity: 0;
  transition: grid-template-rows .55s cubic-bezier(.33,1,.68,1), opacity .4s ease;
}
.faq-js details.is-open .answer { grid-template-rows: 1fr; opacity: 1; }
.faq-js .answer-clip { overflow: hidden; min-height: 0; }
.faq-js .answer-in { padding-bottom: 20px; transform: translateY(-6px); transition: transform .55s cubic-bezier(.33,1,.68,1); }
.faq-js details.is-open .answer-in { transform: none; }
.faq-js details summary::after { transition: transform .55s cubic-bezier(.33,1,.68,1); }
.faq-js details:not(.is-open) summary::after { transform: none; }
@media (prefers-reduced-motion: reduce) { .faq-js details .answer, .faq-js .answer-in { transition: none; } }

/* ---------- Support ---------- */
.sup-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.sup-ico { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--gold-2); background: radial-gradient(circle at 30% 25%, rgba(246,213,142,.3), rgba(168,121,43,.12)); border: 1px solid rgba(230,182,92,.35); }
.sup-ico svg { width: 24px; height: 24px; }
.sup-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 6px; }
.sup-card h3 svg { width: 16px; height: 16px; color: var(--live); flex: none; }
.sup-card p { font-size: .92rem; }

/* ---------- Community buttons + live badge ---------- */
.online-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #aab2ff; background: rgba(88,101,242,.14); border: 1px solid rgba(88,101,242,.4); }
.online-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(79,191,106,.6); animation: pulse 2s infinite; }
.online-badge b { font-variant-numeric: tabular-nums; color: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79,191,106,.6); } 70% { box-shadow: 0 0 0 8px rgba(79,191,106,0); } 100% { box-shadow: 0 0 0 0 rgba(79,191,106,0); } }
.community-lead { color: var(--muted); max-width: 520px; margin-bottom: 26px; }
.comm-buttons { display: grid; gap: 12px; max-width: 480px; }
.comm-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 480px) { .comm-row { grid-template-columns: 1fr 1fr; } }
.cbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 20px; border-radius: 14px; font-family: var(--display); font-weight: 800; font-size: .95rem; color: #fff !important; transition: transform .15s ease, box-shadow .2s ease, filter .2s; }
.cbtn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.cbtn svg { width: 22px; height: 22px; flex: none; }
.cbtn small { font-family: var(--body); font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); }
.cbtn-discord { background: #5865f2; box-shadow: 0 14px 30px -12px rgba(88,101,242,.8); }
.cbtn-tiktok { background: #17110c; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 30px -14px rgba(0,0,0,.9); }
.cbtn-youtube { background: #e62117; box-shadow: 0 14px 30px -12px rgba(230,33,23,.75); }
@media (min-width: 900px) {
  .comm-buttons { max-width: none; justify-items: start; }
  .comm-row { display: flex; gap: 12px; }
  .cbtn { height: 60px; padding: 0 20px; }
  .cbtn-discord { width: 355px; }
  .cbtn-tiktok { width: 220px; }
  .cbtn-youtube { width: 260px; }
}
@media (max-width: 899px) {
  .cbtn { min-height: 56px; white-space: nowrap; }
}
@media (max-width: 420px) {
  .cbtn { font-size: .85rem; gap: 8px; padding: 0 12px; }
  .cbtn small { font-size: .62rem; padding: 2px 6px; }
}
/* Community buttons: target sizes on large screens, shrink to fit on smaller ones */
@media (min-width: 900px) {
  .cbtn { min-width: 0; overflow: hidden; }
  .cbtn-discord { width: 355px; max-width: 100%; }
  .comm-row { width: 100%; max-width: 492px; }
  .cbtn-tiktok { width: auto; flex: 0 1 220px; }
  .cbtn-youtube { width: auto; flex: 0 1 260px; }
}

@media (max-width: 599px) {
  .comm-row { grid-template-columns: 1fr !important; }
  .cbtn { font-size: .85rem; gap: 8px; padding: 0 12px; }
  .cbtn small { font-size: .62rem; padding: 2px 6px; }
  .community { padding: 26px 20px; }
}

/* Community buttons – final look */
.cbtn { border: 0; border-radius: 14px; letter-spacing: .01em; }
.cbtn-discord { background: #5865f2; box-shadow: 0 12px 28px -10px rgba(88,101,242,.75); }
.cbtn-tiktok { background: #3b2716; border: 0; box-shadow: 0 14px 28px -10px rgba(40,24,10,.85); }
.cbtn-youtube { background: #ff0000; box-shadow: 0 12px 30px -8px rgba(255,0,0,.6); }
.cbtn small { border-radius: 6px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45); }
@media (min-width: 900px) and (max-width: 1180px) {
  .community { grid-template-columns: 1.5fr 1fr; gap: 20px; padding: 36px; }
  .cbtn { font-size: .82rem; gap: 8px; padding: 0 14px; }
  .cbtn small { font-size: .62rem; padding: 2px 6px; }
}

/* ---------- Gift code frame ---------- */
.codes-frame {
  max-width: 900px; margin: 0 auto; padding: 28px; border-radius: 22px; position: relative;
  background: radial-gradient(700px 220px at 50% 0%, rgba(230,182,92,.14), transparent 70%), linear-gradient(-180deg, var(--stone-2), var(--stone));
  border: 1px solid rgba(230,182,92,.45);
  box-shadow: 0 0 0 6px rgba(230,182,92,.05), 0 30px 60px -30px rgba(0,0,0,.9);
}
@media (min-width: 720px) { .codes-frame { padding: 34px 40px; } }
.codes-frame-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.codes-frame-head svg { width: 28px; height: 28px; color: var(--gold); }
.codes-frame-head h3 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--gold-2); }
.codes-frame .codes { max-width: none; }
/* Expired: same layout as active, red tint */
.code-row.expired { opacity: 1; border-color: rgba(201,72,63,.45); background: linear-gradient(-90deg, rgba(201,72,63,.12), rgba(30,25,20,.6)); }
.code-row.expired code { text-decoration: none; color: #f0a39c; border-color: rgba(201,72,63,.5); }
.code-row.expired .code-reward { color: #c79a94; }
.code-row.expired .btn-ghost { border-color: rgba(201,72,63,.4); color: #f0a39c; }
.status.dead { background: rgba(201,72,63,.18); color: #ff7b70; }

/* ---------- Community logo slot ---------- */
.comm-logo { display: grid; place-items: center; }
.comm-logo > div { width: min(220px, 65%); filter: drop-shadow(0 20px 40px rgba(230,182,92,.25)); }
.comm-logo img { width: 100%; height: auto; display: block; }

/* Gift codes: scroll after 5 */
.codes.is-scroll { overflow-y: auto; padding-left: 8px; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent); }
.codes.is-scroll.at-end { -webkit-mask-image: none; mask-image: none; }
.codes.is-scroll::-webkit-scrollbar { width: 6px; }
.codes.is-scroll::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 6px; }
.codes.is-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 6px; }
.codes-more { text-align: center; font-size: .78rem; color: var(--muted); margin: 10px 0 0; letter-spacing: .06em; }

/* How to redeem strip */
.redeem-guide {
  margin-top: 24px; padding: 18px 20px; border-radius: 16px; text-align: center;
  background: linear-gradient(-135deg, rgba(230,182,92,.18), rgba(230,182,92,.05));
  border: 1px dashed rgba(230,182,92,.6);
}
.redeem-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--gold-2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.redeem-label svg { width: 20px; height: 20px; }
.redeem-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 8px; }
.redeem-steps .redeem-step { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 999px; background: #120e0a; border: 1px solid rgba(230,182,92,.35); color: var(--text); font-weight: 600; font-size: .95rem; }
.redeem-steps .redeem-step b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #2a1a05; background: linear-gradient(-180deg, var(--gold-2), var(--gold-deep)); }
.redeem-single { margin: 0; color: var(--text); font-weight: 600; }
@media (max-width: 600px) {
  .redeem-steps { flex-direction: column; align-items: stretch; }
  .redeem-steps .redeem-step { justify-content: flex-start; }
  .redeem-arrow { transform: rotate(-90deg); align-self: center; }
}
.redeem-arrow { color: var(--gold); font-weight: 800; font-size: 1.1rem; }

/* ---------- Milestones ---------- */
.ms-section { background: radial-gradient(900px 400px at 50% 0%, rgba(230,182,92,.12), transparent 70%), linear-gradient(-180deg, #17120c, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ms-calc { max-width: 1000px; margin: 0 auto 34px; display: grid; gap: 20px; grid-template-columns: 1fr; padding: 24px; border-radius: 20px; border: 1px solid rgba(230,182,92,.45); background: linear-gradient(-180deg, var(--stone-2), var(--stone)); box-shadow: 0 0 0 6px rgba(230,182,92,.05), var(--shadow); }
@media (min-width: 860px) { .ms-calc { grid-template-columns: 1fr 1.2fr; padding: 30px; align-items: center; } }
.ms-calc-input label { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.ms-amount { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid rgba(230,182,92,.35); }
.ms-amount span { font-family: var(--display); font-size: 1.6rem; color: var(--gold); }
.ms-amount input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 1.8rem; outline: none; -moz-appearance: textfield; }
.ms-amount input::-webkit-outer-spin-button, .ms-amount input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ms-range { width: 100%; margin: 16px 0 12px; accent-color: var(--gold); height: 6px; }
.ms-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-quick button { font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; background: rgba(230,182,92,.08); color: var(--gold-2); border: 1px solid var(--line); }
.ms-quick button:hover { background: rgba(230,182,92,.18); }
.ms-calc-out { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.ms-stat { text-align: center; padding: 14px 8px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.06); display: grid; gap: 2px; }
.ms-stat b { font-family: var(--display); font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.ms-stat span { font-size: .72rem; color: var(--muted); }
.ms-stat-big b { color: #fff3d6; }
.ms-next { grid-column: 1 / -1; font-size: .9rem; color: var(--text); text-align: center; min-height: 1.4em; }
.ms-next em { font-style: normal; color: var(--gold-2); font-weight: 700; }
.ms-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.ms-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(-90deg, var(--gold-deep), var(--gold-2)); transition: width .35s ease; }
.ms-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .ms-grid { grid-template-columns: repeat(4, 1fr); } }
.ms-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: linear-gradient(-180deg, var(--stone-2), var(--stone)); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, transform .3s; }
.ms-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #2a1a05; font-weight: 800; font-size: 1.2rem; background: linear-gradient(-180deg, var(--gold-2), var(--gold-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.ms-ico svg { width: 22px; height: 22px; }
.ms-body { display: grid; gap: 2px; min-width: 0; }
.ms-spend { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ms-stars { font-family: var(--display); color: var(--gold-2); font-size: 1rem; }
.ms-item { font-size: .85rem; color: #d8b4f0; }
.ms-check { position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--live); color: #0e0c0a; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s; }
.ms-check svg { width: 13px; height: 13px; }
.ms-card.reached { border-color: rgba(79,191,106,.55); box-shadow: 0 0 0 1px rgba(79,191,106,.2); }
.ms-card.reached .ms-check { opacity: 1; transform: none; }
.ms-card.is-next { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(230,182,92,.35), 0 12px 30px -14px rgba(230,182,92,.6); transform: translateY(-2px); }
.ms-card.is-top { border-color: rgba(230,182,92,.6); }
.ms-card.is-top::after { content: "Top tier"; position: absolute; top: -10px; left: 12px; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--crimson-2); color: #fff; }
.ms-card.ms-forever { grid-column: 1 / -1; justify-content: center; text-align: right; border-style: dashed; border-color: rgba(230,182,92,.55); background: linear-gradient(-90deg, rgba(230,182,92,.12), rgba(30,25,20,.6)); }
.ms-forever .ms-ico { font-size: 1.5rem; }
.ms-ico img { width: 26px; height: 26px; object-fit: contain; }
.ms-cta { text-align: center; margin-top: 30px; }
.ms-cta .tz-note { margin-top: 14px; }
@media (max-width: 520px) { .ms-calc-out { grid-template-columns: 1fr 1fr; } .ms-stat-big { grid-column: 1 / -1; order: -1; } }
.ms-calc { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .ms-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.ms-calc > * { min-width: 0; }
.ms-amount input { width: 100%; }
@media (max-width: 520px) { .ms-calc { padding: 18px; } }

/* Milestones: sliding two-row window */
.ms-viewport { max-width: 1100px; margin: 0 auto; overflow: hidden; padding: 14px 4px; transition: height .4s ease; }
.ms-viewport .ms-grid { transition: transform .7s cubic-bezier(.65,0,.35,1); will-change: transform; }
.ms-card { transition: border-color .3s, box-shadow .3s, opacity .5s ease, transform .3s; }
.ms-card.ms-out { opacity: 0; }
.ms-forever { max-width: 1100px; margin: 0 auto; display: flex; }

/* ---------- Time Line (unlock roadmap) ---------- */
.tl-box { max-width: 1100px; margin: 0 auto; padding: 22px; border-radius: 22px; border: 1px solid rgba(230,182,92,.45); background: radial-gradient(800px 260px at 50% 0%, rgba(230,182,92,.12), transparent 70%), linear-gradient(-180deg, var(--stone-2), var(--stone)); box-shadow: 0 0 0 6px rgba(230,182,92,.05), var(--shadow); }
@media (min-width: 720px) { .tl-box { padding: 30px 34px; } }
.tl-day { display: grid; gap: 10px; justify-items: center; text-align: center; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tl-day label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.tl-day-ctrl { display: flex; align-items: center; gap: 8px; }
.tl-day-ctrl input { width: 110px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--text); background: rgba(0,0,0,.35); border: 1px solid rgba(230,182,92,.35); border-radius: 12px; padding: 4px 6px; -moz-appearance: textfield; }
.tl-day-ctrl input::-webkit-outer-spin-button, .tl-day-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tl-step { width: 42px; height: 42px; border-radius: 50%; font-size: 1.4rem; font-weight: 700; cursor: pointer; color: #2a1a05; border: 0; background: linear-gradient(-180deg, var(--gold-2), var(--gold-deep)); }
.tl-range { width: min(520px, 100%); accent-color: var(--gold); }
.tl-next { margin: 0; font-size: .95rem; color: var(--text); min-height: 1.4em; }
.tl-next em { font-style: normal; color: var(--gold-2); font-weight: 700; }
.tl-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 8px; scrollbar-width: thin; justify-content: flex-start; }
@media (min-width: 900px) { .tl-tabs { justify-content: center; flex-wrap: wrap; overflow: visible; } }
.tl-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); background: rgba(0,0,0,.25); border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.tl-tabs button svg { width: 18px; height: 18px; }
.tl-tabs button small { font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.08); }
.tl-tabs button[aria-selected="true"] { color: #2a1a05; background: linear-gradient(-180deg, var(--gold-2), var(--gold)); border-color: var(--gold); }
.tl-tabs button[aria-selected="true"] small { background: rgba(42,26,5,.18); }
.tl-tabs button.all-done small { background: var(--live); color: #0e0c0a; }
.tl-panel { animation: tlIn .4s ease; }
@keyframes tlIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Desktop: horizontal road */
.tl-track { position: relative; height: 300px; }
.tl-line { position: absolute; right: 4%; left: 4%; top: 50%; height: 8px; margin-top: -4px; border-radius: 99px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.tl-fill { position: absolute; right: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: linear-gradient(-90deg, var(--gold-deep), var(--gold-2)); box-shadow: 0 0 14px rgba(230,182,92,.45); transition: width .5s ease; }
.tl-you { position: absolute; top: 50%; right: 0; width: 18px; height: 18px; margin: -9px -9px 0 0; border-radius: 50%; background: #fff3d6; box-shadow: 0 0 0 5px rgba(246,213,142,.25), 0 0 18px rgba(246,213,142,.8); transition: right .5s ease; }
.tl-node { position: absolute; right: var(--x); top: 50%; width: 0; height: 0; }
.tl-dot { position: absolute; right: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--stone); border: 2px solid rgba(230,182,92,.5); color: transparent; z-index: 2; transition: background .3s, border-color .3s, color .3s, box-shadow .3s; }
.tl-dot svg { width: 15px; height: 15px; }
.tl-card { position: absolute; right: 0; transform: translateX(50%); width: 132px; padding: 10px 10px 9px; border-radius: 12px; text-align: center; background: #120e0a; border: 1px solid var(--line); display: grid; gap: 2px; transition: border-color .3s, box-shadow .3s; }
.tl-card::after { content: ""; position: absolute; right: 50%; width: 2px; height: 26px; margin-right: -1px; background: var(--line); }
.tl-node.up .tl-card { bottom: 44px; }
.tl-node.up .tl-card::after { top: 100%; }
.tl-node.down .tl-card { top: 44px; }
.tl-node.down .tl-card::after { bottom: 100%; }
.tl-when { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.tl-card b { font-family: var(--display); font-size: .92rem; color: var(--text); line-height: 1.2; }
.tl-card em { font-style: normal; font-size: .74rem; color: var(--muted); }
.tl-node.done .tl-dot { background: var(--live); border-color: var(--live); color: #0e0c0a; box-shadow: 0 0 12px rgba(79,191,106,.6); }
.tl-node.done .tl-card { border-color: rgba(79,191,106,.5); }
.tl-node.done .tl-card em { color: var(--live); font-weight: 700; }
.tl-node.next .tl-dot { border-color: var(--gold-2); box-shadow: 0 0 0 6px rgba(230,182,92,.18); animation: tlPulse 1.8s infinite; }
.tl-node.next .tl-card { border-color: var(--gold); box-shadow: 0 10px 30px -12px rgba(230,182,92,.6); }
.tl-node.next .tl-card em { color: var(--gold-2); font-weight: 700; }
@keyframes tlPulse { 50% { box-shadow: 0 0 0 11px rgba(230,182,92,0); } }

/* Phones/tablets: vertical road */
@media (max-width: 899px) {
  .tl-track { height: auto; padding: 6px 0 6px 0; display: grid; gap: 12px; position: relative; }
  .tl-line { right: 20px; left: auto; top: 0; bottom: 0; width: 8px; height: auto; margin: 0 -4px 0 0; }
  .tl-fill { width: 100% !important; height: 0; bottom: auto; transition: height .5s ease; }
  .tl-you { display: none; }
  .tl-node { position: relative; right: 0; top: 0; width: auto; height: auto; padding-right: 50px; }
  .tl-dot { right: 5px; top: 50%; margin-top: -15px; }
  .tl-card { position: static; transform: none; width: auto; text-align: right; padding: 12px 14px; }
  .tl-card::after { display: none; }
}
@media (max-width: 899px) {
  .tl-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 6px; }
  .tl-tabs button { justify-content: center; flex-direction: column; gap: 3px; padding: 8px 4px; border-radius: 12px; font-size: .8rem; min-width: 0; }
  .tl-tabs button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
@media (max-width: 380px) { .tl-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Time Line: 365-day scale, stacked lanes */
.tl-card::after { display: none; }
.tl-stem { position: absolute; right: -1px; width: 2px; background: rgba(230,182,92,.35); z-index: 1; }
.tl-node.done .tl-stem { background: rgba(79,191,106,.5); }
.tl-node.next .tl-stem { background: var(--gold); }
.tl-ticks { position: absolute; right: 0; left: 0; top: 50%; height: 0; pointer-events: none; }
.tl-ticks span { position: absolute; right: var(--x); top: 14px; transform: translateX(50%); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(179,166,144,.6); white-space: nowrap; }
.tl-ticks span::before { content: ""; position: absolute; right: 50%; top: -12px; width: 1px; height: 8px; background: rgba(230,182,92,.35); }
.tl-card { z-index: 3; }
@media (max-width: 899px) { .tl-ticks, .tl-stem { display: none; } }

/* Milestone stat boxes: fixed shape */
.ms-calc-out { grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; }
.ms-stat { min-width: 0; height: 108px; align-content: center; grid-template-rows: auto auto; gap: 4px; padding: 12px 8px; }
.ms-stat b { display: block; width: 100%; white-space: nowrap; overflow: hidden; line-height: 1.2; font-size: 1.6rem; }
.ms-stat span { display: block; line-height: 1.3; height: 2.6em; overflow: hidden; font-size: .74rem; }
.ms-next { min-height: 2.9em; display: flex; align-items: center; justify-content: center; }
@media (max-width: 520px) {
  .ms-calc-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-stat { height: 96px; }
}
.ms-next { min-height: 0; height: 4.35em; line-height: 1.45; overflow: hidden; padding: 0 4px; }
@media (min-width: 900px) { .ms-next { height: 2.9em; } }

/* Milestone stat boxes: final fixed layout (number slot + label never move or clip) */
.ms-stat { height: auto; min-height: 118px; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 6px; padding: 18px 8px 14px; overflow: visible; }
.ms-stat b { flex: none; width: 100%; height: 36px; line-height: 36px; font-size: 1.6rem; white-space: nowrap; overflow: hidden; text-align: center; }
.ms-stat span { flex: none; height: auto; min-height: 2.8em; overflow: visible; line-height: 1.4; font-size: .76rem; text-align: center; }
@media (max-width: 520px) { .ms-stat { min-height: 108px; padding-top: 14px; } }

/* ---------- Top-Up (redesign) ---------- */
.tp-section { background: radial-gradient(1000px 420px at 50% 0%, rgba(230,182,92,.16), transparent 70%), linear-gradient(-180deg, #1b140c, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tp-grid { display: grid; gap: 18px; grid-template-columns: 1fr; max-width: 1200px; margin: 0 auto; }
@media (min-width: 620px) { .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tp-card {
  position: relative; display: flex; flex-direction: column; padding: 22px 20px 20px; border-radius: 20px;
  background: radial-gradient(260px 160px at 20% 0%, rgba(246,213,142,.10), transparent 70%), linear-gradient(-180deg, #2c2318, #1c160f);
  border: 1px solid rgba(230,182,92,.28);
  box-shadow: 0 24px 40px -26px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tp-card:hover { transform: translateY(-4px); border-color: rgba(230,182,92,.55); box-shadow: 0 30px 50px -26px rgba(0,0,0,.95), 0 0 0 1px rgba(230,182,92,.15); }
.tp-card.is-hot { border-color: rgba(230,182,92,.7); background: radial-gradient(300px 200px at 50% 0%, rgba(246,213,142,.22), transparent 70%), linear-gradient(-180deg, #3a2c18, #211910); box-shadow: 0 0 0 1px rgba(230,182,92,.3), 0 26px 50px -24px rgba(230,182,92,.45); }
.tp-tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #2a1a05; background: linear-gradient(-180deg, var(--gold-2), var(--gold)); box-shadow: 0 6px 14px -6px rgba(230,182,92,.8); }
.tp-tag svg { width: 13px; height: 13px; }
.tp-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-left: 4px; }
.tp-chest { flex: none; width: 64px; height: 64px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); transition: transform .3s ease; }
.tp-card:hover .tp-chest { transform: rotate(6deg) scale(1.08); }
.tp-chest svg { width: 100%; height: 100%; }
.tp-amount { display: block; font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--gold-2); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tp-unit { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-top: 3px; }
.tp-star { width: 14px; height: 14px; display: inline-block; background: linear-gradient(-180deg, var(--gold-2), var(--gold-deep)); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.tp-price { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: #5fd38a; text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 22px rgba(95,211,138,.25); margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.tp-compare { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.tp-compare s { color: #e07a70; font-weight: 700; font-size: .95rem; text-decoration-thickness: 2px; }
.tp-save { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; color: #5fd38a; background: rgba(79,191,106,.14); border: 1px solid rgba(79,191,106,.4); }
.tp-perks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; flex: 1; }
.tp-perks li { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--muted); line-height: 1.35; }
.tp-perks svg { flex: none; width: 15px; height: 15px; color: var(--live); margin-top: 2px; }
.tp-btn { display: block; text-align: center; padding: 13px 16px; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: .03em; color: #fff !important; background: linear-gradient(-180deg, #4fae47, #3a8a34); box-shadow: 0 4px 0 #276123, 0 12px 20px -10px rgba(79,174,71,.7); transition: transform .12s ease, box-shadow .12s ease, filter .2s; }
.tp-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tp-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #276123; }
.tp-btn.gold { color: #2a1a05 !important; background: linear-gradient(-180deg, var(--gold-2), var(--gold) 55%, var(--gold-deep)); box-shadow: 0 4px 0 #7a5418, 0 12px 22px -10px rgba(230,182,92,.8); }
.tp-btn.gold:active { box-shadow: 0 1px 0 #7a5418; }
.tp-section .tz-note { max-width: 760px; margin-right: auto; margin-left: auto; }
.tp-tag { top: -12px; left: 16px; }
.tp-compare { flex-direction: column; align-items: flex-start; gap: 6px; }
.tp-card { margin-top: 6px; }
.tp-chest { width: 70px; height: 70px; }

/* ---------- New Account Benefits ---------- */
.nb-section { background: radial-gradient(800px 420px at 25% 55%, rgba(201,72,63,.16), transparent 70%), radial-gradient(900px 380px at 80% 0%, rgba(230,182,92,.10), transparent 70%), var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nb-grid { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); align-items: center; max-width: 1100px; margin: 0 auto; }
@media (min-width: 900px) { .nb-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; } }
.nb-stage { position: relative; width: min(380px, 86vw); aspect-ratio: 1; margin: 0 auto; }
.nb-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(230,120,60,.55), rgba(201,72,63,.18) 55%, transparent 72%); filter: blur(6px); animation: nbPulse 3.2s ease-in-out infinite; }
@keyframes nbPulse { 50% { transform: scale(1.06); opacity: .85; } }
.nb-ring { position: absolute; inset: 6%; border-radius: 50%; border: 2px dashed rgba(122,78,22,.9); }
.nb-chest { position: absolute; inset: 24%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.6)); animation: nbFloat 4s ease-in-out infinite; }
.nb-chest svg { width: 100%; height: 100%; }
@keyframes nbFloat { 50% { transform: translateY(-8px) rotate(2deg); } }
.nb-orbit { position: absolute; inset: 6%; animation: nbSpin 28s linear infinite; }
.nb-sat { position: absolute; right: 50%; top: 50%; width: 0; height: 0; transform: rotate(calc(-1*(360deg / var(--n) * var(--i)))) translateY(calc(min(380px, 86vw) * -0.44)); }
.nb-sat > span { position: absolute; right: -23px; top: -23px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--gold-2); background: radial-gradient(circle at 30% 25%, rgba(246,213,142,.3), rgba(30,25,20,.95)); border: 1px solid rgba(230,182,92,.5); box-shadow: 0 8px 18px -8px rgba(0,0,0,.8), 0 0 14px rgba(230,182,92,.25); transform: rotate(calc(-1*(-360deg / var(--n) * var(--i)))); animation: nbCounter 28s linear infinite; }
.nb-sat svg { width: 24px; height: 24px; }
@keyframes nbSpin { to { transform: rotate(-360deg); } }
@keyframes nbCounter { from { rotate: 0deg; } to { rotate: -360deg; } }
.nb-badge { position: absolute; right: 50%; bottom: 8%; transform: translateX(50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 16px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: .9rem; color: #2a1a05; background: linear-gradient(-180deg, var(--gold-2), var(--gold)); box-shadow: 0 10px 22px -10px rgba(230,182,92,.9); }
.nb-badge svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .nb-orbit, .nb-sat > span, .nb-chest, .nb-glow { animation: none; } }
.nb-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.nb-list li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(-90deg, rgba(230,182,92,.10), rgba(30,25,20,.7) 60%); border: 1px solid rgba(230,182,92,.3); transition: transform .25s ease, border-color .25s ease; }
.nb-list li:hover { transform: translateX(-4px); border-color: rgba(230,182,92,.6); }
.nb-ico { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #2a1a05; background: linear-gradient(-180deg, var(--gold-2), var(--gold-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 14px -6px rgba(230,182,92,.7); }
.nb-ico svg { width: 26px; height: 26px; }
.nb-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nb-txt small { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nb-txt b { font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--gold-2); line-height: 1.15; }
.nb-tick { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(79,191,106,.15); color: var(--live); border: 1px solid rgba(79,191,106,.45); }
.nb-tick svg { width: 14px; height: 14px; }
.nb-side .dl-row { justify-content: flex-start; }
@media (max-width: 899px) { .nb-side .dl-row { justify-content: center; } }
.nb-badge { bottom: -26px; z-index: 3; }
.nb-stage { margin-bottom: 34px; }
.nb-sat { transform: rotate(calc(-1*(360deg / var(--n) * var(--i)))) translateY(calc(min(380px, 86vw) * -0.40)); }
.nb-ring { inset: 10%; }
.nb-badge { bottom: -44px; }
.nb-stage { margin-bottom: 56px; }
.nb-section { overflow: hidden; }
.nb-orbit { inset: 10%; }

/* ---------- Gameplay Benefits ---------- */
.gp-section { background: radial-gradient(900px 380px at 50% 0%, rgba(230,182,92,.12), transparent 70%), linear-gradient(-180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@keyframes gpSpin { 50% { transform: rotate(-12deg) scale(1.06); } }

/* Gameplay Benefits v2: recurring rewards */
/* 14-day calendar */

/* ---------- Gameplay timeline ---------- */
.gt { list-style: none; margin: 0 auto; padding: 10px 0; max-width: 900px; position: relative; }
.gt::before { content: ""; position: absolute; top: 0; bottom: 0; right: 50%; width: 3px; margin-right: -1.5px; border-radius: 3px; background: linear-gradient(-180deg, transparent, var(--gold-deep) 6%, var(--gold) 50%, var(--gold-deep) 94%, transparent); box-shadow: 0 0 12px rgba(230,182,92,.35); }
.gt-star { align-self: center; width: 16px; height: 16px; background: linear-gradient(-180deg, #fff3d6, var(--gold) 60%, var(--gold-deep)); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.gt-upto { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gt-unit { font-size: .85rem; color: var(--muted); }
/* scroll-in */
/* phones: line on the left, all cards on the right */
@media (max-width: 719px) {
  .gt::before { right: 23px; }
}
.gp-section { overflow: hidden; }

/* ---------- Gameplay: rhythm board ---------- */
.gb { max-width: 1100px; margin: 0 auto; display: grid; gap: 16px; }
.gb-row { --c: var(--gold-2); --cb: rgba(230,182,92,.45); --cbg: rgba(230,182,92,.10);
  display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px; border-radius: 20px;
  background: linear-gradient(-90deg, var(--cbg), rgba(30,25,20,.55) 45%); border: 1px solid rgba(255,255,255,.06); border-right: 4px solid var(--c); }
@media (min-width: 820px) { .gb-row { grid-template-columns: 230px minmax(0, 1fr); align-items: center; padding: 18px 20px; } }
.gb-row.f0 { --c: #ff9a5c; --cb: rgba(255,154,92,.45); --cbg: rgba(255,154,92,.12); }
.gb-row.f1 { --c: #5fd38a; --cb: rgba(79,191,106,.45); --cbg: rgba(79,191,106,.10); }
.gb-row.f2, .gb-row.f3 { --c: #7cc4ff; --cb: rgba(90,160,255,.4); --cbg: rgba(90,160,255,.10); }
.gb-row.f7 { --c: var(--gold-2); --cb: rgba(230,182,92,.45); --cbg: rgba(230,182,92,.10); }
.gb-row.f14 { --c: #d8a8ff; --cb: rgba(170,110,240,.4); --cbg: rgba(170,110,240,.10); }
.gb-label { display: flex; align-items: center; gap: 12px; }
.gb-pulse { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--c); border: 2px solid var(--cb); background: rgba(0,0,0,.3); box-shadow: 0 0 0 0 var(--cb); animation: gbPulse 2.6s ease-out infinite; }
.gb-pulse svg { width: 22px; height: 22px; }
@keyframes gbPulse { 0% { box-shadow: 0 0 0 0 var(--cb); } 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.gb-label b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c); line-height: 1.1; }
.gb-label small { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.gb-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gb-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(-180deg, #2a2117, #1b150e); border: 1px solid var(--cb); transition: transform .2s ease, box-shadow .2s ease; }
.gb-tile:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px var(--cb); }
.gb-ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center; color: #2a1a05; background: linear-gradient(-180deg, var(--gold-2), var(--gold-deep)); border-radius: 12px; }
.gb-ico svg { width: 22px; height: 22px; }
.gb-txt { min-width: 0; }
.gb-txt h3 { margin: 0 0 3px; font-size: 1rem; color: var(--text); }
.gb-txt p { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }
.gb-txt p b { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.gb-txt .gt-star { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .gb-pulse { animation: none; } }
.gb-txt .gt-unit { flex-basis: 100%; margin-top: -2px; }

/* ---------- Stats Bar ---------- */
.sb-section { position: relative; z-index: 2; margin-top: -46px; padding: 0 0 20px; }
.sb { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  border-radius: 22px; border: 1px solid rgba(230,182,92,.6);
  background: radial-gradient(500px 120px at 50% 0%, rgba(246,213,142,.16), transparent 70%), linear-gradient(-180deg, rgba(44,35,24,.96), rgba(22,17,12,.96));
  box-shadow: 0 0 0 6px rgba(230,182,92,.06), 0 30px 60px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.sb::before { content: ""; position: absolute; top: 0; bottom: 0; right: -40%; width: 30%; background: linear-gradient(-90deg, transparent, rgba(255,243,214,.10), transparent); transform: skewX(20deg); animation: sbShine 6s ease-in-out infinite; pointer-events: none; }
@keyframes sbShine { 0%, 55% { right: -40%; } 100% { right: 130%; } }
.sb-item { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; padding: 22px 10px 20px; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; transition-delay: var(--d); }
.sb.in .sb-item { opacity: 1; transform: none; }
.sb-item + .sb-item::before { content: ""; position: absolute; right: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(-180deg, transparent, rgba(230,182,92,.55), transparent); }
.sb-medal { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #2a1a05; background: radial-gradient(circle at 35% 30%, #fff3d6, var(--gold) 55%, var(--gold-deep)); box-shadow: 0 0 0 4px rgba(230,182,92,.15), 0 8px 18px -6px rgba(230,182,92,.7); }
.sb-medal svg { width: 24px; height: 24px; }
.sb-val { font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.1; color: #fff3d6; text-shadow: 0 0 18px rgba(246,213,142,.35); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-lbl { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 899px) {
  .sb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-item + .sb-item::before { display: none; }
  .sb-item { border-top: 1px solid rgba(230,182,92,.15); }
  .sb-item:nth-child(-n+2) { border-top: 0; }
  .sb-item:nth-child(even) { border-right: 1px solid rgba(230,182,92,.15); }
  .sb-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sb-section { margin-top: -30px; }
}
@media (prefers-reduced-motion: reduce) { .sb::before { animation: none; } .sb-item { opacity: 1; transform: none; } }
.nb-chest img { width: 100%; height: 100%; object-fit: contain; }
.site-footer { position: relative; isolation: isolate; }
.sb-section { isolation: isolate; }
.brand-logo { height: 44px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.footer-social a img { width: 22px; height: 22px; object-fit: contain; }
/* Download buttons: no wrapping, own icons, picture buttons */
.dl-btn { width: auto; min-width: 210px; }
.dl-btn span { white-space: nowrap; }
.dl-btn small { white-space: nowrap; }
.dl-btn .dl-ico { width: 30px; height: 30px; object-fit: contain; flex: none; }
.dl-img { display: inline-block; transition: transform .15s ease, filter .2s ease; }
.dl-img:hover { transform: translateY(-2px); filter: brightness(1.08); }
.dl-img img { height: 56px; width: auto; display: block; }


/* ---------- Sticky top: Discord bar + Kingdom bar + menu ---------- */
.site-top { position: sticky; top: 0; z-index: 60; }
.admin-bar .site-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-top { top: 0; } }
.site-top .mobile-nav { background: #0e0c0a; }
.site-top .mobile-nav.open { max-height: calc(100vh - var(--top-h, 140px)); overflow-y: auto; }

.tbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 38px; padding: 5px 14px; font-size: .84rem; font-weight: 600; line-height: 1.2;
  color: var(--tbc); background: linear-gradient(-90deg, var(--tb1), var(--tb2) 50%, var(--tb1));
  white-space: nowrap; overflow: hidden; text-decoration: none;
}
a.tbar:hover { color: var(--tbc); filter: brightness(1.08); }
.tbar + .tbar { border-top: 1px solid rgba(255,255,255,.08); }

/* Discord bar */
.bar-discord .tb-ico svg { width: 20px; height: 20px; display: block; }
.bar-discord .tb-badge { font-size: .64rem; font-weight: 800; letter-spacing: .12em; padding: 2px 7px; border-radius: 6px; border: 1px solid currentColor; opacity: .95; }
.bar-discord .tb-old { opacity: .6; font-weight: 500; }
.bar-discord .tb-old + .tb-text { padding-right: 10px; border-right: 1px solid rgba(255,255,255,.3); }
.bar-discord .tb-text { overflow: hidden; text-overflow: ellipsis; }
.bar-discord .tb-pill { padding: 3px 10px; border-radius: 7px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.22); font-weight: 600; }
.bar-discord .tb-btn { background: var(--tbb); color: var(--tbbc); padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; flex: none; box-shadow: 0 2px 10px rgba(0,0,0,.2); }

/* Kingdom bar */
.bar-kingdom { gap: 14px; }
.bar-kingdom .kb-live, .bar-kingdom .kb-next { display: inline-flex; align-items: center; gap: 8px; }
.bar-kingdom .kb-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee36a; box-shadow: 0 0 0 0 rgba(94,227,106,.6); animation: kbPulse 1.8s infinite; flex: none; }
@keyframes kbPulse { 70% { box-shadow: 0 0 0 7px rgba(94,227,106,0); } 100% { box-shadow: 0 0 0 0 rgba(94,227,106,0); } }
.bar-kingdom .kb-sep { width: 1px; height: 16px; background: currentColor; opacity: .3; }
.bar-kingdom .kb-time { display: inline-flex; align-items: center; gap: 3px; margin-right: 2px; }
.bar-kingdom .kb-time b { background: var(--tbb); color: var(--tbbc); font-family: var(--display); font-variant-numeric: tabular-nums; min-width: 26px; text-align: center; padding: 2px 5px; border-radius: 5px; font-size: .82rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.bar-kingdom .kb-time small { font-size: .7rem; opacity: .85; margin-left: 4px; }
.bar-kingdom .kb-time small:last-child { margin-left: 0; }
.tbar .tb-short { display: none; }

@media (max-width: 760px) {
  .tbar { font-size: .76rem; gap: 7px; padding: 4px 10px; min-height: 34px; }
  .bar-discord .tb-old, .bar-discord .tb-pill { display: none; }
  .bar-discord .tb-btn { padding: 4px 10px; font-size: .68rem; }
  .bar-kingdom { gap: 9px; }
  .bar-kingdom .kb-sep-x, .bar-kingdom .kb-extra { display: none; }
  .tbar .tb-long { display: none; }
  .tbar .tb-short { display: inline; }
  .bar-kingdom .kb-time b { min-width: 22px; padding: 2px 3px; font-size: .74rem; }
  .bar-kingdom .kb-time small { font-size: .62rem; margin-left: 2px; }
}
@media (max-width: 380px) {
  .bar-discord .tb-badge { display: none; }
}


/* ---------- Hero: centred on every phone (iPhone / Android, 320px and up) ---------- */
.hero-inner { width: 100%; }
.hero .eyebrow { max-width: 100%; justify-content: center; text-align: center; }
.hero .eyebrow-text { margin-left: -.18em; }               /* letter-spacing adds space after the last letter */
.hero h1 { overflow-wrap: break-word; }
.dl-btn small { color: inherit; opacity: .72; }            /* follow the button's own text colour */
@media (max-width: 600px) {
  .hero { padding-top: 44px; }
  .hero .eyebrow { font-size: clamp(.62rem, 2.9vw, .74rem); letter-spacing: .1em; padding: 7px 12px; gap: 6px; margin-bottom: 18px; }
  .hero .eyebrow-text { margin-left: -.1em; text-wrap: balance; }
  .hero .eyebrow { display: inline-block; line-height: 1.5; }
  .hero .eyebrow svg { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; margin-left: 6px; }
  .hero p.lead { font-size: 1rem; }
  .hero-landing p.lead.has-box { padding: .75em 1em; }
  .hero .dl-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 680px; margin-inline: auto; }
  .hero .dl-btn { width: 100%; justify-content: center; }
  .hero .dl-btn span { text-align: center; justify-items: center; }
  .hero .dl-img { align-self: center; }
  .hero .dl-img img { height: 52px; }
  .hero .season-count { max-width: 100%; }
}

/* ---------- Smooth scrolling + back to top ---------- */
html.js { scroll-behavior: auto; } /* main.js animates the scroll itself */
.to-top {
  --tt-bg: #e6b65c; --tt-c: #2a1a05;
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--tt-bg);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--tt-bg) 70%, #fff), var(--tt-bg) 55%, color-mix(in srgb, var(--tt-bg) 70%, #000));
  color: var(--tt-c); box-shadow: 0 10px 24px -8px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.45);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease, visibility 0s, box-shadow .2s ease; }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -8px rgba(0,0,0,.7), 0 0 0 4px color-mix(in srgb, var(--tt-bg) 25%, transparent), inset 0 1px 0 rgba(255,255,255,.45); }
.to-top:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.to-top svg { width: 100%; height: 100%; display: block; transform: rotate(90deg); }
.to-top .tt-track, .to-top .tt-ring { fill: none; stroke-width: 2.5; }
.to-top .tt-track { stroke: color-mix(in srgb, var(--tt-c) 18%, transparent); }
.to-top .tt-ring { stroke: var(--tt-c); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--tt-p, 100); transition: stroke-dashoffset .1s linear; }
.to-top .tt-arrow { fill: none; stroke: var(--tt-c); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-90deg); transform-origin: 24px 24px; }
@media (max-width: 640px) { .to-top { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top.show { transition: opacity .2s; transform: none; } }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* ---------- Language menu ---------- */
.hdr-end { display: flex; align-items: center; gap: 10px; }
.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 9px 0 10px; cursor: pointer;
  background: rgba(255,255,255,.03); color: var(--mn-link, var(--text)); border: 1px solid var(--mn-line, var(--line)); border-radius: 8px;
  font: 600 .82rem/1 var(--body); letter-spacing: .04em; transition: color .2s, border-color .2s, background .2s;
}
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-btn .lang-chev { width: 14px; height: 14px; stroke-width: 2.2; opacity: .7; transition: transform .2s; }
.lang-btn:hover, .lang-menu.open .lang-btn { color: var(--mn-hover, var(--gold-2)); border-color: var(--mn-hover, var(--gold)); background: rgba(230,182,92,.08); }
.lang-menu.open .lang-chev { transform: rotate(-180deg); }
.lang-btn:focus-visible { outline: 2px solid var(--mn-hover, var(--gold-2)); outline-offset: 2px; }
.lang-list {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 80; margin: 0; padding: 8px; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px; width: max-content; max-width: calc(100vw - 24px);
  background: var(--mn-bg, #17110b); border: 1px solid var(--mn-line, var(--line)); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.75); max-height: calc(100vh - var(--top-h, 140px) - 20px); overflow-y: auto;
}
.lang-list[hidden] { display: none; }
.lang-list a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  color: var(--mn-link, var(--text)); font-size: .95rem; line-height: 1.2; white-space: nowrap;
}
.lang-list a:hover, .lang-list a:focus-visible { background: rgba(230,182,92,.1); color: var(--mn-hover, var(--gold-2)); outline: none; }
.lang-list a[aria-current] { background: rgba(230,182,92,.16); color: var(--mn-hover, var(--gold-2)); font-weight: 600; }
.lang-list a[aria-current]::after { content: "✓"; margin-right: auto; padding-right: 8px; }
.lang-code { flex: none; min-width: 26px; padding: 2px 0; border-radius: 4px; text-align: center; font: 700 .66rem/1.4 var(--body); letter-spacing: .04em; color: var(--mn-link, var(--text)); background: rgba(255,255,255,.08); }
.lang-list a[aria-current] .lang-code { background: var(--mn-hover, var(--gold-2)); color: #1a1209; }
@media (max-width: 899px) {
  .lang-btn { height: 42px; padding: 0 8px; }
  .lang-list { position: fixed; top: calc(var(--top-h, 120px) + 6px); right: 12px; left: 12px; width: auto; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-list a { white-space: normal; }
}
@media (max-width: 359px) { .lang-btn .lang-chev { display: none; } }

/* "Showing this page in your language" note (after the automatic switch) */
.lang-note {
  position: absolute; top: calc(100% + 8px); right: 50%; transform: translate(50%, -6px); opacity: 0; transition: opacity .3s, transform .3s;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px); width: max-content;
  padding: 8px 14px 8px 8px; border-radius: 999px; font-size: .86rem; color: var(--mn-link, var(--text));
  background: var(--mn-bg, #17110b); border: 1px solid var(--mn-line, var(--line)); box-shadow: 0 12px 30px -10px rgba(0,0,0,.8);
}
.lang-note.show { opacity: 1; transform: translate(50%, 0); }
.lang-note b { color: var(--mn-hover, var(--gold-2)); }
.lang-note a { padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .8rem; background: var(--mn-btn-bg, var(--gold)); color: var(--mn-btn-c, #2a1a05); }
.lang-note-x { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: .9rem; width: 28px; height: 28px; border-radius: 50%; }
.lang-note-x:hover { opacity: 1; background: rgba(255,255,255,.08); }

/* Language cards link to that language's version of the site */
a.lang-card { color: inherit; transition: transform .2s ease, border-color .2s ease; }
a.lang-card:hover { transform: translateY(-2px); border-color: rgba(230,182,92,.55); color: inherit; }
.legal-tr { display: contents; }

/* ---------- Longer words in other languages ---------- */
.sb-val { white-space: normal; max-width: 100%; }
@media (max-width: 899px) { .tl-tabs button span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; text-align: center; } }
@media (min-width: 900px) and (max-width: 1199px) {
  .site-header .nav { gap: 0; min-width: 0; }
  .site-header .nav a { padding: 8px 7px; font-size: .86rem; white-space: nowrap; }
  .lang-btn .lang-chev { display: none; }
}
.lang-ru .hero h1, .lang-vi .hero h1, .lang-de .hero h1 { font-size: clamp(2.1rem, 6.2vw, 4.2rem); }
.lang-ar .hero h1, .lang-th .hero h1, .lang-hi .hero h1 { line-height: 1.35; padding-bottom: .1em; }
[dir="rtl"] .arr { display: inline-block; transform: scaleX(-1); }
.sb-val { overflow-wrap: break-word; hyphens: auto; }
[dir="rtl"] .sb-val { unicode-bidi: plaintext; }
@media (max-width: 899px) { .tl-tabs button span { overflow-wrap: break-word; hyphens: auto; font-size: .76rem; } }
.lang-ja .hero h1, .lang-zh .hero h1, .lang-ja .section-head h2, .lang-zh .section-head h2 { word-break: keep-all; overflow-wrap: anywhere; }
