@font-face { font-family: 'Lilita'; src: url('/fonts/LilitaOne.woff2') format('woff2'); font-display: swap; }
:root {
  --ink: #2b1650; --ink2: #3d2170; --gold: #ffd23f; --orange: #ff9f1c; --green: #36d26b; --red: #ff4d6d; --cream: #fff6e5;
  --sky: #7cc8ff; --text: #2b1650; --muted: #5b4a7a; --card: #ffffff; --bg: #fff6e5;
  --r-common: #9aa7b4; --r-uncommon: #4fd06b; --r-rare: #3f9bff; --r-epic: #b45cff; --r-legendary: #ffb321; --r-mythic: #ff4d8d;
  --wrap: 1120px; --gutter: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .btn, .badge-soon, .brand, nav a, summary, .card b, .chips li { font-family: 'Lilita', 'Arial Rounded MT Bold', system-ui, sans-serif; font-weight: 400; letter-spacing: .01em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; margin: 0 0 12px; text-align: center; color: var(--ink); }
a { color: var(--ink2); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
section { padding: 72px var(--gutter); }
section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 32px; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 10px max(var(--gutter), env(safe-area-inset-left)); background: linear-gradient(180deg, rgba(43,22,80,.72), rgba(43,22,80,0)); }
.top { transition: background .2s, box-shadow .2s; }
.top.scrolled { background: rgba(43,22,80,.94); box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.brand img { width: 110px; filter: drop-shadow(0 3px 0 rgba(43,22,80,.45)); }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: #fff; text-decoration: none; font-size: 19px; text-shadow: 0 2px 0 rgba(43,22,80,.6); }
.top nav a:hover { color: var(--gold); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border-radius: 999px; border: 4px solid var(--ink); color: #fff; font-size: 22px; padding: 12px 26px; box-shadow: 0 6px 0 var(--ink); transition: transform .08s, box-shadow .08s; cursor: pointer; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn-play { background: linear-gradient(180deg, #5ef08f, #1ea955); font-size: 26px; padding: 14px 32px; }
.btn-play:hover { filter: brightness(1.07); }
.btn-ghost { background: rgba(255,255,255,.92); color: var(--ink); }
.btn-small { font-size: 18px; padding: 6px 18px; border-width: 3px; box-shadow: 0 4px 0 var(--ink); background: linear-gradient(180deg, #ffe169, #ffb627); color: var(--ink); }
.badge-soon { display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 21px; border: 4px solid var(--gold); box-shadow: 0 6px 0 rgba(43,22,80,.5); }
.badge-soon b { color: var(--gold); font-weight: 400; }

/* hero */
.hero { position: relative; min-height: min(100svh, 980px); padding: 0; display: flex; align-items: center; overflow: hidden; background: #f6b56a; }
.hero > .hero-art { max-width: none; margin: 0; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 60% 40%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,22,80,.66) 0%, rgba(43,22,80,.42) 30%, rgba(43,22,80,0) 52%), linear-gradient(0deg, rgba(43,22,80,.5) 0%, rgba(43,22,80,0) 30%); pointer-events: none; z-index: 1; }
.hero-copy { position: relative; z-index: 2; width: min(560px, 46%); margin: 0 0 0 max(5vw, var(--gutter)); padding: 110px 0 60px; }
.hero-logo { width: 100%; max-width: 520px; filter: drop-shadow(0 8px 0 rgba(43,22,80,.35)); margin-bottom: 6px; }
.hero h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; color: #fff; margin: 0 0 12px; text-shadow: 0 3px 0 var(--ink), 0 0 18px rgba(43,22,80,.55); }
.lead { color: #fff; font-size: clamp(16px, 1.5vw, 19px); margin: 0 0 22px; text-shadow: 0 2px 6px rgba(43,22,80,.85); max-width: 480px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.chips li { background: rgba(43,22,80,.78); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 16px; border: 2px solid rgba(255,255,255,.5); }

/* video */
.video { padding-top: 56px; padding-bottom: 0; }
.frame { border: 6px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 0 10px 0 var(--ink); background: #000; aspect-ratio: 16 / 9; }
.frame video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* how it plays */
.steps { list-style: none; padding: 0; display: grid; gap: 28px; margin-top: 28px; }
.step { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; background: var(--card); border: 4px solid var(--ink); border-radius: 26px; padding: 18px; box-shadow: 0 8px 0 var(--ink); }
.step:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
.step:nth-child(even) img { order: 2; }
.step img { border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: #cfe9ff; }
.step h3 { font-size: 32px; margin: 0 0 8px; display: flex; align-items: center; gap: 12px; }
.step h3 span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); font-size: 24px; }
.step p { margin: 0; color: var(--muted); }

/* creaturedex */
.dex { background: linear-gradient(180deg, #2b1650, #3d2170); color: #fff; }
.dex h2 { color: #fff; }
.dex .sub, .dex .note { color: #d9ccf2; }
.note { text-align: center; margin-top: 26px; }
.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.card { --rc: var(--r-common); background: #fff; color: var(--ink); border-radius: 20px; padding: 10px 10px 14px; border: 4px solid var(--rc); box-shadow: 0 6px 0 rgba(0,0,0,.35); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.card img { border-radius: 14px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.card b { font-size: 21px; margin-top: 4px; }
.card small { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tags i { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #efe8fb; color: var(--ink2); }
.tags .rar { background: var(--rc); color: #fff; }
.r-uncommon { --rc: var(--r-uncommon); } .r-rare { --rc: var(--r-rare); } .r-epic { --rc: var(--r-epic); } .r-legendary { --rc: var(--r-legendary); } .r-mythic { --rc: var(--r-mythic); }
.r-legendary .rar, .r-common .rar { color: var(--ink); }

/* features */
.feat { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 28px; }
.feat li { background: #fff; border: 4px solid var(--ink); border-radius: 22px; padding: 18px 20px; box-shadow: 0 6px 0 var(--ink); display: flex; flex-direction: column; gap: 6px; }
.feat b { font-family: 'Lilita', system-ui, sans-serif; font-weight: 400; font-size: 22px; }
.feat span { color: var(--muted); }

/* faq */
.faq { padding-top: 24px; }
.faq details { max-width: 820px; background: #fff; border: 4px solid var(--ink); border-radius: 18px; margin: 12px auto; padding: 0 18px; box-shadow: 0 5px 0 var(--ink); }
.faq summary { cursor: pointer; font-size: 21px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--orange); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* footer */
.foot { background: var(--ink); color: #cfc2ea; text-align: center; padding: 40px var(--gutter) max(40px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.foot img { width: 120px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.foot a { color: #fff; }
.foot p { margin: 0; font-size: 14px; }

/* legal pages */
.legal { padding: 110px var(--gutter) 60px; }
.legal article { max-width: 780px; margin: 0 auto; background: #fff; border: 4px solid var(--ink); border-radius: 24px; padding: 28px clamp(18px, 4vw, 44px); box-shadow: 0 8px 0 var(--ink); }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 4px; }
.legal h2 { text-align: left; font-size: 26px; margin: 28px 0 8px; }
.legal .top { background: var(--ink); }

/* phones / portrait */
@media (max-width: 860px) {
  .top nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; background: var(--ink); }
  .hero > .hero-art { position: relative; height: min(74svh, 640px); }
  .hero-art img { object-position: 50% 42%; }
  .hero::after { inset: 0 0 auto 0; height: min(74svh, 640px); background: linear-gradient(0deg, rgba(43,22,80,1) 0%, rgba(43,22,80,.6) 14%, rgba(43,22,80,0) 32%), linear-gradient(180deg, rgba(43,22,80,.45) 0%, rgba(43,22,80,0) 22%); }
  .hero-copy { position: static; width: 100%; margin: -64px 0 0; padding: 0 var(--gutter) 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-copy > * { position: relative; z-index: 2; }
  .hero-copy > .hero-logo { position: absolute; z-index: 2; top: 64px; left: 50%; transform: translateX(-50%); width: min(78vw, 360px); max-width: none; }
  .cta { justify-content: center; }
  .chips { justify-content: center; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 14px; }
  .step:nth-child(even) img { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .btn-play { font-size: 22px; }
  section { padding-top: 56px; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
