@layer tokens {
  :root {
    --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
    --ink: #24124d;
    --ink-soft: #56486b;
    --muted: #716580;
    --cream: #fff9f2;
    --cream-2: #fff2e7;
    --surface: #ffffff;
    --surface-soft: #fffaf6;
    --line: #ded6e2;
    --line-strong: #91879d;
    --pink: #d81b6a;
    --pink-dark: #b91156;
    --pink-soft: #fff0f6;
    --violet: #6846d8;
    --violet-soft: #f2edff;
    --blue: #3478d6;
    --blue-soft: #eaf4ff;
    --gold: #b96a00;
    --gold-soft: #fff2cf;
    --green: #14734d;
    --green-soft: #eaf8f1;
    --amber: #9b6400;
    --amber-soft: #fff3d8;
    --gray-soft: #f2eff4;
    --gray: #6b6373;
    --danger: #a42945;
    --danger-soft: #fff0f3;
    --shadow-sm: 0 8px 22px rgba(36,18,77,.07);
    --shadow: 0 18px 50px rgba(36,18,77,.12);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
    --page: 1420px;
    --sidebar: 216px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --focus: 0 0 0 3px rgba(104,70,216,.28);
  }
}

@layer reset, tokens, base, components, pages, utilities;
@layer reset {
  *,*::before,*::after{box-sizing:border-box}
  html{scroll-behavior:smooth}
  body,h1,h2,h3,h4,p,ul,ol{margin:0}
  img,picture,svg{display:block;max-width:100%}
  button,input,select,textarea{font:inherit}
  a{color:inherit;text-decoration:none}
}
@layer base {
  body{font-family:var(--font-body);color:var(--ink);background:linear-gradient(180deg,var(--cream),var(--cream-2));min-height:100vh;line-height:1.55}
  body.no-scroll{overflow:hidden}
  :focus-visible{outline:0;box-shadow:var(--focus)}
  .skip-link{position:fixed;left:12px;top:10px;z-index:1000;padding:10px 14px;border-radius:10px;background:var(--ink);color:var(--surface);transform:translateY(-150%);font-weight:800}
  .skip-link:focus{transform:none}
  h1,h2,h3{line-height:1.05}
  h1,h2{font-family:var(--font-display);letter-spacing:-.035em}
  p{color:var(--ink-soft)}
  .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
}

@layer components {
  .app-shell{min-height:100vh}
  .sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:22px 16px 18px;background:rgba(255,255,255,.78);border-right:1px solid var(--line);backdrop-filter:blur(18px);z-index:30;display:flex;flex-direction:column;gap:18px}
  .brand{display:grid;gap:4px;padding:8px 10px;border-radius:14px}
  .brand-word{font-weight:950;line-height:.86;font-size:22px;letter-spacing:-.04em}.brand-word span{display:block}.brand-word .accent{color:var(--pink)}
  .brand-sub{font-size:12px;color:var(--muted);font-weight:650}
  .nav{display:grid;gap:5px}.nav-label{margin:12px 10px 4px;color:var(--muted);font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
  .nav-link{min-height:44px;display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:13px;color:var(--ink-soft);font-size:14px;font-weight:800}
  .nav-link:hover{background:var(--violet-soft);color:var(--ink)}.nav-link[aria-current="page"]{background:var(--pink);color:var(--surface);box-shadow:var(--shadow-sm)}
  .icon{width:20px;height:20px;flex:0 0 auto}.icon.lg{width:24px;height:24px}
  .sidebar-foot{margin-top:auto;padding:14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.sidebar-foot strong{display:block;color:var(--ink);margin-bottom:2px}
  .site-main{margin-left:var(--sidebar);min-width:0}
  .mobile-header{display:none}
  .mobile-drawer{display:none}
  .topbar{height:78px;display:flex;align-items:center;gap:18px;padding:0 28px;border-bottom:1px solid var(--line);background:rgba(255,249,242,.78);backdrop-filter:blur(18px);position:sticky;top:0;z-index:20}
  .search-wrap{position:relative;width:min(450px,42vw)}.search-box{width:100%;height:44px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);padding:0 46px 0 42px;color:var(--ink)}.search-wrap>.icon{position:absolute;left:14px;top:12px;color:var(--muted)}
  .kbd{position:absolute;right:12px;top:11px;color:var(--muted);font-size:12px;border:1px solid var(--line);border-radius:7px;padding:2px 6px;background:var(--surface-soft)}
  .search-results{position:absolute;left:0;right:0;top:52px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:7px;display:none;z-index:60}.search-results.open{display:grid}.search-result{padding:10px 12px;border-radius:10px;font-size:13px;font-weight:750}.search-result:hover,.search-result:focus{background:var(--violet-soft)}
  .top-note{margin-left:auto;color:var(--muted);font-size:12px;font-weight:750}
  .page{max-width:var(--page);margin:0 auto;padding:28px 30px 64px}
  .page-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:22px}.page-head h1{font-size:clamp(40px,5vw,64px)}.page-head p{max-width:720px;margin-top:8px}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:12px;font-weight:900;color:var(--pink);margin-bottom:8px}
  .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;border:1px solid transparent;border-radius:999px;font-weight:850;font-size:15px;cursor:pointer}.btn.primary{background:linear-gradient(135deg,var(--pink),var(--pink-dark));color:var(--surface);box-shadow:0 10px 24px rgba(216,27,106,.2)}.btn.secondary{background:var(--surface);border-color:var(--line-strong);color:var(--ink)}.btn.quiet{background:transparent;border-color:var(--line);color:var(--ink-soft)}.btn:disabled{cursor:not-allowed;opacity:.56}
  .hero{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}
  .hero-media{position:relative;min-height:430px;background:var(--blue-soft);overflow:hidden}.hero-media picture,.hero-media picture img{width:100%;height:100%}.hero-media picture img{object-fit:cover}.hero-media .mascot{position:absolute;right:7%;bottom:0;height:72%;width:auto;max-width:42%;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(36,18,77,.14))}
  .hero-copy{padding:44px;display:flex;flex-direction:column;justify-content:center}.hero-copy h1{font-size:clamp(48px,6vw,78px);max-width:760px}.hero-copy p{font-size:17px;max-width:620px;margin-top:16px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
  .value-strip{margin-top:14px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-sm);display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden}.value{padding:14px 16px;display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;border-right:1px solid var(--line)}.value:last-child{border-right:0}.value .bubble{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:var(--violet-soft);color:var(--violet)}.value strong{display:block;font-size:13px}.value span{display:block;font-size:12px;color:var(--muted)}
  .section{margin-top:34px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:14px}.section-head h2{font-size:34px}.section-head p{font-size:14px;margin-top:5px}
  .game-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.game-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;min-width:0}.game-card.featured{border-color:var(--pink);box-shadow:0 0 0 2px var(--pink-soft),var(--shadow-sm)}article.game-card[hidden]{display:none}
  .game-art{position:relative;aspect-ratio:16/10;background:var(--gray-soft);overflow:hidden}.game-art picture,.game-art img{width:100%;height:100%}.game-art img{object-fit:cover}.feature-flag{position:absolute;left:10px;top:10px;background:var(--pink);color:var(--surface);padding:5px 9px;border-radius:999px;font-size:12px;font-weight:900}
  .game-body{padding:14px;display:flex;flex-direction:column;flex:1}.game-body h3{font-size:18px;font-weight:900;letter-spacing:-.025em}.game-body p{font-size:13px;line-height:1.45;margin-top:5px}.chip{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin-top:10px;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:850}.chip::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.chip.beta{background:var(--pink-soft);color:var(--pink-dark)}.chip.development{background:var(--amber-soft);color:var(--amber)}.chip.prototype{background:var(--violet-soft);color:var(--violet)}.chip.preview{background:var(--blue-soft);color:var(--blue)}.chip.open{background:var(--green-soft);color:var(--green)}.chip.planned{background:var(--gray-soft);color:var(--gray)}
  .card-action{margin-top:auto;padding-top:14px}.card-action a{font-size:13px;font-weight:850;color:var(--violet)}
  .module-grid{display:grid;grid-template-columns:1.2fr .8fr .9fr;gap:14px}.module{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow-sm)}.module-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.module-head .bubble{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--violet-soft);color:var(--violet)}.module-head h3{font-size:18px}.module-head p{font-size:12px}
  .update-list{display:grid}.update-row{display:grid;grid-template-columns:95px 92px 1fr;gap:10px;align-items:start;padding:10px 0;border-top:1px solid var(--line);font-size:13px}.update-row:first-child{border-top:0}.tag{justify-self:start;border-radius:999px;padding:4px 8px;background:var(--gold-soft);color:var(--gold);font-size:12px;font-weight:850}
  .status-list{display:grid;gap:10px}.status-row{display:flex;justify-content:space-between;gap:14px;font-size:13px}.status-row strong{font-weight:800}.status-state{font-weight:850;color:var(--violet)}
  .campaign{background:linear-gradient(145deg,var(--pink-soft),var(--surface));display:grid;align-content:start}.campaign p{font-size:13px}.campaign .btn{margin-top:12px;justify-self:start}
  .filter-bar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.filter-btn{min-height:44px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);border-radius:999px;padding:0 13px;font-weight:800;cursor:pointer}.filter-btn[aria-pressed="true"]{background:var(--ink);color:var(--surface);border-color:var(--ink)}.filter-count{margin-left:auto;color:var(--muted);font-size:12px;font-weight:750}.empty-state{display:none;padding:24px;text-align:center;border:1px dashed var(--line-strong);border-radius:18px;background:var(--surface-soft);color:var(--muted)}.empty-state.show{display:block}
  .content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.info-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow-sm)}.info-card h2,.info-card h3{font-size:22px;margin-bottom:8px}.info-card p,.info-card li{font-size:14px;color:var(--ink-soft)}
  .product-hero{display:grid;grid-template-columns:minmax(340px,.9fr) minmax(0,1.1fr);gap:18px}.product-copy,.product-media{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden}.product-copy{padding:34px}.product-copy h1{font-size:clamp(44px,5vw,68px)}.product-copy p{margin-top:14px;font-size:16px}.product-media{position:relative;min-height:400px;background:var(--blue-soft)}.product-media picture,.product-media picture img{width:100%;height:100%}.product-media picture img{object-fit:cover;opacity:.32}.product-media .character{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:74%;width:auto;max-width:54%;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(36,18,77,.16))}
  .mode-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.mode-card{min-height:210px;border-radius:18px;padding:20px;color:var(--surface);box-shadow:var(--shadow-sm)}.mode-card h3{font-size:24px}.mode-card p{color:rgba(255,255,255,.88);font-size:13px;margin-top:6px}.mode-card.arcade{background:linear-gradient(145deg,var(--blue),var(--violet))}.mode-card.puzzle{background:linear-gradient(145deg,var(--pink),var(--violet))}.mode-card.feastfall{background:linear-gradient(145deg,var(--gold),var(--pink-dark))}.mode-card.infinite{background:linear-gradient(145deg,var(--ink),var(--violet))}
  .form-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:var(--shadow-sm)}.form-grid{display:grid;gap:16px}.field label,.fieldset legend{display:block;font-size:13px;font-weight:850;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;min-height:44px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);padding:11px 13px;color:var(--ink)}.fieldset{border:0;padding:0;margin:0}.check-grid{display:flex;gap:10px;flex-wrap:wrap}.check{display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.consent{display:flex;align-items:flex-start;gap:9px;font-size:13px;color:var(--ink-soft)}.consent input{margin-top:3px}.honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.form-message{min-height:24px;font-size:13px;font-weight:750}.form-message.success{color:var(--green)}.form-message.error{color:var(--danger)}
  .legal{max-width:900px;margin:0 auto}.legal section{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:24px;margin-top:14px}.legal h2{font-size:26px;margin-bottom:8px}.legal ul{padding-left:22px}.legal li{margin:6px 0;color:var(--ink-soft)}
  .legal section p + p{margin-top:14px}
  .notice{padding:15px 16px;border-radius:15px;background:var(--blue-soft);border:1px solid var(--line);font-size:13px;color:var(--ink-soft)}
  .footer{border-top:1px solid var(--line);margin-top:42px;padding-top:22px;display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.footer-links{display:flex;gap:12px;flex-wrap:wrap}.footer a{font-weight:750;color:var(--ink-soft)}
}

@layer pages {
  .nav-icon{width:20px;height:20px;flex:0 0 20px;object-fit:contain}
  .chip.closed{background:var(--amber-soft);color:var(--amber)}
  .hero{position:relative;display:block;min-height:520px;background:var(--ink)}
  .hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(24,16,51,.9) 0%,rgba(24,16,51,.68) 38%,rgba(24,16,51,0) 78%);pointer-events:none}
  .hero-media{position:absolute;inset:0;min-height:0;background:var(--blue-soft)}
  .hero-media>picture:first-child{position:absolute;inset:0}
  .hero-media>picture:first-child img{width:100%;height:100%;object-fit:cover;object-position:center}
  .hero-media>picture:last-child{position:absolute;z-index:1;right:1%;bottom:0;width:37%;height:90%;display:grid;place-items:end center}
  .hero-media>picture:last-child img.mascot{position:static;display:block;width:auto;height:100%;max-width:100%;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(24,16,51,.3))}
  .hero-copy{position:relative;z-index:2;width:min(620px,59%);min-height:520px;padding:52px 48px;background:transparent}
  .hero-copy h1,.hero-copy p{color:var(--surface)}
  .hero-copy .eyebrow{color:var(--gold-soft)}
  .hero-copy .btn.secondary{border-color:var(--surface)}
  .game-card.featured .game-art{background:var(--green-soft)}
  .game-card.featured .game-art img{object-fit:contain}
  .product-media>picture:first-child{position:absolute;inset:0}
  .product-media>picture:first-child img{width:100%;height:100%;object-fit:cover;opacity:.45}
  .product-media>picture:last-child{position:absolute;inset:0;display:grid;place-items:center}
  .product-media>picture:last-child img.character{position:static;transform:none;width:auto;height:83%;max-width:72%;object-fit:contain}
  .planned-hero{max-width:760px}.planned-hero h1{font-size:clamp(44px,6vw,72px)}.planned-hero p{font-size:17px;margin-top:12px}.planned-grid{margin-top:24px}
  .support-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.support-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px}.support-card h2{font-size:20px;margin-bottom:7px}.support-card p{font-size:14px}
  .release-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
}
@layer utilities {
  @media(max-width:1180px){
    :root{--sidebar:0px}.sidebar{display:none}.site-main{margin-left:0}.topbar{display:none}.mobile-header{height:68px;display:flex;position:sticky;top:0;z-index:40;align-items:center;justify-content:space-between;padding:0 18px;background:rgba(255,249,242,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(16px)}.mobile-wordmark{font-weight:950;line-height:.85;font-size:19px}.mobile-wordmark span{display:block}.mobile-wordmark .accent{color:var(--pink)}.menu-btn{width:44px;height:44px;border-radius:12px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);display:grid;place-items:center;cursor:pointer}.mobile-drawer{position:fixed;inset:68px 0 auto 0;z-index:39;padding:14px 18px 18px;background:var(--surface);border-bottom:1px solid var(--line);box-shadow:var(--shadow);grid-template-columns:repeat(3,1fr);gap:8px}.mobile-drawer.open{display:grid}.mobile-drawer .nav-link{border:1px solid transparent}.mobile-drawer .nav-link[aria-current="page"]{border-color:var(--pink)}
    .page{padding:24px 20px 50px}.game-grid{grid-template-columns:repeat(3,1fr)}.module-grid{grid-template-columns:1fr 1fr}.module-grid .campaign{grid-column:span 2}.support-grid{grid-template-columns:repeat(2,1fr)}.mode-grid{grid-template-columns:repeat(2,1fr)}
  }
  @media(max-width:820px){
    .hero{grid-template-columns:1fr}.hero-media{min-height:310px}.hero-copy{padding:32px}.hero-media .mascot{height:78%;max-width:45%}.value-strip{grid-template-columns:1fr 1fr}.value:nth-child(2n){border-right:0}.value:nth-child(-n+2){border-bottom:1px solid var(--line)}.game-grid{grid-template-columns:1fr 1fr}.module-grid,.content-grid,.product-hero{grid-template-columns:1fr}.module-grid .campaign{grid-column:auto}.product-media{min-height:330px}.support-grid{grid-template-columns:1fr 1fr}
  }
  @media(max-width:560px){
    .mobile-header{padding:0 14px}.mobile-drawer{padding:12px 14px 16px}.mobile-drawer.open{grid-template-columns:1fr 1fr}.page{padding:18px 14px 40px}.page-head{align-items:start;flex-direction:column}.hero{border-radius:20px}.hero-media{min-height:240px}.hero-media .mascot{height:72%;max-width:49%;right:7%}.hero-copy{padding:25px 21px}.hero-copy h1{font-size:42px}.actions{display:grid}.btn{width:100%}.value-strip{grid-template-columns:1fr}.value{border-right:0;border-bottom:1px solid var(--line)}.value:last-child{border-bottom:0}.game-grid,.mode-grid,.support-grid{grid-template-columns:1fr}.section-head{align-items:start;flex-direction:column}.filter-count{margin-left:0;width:100%}.module{padding:16px}.update-row{grid-template-columns:1fr;gap:4px}.product-copy{padding:25px 21px}.product-media{min-height:280px}.product-media .character{height:68%;max-width:65%}.legal section{padding:20px}.footer{flex-direction:column}
  }
  @media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
  @media(max-width:820px){
    .hero{min-height:0;display:grid;grid-template-rows:300px auto}
    .hero::after{display:none}
    .hero-media{position:relative;grid-row:1;min-height:300px}
    .hero-media>picture:last-child{right:2%;width:40%;height:94%}
    .hero-copy{grid-row:2;width:100%;min-height:0;padding:34px;background:var(--ink)}
  }
  @media(max-width:560px){
    .hero{grid-template-rows:220px auto}
    .hero-media{min-height:220px}
    .hero-media>picture:first-child img{object-position:58% center}
    .hero-media>picture:last-child{right:0;width:47%;height:94%}
    .hero-copy{padding:25px 21px}
    .hero-copy h1{font-size:clamp(36px,10vw,46px)}
  }
}
