:root {
  color-scheme: dark;
  --night: #21172c;
  --night-2: #2f2140;
  --paper: #fff8ed;
  --ink: #24212a;
  --cream: #f7ecd9;
  --cherry: #f04d72;
  --violet: #7357e8;
  --butter: #ffd45c;
  --leaf: #75a875;
  --tangerine: #f28b4b;
  --muted: #b9afc5;
  font-family: "Trebuchet MS", "Noto Sans", "Nirmala UI", Arial, sans-serif;
  color: var(--paper);
  background: var(--night);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--night); color: var(--paper); }
body, button { font-family: "Trebuchet MS", "Noto Sans", "Nirmala UI", Arial, sans-serif; }
button { color: inherit; }
body.age-required { overflow: hidden; }
html.adult-confirmed .age-veil { display: none; }
.age-veil { position: fixed; z-index: 100; inset: 0; display: grid; overflow-y: auto; place-items: center; padding: 20px; background: rgba(22,13,29,.88); backdrop-filter: blur(10px); }
.age-dialog { width: min(100%, 490px); padding: clamp(25px, 5vw, 42px); border: 2px solid var(--ink); border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 9px 9px 0 var(--cherry); }
.age-kicker { display: inline-flex; margin-bottom: 16px; padding: 7px 11px; border-radius: 999px; background: var(--butter); color: var(--ink); font-size: .68rem; font-weight: 1000; letter-spacing: .12em; text-transform: uppercase; }
.age-dialog h2 { margin-bottom: 14px; font-size: clamp(2rem, 5vw, 3rem); }
.age-dialog p { color: #5f5666; line-height: 1.6; }
.age-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.age-confirm, .age-leave { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 16px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: .82rem; font-weight: 900; }
.age-confirm { background: var(--cherry); cursor: pointer; }
.age-confirm:hover { background: #ff809c; }
.age-leave { background: transparent; color: var(--ink); text-decoration: none; }
.age-leave:hover { background: var(--lilac); color: var(--ink); }
.age-dialog .age-note { margin: 15px 0 0; color: #756b7b; font-size: .73rem; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--butter); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--butter); outline-offset: 4px; }
::selection { background: var(--butter); color: var(--ink); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Noto Sans", "Nirmala UI", sans-serif; font-weight: 900; letter-spacing: -.045em; line-height: 1.02; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 12px; transform: translateY(-160%); padding: 12px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--butter); color: var(--ink); font-weight: 900; }
.skip-link:focus { transform: translateY(0); }

.site-top { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 20px; padding: 15px clamp(20px, 5vw, 72px); border-bottom: 1px solid rgba(255,248,237,.17); }
.wordmark { display: flex; flex-direction: column; gap: 6px; font-size: 1.2rem; font-weight: 1000; letter-spacing: -.07em; line-height: 1; text-decoration: none; }
.wordmark-dot { color: var(--cherry); }
.wordmark small { color: var(--muted); font-size: .61rem; font-weight: 900; letter-spacing: .17em; }
.back-link { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid rgba(255,248,237,.34); border-radius: 999px; font-size: .82rem; font-weight: 800; text-decoration: none; }
.back-link:hover { border-color: var(--butter); }
.game-intro { position: relative; display: grid; width: min(1210px, calc(100% - 2 * clamp(20px, 5vw, 72px))); grid-template-columns: minmax(0, .8fr) minmax(420px, 1fr); align-items: center; gap: clamp(40px, 8vw, 118px); margin: 0 auto; padding-block: clamp(52px, 7vw, 98px); }
.intro-copy { position: relative; }
.overline { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; color: var(--muted); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.adult-stamp { display: inline-grid; width: 37px; height: 37px; place-items: center; border: 1.5px solid var(--paper); border-radius: 50%; color: var(--butter); font-size: .69rem; font-weight: 1000; letter-spacing: 0; transform: rotate(-9deg); }
.dot-divider { color: var(--cherry); font-size: 1.05rem; }
.intro-copy h1 { margin-bottom: 20px; font-size: clamp(4.7rem, 10vw, 8.5rem); letter-spacing: -.09em; }
.intro-copy h1 span { color: var(--cherry); }
.intro-lead { max-width: 430px; margin-bottom: 25px; color: #e4dbe9; font-size: clamp(1.06rem, 1.55vw, 1.24rem); line-height: 1.65; }
.fine-print { display: flex; max-width: 430px; align-items: flex-start; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255,248,237,.18); color: var(--muted); font-size: .82rem; line-height: 1.5; }
.fine-print p { margin: 0; }
.fine-icon { color: var(--butter); font-size: 1.1rem; line-height: 1; }
.orbit-note { position: absolute; right: -8%; bottom: -13%; display: grid; width: 102px; height: 102px; place-content: center; border-radius: 50%; background: var(--butter); color: var(--ink); font-size: .69rem; font-weight: 1000; line-height: 1.14; text-align: center; transform: rotate(8deg); }
.orbit-note b { margin-top: 4px; color: var(--cherry); font-size: .96rem; }

.game-console { overflow: hidden; padding: 20px; border: 2px solid var(--paper); border-radius: 32px; background: var(--paper); color: var(--ink); box-shadow: 10px 10px 0 rgba(115,87,232,.5); }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 1px 2px 16px; }
.console-name { display: inline-flex; align-items: center; gap: 8px; color: #554b61; font-size: .69rem; font-weight: 1000; letter-spacing: .1em; }
.console-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cherry); box-shadow: 0 0 0 4px rgba(240,77,114,.13); }
.round-pill { padding: 8px 11px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .68rem; font-weight: 900; letter-spacing: .06em; }
.round-pill i { color: var(--butter); font-style: normal; }
.pulse-stage { position: relative; display: grid; min-height: 243px; overflow: hidden; place-items: center; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: radial-gradient(ellipse at 51% 20%, #4b345e, #292032 72%); isolation: isolate; }
.pulse-stage::after { position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255,255,255,.11) .7px, transparent .7px); background-size: 13px 13px; content: ""; opacity: .28; }
.orbit { position: absolute; top: 40%; left: 50%; width: 170px; height: 170px; border: 1px solid rgba(255,212,93,.34); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-b { width: 230px; height: 230px; border-color: rgba(240,77,114,.24); }
.toy-art { position: absolute; top: 31px; left: 50%; width: 76px; height: 128px; border: 2px solid rgba(255,248,237,.73); border-radius: 52% 52% 43% 43% / 34% 34% 57% 57%; background: linear-gradient(153deg, #f5eafc 0%, #bfa9ff 41%, #7357e8 100%); box-shadow: inset -10px -7px 18px rgba(54,33,115,.5), 0 11px 28px rgba(12,7,17,.45); transform: translateX(-50%) rotate(8deg); }
.toy-tip { position: absolute; top: -14px; left: 50%; width: 44px; height: 33px; border: 2px solid rgba(255,248,237,.73); border-bottom: 0; border-radius: 50% 50% 0 0; background: linear-gradient(145deg, #fff8ed, #d5c5ff); transform: translateX(-50%); }
.toy-ring { position: absolute; right: -4px; bottom: 24px; left: -4px; height: 7px; border: 1px solid #251d32; border-radius: 50%; background: var(--butter); box-shadow: 0 0 12px rgba(255,212,93,.38); }
.toy-light { position: absolute; bottom: 8px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--cherry); box-shadow: 0 0 10px var(--cherry); transform: translateX(-50%); }
.toy-spark { position: absolute; color: var(--butter); font-size: 1.2rem; }
.toy-spark-a { top: 22px; left: -28px; }
.toy-spark-b { right: -29px; bottom: 33px; color: var(--cherry); font-size: 1.5rem; }
.game-status { position: absolute; right: 10px; bottom: 10px; left: 10px; width: calc(100% - 20px); margin: 0; color: #fff8ed; font-size: .81rem; font-weight: 800; text-align: center; text-shadow: 0 1px 4px #130e18; }
.petal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.petal { position: relative; display: grid; min-height: 86px; place-items: center; overflow: hidden; border: 2px solid var(--ink); border-radius: 20px; color: var(--ink); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.petal:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 5px 0 var(--ink); }
.petal:active:not(:disabled) { transform: translateY(2px); }
.petal:disabled { cursor: not-allowed; filter: saturate(.55); opacity: .62; }
.petal-one { background: #ff9db6; }
.petal-two { background: #c3b1ff; }
.petal-three { background: #ffe288; }
.petal-four { background: #a4d4a1; }
.petal-glyph { font-size: 1.55rem; line-height: 1; }
.petal-key { position: absolute; right: 6px; bottom: 5px; display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid rgba(36,33,42,.38); border-radius: 50%; background: rgba(255,248,237,.72); font-size: .65rem; font-weight: 900; }
.petal.is-pulsing { z-index: 1; transform: scale(1.055); filter: brightness(1.18); box-shadow: 0 0 0 5px var(--paper), 0 0 0 9px currentColor, 0 0 30px currentColor; }
.petal.is-error { box-shadow: inset 0 0 0 4px var(--cherry); }
.petal-one.is-pulsing { color: var(--cherry); }
.petal-two.is-pulsing { color: var(--violet); }
.petal-three.is-pulsing { color: #c28a00; }
.petal-four.is-pulsing { color: var(--leaf); }
.console-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 15px; }
.action-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: .8rem; font-weight: 1000; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.action-button:hover:not(:disabled) { transform: translateY(-2px); }
.action-button:disabled { cursor: not-allowed; opacity: .45; }
.action-primary { background: var(--cherry); color: var(--ink); }
.action-primary:hover:not(:disabled) { background: #ff7997; }
.action-secondary { background: var(--butter); color: var(--ink); }
.action-secondary:hover:not(:disabled) { background: #ffe58a; }
.reset-button { margin-left: auto; padding: 9px 4px; border: 0; background: transparent; color: #665d6b; font-size: .75rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.reset-button:hover { color: var(--cherry); }
.progress-wrap { margin-top: 15px; }
.progress-caption { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #655b6b; font-size: .68rem; font-weight: 800; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #ded5e1; }
.progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cherry), var(--violet)); transition: width .25s ease; }
.unlock-card { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; padding: 23px; border: 2px solid var(--ink); border-radius: 22px; background: var(--butter); color: var(--ink); text-align: center; }
.unlock-card[hidden] { display: none; }
.unlock-card > span { margin-bottom: 8px; color: var(--violet); font-size: 1.1rem; font-weight: 1000; letter-spacing: .16em; text-transform: uppercase; }
.unlock-card h2 { margin-bottom: 8px; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.unlock-card p { max-width: 320px; margin: 0 auto 15px; font-size: .9rem; line-height: 1.5; }
.how-to { display: grid; width: min(1210px, calc(100% - 2 * clamp(20px, 5vw, 72px))); grid-template-columns: .72fr 1fr; gap: clamp(32px, 8vw, 118px); margin: 0 auto; padding-block: 18px 84px; }
.section-tag { display: inline-block; margin-bottom: 14px; color: var(--butter); font-size: .7rem; font-weight: 1000; letter-spacing: .15em; }
.how-heading h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.how-heading h2 em { color: var(--cherry); font-style: normal; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-steps article { display: grid; grid-template-columns: 34px 1fr; align-content: start; gap: 8px; padding-top: 15px; border-top: 1px solid rgba(255,248,237,.3); }
.how-steps article > span { color: var(--cherry); font-size: .73rem; font-weight: 1000; }
.how-steps h3 { margin-bottom: 6px; font-size: 1.04rem; }
.how-steps p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.game-footer { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px clamp(20px, 5vw, 72px); border-top: 1px solid rgba(255,248,237,.17); color: var(--muted); font-size: .73rem; }
.game-footer > span { display: flex; align-items: center; gap: 9px; }
.footer-stamp { width: 27px; height: 27px; border-color: rgba(255,248,237,.34); font-size: .56rem; }
.game-footer a { color: var(--butter); font-weight: 800; }

@media (max-width: 920px) {
  .game-intro { grid-template-columns: 1fr; gap: 42px; max-width: 700px; }
  .intro-copy { max-width: 570px; }
  .intro-copy h1 br { display: none; }
  .orbit-note { right: 2%; bottom: -4%; }
  .how-to { grid-template-columns: 1fr; gap: 30px; max-width: 700px; }
}
@media (max-width: 600px) {
  .site-top { min-height: 72px; }
  .wordmark { font-size: 1.05rem; }
  .back-link { padding: 8px 11px; font-size: .75rem; }
  .game-intro { width: calc(100% - 32px); gap: 35px; padding-block: 43px 60px; }
  .overline { gap: 8px; font-size: .65rem; }
  .adult-stamp { width: 33px; height: 33px; }
  .intro-copy h1 { font-size: clamp(4.2rem, 20vw, 6.3rem); }
  .intro-copy h1 br { display: block; }
  .intro-lead { font-size: 1rem; }
  .orbit-note { right: 0; bottom: -31px; width: 82px; height: 82px; font-size: .59rem; }
  .game-console { padding: 12px; border-radius: 24px; box-shadow: 6px 6px 0 rgba(115,87,232,.5); }
  .console-top { padding-bottom: 12px; }
  .console-name { font-size: .58rem; }
  .round-pill { padding: 7px 9px; font-size: .61rem; }
  .pulse-stage { min-height: 220px; border-radius: 18px; }
  .petal-grid { gap: 8px; margin-top: 10px; }
  .petal { min-height: 73px; border-radius: 15px; }
  .petal-glyph { font-size: 1.3rem; }
  .petal-key { right: 4px; bottom: 4px; width: 17px; height: 17px; font-size: .58rem; }
  .console-actions { gap: 7px; }
  .action-button { flex: 1 1 auto; padding-inline: 11px; font-size: .72rem; }
  .reset-button { margin-left: 0; }
  .how-to { width: calc(100% - 32px); padding-bottom: 53px; }
  .how-steps { grid-template-columns: 1fr; gap: 14px; }
  .how-steps article { grid-template-columns: 35px 1fr; }
  .game-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
