@font-face { font-family: "Lilita One"; src: url("../fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/ChakraPetch-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/ChakraPetch-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0b0e1a;
  --surface: #161a36;
  --surface-high: #20254a;
  --outline: #2e3462;
  --text: #f4f5ff;
  --muted: #9ba2ce;
  --coral: #ff3d5a;
  --gold: #ffc53d;
  --violet: #7c5cff;
  --mint: #2be38c;
  --gutter: clamp(16px, 4vw, 40px);
  --page: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.6 "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(100% - var(--gutter) * 2, var(--page)); margin-inline: auto; }

.game-title {
  font-family: "Lilita One", "Chakra Petch", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  background: linear-gradient(#ffe58a, #ffc53d 55%, #f29a1f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #9c5a06) drop-shadow(0 8px 18px rgb(0 0 0 / 0.45));
}
.section-title { font-size: clamp(34px, 5.4vw, 56px); text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgb(11 14 26 / 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid rgb(46 52 98 / 0.7); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { font-size: 28px; }
.topnav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.topnav a { color: var(--text); text-decoration: none; font: 600 15px/1 "Chakra Petch", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; padding: 12px 2px; }
.topnav a:hover { color: var(--gold); }

/* Buttons */
.btn {
  --face: linear-gradient(#ffe58a, #ffc53d 55%, #f29a1f);
  --lip: #9c5a06;
  --ink: var(--night);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 14px 30px;
  border: 0; border-radius: 18px;
  background: var(--face); color: var(--ink);
  box-shadow: 0 7px 0 var(--lip), 0 14px 26px rgb(0 0 0 / 0.4);
  font: 400 21px/1.1 "Lilita One", sans-serif; letter-spacing: 0.03em; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform 90ms ease, box-shadow 90ms ease, filter 120ms ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--lip), 0 6px 12px rgb(0 0 0 / 0.4); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: default; filter: saturate(0.7) brightness(0.8); }
.btn-mint { --face: linear-gradient(#7df9c2, #2be38c 55%, #14b56c); --lip: #0a7347; }
.btn-coral { --face: linear-gradient(#ff7a8c, #ff3d5a 55%, #d81e45); --lip: #85102b; --ink: var(--text); }
.btn-steel { --face: linear-gradient(#3f467f, #2c3266 55%, #20254a); --lip: #10132b; --ink: var(--text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(11 14 26 / 0.74), rgb(11 14 26 / 0.12) 62%), linear-gradient(transparent 76%, var(--night)); }
.hero .wrap { display: grid; align-content: center; gap: 24px; min-height: clamp(520px, 74vh, 760px); padding-block: 56px 72px; }
.hero h1 { font-size: clamp(76px, 15vw, 164px); }
.hero .lead { max-width: 15em; font: 700 clamp(25px, 3.6vw, 38px)/1.2 "Chakra Petch", sans-serif; text-shadow: 0 2px 12px rgb(0 0 0 / 0.6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 6px; }

.notice { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 10px 16px; border: 1px solid rgb(43 227 140 / 0.42); border-radius: 14px; background: rgb(11 14 26 / 0.72); font-size: 15px; font-weight: 500; }
.notice svg { flex: none; width: 19px; height: 19px; fill: var(--mint); }

/* Playable round */
.play { padding-block: clamp(44px, 7vw, 84px); }
.cabinet { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 16px; padding: clamp(12px, 2vw, 20px); border: 2px solid var(--outline); border-radius: 28px; background: linear-gradient(#1b2044, #10132b); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.09), 0 24px 60px rgb(0 0 0 / 0.5); }
.screen { position: relative; overflow: hidden; min-height: clamp(280px, 40vw, 430px); border: 2px solid var(--violet); border-radius: 20px; background: #15123b; }
.screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.multiplier { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; pointer-events: none; text-align: center; font: 700 clamp(52px, 10vw, 104px)/1 "Chakra Petch", sans-serif; font-variant-numeric: tabular-nums; color: var(--text); text-shadow: 0 4px 0 rgb(0 0 0 / 0.35), 0 0 34px rgb(124 92 255 / 0.65); }
.multiplier.up { color: var(--mint); }
.multiplier.crash { color: var(--coral); }
.status { position: absolute; left: 0; right: 0; bottom: 16px; padding-inline: 14px; text-align: center; font: 700 clamp(16px, 2.3vw, 21px)/1.25 "Chakra Petch", sans-serif; text-shadow: 0 2px 8px rgb(0 0 0 / 0.8); pointer-events: none; }
.history { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 7px; overflow: hidden; pointer-events: none; }
.history span { flex: none; padding: 4px 11px; border-radius: 999px; background: rgb(11 14 26 / 0.74); font: 700 13px/1.4 "Chakra Petch", sans-serif; color: var(--muted); }
.history .good { color: var(--gold); }

.controls { display: flex; flex-direction: column; gap: 14px; }
.wallet { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--night); border: 1px solid var(--outline); font: 700 28px/1 "Chakra Petch", sans-serif; color: var(--gold); font-variant-numeric: tabular-nums; }
.wallet img { width: 30px; height: auto; }
.stakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stake { min-height: 54px; border: 0; border-radius: 14px; background: linear-gradient(#3f467f, #2c3266); color: var(--text); box-shadow: 0 4px 0 #10132b; font: 400 20px/1 "Lilita One", sans-serif; cursor: pointer; }
.stake[aria-pressed="true"] { background: linear-gradient(#ffe58a, #ffc53d 55%, #f29a1f); color: var(--night); box-shadow: 0 4px 0 #9c5a06; }
.stake[disabled] { cursor: default; opacity: 0.55; }
.controls .btn { width: 100%; margin-top: auto; min-height: 76px; font-size: 26px; }
.controls .disclaimer { color: var(--muted); font-size: 14px; text-align: center; line-height: 1.4; }

/* How to play */
.how { padding-block: clamp(30px, 5vw, 64px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.card { position: relative; padding: 24px; border: 1px solid var(--outline); border-radius: 22px; background: linear-gradient(var(--surface-high), var(--surface)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 6px 0 #0f1230; }
.steps .card { padding-top: 70px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 20px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(#ffe58a, #ffc53d 55%, #f29a1f); color: var(--night); font: 400 25px/1 "Lilita One", sans-serif; box-shadow: 0 3px 0 #9c5a06; }
.card h3 { margin-bottom: 6px; font: 700 23px/1.2 "Chakra Petch", sans-serif; }
.card p { color: var(--muted); }

/* Moment banner */
.moment { position: relative; isolation: isolate; overflow: hidden; margin-block: clamp(34px, 6vw, 72px); }
.moment img { width: 100%; height: clamp(300px, 46vw, 600px); object-fit: cover; object-position: 72% 50%; }
.moment::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--night), transparent 16%, transparent 84%, var(--night)), linear-gradient(90deg, rgb(11 14 26 / 0.62), transparent 54%); }
.moment .wrap { position: absolute; inset: 0; z-index: 1; display: grid; align-content: center; justify-items: start; }
.moment h2 { max-width: 7.5em; font-size: clamp(38px, 6.4vw, 76px); }

/* Screens */
.screens { padding-block: clamp(26px, 4vw, 56px); }
.shots { display: flex; gap: 20px; overflow-x: auto; padding: 8px max(var(--gutter), calc((100vw - var(--page)) / 2)) 26px; scroll-snap-type: x proximity; scrollbar-color: var(--outline) transparent; }
.shot { flex: 0 0 clamp(214px, 26vw, 264px); margin: 0; scroll-snap-align: center; }
.phone { padding: 8px; border-radius: 34px; background: linear-gradient(#3f467f, #15183a); box-shadow: 0 16px 34px rgb(0 0 0 / 0.5); }
.phone img { width: 100%; border-radius: 26px; aspect-ratio: 1 / 2; object-fit: cover; }
.shot figcaption { margin-top: 12px; text-align: center; font: 700 17px/1.25 "Chakra Petch", sans-serif; }

/* Features and ranks */
.features { padding-block: clamp(30px, 5vw, 64px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ranks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--outline); border-radius: 22px; background: var(--surface); }
.rank { text-align: center; font: 700 15px/1.2 "Chakra Petch", sans-serif; color: var(--muted); }
.rank img { width: min(84px, 100%); margin: 0 auto 8px; }
.rank:last-child { color: var(--gold); }

/* FAQ */
.faq { padding-block: clamp(30px, 5vw, 64px); }
.faq .wrap { max-width: 800px; }
details { margin-bottom: 12px; border: 1px solid var(--outline); border-radius: 18px; background: var(--surface); }
summary { padding: 18px 22px; cursor: pointer; font: 700 19px/1.3 "Chakra Petch", sans-serif; }
details p { padding: 0 22px 20px; color: var(--muted); }

/* Final call */
.final { padding-block: clamp(26px, 5vw, 60px) clamp(50px, 7vw, 90px); text-align: center; }
.final img { width: min(380px, 80vw); margin: -30px auto -18px; }
.final h2 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 26px; }

/* Documents */
.doc { padding-block: clamp(32px, 6vw, 60px) clamp(50px, 7vw, 80px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(42px, 7vw, 66px); margin-bottom: 10px; }
.doc .updated { color: var(--muted); margin-bottom: 28px; }
.sheet { padding: clamp(20px, 4vw, 40px); border: 1px solid var(--outline); border-radius: 24px; background: var(--surface); }
.sheet h2 { margin: 30px 0 8px; font: 700 23px/1.25 "Chakra Petch", sans-serif; color: var(--gold); }
.sheet h2:first-child { margin-top: 0; }
.sheet p, .sheet ul, .sheet ol { margin: 0 0 12px; }
.sheet ul, .sheet ol { padding-left: 22px; }
.sheet li { margin-bottom: 6px; }
.sheet strong { color: var(--text); }
.contact-box { display: grid; justify-items: center; gap: 20px; text-align: center; }
.contact-box p { font: 700 clamp(19px, 4.4vw, 28px)/1.3 "Chakra Petch", sans-serif; overflow-wrap: anywhere; }

/* Blog */
.latest { padding-block: clamp(30px, 5vw, 64px); }
.latest .more { margin-top: 26px; text-align: center; }
.blog-index .wrap, .article .wrap { max-width: 820px; }
.blog-index .wrap { max-width: var(--page); }
.article h1 { font-size: clamp(36px, 6vw, 54px); line-height: 1.12; }
.crumbs { margin-bottom: 14px; color: var(--muted); font-size: 15px; }
.crumbs a { color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.post-card { display: block; padding: 22px; border: 1px solid var(--outline); border-radius: 20px; background: linear-gradient(var(--surface-high), var(--surface)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 5px 0 #0f1230; color: var(--text); text-decoration: none; transition: transform 120ms ease; }
.post-card:hover { transform: translateY(-3px); }
.post-card h3 { margin-bottom: 8px; font: 700 21px/1.25 "Chakra Petch", sans-serif; color: var(--gold); }
.post-card p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.article .sheet { font-size: 18px; line-height: 1.7; }
.article .sheet h3 { margin: 22px 0 6px; font: 700 20px/1.3 "Chakra Petch", sans-serif; }
.table { overflow-x: auto; margin-bottom: 16px; border: 1px solid var(--outline); border-radius: 14px; }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--outline); text-align: left; }
.table th { vertical-align: bottom; line-height: 1.25; }
.table th { background: var(--surface-high); font-family: "Chakra Petch", sans-serif; color: var(--gold); }
.table tr:last-child td { border-bottom: 0; }
.cta-box { display: grid; justify-items: center; gap: 12px; margin-top: 26px; padding: clamp(22px, 4vw, 34px); border: 2px solid var(--violet); border-radius: 24px; background: linear-gradient(#241c5c, #15123b); text-align: center; }
.cta-box .game-title { font-size: clamp(30px, 5vw, 42px); }
.cta-box .hero-actions { justify-content: center; }
.related-title { margin: 34px 0 16px; font: 700 25px/1.2 "Chakra Petch", sans-serif; }

/* Footer */
.footer { padding-block: 30px 34px; border-top: 1px solid var(--outline); background: #090b16; color: var(--muted); font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 26px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer a { color: var(--text); text-decoration: none; padding-block: 6px; }
.footer a:hover { color: var(--gold); }

@media (max-width: 860px) {
  .cabinet { grid-template-columns: minmax(0, 1fr); }
  .steps, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .ranks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .hero::after { background: linear-gradient(rgb(11 14 26 / 0.3), rgb(11 14 26 / 0.62) 56%, var(--night)); }
  .hero-art { object-position: 62% 50%; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .topnav .optional { display: none; }
  .brand span { font-size: 25px; }
  .hero .btn { width: 100%; }
  .article .sheet { font-size: 17px; }
  .table table { font-size: 15px; }
  .table th, .table td { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .post-card { transition: none; }
}
