/* The first blocks screen prepares the website before opening the invitation. */
.is-loading .site-loader {
  --arcade-safe-top: 200px;
  --arcade-safe-bottom: 125px;
  --arcade-safe-side: 80px;
  --arcade-cta-height: 64px;
  --arcade-cta-bottom: max(24px, env(safe-area-inset-bottom));
  --arcade-controls-bottom: calc(var(--arcade-cta-bottom) + var(--arcade-cta-height) + 16px);
  overflow: hidden;
  color: #f1f3ee;
  background: #000;
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  cursor: auto;
  isolation: isolate;
  transition: opacity 600ms ease;
}
.site-loader:focus { outline: none; }
.site-loader[hidden] { display: none !important; }
.site-loader button { -webkit-tap-highlight-color: transparent; }
.site-loader button:focus-visible { outline: 2px solid #c9ff73; outline-offset: 8px; }
.intro-begin {
  position: relative; z-index: 3;
  border: 0; background: none; color: #f1f3ee;
  width: min(82vw, 860px); padding: 28px 0;
  cursor: pointer;
  transition: filter 250ms ease;
}
.intro-begin:hover { filter: none; }
.intro-begin:disabled { opacity: 1; cursor: default; filter: none; }
.intro-begin[hidden] { display: none; }
.intro-begin__text { position: relative; display: block; width: 100%; }
.intro-begin__text img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.intro-begin__pixels { position: absolute; left: -40px; top: -40px; width: calc(100% + 80px); height: calc(100% + 80px); pointer-events: none; }
.has-interactive-pixels img { visibility: hidden; }
.intro-pixel-field {
  position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%;
  pointer-events: none; opacity: 1; image-rendering: pixelated;
}
.site-loader:not([data-intro-phase="idle"]):not([data-intro-phase="launching"]) .intro-pixel-field { display: none; }
[data-intro-phase="launching"] .intro-pixel-field { opacity: 0; transition: opacity 380ms ease; }
@media (prefers-reduced-motion: reduce) {
  [data-intro-phase="launching"] .intro-pixel-field { transition: none; }
}
.intro-anywhere {
  position: absolute; z-index: 3; left: 24px; right: 24px; bottom: max(56px, calc(env(safe-area-inset-bottom) + 32px));
  text-align: center; pointer-events: none; color: #858d7b;
  font: 400 9px/1.6 "JetBrains Mono", "Courier New", monospace; letter-spacing: .2em;
  transition: opacity 180ms ease;
}
.intro-anywhere__touch { display: none; }
.intro-pointer {
  position: absolute; z-index: 8; top: 0; left: 0; display: flex; align-items: center; gap: 12px;
  opacity: 0; pointer-events: none; will-change: transform;
  font: 400 10px/1.5 "JetBrains Mono", "Courier New", monospace; letter-spacing: .05em; color: #d7e4c7;
}
.intro-pointer__label { white-space: nowrap; padding: 7px 0; border-bottom: 1px solid #3c4c30; }
.intro-pointer__label b { color: #c9ff73; margin-left: 6px; font-size: 14px; font-weight: 400; }
.intro-pointer__cross { position: relative; width: 8px; height: 8px; flex: none; transform: rotate(calc(var(--pointer-energy, 0) * 90deg)); }
.intro-pointer__cross i { position: absolute; width: 2px; height: 2px; background: #c9ff73; }
.intro-pointer__cross i:nth-child(2) { right: 0; background: #81cfff; }
.intro-pointer__cross i:nth-child(3) { right: 0; bottom: 0; background: #baa0ff; }
.intro-pointer__cross i:nth-child(4) { bottom: 0; background: #78e6da; }
.intro-pointer__pixels { position: absolute; z-index: 7; inset: 0; pointer-events: none; }
.intro-pointer__pixels i { position: absolute; top: 0; left: 0; width: 4px; height: 4px; opacity: 0; }
[data-intro-phase="idle"] { cursor: crosshair !important; }
[data-intro-phase="idle"].has-invitation-pointer .intro-pointer { opacity: 1; }
[data-intro-phase="idle"].has-invitation-pointer .intro-anywhere { opacity: .25; }
.site-loader:not([data-intro-phase="idle"]) .intro-anywhere { display: none; }
.site-loader:not([data-intro-phase="idle"]):not([data-intro-phase="launching"]) .intro-pointer__pixels { display: none; }
@media (hover: none), (pointer: coarse) {
  .intro-anywhere__desktop, .intro-pointer { display: none; }
  .intro-anywhere__touch { display: inline; }
}
.has-exit-fallback .intro-game__canvas { visibility: hidden; }
.intro-loading {
  position: absolute; z-index: 4; left: 50%; bottom: max(30px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: max-content; max-width: calc(100% - 40px); transform: translateX(-50%);
  color: #8d907f; pointer-events: none;
  font: 400 9px/1.5 "JetBrains Mono", "Courier New", monospace; letter-spacing: .12em;
}
.intro-loading[hidden] { display: none; }
.intro-loading__progress { width: 200px; height: 3px; background: #20291b; overflow: hidden; }
.intro-loading__progress i { display: block; width: 100%; height: 100%; background: #c9ff73; transform-origin: left; transform: scaleX(var(--site-progress, 0)); transition: transform 220ms ease; }
.intro-loading [data-initial-percent] { color: #c9ff73; margin-left: 10px; font-variant-numeric: tabular-nums; }
.intro-loading__detail { max-width: min(280px, calc(100vw - 48px)); color: #8d9485; font-size: 10px; letter-spacing: 0; text-align: center; }
.intro-loading__retry { pointer-events: auto; min-height: 44px; margin-top: 4px; padding: 10px 16px; border: 1px solid #506638; background: #162010; color: #c9ff73; font: inherit; cursor: pointer; }
.intro-loading__retry[hidden] { display: none; }
.intro-loading__retry span { margin-left: 12px; }
.intro-loading.has-load-error .intro-loading__detail { color: #e9bb92; }
.intro-loading__blocks {
  --block-size: 7px; --block-step: 10px;
  position: relative; display: block; flex: none;
  width: calc(var(--block-step) * 3 + var(--block-size));
  height: calc(var(--block-step) * 2 + var(--block-size));
}
.intro-loading__blocks i {
  position: absolute; display: block;
  left: calc(var(--x) * var(--block-step)); bottom: calc(var(--y) * var(--block-step));
  width: var(--block-size); height: var(--block-size);
  border: 1px solid rgba(255,255,255,.32); background: currentColor; color: var(--block-color);
  box-shadow: inset -2px -2px rgba(0,0,0,.16), 0 0 12px color-mix(in srgb, currentColor 22%, transparent);
  animation: loading-block-drop 2800ms cubic-bezier(.22,.75,.28,1) infinite both;
  animation-delay: calc(var(--order) * 120ms);
}
.intro-loading__blocks i:nth-child(1) { --x: 0; --y: 0; --order: 0; --block-color: #c9ff73; }
.intro-loading__blocks i:nth-child(2) { --x: 1; --y: 0; --order: 1; --block-color: #78e6da; }
.intro-loading__blocks i:nth-child(3) { --x: 2; --y: 0; --order: 2; --block-color: #81cfff; }
.intro-loading__blocks i:nth-child(4) { --x: 3; --y: 0; --order: 3; --block-color: #baa0ff; }
.intro-loading__blocks i:nth-child(5) { --x: 1; --y: 1; --order: 4; --block-color: #dfafff; }
.intro-loading__blocks i:nth-child(6) { --x: 2; --y: 1; --order: 5; --block-color: #8ce9cb; }
.intro-loading__blocks i:nth-child(7) { --x: 2; --y: 2; --order: 6; --block-color: #c9ff73; }
.intro-loading [data-intro-loading-label] { white-space: nowrap; }
.intro-loading.is-waiting, .is-waiting .intro-loading { color: #bed09e; }
[data-intro-phase="playing"] .intro-loading { top: max(44px, env(safe-area-inset-top)); bottom: auto; }
@keyframes loading-block-drop {
  0%, 5% { opacity: 0; transform: translateY(calc(var(--block-step) * -2)) scale(.86); }
  20% { opacity: 1; transform: translateY(0) scale(1); }
  24% { opacity: 1; transform: translateY(1px) scaleY(.92); }
  28%, 67% { opacity: 1; transform: translateY(0) scale(1); }
  82%, 100% { opacity: 0; transform: translateY(0) scale(.86); }
}
.intro-game__skip {
  display: none; position: absolute; z-index: 6; left: 50%; right: auto; bottom: var(--arcade-cta-bottom);
  align-items: center; justify-content: center; gap: 20px; width: min(360px, calc(100% - 32px));
  min-height: var(--arcade-cta-height); padding: 14px 24px; transform: translateX(-50%);
  border: 1px solid #d8ffa0; border-radius: 4px; background: #c9ff73; color: #10180a;
  box-shadow: 0 6px 0 #3c5423, 0 12px 32px rgba(0,0,0,.22);
  font: 600 22px/1.2 "Inter Tight", "Helvetica Neue", Arial, sans-serif; letter-spacing: .035em; cursor: pointer;
  white-space: nowrap; touch-action: manipulation;
  transition: background 150ms ease, box-shadow 150ms ease, translate 150ms ease;
}
.is-ready:is([data-intro-phase="playing"], [data-intro-phase="switching"], [data-intro-phase="complete"]) .intro-game__skip { display: flex; }
.intro-game__skip span { font-size: 28px; line-height: 1; }
.intro-game__skip:hover:not(:disabled) { background: #dcff9e; translate: 0 -2px; box-shadow: 0 8px 0 #3c5423, 0 14px 34px rgba(0,0,0,.24); }
.intro-game__skip:active:not(:disabled) { translate: 0 4px; box-shadow: 0 2px 0 #3c5423, 0 6px 20px rgba(0,0,0,.2); }
.intro-game__skip:disabled { opacity: .55; cursor: default; }
.site-loader .intro-game__skip:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.intro-game__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.intro-game__hud { position: absolute; z-index: 2; top: max(32px, env(safe-area-inset-top)); left: 38px; right: 38px; display: flex; justify-content: space-between; gap: 24px; pointer-events: none; }
.intro-game__identity { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.intro-game__name { font-size: 22px; line-height: 1; font-weight: 600; letter-spacing: -.06em; }
.intro-game__dot { color: #c9ff73; }
.intro-game__eyebrow, .intro-game__legend, .intro-game__progress, .intro-game__instruction, .intro-game__score-label, .intro-game__next, .intro-game__touch, .intro-game__entry-status { font-family: "JetBrains Mono", "Courier New", monospace; }
.intro-game__eyebrow { font-size: 9px; letter-spacing: .14em; color: #797d83; }
.intro-game__progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: #959a9f; font-size: 12px; letter-spacing: .06em; }
.intro-game__progress span { color: #c9ff73; font-size: 18px; }
.intro-game__legend { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border: 1px solid #23262a; background: rgba(8,9,11,.88); border-radius: 4px; font-size: 10px; }
.intro-game__legend-title { color: #797d83; font-size: 9px; letter-spacing: .12em; margin-bottom: 5px; }
.intro-game__legend > span:not(:first-child) { display: flex; align-items: center; gap: 5px; min-height: 20px; }
.intro-game__legend kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; min-height: 19px; padding: 0 4px; border: 1px solid #363b41; border-radius: 3px; color: #d6dad4; background: #171a1d; font: inherit; font-size: 9px; }
.intro-game__legend i { font-style: normal; color: #595e65; }
.intro-game__legend em { margin-left: 7px; font-style: normal; color: #8f959b; }
.intro-game__instruction { position: absolute; left: 24px; right: 24px; bottom: var(--arcade-controls-bottom); margin: 0; text-align: center; color: #a0a895; font-size: 10px; letter-spacing: .04em; pointer-events: none; text-shadow: 0 1px 4px #08090b; }
.intro-game__touch { position: absolute; z-index: 3; left: 50%; bottom: var(--arcade-controls-bottom); transform: translateX(-50%); display: none; align-items: center; gap: 10px; }
.intro-game__touch button { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #353a40; border-radius: 8px; background: #15181b; color: #dde1d9; font: inherit; font-size: 22px; touch-action: none; user-select: none; }
.intro-game__touch button[data-game-action="primary"] { display: flex; align-items: center; justify-content: center; gap: 8px; width: 88px; font-size: 10px; letter-spacing: .08em; border-color: #627b43; color: #c9ff73; }
.intro-game__touch button[data-game-action="primary"] span { font-size: 19px; }
.intro-game__touch button:active { background: #293021; border-color: #c9ff73; transform: translateY(2px); }
.intro-game__result { position: absolute; z-index: 2; top: 73%; left: 50%; transform: translateX(-50%); width: calc(100% - 48px); max-width: 980px; text-align: center; transition: opacity 180ms ease, translate 180ms ease; }
.intro-game__complete { display: block; position: fixed; top: -57vh; left: 0; right: 0; color: #c9ff73; font-size: 10px; letter-spacing: .22em; }
.intro-game__score-label { display: block; color: #797f86; font-size: 9px; letter-spacing: .22em; }
.intro-game__score { display: block; margin-top: 8px; color: #eff5e9; font-family: "JetBrains Mono", monospace; font-size: clamp(32px, 4.5vw, 60px); font-weight: 400; line-height: 1.1; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.intro-game__next { position: absolute; right: 0; top: 10px; display: flex; align-items: center; gap: 20px; min-height: 64px; border: 0; background: none; padding: 8px 4px; color: #c9ff73; font-size: 9px; letter-spacing: .13em; cursor: pointer; }
.intro-game__next svg { width: 60px; height: 40px; transition: transform 250ms; }
.intro-game__next:hover svg { transform: translateX(8px); }
.intro-game__entry-status { display: block; min-height: 16px; margin-top: 12px; font-size: 10px; color: #949c8c; }
.intro-game__entry-status:empty, .is-waiting .intro-game__entry-status { display: none; }
.intro-game__fallback { position: absolute; z-index: 2; top: 40%; left: 24px; right: 24px; color: #d7dfce; text-align: center; font-size: 24px; line-height: 1.5; }
.intro-game__fallback[hidden] { display: none; }
.game-unavailable .intro-game__complete, .game-unavailable .intro-game__score-label, .game-unavailable .intro-game__score { display: none; }
.intro-game__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-intro-phase="idle"] .intro-game__canvas,
[data-intro-phase="idle"] .intro-game__hud,
[data-intro-phase="idle"] .intro-game__instruction,
[data-intro-phase="idle"] .intro-game__touch,
[data-intro-phase="idle"] .intro-game__result { display: none; }
[data-intro-phase="launching"] .intro-game__canvas,
[data-intro-phase="launching"] .intro-game__hud,
[data-intro-phase="launching"] .intro-game__instruction,
[data-intro-phase="launching"] .intro-game__touch,
[data-intro-phase="launching"] .intro-game__result { display: none; }
[data-intro-phase="loading"] .intro-begin,
[data-intro-phase="loading"] .intro-game__canvas,
[data-intro-phase="loading"] .intro-game__hud,
[data-intro-phase="loading"] .intro-game__instruction,
[data-intro-phase="loading"] .intro-game__touch,
[data-intro-phase="loading"] .intro-game__result,
[data-intro-phase="loading"] .intro-game__fallback { display: none; }
[data-intro-phase="playing"] .intro-begin,
[data-intro-phase="playing"] .intro-game__result { display: none; }
[data-intro-phase="switching"] .intro-begin,
[data-intro-phase="switching"] .intro-game__result,
[data-intro-phase="switching"] .intro-game__touch { display: none; }
[data-intro-phase="complete"] .intro-begin,
[data-intro-phase="complete"] .intro-game__hud,
[data-intro-phase="complete"] .intro-game__instruction,
[data-intro-phase="complete"] .intro-game__touch { display: none; }
[data-intro-phase="complete"] .intro-game__result { animation: game-result-in 650ms ease both; }
[data-intro-phase="exiting"] .intro-begin,
[data-intro-phase="exiting"] .intro-game__hud,
[data-intro-phase="exiting"] .intro-game__instruction,
[data-intro-phase="exiting"] .intro-game__touch,
[data-intro-phase="exiting"] .intro-game__fallback { display: none; }
[data-intro-phase="exiting"] .intro-game__result { display: none; }
.site-loader { --arcade-reveal-duration: 720ms; }
.site-loader.is-leaving { opacity: 0; pointer-events: none; transition-duration: var(--arcade-reveal-duration); }
/* The overlay sprite lands exactly on #catBase before the DOM image takes over. */
.is-loading .site-loader.has-mascot-handoff { background: transparent; transition: none; }
.has-mascot-handoff .intro-game__canvas { visibility: hidden; }
.arcade-handoff { position: absolute; z-index: 12; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.has-arcade-handoff #catBase { opacity: 0; }
.has-arcade-handoff #reveal { visibility: hidden; }
@keyframes game-result-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 640px) {
  .intro-game__hud { top: max(22px, env(safe-area-inset-top)); left: 20px; right: 20px; gap: 12px; }
  .intro-game__name { font-size: 20px; }
  .intro-game__identity > .intro-game__eyebrow { display: none; }
  .intro-game__progress { font-size: 10px; margin-top: 8px; }
  .intro-game__legend { padding: 10px; gap: 4px; font-size: 8px; }
  .intro-game__legend-title { font-size: 7px; letter-spacing: .06em; }
  .intro-game__legend kbd { min-width: 15px; min-height: 16px; font-size: 8px; padding: 0 2px; }
  .intro-game__legend em { margin-left: 3px; }
  .intro-game__instruction { font-size: 9px; }
  .intro-game__result { top: 71%; }
  .intro-game__next { position: static; justify-content: center; margin: 16px auto 0; gap: 18px; min-height: 54px; }
  .intro-game__next svg { width: 45px; height: 30px; }
  .intro-game__complete { top: -51vh; }
  .intro-loading { gap: 10px; font-size: 8px; letter-spacing: .08em; bottom: max(18px, env(safe-area-inset-bottom)); }
  [data-intro-phase="playing"] .intro-loading { top: auto; left: 20px; bottom: max(100px, calc(env(safe-area-inset-bottom) + 78px)); transform: none; }
}
@media (pointer: coarse), (max-width: 640px) {
  [data-intro-phase="playing"] .intro-game__touch { display: flex; }
  .intro-game__instruction { bottom: calc(var(--arcade-controls-bottom) + 64px); }
}
@media (min-width: 641px) and (max-width: 900px) {
  [data-intro-phase="playing"] .intro-loading { top: auto; bottom: max(24px, env(safe-area-inset-bottom)); left: 24px; transform: none; }
}
@media (max-width: 640px) and (max-height: 600px) {
  [data-intro-phase="complete"] .intro-loading { bottom: 10px; }
  .intro-game__score { font-size: 32px; }
  .intro-game__next { margin-top: 6px; min-height: 44px; }
  .intro-game__entry-status { display: none; }
}
@media (max-height: 500px) and (min-width: 641px) {
  .intro-game__hud { top: 16px; left: 22px; right: 22px; }
  .intro-game__legend { flex-direction: row; gap: 12px; padding: 9px; }
  .intro-game__legend-title, .intro-game__identity > .intro-game__eyebrow { display: none; }
  .intro-game__progress { margin-top: 3px; }
  .intro-game__result { top: 73%; }
  .intro-game__score { font-size: 32px; }
  .intro-game__next { top: 0; min-height: 42px; }
  [data-intro-phase="playing"] .intro-loading { top: auto; left: 24px; bottom: 24px; transform: none; }
  [data-intro-phase="complete"] .intro-loading { left: 24px; bottom: 12px; transform: none; }
}
@media (pointer: coarse) and (max-height: 500px) { .intro-game__instruction { display: none; } }
/* Shared controls overlay each full-viewport game. */
.arcade-selector, .arcade-nav, .arcade-retry, .arcade-launcher, .arcade-transition__label {
  font-family: "JetBrains Mono", "Courier New", monospace;
}
.arcade-selector {
  position: absolute; z-index: 4; top: max(28px, env(safe-area-inset-top)); left: 50%;
  display: none; grid-template-columns: auto auto; align-items: center; justify-content: center;
  column-gap: 10px; row-gap: 5px; transform: translateX(-50%); text-align: center;
}
.arcade-selector__count { color: #727a6e; font-size: 9px; line-height: 1.5; letter-spacing: .08em; white-space: nowrap; }
.arcade-selector strong { color: #e6eddd; font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: .12em; white-space: nowrap; }
.arcade-selector__dots { grid-column: 1 / -1; display: flex; justify-content: center; }
.arcade-selector__dots button {
  position: relative; display: grid; place-items: center; flex: none;
  width: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 0; background: none;
  color: #4c5546; cursor: pointer; touch-action: manipulation;
}
.arcade-selector__dots button::before { content: ""; display: block; width: 5px; height: 5px; border: 1px solid currentColor; background: transparent; transition: background 120ms, color 120ms, transform 120ms; }
.arcade-selector__dots button:hover { color: #b5cc95; }
.arcade-selector__dots button[aria-pressed="true"],
.arcade-selector__dots button[aria-current="true"],
.arcade-selector__dots button[aria-current="page"],
.arcade-selector__dots button.is-active { color: #c9ff73; }
.arcade-selector__dots button[aria-pressed="true"]::before,
.arcade-selector__dots button[aria-current="true"]::before,
.arcade-selector__dots button[aria-current="page"]::before,
.arcade-selector__dots button.is-active::before { background: currentColor; transform: scale(1.4); box-shadow: 0 0 12px rgba(201,255,115,.2); }
.site-loader .arcade-selector__dots button:focus-visible { outline-offset: -3px; }
.arcade-nav {
  position: absolute; z-index: 4; top: 48%; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 48px; min-height: 64px; padding: 10px 0; border: 1px solid transparent; border-radius: 2px;
  background: transparent; color: #a1b290; transform: translateY(-50%); cursor: pointer; touch-action: manipulation;
  transition: color 150ms, background 150ms, border-color 150ms;
}
.arcade-nav--prev { left: 24px; }
.arcade-nav--next { right: 24px; }
.arcade-nav svg { display: block; flex: none; width: 24px; height: 24px; image-rendering: pixelated; transition: translate 150ms; }
.arcade-nav__label { position: absolute; top: calc(100% + 3px); width: 96px; color: #798170; font-size: 7px; line-height: 1.5; letter-spacing: .06em; text-align: center; }
.arcade-nav:hover { color: #c9ff73; border-color: #2b3523; background: rgba(201,255,115,.035); }
.arcade-nav--prev:hover svg { translate: -3px 0; }
.arcade-nav--next:hover svg { translate: 3px 0; }
.arcade-nav:active { background: rgba(201,255,115,.09); }
.arcade-nav:disabled { opacity: .3; cursor: default; }
[data-intro-phase="playing"] .arcade-selector,
[data-intro-phase="complete"] .arcade-selector { display: grid; }
[data-intro-phase="playing"] .arcade-nav,
[data-intro-phase="complete"] .arcade-nav { display: flex; }
[data-intro-phase="switching"] .arcade-selector { display: grid; pointer-events: none; opacity: .5; }
[data-intro-phase="switching"] .arcade-nav { display: flex; pointer-events: none; opacity: .4; }
.intro-game__canvas { transition: opacity 110ms ease, translate 180ms ease; }
[data-intro-phase="switching"] .intro-game__canvas { opacity: 0; translate: -12px 0; }
[data-intro-phase="playing"] .intro-game__canvas { animation: arcade-field-in 220ms ease-out both; }
.intro-game__result {
  top: auto; bottom: calc(var(--arcade-cta-bottom) + var(--arcade-cta-height) + 16px); display: grid;
  grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 3px; align-items: center;
  width: min(400px, calc(100% - 32px)); padding: 10px 14px;
  border: 1px solid #303a2a; border-radius: 4px; background: rgba(8,12,10,.9);
}
.intro-game__complete { position: absolute; top: auto; bottom: calc(100% + 12px); }
.intro-game__score-label { grid-column: 1; grid-row: 1; text-align: left; font-size: 8px; line-height: 1.3; }
.intro-game__score { grid-column: 1; grid-row: 2; margin: 0; text-align: left; font-size: 34px; }
.intro-game__entry-status { grid-column: 1 / -1; }
.intro-game__next { display: none; }
.arcade-retry {
  grid-column: 2; grid-row: 1 / 3; justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-width: 118px; min-height: 48px; margin: 0; padding: 8px 10px; border: 1px solid #3b4b2e; border-radius: 2px;
  background: #131b0e; color: #c0d2ab; font-size: 9px; line-height: 1.5; letter-spacing: .08em; cursor: pointer; touch-action: manipulation;
  transition: color 150ms, border-color 150ms;
}
.arcade-retry svg { width: 16px; height: 16px; }
.arcade-retry:hover { color: #c9ff73; border-color: #344228; }
.arcade-retry:disabled, .intro-game__next:disabled { opacity: .45; cursor: default; }
.intro-game__touch button:only-child { width: min(230px, 65vw); }
.intro-game__touch button[hidden], .arcade-retry[hidden], .arcade-nav[hidden] { display: none; }
.arcade-launcher {
  position: fixed; z-index: 15; top: max(96px, calc(env(safe-area-inset-top) + 76px)); right: max(22px, env(safe-area-inset-right)); left: auto; bottom: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 13px;
  border: 1px solid #303c26; border-radius: 3px; background: #0d100d; color: #c9ff73;
  box-shadow: 0 4px 18px rgba(0,0,0,.12); font-size: 9px; line-height: 1.2; letter-spacing: .1em;
  cursor: pointer; touch-action: manipulation; transition: background 160ms, border-color 160ms, translate 160ms;
}
.arcade-launcher svg, .arcade-launcher img, .arcade-launcher canvas { width: 23px; height: 23px; flex: none; image-rendering: pixelated; }
.arcade-launcher:hover { background: #192111; border-color: #6e874c; translate: 0 -2px; }
.arcade-launcher:active { translate: 0 0; }
.arcade-launcher:focus-visible { outline: 2px solid #c9ff73; outline-offset: 4px; }
.is-loading .arcade-launcher, .has-focus .arcade-launcher, .arcade-launcher[hidden] { display: none; }
/* A single burst of tiles connects the pixel invitation to the playable screen. */
.arcade-transition { display: none; position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.arcade-transition__pixels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(4, 1fr); gap: 3px; }
.arcade-transition__pixels i { display: block; border: 1px solid rgba(201,255,115,.3); background: #c9ff73; opacity: 0; transform: scale(.05); }
.arcade-transition__pixels i:nth-child(4n + 2) { background: #78e6da; border-color: #78e6da; }
.arcade-transition__pixels i:nth-child(4n + 3) { background: #81cfff; border-color: #81cfff; }
.arcade-transition__pixels i:nth-child(4n) { background: #baa0ff; border-color: #baa0ff; }
.arcade-transition__label { position: absolute; z-index: 1; top: calc(50% + 60px); left: 0; right: 0; text-align: center; color: #c9ff73; font-size: 9px; letter-spacing: .22em; opacity: 0; }
[data-intro-phase="launching"] .arcade-transition { display: block; }
[data-intro-phase="launching"] .intro-begin { pointer-events: none; animation: arcade-begin-out 440ms steps(7, end) both; }
[data-intro-phase="launching"] .arcade-transition__pixels i { animation: arcade-tile-pass 600ms cubic-bezier(.22,.75,.28,1) both; animation-delay: calc(130ms + var(--i, 0) * 6ms); }
[data-intro-phase="launching"] .arcade-transition__label { animation: arcade-transition-label 850ms ease both; }
@keyframes arcade-begin-out { 0% { opacity: 1; transform: scale(1); } 55% { opacity: .65; transform: scale(.72); } 100% { opacity: 0; transform: scale(.2); } }
@keyframes arcade-tile-pass { 0% { opacity: 0; transform: scale(.05); } 45% { opacity: .16; transform: scale(1); } 65% { opacity: .12; transform: scale(1); } 100% { opacity: 0; transform: scale(.05); } }
@keyframes arcade-transition-label { 0%, 15%, 100% { opacity: 0; translate: 0 5px; } 35%, 70% { opacity: .85; translate: 0 0; } }
@keyframes arcade-field-in { from { opacity: 0; translate: 12px 0; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 700px) {
  .is-loading .site-loader {
    --arcade-safe-top: 150px;
    --arcade-safe-bottom: 190px;
    --arcade-safe-side: 16px;
    --arcade-cta-height: 56px;
    --arcade-cta-bottom: max(18px, env(safe-area-inset-bottom));
    --arcade-controls-bottom: calc(var(--arcade-cta-bottom) + var(--arcade-cta-height) + 22px);
  }
  .intro-game__hud { top: max(20px, env(safe-area-inset-top)); left: 18px; right: 18px; }
  .intro-game__identity { gap: 6px; }
  .intro-game__identity > .intro-game__eyebrow, .intro-game__legend { display: none; }
  .intro-game__name { font-size: 19px; }
  .intro-game__progress { margin-top: 3px; font-size: 10px; }
  .intro-game__progress span { font-size: 14px; }
  .arcade-selector { top: max(82px, calc(env(safe-area-inset-top) + 62px)); row-gap: 2px; }
  .arcade-selector strong { font-size: 9px; letter-spacing: .08em; }
  .arcade-selector__count { font-size: 8px; }
  .arcade-selector__dots button { width: 44px; min-height: 44px; }
  .arcade-nav { top: max(94px, calc(env(safe-area-inset-top) + 74px)); width: 44px; min-height: 44px; padding: 10px 0; transform: none; }
  .arcade-nav--prev { left: max(4px, env(safe-area-inset-left)); }
  .arcade-nav--next { right: max(4px, env(safe-area-inset-right)); }
  .arcade-nav svg { width: 20px; height: 20px; }
  .arcade-nav__label { display: none; }
  .site-loader .arcade-nav:focus-visible { outline-offset: -2px; }
  .intro-game__touch { gap: 8px; }
  [data-intro-phase="playing"] .intro-game__touch { display: flex; }
  .intro-game__touch button { width: 46px; height: 46px; }
  .intro-game__touch button[data-game-action="primary"] { width: 82px; }
  .intro-game__touch button:only-child { width: min(230px, 65vw); }
  .intro-game__skip { width: calc(100% - 32px); max-width: none; padding: 14px 20px; font-size: 18px; }
  .intro-game__skip span { font-size: 25px; }
  .intro-game__instruction { bottom: calc(var(--arcade-controls-bottom) + 64px); font-size: 9px; }
  .intro-game__result { column-gap: 14px; }
  .intro-game__complete { bottom: calc(100% + 12px); font-size: 8px; letter-spacing: .16em; }
  .intro-game__score { font-size: 30px; }
  .arcade-retry { min-height: 44px; min-width: 106px; font-size: 8px; }
  .arcade-launcher { top: max(90px, calc(env(safe-area-inset-top) + 70px)); right: max(14px, env(safe-area-inset-right)); gap: 8px; padding: 9px 11px; font-size: 8px; }
  .arcade-transition__label { padding: 0 20px; font-size: 8px; letter-spacing: .13em; }
}
@media (pointer: coarse) and (min-width: 701px) {
  .is-loading .site-loader { --arcade-safe-bottom: 190px; }
}
@media (max-height: 500px) and (min-width: 501px) {
  .is-loading .site-loader {
    --arcade-safe-top: 76px;
    --arcade-safe-bottom: 140px;
    --arcade-safe-side: 64px;
    --arcade-cta-height: 52px;
    --arcade-cta-bottom: max(12px, env(safe-area-inset-bottom));
    --arcade-controls-bottom: calc(var(--arcade-cta-bottom) + var(--arcade-cta-height) + 18px);
  }
  .intro-game__hud { top: max(14px, env(safe-area-inset-top)); left: 18px; right: 18px; }
  .intro-game__legend, .intro-game__identity > .intro-game__eyebrow { display: none; }
  .intro-game__name { font-size: 17px; }
  .intro-game__progress { font-size: 9px; margin-top: 0; }
  .intro-game__progress span { font-size: 13px; }
  .arcade-selector { top: max(10px, env(safe-area-inset-top)); row-gap: 0; }
  .arcade-selector__dots button { width: 36px; min-height: 36px; }
  .arcade-nav { top: 46%; transform: translateY(-50%); }
  .arcade-nav--prev { left: max(8px, env(safe-area-inset-left)); }
  .arcade-nav--next { right: max(8px, env(safe-area-inset-right)); }
  .arcade-nav__label { display: none; }
  .intro-game__touch button { height: 44px; width: 44px; }
  .intro-game__skip { width: min(360px, calc(100% - 32px)); max-width: none; font-size: 18px; padding: 12px 20px; }
  .intro-game__instruction { display: none; }
  .intro-game__result { bottom: calc(var(--arcade-cta-bottom) + var(--arcade-cta-height) + 12px); width: min(400px, calc(100% - 32px)); padding: 6px 12px; column-gap: 16px; row-gap: 1px; }
  .intro-game__complete { font-size: 7px; bottom: calc(100% + 8px); }
  .intro-game__score-label { font-size: 7px; }
  .intro-game__score { font-size: 24px; }
  .arcade-retry { min-height: 44px; margin: 0; padding: 5px 10px; font-size: 8px; }
  .intro-game__entry-status { display: none; }
}
/* Initial loading is the whole scene; the invitation appears only when ready. */
[data-intro-phase="loading"] .intro-loading {
  top: 50%; bottom: auto; left: 50%; transform: translate(-50%, -50%);
  flex-direction: column; gap: 27px; color: #999f93;
  font-size: 9px; letter-spacing: .18em;
}
[data-intro-phase="loading"] .intro-loading__blocks { --block-size: 16px; --block-step: 20px; }
@media (prefers-reduced-motion: reduce) {
  .is-loading .site-loader, .site-loader * { animation: none !important; transition: none !important; }
  .site-loader.is-leaving { opacity: 0; }
  .intro-loading__blocks i { opacity: 1; transform: none; }
  .arcade-transition { display: none !important; }
  .arcade-launcher { transition: none; }
}
