/* ageofsol.com — Home, My Account and info pages.
   Same palette and type as the game: orange dusk sky, sand, castle brown,
   green (Player A) and blue (Player B). */
:root {
  --sky: #FF9462; --sky-2: #FFB27F; --sand: #FFD898; --sand-l: #FFF1DC; --paper: #FFF8EE;
  --brown: #4C1A1C; --brown-2: #6B2A22; --ink: #2A140C; --muted: #8A6A58; --line: #F0D2B4;
  --green: #3F9C0A; --green-d: #2C7A08; --lime: #8BD32B; --blue: #2BB8F6; --blue-d: #0E6EA8;
  --gold: #FFD23F; --silver: #C9D0D6; --bronze: #D98A4E; --red: #E8452C;
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px; --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font); color: var(--ink); background: var(--sand-l); -webkit-tap-highlight-color: transparent; }
main { flex: 1; }
/* Home: the sections below the banner appear only after the data loads; until then keep the footer below the fold */
#home.is-loading { min-height: calc(100vh + 240px); }
img { max-width: 100%; }
a { color: var(--green-d); }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 241, 220, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: var(--head-h); }
:root { --head-h: 50px; }   /* phones: compact header */
@media (min-width: 761px) { :root { --head-h: 55px; } }   /* slimmer header on desktop */
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); flex: none; }
.hex-logo { width: 40px; height: 46px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(#F2F5F8, #6F7B88); display: grid; place-items: center; flex: none; }
.hex-logo span { width: 33px; height: 39px; clip-path: inherit; background: radial-gradient(circle at 40% 30%, #C4FF5A, #2F7A0A); display: grid; place-items: center; color: #fff; font-size: 17px; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.brand-img { display: block; height: 46px; width: auto; max-width: 220px; object-fit: contain; }
.bl-desk, .bl-mob { display: contents; }
.bl-mob { display: none; }
@media (max-width: 760px) { .bl-desk { display: none; } .bl-mob { display: contents; } }
.brand-img.big { height: 72px; max-width: 260px; margin: 0 auto 14px; }
.foot-tag { margin: 12px 0 0; font-weight: 700; font-size: 15px; color: #FFE9D6; }
.foot-tag + p { margin-top: 6px !important; }
.wordmark { font-weight: 800; font-size: 20px; letter-spacing: .5px; line-height: 1; white-space: nowrap; }
.wordmark em { font-style: normal; font-size: .58em; color: var(--red); vertical-align: middle; padding: 0 1px; }
.head-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.head-nav a { text-decoration: none; color: var(--brown-2); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.head-nav a:hover, .head-nav a[aria-current="page"] { background: #FFE2BE; }
.me-pill { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 5px 14px 5px 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); flex: none; max-width: 230px; transition: box-shadow .15s; }
.me-pill:hover { box-shadow: inset 0 0 0 2px var(--lime); }
.me-pill img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #5865F2; flex: none; }
.me-pill b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-pill small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.me-pill .txt { min-width: 0; line-height: 1.2; }
.login-pill { font: 700 14px var(--font); border: 0; cursor: pointer; text-decoration: none; color: #fff; background: var(--brown-2); padding: 10px 18px; border-radius: 999px; box-shadow: 0 3px 0 #3A1210; flex: none; }
.login-pill:hover { filter: brightness(1.12); }
@media (max-width: 760px) { .site-head .wrap { gap: 12px; } .me-pill img { width: 32px; height: 32px; } .me-pill { padding: 3px; } .login-pill { padding: 8px 16px; } .head-nav .btn-play { padding: 7px 14px; } .brand-link .hex-logo { transform: scale(.82); margin: 0 -3px; } }
@media (max-width: 760px) { .head-nav a:not(.btn-play) { display: none; } .me-pill .txt { display: none; } .me-pill { padding: 4px; } .wordmark { font-size: 17px; } .brand-img { height: 34px; max-width: 150px; } }

/* ---------- buttons ---------- */
.btn { font: 700 16px var(--font); border: 0; border-radius: 16px; padding: 13px 22px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #57B81A, var(--green-d)); color: #fff; box-shadow: 0 5px 0 #1F5A04; }
.btn.secondary { background: linear-gradient(180deg, #FFB03B, #E8752A); color: #fff; box-shadow: 0 5px 0 #A84A10; }
.btn.ghost { background: #fff; color: var(--green-d); box-shadow: inset 0 0 0 2px #CDE8B0; }
.btn.danger { background: #fff; color: #B22A12; box-shadow: inset 0 0 0 2px #F5C2B5; }
.btn.discord { background: #5865F2; color: #fff; box-shadow: 0 5px 0 #3B45C4; }
.btn.google { background: #fff; color: #1F1F1F; box-shadow: inset 0 0 0 2px #DADCE0, 0 5px 0 #C4C8CE; }
.btn.google:hover { background: #F8F9FA; filter: none; }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 12px; }
.head-nav .btn-play { white-space: nowrap; background: linear-gradient(180deg, #57B81A, var(--green-d)); color: #fff; box-shadow: 0 3px 0 #1F5A04; margin-left: 6px; padding: 8px 16px; }
.head-nav .btn-play:hover { background: linear-gradient(180deg, #62C622, var(--green-d)); }

/* ---------- hero: a live battle ---------- */
.hero { position: relative; height: clamp(520px, 78vh, 760px); overflow: hidden; background: linear-gradient(#FF9C68, #FFD898); isolation: isolate; }
.hero canvas { position: absolute; display: block; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 50% 30%, rgba(255, 210, 150, .55), transparent 70%); }
.hero-copy { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); width: min(760px, calc(100% - 2 * var(--gutter))); text-align: center; }
.hero h1 { margin: 0; color: var(--brown); font-weight: 800; font-size: clamp(38px, 6.4vw, 76px); line-height: .98; letter-spacing: -1.5px; text-wrap: balance; text-shadow: 0 2px 0 rgba(255, 240, 220, .6); }
/* Headline entrance: home.js wraps each word; they rise, unblur and settle one after another.
   Until the words are wrapped the headline stays hidden, with a fallback so it can never stay invisible. */
.hero h1:not(.split) { opacity: 0; animation: h1-show 0s 1.2s forwards; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.5em) scale(.94); filter: blur(8px); animation: h1-word .9s cubic-bezier(.16, .84, .3, 1) forwards; animation-delay: calc(.15s + var(--i) * .09s); }
@keyframes h1-word {
  60% { opacity: 1; filter: blur(0); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes h1-show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .w { animation: h1-show .4s forwards; transform: none; filter: none; }
}
.hero p { margin: 16px auto 26px; max-width: 560px; font-size: clamp(15px, 1.6vw, 18px); font-weight: 500; line-height: 1.55; color: #5A2A1C; }
.hero-cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
/* hidden (space kept) until we know whether the visitor is logged in, so guests never see the player buttons flash */
.hero-cta:not(.is-ready) { visibility: hidden; }
.hero-cta .btn { font-size: 18px; padding: 16px 30px; border-radius: 18px; }
.hero-facts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.hero-facts span { font-size: 13px; font-weight: 600; color: var(--brown-2); background: rgba(255, 248, 238, .78); padding: 6px 12px; border-radius: 999px; }
.hero-facts b { color: var(--ink); }
.eras-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 0; }
.eras-strip li { list-style: none; }
/* phones: the banner buttons fill the width, one per row */
@media (max-width: 640px) {
  .hero-cta { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
  .hero-cta .btn { width: 100%; padding: 15px 20px; }
  .hero-facts { flex-direction: column; width: fit-content; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) { .hero { height: 600px; } .hero-copy { top: 9%; } .hero h1 { letter-spacing: -1px; } }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section { padding-top: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; color: var(--brown); letter-spacing: -.5px; line-height: 1.1; }
.sec-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 560px; }
.panel { background: var(--paper); border-radius: 26px; box-shadow: 0 2px 0 var(--line), 0 18px 40px rgba(120, 50, 10, .08); }

/* ---------- leaderboard + top players ---------- */
.board-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 980px) { .board-grid { grid-template-columns: 1fr; } }
.board { padding: 10px 10px 14px; }
.tabs { display: flex; gap: 4px; padding: 6px; background: #FFE9C7; border-radius: 18px; margin: 6px 6px 10px; overflow-x: auto; }
.tabs button { flex: 1; font: 700 14px var(--font); border: 0; padding: 10px 12px; border-radius: 13px; background: none; color: #9A5A1A; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--brown); box-shadow: 0 2px 0 var(--line); }
.board ol { list-style: none; margin: 0; padding: 0 6px; }
.board li { display: grid; grid-template-columns: 34px 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 16px; }
.board li + li { border-top: 1px dashed var(--line); }
.board li.you { background: #EAF8D8; border-top-color: transparent; }
.board li.you + li { border-top-color: transparent; }
.rank { font-weight: 800; font-size: 16px; color: #B08A70; text-align: center; }
.board li:nth-child(1) .rank { color: #C99A00; } .board li:nth-child(2) .rank { color: #8C969E; } .board li:nth-child(3) .rank { color: #B86A2E; }
.ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #5865F2; }
.who { min-width: 0; }
.who b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.val { text-align: right; font-weight: 800; font-size: 18px; color: var(--brown); white-space: nowrap; }
.val small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.you-tag { font-size: 10px; font-weight: 800; color: #fff; background: var(--green); padding: 2px 6px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty b { display: block; font-size: 17px; color: var(--brown); margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }

.top { padding: 18px; }
.top h3 { margin: 4px 6px 14px; font-size: 18px; color: var(--brown); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; }
.pod { text-align: center; padding: 14px 8px 12px; border-radius: 20px 20px 14px 14px; background: #FFF1DC; position: relative; min-width: 0; }
.pod.p1 { background: linear-gradient(180deg, #FFF6CC, #FFE7A0); padding-top: 22px; }
.pod img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: #5865F2; border: 4px solid var(--silver); }
.pod.p1 img { width: 74px; height: 74px; border-color: var(--gold); }
.pod.p3 img { border-color: var(--bronze); }
.pod .place { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--silver); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.pod.p1 .place { background: #E0B400; } .pod.p3 .place { background: var(--bronze); }
.pod b { display: block; margin-top: 6px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .wl { font-size: 12px; color: var(--muted); font-weight: 600; }
.age-chip { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; }
.age-0 { background: #C2763E; } .age-1 { background: #6E8A4A; } .age-2 { background: #B08A3A; } .age-3 { background: #5E6A72; } .age-4 { background: #6A4ACF; }
.runners { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.runners li { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: #FFF1DC; }
.runners img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #5865F2; }
.runners .rank { font-size: 13px; }

/* ---------- achievements: hex badges like the in-game menu ---------- */
.ach-top { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.era-meter { display: flex; flex: 1; min-width: 280px; border-radius: 16px; overflow: hidden; background: #FFE9C7; }
.era-meter div { flex: 1; padding: 10px 8px; text-align: center; font-size: 12px; font-weight: 700; color: #B08A70; position: relative; }
.era-meter div.on { color: #fff; }
.era-meter div b { display: block; font-size: 17px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ach { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px 14px 12px; border-radius: 20px; background: var(--paper); box-shadow: 0 2px 0 var(--line); }
.ach-hex { width: 70px; height: 78px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(#F2F5F8, #8E99A4); display: grid; place-items: center; }
.ach-hex span { width: 60px; height: 68px; clip-path: inherit; display: grid; place-items: center; font-size: 28px; background: radial-gradient(circle at 40% 30%, #6E6660, #3E3632); filter: grayscale(1); }
.ach.done .ach-hex span { background: radial-gradient(circle at 40% 30%, #C4FF5A, #2F7A0A); filter: none; }
.ach h3 { margin: 0; font-size: 15px; color: var(--brown); }
.ach p { margin: 2px 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.bar { height: 8px; border-radius: 99px; background: #F5E2C8; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFB03B, #E8752A); }
.ach.done .bar i { background: linear-gradient(90deg, var(--lime), var(--green)); }
.ach-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: 11px; font-weight: 700; color: #A88A78; }
.ach.done .ach-meta .state { color: var(--green-d); }

/* ---------- footer: ground layers ---------- */
.site-foot { margin-top: 40px; color: #F6DCCB; background: var(--brown); position: relative; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 40px; background:
  radial-gradient(60px 22px at 10% 100%, var(--brown) 98%, transparent) , radial-gradient(90px 26px at 38% 100%, var(--brown) 98%, transparent),
  radial-gradient(70px 20px at 66% 100%, var(--brown) 98%, transparent), radial-gradient(110px 30px at 92% 100%, var(--brown) 98%, transparent),
  linear-gradient(transparent 60%, #8A4A2E 60%, #8A4A2E 80%, var(--brown) 80%); }
.foot-grid { display: grid; grid-template-columns: var(--foot-cols, minmax(0, 1.3fr) minmax(0, 1fr)); gap: 32px; padding: 48px 0 28px; align-items: start; }
.foot-col h4 { margin: 4px 0 12px; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: #FFE9D6; }
.foot-text p { margin: 0; font-size: 14px; line-height: 1.6; color: #E5BFA8; }
.foot-brand .brand-link { color: #FFE9D6; }
.foot-brand p { margin: 14px 0 0; max-width: 420px; font-size: 14px; line-height: 1.6; color: #E5BFA8; }
.foot-nav > div { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-nav.end > div { justify-content: flex-end; }
.foot-nav.titled > div { flex-direction: column; gap: 9px; }
.foot-nav a { color: #FFE9D6; text-decoration: none; font-weight: 600; font-size: 14px; }
.foot-nav a:hover { text-decoration: underline; }
.foot-legal { border-top: 1px solid rgba(255, 220, 200, .15); padding: 16px 0 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #C99A84; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } .foot-nav.end > div { justify-content: flex-start; } }

/* ---------- login gate ---------- */
.gate { min-height: calc(100vh - var(--head-h)); display: grid; place-items: center; padding: 40px var(--gutter); background: linear-gradient(#FF9C68, #FFD898 75%, var(--sand-l)); }
.gate-card { width: min(480px, 100%); padding: 32px 30px; text-align: center; }
.gate-card .hex-logo { width: 64px; height: 72px; margin: 0 auto 14px; }
.gate-card .hex-logo span { width: 54px; height: 62px; font-size: 28px; }
.gate-card h1 { margin: 0; font-size: 30px; color: var(--brown); letter-spacing: -.5px; }
.gate-card p { color: #6A4A38; margin: 10px 0 22px; line-height: 1.55; }
.gate-card .btn.discord, .gate-card .btn.google { width: 100%; font-size: 17px; padding: 15px; }
.login-btns { display: grid; gap: 14px; margin-top: 4px; }
.login-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px var(--gutter); background: rgba(42, 20, 12, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: lmIn .18s ease-out; }
.login-modal .gate-card { position: relative; width: min(440px, 100%); }
.lm-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.lm-close:hover { background: #FFE9D2; color: var(--brown); }
@keyframes lmIn { from { opacity: 0; } }
.hero-cta .btn.google svg, .hero-cta .btn.discord svg { flex: none; }
.gate-err { color: #B22A12; font-weight: 600; font-size: 14px; margin: 12px 0 0 !important; }
.dev-row { display: flex; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--line); }
input, select { font: 600 15px var(--font); color: var(--ink); padding: 11px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; outline: none; width: 100%; min-width: 0; }
input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(139, 211, 43, .2); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: rgba(40, 14, 8, .94); color: #fff; padding: 12px 20px; border-radius: 16px; font-weight: 600; max-width: calc(100% - 32px); }
.toast.err { background: rgba(170, 30, 20, .96); }

/* ---------- skeleton while loading ---------- */
.skel { background: linear-gradient(90deg, #FBE6CC, #FFF3E4, #FBE6CC); background-size: 200% 100%; animation: skel 1.2s linear infinite; border-radius: 12px; height: 18px; }
@keyframes skel { to { background-position: -200% 0; } }

/* ---------- prose pages (About, Privacy, Terms and others from My Account → Pages) ---------- */
/* admin preview banner on a disabled or trashed page */
.page-preview { background: #4A120C; color: #FFE49A; text-align: center; font-weight: 700; font-size: 14px; padding: 10px 16px; }

.prose-hero { padding: clamp(40px, 6vw, 72px) 0 28px; background: linear-gradient(#FFB27F, var(--sand-l)); }
.prose-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); color: var(--brown); letter-spacing: -1px; }
.prose-hero p { margin: 10px 0 0; color: #6A3A28; font-weight: 500; }
.prose { max-width: 760px; padding: 36px clamp(20px, 4vw, 48px) 44px; margin-top: -8px; line-height: 1.7; font-size: 16px; color: #3A2016; }
.prose h2 { font-size: 21px; color: var(--brown); margin: 30px 0 8px; letter-spacing: -.2px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose h3 { font-size: 17px; color: var(--brown); margin: 22px 0 6px; }
.prose a { color: var(--green-d); font-weight: 600; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose blockquote { margin: 0 0 14px; padding: 4px 16px; border-left: 4px solid #CDE8B0; color: #5A3A28; }
.prose hr { border: 0; border-top: 1px dashed var(--line); margin: 24px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; } .prose th, .prose td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.prose .note { background: #FFF1DC; border-radius: 16px; padding: 14px 18px; font-size: 14.5px; }

/* ---------- live now ---------- */
.online-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px #CDE8B0; font-weight: 700; font-size: 14px; color: var(--green-d); }
.online-pill i { width: 10px; height: 10px; border-radius: 50%; background: #3FCB2B; box-shadow: 0 0 0 0 rgba(63,203,43,.6); animation: livePing 1.6s ease-out infinite; }
@keyframes livePing { 70% { box-shadow: 0 0 0 8px rgba(63,203,43,0); } 100% { box-shadow: 0 0 0 0 rgba(63,203,43,0); } }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }
.live-panel { padding: 20px 18px; }
.live-panel h3 { margin: 0 4px 12px; font-size: 17px; color: var(--brown); }
.live-list, .recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.live-list li, .recent-list li { display: grid; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.live-list li { grid-template-columns: auto minmax(0, 1fr) auto; }
.live-list .vs-av { display: flex; } .live-list .vs-av img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #5865F2; border: 2px solid #fff; }
.live-list .vs-av img + img { margin-left: -10px; }
.live-list .vs-av img:first-child { box-shadow: 0 0 0 2px var(--lime); } .live-list .vs-av img + img { box-shadow: 0 0 0 2px var(--blue); }
.live-list b, .recent-list b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-list small, .recent-list small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.hpbars { display: flex; gap: 4px; margin-top: 5px; }
.hpbars span { flex: 1; height: 5px; border-radius: 3px; background: #F5E2C8; overflow: hidden; }
.hpbars span i { display: block; height: 100%; }
.hpbars span:first-child i { background: var(--lime); } .hpbars span:last-child i { background: var(--blue); margin-left: auto; }
.tag-live { font-size: 11px; font-weight: 800; color: #fff; background: var(--red); padding: 3px 8px; border-radius: 6px; }
.tag-open { font-size: 11px; font-weight: 800; color: var(--green-d); background: #EAF8D8; padding: 3px 8px; border-radius: 6px; }
.recent-list li { grid-template-columns: 36px minmax(0, 1fr) auto; }
.recent-list img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #5865F2; }
.recent-list .amt { text-align: right; font-weight: 800; color: var(--green-d); white-space: nowrap; font-size: 14px; }
.recent-list .amt small { font-weight: 600; }
.live-empty { text-align: center; padding: 22px 12px !important; display: block !important; color: var(--muted); font-size: 14px; background: #FFF6EA !important; box-shadow: none !important; }
.live-empty b { color: var(--brown); white-space: normal !important; }

/* ---------- how it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; border-top: 3px dashed #F0C9A0; z-index: 0; }
.steps li { position: relative; z-index: 1; background: var(--paper); border-radius: 24px; padding: 22px 22px 24px; box-shadow: 0 2px 0 var(--line); }
.step-n { width: 48px; height: 54px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(180deg, #62C622, var(--green-d)); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; color: var(--brown); }
.steps p { margin: 0; color: #6A4A38; font-size: 14.5px; line-height: 1.6; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* ---------- five ages ---------- */
.era-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .era-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.era-card { background: var(--paper); border-radius: 22px; overflow: hidden; box-shadow: 0 2px 0 var(--line); display: flex; flex-direction: column; }
.era-card canvas { display: block; width: 100%; aspect-ratio: 16 / 10; background: #FFD898; }
.era-body { padding: 14px 16px 16px; }
.era-body h3 { margin: 0; font-size: 18px; color: var(--brown); display: flex; align-items: center; gap: 8px; }
.era-body h3 .n { font-size: 12px; font-weight: 800; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.era-body p { margin: 6px 0 0; font-size: 13px; color: #6A4A38; line-height: 1.5; }
.era-body .sp { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #FFE9C7; color: #9A5A1A; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 20px 20px 22px; border-radius: 22px; background: var(--paper); box-shadow: 0 2px 0 var(--line); }
.f-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: #FFE9C7; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--brown); }
.feature p { margin: 0; font-size: 14px; line-height: 1.6; color: #6A4A38; }

/* ---------- FAQ + final CTA ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq-title { margin: 0 0 18px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; color: var(--brown); letter-spacing: -.5px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: 18px; box-shadow: 0 2px 0 var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--brown); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #FFE9C7; color: #9A5A1A; font-size: 18px; font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: #6A4A38; line-height: 1.6; font-size: 14.5px; }
.cta-card { position: sticky; top: 92px; text-align: center; padding: 30px 26px; border-radius: 28px; color: #FFE9D6;
  background: radial-gradient(ellipse at 50% 0%, #8A3A26, var(--brown) 70%); box-shadow: 0 20px 40px rgba(76, 26, 28, .3); }
.cta-card .hex-logo { width: 64px; height: 72px; margin: 0 auto 14px; } .cta-card .hex-logo span { width: 54px; height: 62px; font-size: 28px; }
.cta-card h2 { margin: 0; font-size: 26px; color: #fff; letter-spacing: -.3px; }
.cta-card p { margin: 8px 0 20px; color: #F0C9B0; line-height: 1.55; }
.cta-card .btn { width: 100%; }
.cta-logins { display: grid; gap: 12px; }
.cta-card small { display: block; margin-top: 14px; font-size: 12px; color: #C99A84; }
@media (max-width: 640px) {
  .era-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .era-card { scroll-snap-align: start; }
}
