:root {
  --ink: #1d1233;
  --violet: #5b3aa8;
  --bloom: #ff6fa5;
  --lavender: #ede2ff;
  --sky: #a8e6f0;
  --sun: #ffc857;
  --mint: #bfe88f;
  --paper: #fff9f2;
  --white: #ffffff;
  --line: rgba(29, 18, 51, 0.16);
  --radius: 30px;
  --display: Georgia, "Times New Roman", serif;
  --body: "Trebuchet MS", "Avenir Next", Avenir, sans-serif;
  --utility: "Arial Narrow", "Avenir Next Condensed", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--white);
}
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: .9; }
.brand b { display: block; font-family: var(--display); font-size: 20px; font-style: italic; font-weight: 600; }
.brand small { display: block; margin-top: 6px; font: 700 10px/1 var(--utility); letter-spacing: .22em; text-transform: uppercase; }
.brand-bloom { position: relative; display: inline-block; width: 38px; height: 38px; transform: rotate(-8deg); }
.brand-bloom i { position: absolute; top: 4px; left: 14px; width: 12px; height: 19px; border-radius: 100% 10% 100% 40%; background: var(--bloom); transform-origin: 6px 15px; }
.brand-bloom i:nth-child(2) { transform: rotate(72deg); }
.brand-bloom i:nth-child(3) { transform: rotate(144deg); }
.brand-bloom i:nth-child(4) { transform: rotate(216deg); }
.brand-bloom i:nth-child(5) { transform: rotate(288deg); }
.brand-bloom::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--sun); }
nav { display: flex; align-items: center; gap: 34px; font: 700 12px/1 var(--utility); letter-spacing: .12em; text-transform: uppercase; }
nav a { position: relative; padding: 10px 0; }
nav a::after { content: ""; position: absolute; left: 0; bottom: 3px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s ease; }
nav a:hover::after { transform: scaleX(1); }
.nav-play { padding: 13px 20px; color: var(--ink); background: var(--sun); border: 0; border-radius: 999px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.nav-play:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.2); }

.hero {
  position: relative;
  min-height: 850px;
  padding: 190px max(32px, calc((100vw - 1440px) / 2)) 150px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 32%, rgba(255, 111, 165, .32), transparent 25%),
    radial-gradient(circle at 30% 115%, rgba(168, 230, 240, .18), transparent 36%),
    linear-gradient(135deg, #150d2e 0%, #2b1a63 52%, #4b2a8f 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to right, black, transparent 70%);
}
.hero-copy { position: relative; z-index: 3; width: min(620px, 48vw); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 800 11px/1 var(--utility); letter-spacing: .22em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.045em; }
h1 { margin-bottom: 30px; font-size: clamp(66px, 7vw, 116px); line-height: .84; }
h1 em { color: var(--sun); font-weight: 500; }
.hero-lede { max-width: 540px; margin-bottom: 38px; color: rgba(255,255,255,.76); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 54px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font: 800 12px/1 var(--utility); letter-spacing: .11em; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--ink); background: var(--sun); box-shadow: 0 14px 32px rgba(0,0,0,.18); }
.button-ghost { color: var(--white); background: transparent; border-color: rgba(255,255,255,.3); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.button-dark { margin-top: 22px; color: var(--white); background: var(--ink); }

.hero-stage { position: absolute; z-index: 2; top: 135px; right: max(32px, calc((100vw - 1440px) / 2)); width: min(50vw, 690px); height: 595px; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.orbit-one { inset: 5% 0 1% 8%; transform: rotate(-8deg); }
.orbit-two { inset: 15% 10% 12% -3%; transform: rotate(25deg); }
.stage-card { position: absolute; overflow: hidden; border: 6px solid rgba(255,255,255,.9); border-radius: 24px; box-shadow: 0 35px 75px rgba(5,2,24,.42); }
.stage-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.stage-card span { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; color: var(--ink); background: rgba(255,255,255,.92); border-radius: 999px; font: 800 10px/1 var(--utility); letter-spacing: .1em; text-transform: uppercase; }
.stage-main { top: 116px; right: 10px; width: 78%; aspect-ratio: 2.05; transform: rotate(2.5deg); animation: float 7s ease-in-out infinite; }
.stage-top { top: 0; right: 23%; width: 42%; aspect-ratio: 2.2; transform: rotate(-7deg); animation: float 6s ease-in-out -2s infinite; }
.stage-bottom { right: 15%; bottom: 34px; width: 56%; aspect-ratio: 2.2; transform: rotate(-4deg); animation: float 8s ease-in-out -4s infinite; }
.stage-stamp { position: absolute; right: -18px; bottom: 125px; display: grid; place-content: center; width: 124px; height: 124px; color: var(--ink); background: var(--sun); border-radius: 50%; text-align: center; font: 900 12px/1.35 var(--utility); letter-spacing: .08em; text-transform: uppercase; transform: rotate(8deg); box-shadow: 0 0 0 8px rgba(255,200,87,.13); }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.marquee { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; overflow: hidden; color: var(--ink); background: var(--bloom); border-top: 1px solid rgba(255,255,255,.25); transform: rotate(-1deg) scale(1.02); }
.marquee div { display: flex; width: max-content; padding: 16px 0; animation: marquee 22s linear infinite; }
.marquee span { padding: 0 28px; font: italic 600 28px/1 var(--display); }
.marquee b { color: var(--sun); }
@keyframes marquee { to { transform: translateX(-50%); } }

.games { padding: 130px max(32px, calc((100vw - 1320px) / 2)); }
.section-heading { display: grid; grid-template-columns: 1.1fr 1.7fr .9fr; align-items: end; gap: 48px; margin-bottom: 76px; }
.section-heading .eyebrow { align-self: start; margin-top: 16px; color: var(--violet); }
.section-heading h2, .about h2 { margin: 0; font-size: clamp(52px, 6vw, 86px); line-height: .92; }
.section-heading > p:last-child { margin-bottom: 4px; color: #655e77; font-size: 15px; line-height: 1.7; }

.game-panel { display: grid; grid-template-columns: 42% 58%; min-height: 590px; margin-bottom: 48px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 24px 80px rgba(41, 25, 87, .08); }
.game-panel:nth-of-type(3) { grid-template-columns: 58% 42%; }
.game-panel:nth-of-type(3) .game-copy { order: 2; }
.game-panel:nth-of-type(3) .gallery { order: 1; }
.game-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 5vw, 72px); }
.game-title-row { display: flex; align-items: center; gap: 20px; }
.game-icon { width: 78px; height: 78px; border: 4px solid var(--white); border-radius: 22px; box-shadow: 0 10px 28px rgba(23,17,47,.18); object-fit: cover; }
.game-genre { margin-bottom: 8px; color: var(--violet); font: 800 10px/1 var(--utility); letter-spacing: .17em; text-transform: uppercase; }
.game-panel h3 { margin: 0; font-size: clamp(48px, 4.4vw, 70px); line-height: .87; }
.game-description { max-width: 510px; margin: 32px 0 20px; color: #5d586b; font-size: 15px; line-height: 1.75; }
.game-notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.game-notes li { padding: 8px 11px; color: #5a536c; border: 1px solid var(--line); border-radius: 999px; font: 700 10px/1 var(--utility); letter-spacing: .07em; text-transform: uppercase; }

.gallery { position: relative; min-width: 0; padding: 22px; background: var(--lavender); }
.game-stilt .gallery { background: var(--sky); }
.game-paw .gallery { background: var(--mint); }
.gallery-frame { position: relative; height: 100%; min-height: 510px; overflow: hidden; border-radius: calc(var(--radius) - 9px); background: var(--ink); }
.gallery-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); border-radius: inherit; }
.gallery-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .7s ease; }
.gallery-frame img.is-active { opacity: 1; transform: scale(1); }
.gallery-controls { position: absolute; z-index: 3; left: 42px; bottom: 42px; display: flex; gap: 5px; padding: 6px; background: rgba(17,12,49,.82); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; backdrop-filter: blur(10px); }
.gallery-controls button { width: 38px; height: 32px; padding: 0; color: rgba(255,255,255,.6); background: transparent; border: 0; border-radius: 99px; cursor: pointer; font: 700 10px/1 var(--utility); }
.gallery-controls button.is-active { color: var(--ink); background: var(--sun); }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; align-items: center; padding: 120px max(32px, calc((100vw - 1180px) / 2)); color: var(--white); background: var(--violet); overflow: hidden; }
.about-mark { position: relative; height: 480px; }
.about-mark span { position: absolute; display: grid; place-content: center; width: 270px; height: 270px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font: italic 500 150px/1 var(--display); }
.about-mark span:nth-child(1) { top: 0; left: 0; color: var(--sun); background: rgba(255,200,87,.06); }
.about-mark span:nth-child(2) { top: 88px; left: 160px; color: var(--bloom); background: rgba(255,111,165,.08); }
.about-mark span:nth-child(3) { top: 190px; left: 45px; color: var(--sky); background: rgba(168,230,240,.06); }
.about-copy > p:not(.eyebrow) { max-width: 580px; margin: 32px 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.8; }
.text-link { display: inline-flex; gap: 22px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.45); font: 800 12px/1 var(--utility); letter-spacing: .12em; text-transform: uppercase; }

.company { padding: 110px max(32px, calc((100vw - 1180px) / 2)); background: var(--white); overflow: hidden; }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; }
.company .eyebrow { color: var(--violet); }
.company h2 { margin: 0 0 26px; font-size: clamp(48px, 5.4vw, 78px); line-height: .92; font-family: var(--display); font-weight: 500; letter-spacing: -.045em; }
.company-lede { max-width: 500px; margin-bottom: 30px; color: #5d586b; font-size: 16px; line-height: 1.8; }
.text-link-dark { color: var(--ink); border-bottom-color: var(--ink); }
.legal-card { margin: 0; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 22px 60px rgba(41,25,87,.07); }
.legal-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.legal-row:first-child { padding-top: 0; }
.legal-row:last-child { padding-bottom: 0; border-bottom: 0; }
.legal-row dt { color: var(--violet); font: 800 10px/1.5 var(--utility); letter-spacing: .16em; text-transform: uppercase; }
.legal-row dd { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.6; font-weight: 600; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 48px max(32px, calc((100vw - 1320px) / 2)); color: var(--white); background: var(--ink); }
footer > p { margin: 0; color: rgba(255,255,255,.58); font-size: 12px; }
.footer-brand { color: var(--white); }
.copyright { justify-self: end; }
.legal-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 30px; padding: 18px max(32px, calc((100vw - 1320px) / 2)); color: rgba(255,255,255,.42); background: var(--ink); border-top: 1px solid rgba(255,255,255,.1); }
.legal-bar p { margin: 0; font: 700 10px/1.5 var(--utility); letter-spacing: .07em; }

.play-modal { width: min(560px, calc(100vw - 36px)); max-height: calc(100vh - 36px); margin: auto; padding: 0; overflow: auto; color: var(--ink); background: var(--paper); border: 0; border-radius: 24px; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.play-modal::backdrop { background: rgba(7,4,23,.82); backdrop-filter: blur(12px); }
.modal-bar { position: sticky; z-index: 4; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 18px 0 22px; background: var(--ink); color: var(--white); }
.modal-bar > div { display: flex; align-items: center; gap: 10px; }
.modal-bar strong { font: 800 12px/1 var(--utility); letter-spacing: .1em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; background: #7ee05f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(126,224,95,.12); }
.modal-close { width: 36px; height: 36px; color: var(--white); background: rgba(255,255,255,.1); border: 0; border-radius: 50%; cursor: pointer; font-size: 25px; line-height: 1; }
.guide { padding: clamp(24px, 5vw, 40px); }
.guide-hero { display: flex; align-items: center; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.guide-icon { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; box-shadow: 0 10px 24px rgba(23,17,47,.18); }
.guide-kicker { margin: 0 0 6px; color: var(--violet); font: 800 10px/1 var(--utility); letter-spacing: .18em; text-transform: uppercase; }
.guide-name { margin: 0; font: 500 clamp(26px, 5vw, 36px)/1 var(--display); letter-spacing: -.03em; }
.guide-steps { display: grid; gap: 20px; margin: 26px 0; padding: 0; list-style: none; }
.guide-steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-no { display: grid; place-content: center; flex: 0 0 40px; height: 40px; color: var(--ink); background: var(--sun); border-radius: 50%; font: 900 11px/1 var(--utility); }
.guide-steps strong { display: block; margin-bottom: 4px; font-size: 15px; }
.guide-steps p { margin: 0; color: #6a6478; font-size: 13px; line-height: 1.55; }
.guide-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px 20px; background: var(--white); border: 1px dashed rgba(91,58,168,.4); border-radius: 16px; }
.guide-search > span { flex: 1 1 100%; color: var(--violet); font: 800 10px/1 var(--utility); letter-spacing: .16em; text-transform: uppercase; }
.guide-search code { flex: 1 1 auto; font-size: 18px; font-weight: 700; color: var(--ink); word-break: break-word; }
.copy-name { padding: 10px 16px; color: var(--white); background: var(--violet); border: 0; border-radius: 999px; cursor: pointer; font: 800 10px/1 var(--utility); letter-spacing: .1em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.copy-name:hover { transform: translateY(-2px); background: var(--ink); }
.copy-name.is-copied { background: #3f9d55; }
.guide-footnote { margin: 16px 0 0; color: #8a8497; font-size: 11px; line-height: 1.6; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { width: calc(100% - 40px); }
  nav a { display: none; }
  .hero { min-height: 1100px; padding: 170px 24px 120px; }
  .hero-copy { width: 100%; }
  .hero-stage { top: auto; right: 4%; bottom: 78px; width: 92%; height: 490px; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; }
  .section-heading .eyebrow { margin-bottom: 12px; }
  .section-heading > p:last-child { max-width: 540px; }
  .game-panel, .game-panel:nth-of-type(3) { grid-template-columns: 1fr; }
  .game-panel:nth-of-type(3) .game-copy { order: 1; }
  .game-panel:nth-of-type(3) .gallery { order: 2; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-mark { height: 420px; max-width: 470px; }
  .company-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  :root { --radius: 22px; }
  .site-header { width: calc(100% - 32px); padding-top: 20px; }
  .brand b { font-size: 17px; }
  .brand-bloom { width: 32px; height: 32px; transform: scale(.84); transform-origin: left; }
  .nav-play { padding: 11px 15px; font-size: 10px; }
  .hero { min-height: 1040px; padding-top: 140px; }
  h1 { font-size: clamp(58px, 18vw, 82px); }
  .hero-lede { font-size: 16px; }
  .hero-stage { height: 390px; bottom: 72px; }
  .stage-main { width: 94%; right: -2%; }
  .stage-top { width: 50%; right: 35%; }
  .stage-bottom { width: 65%; right: 19%; bottom: 12px; }
  .stage-stamp { width: 90px; height: 90px; right: -8px; bottom: 84px; font-size: 9px; }
  .games { padding: 92px 16px; }
  .section-heading { margin-bottom: 50px; }
  .section-heading h2, .about h2 { font-size: 50px; }
  .game-panel { min-height: 0; margin-bottom: 24px; }
  .game-copy { padding: 38px 24px; }
  .game-title-row { gap: 14px; }
  .game-icon { width: 62px; height: 62px; border-radius: 18px; }
  .game-panel h3 { font-size: 44px; }
  .gallery { padding: 12px; }
  .gallery-frame { min-height: 330px; }
  .gallery-controls { left: 28px; bottom: 28px; }
  .about { padding: 88px 24px; }
  .about-mark { height: 330px; transform: scale(.78); transform-origin: left top; margin-bottom: -70px; }
  .company { padding: 80px 20px; }
  .legal-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  footer { grid-template-columns: 1fr; padding: 42px 24px; }
  footer > p, .copyright { justify-self: start; }
  .legal-bar { padding: 18px 24px; }
  .play-modal { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 16px; }
  .guide-icon { width: 58px; height: 58px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
