/* Ctrl+Vibe Arcade — page styles. Calm colours, no flashing. */
:root {
  --ink: #16121f; --ink2: #221b30; --panel: rgba(24, 19, 34, .92); --line: rgba(255, 220, 190, .16);
  --text: #f3eadf; --dim: #b9aa9c; --amber: #ffbe73; --rose: #f08aa0; --teal: #7fd6c4;
  --ui: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--ui); }
body { overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
a { color: var(--amber); }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; background: #0d0a14; }
body.playing #view { visibility: hidden; }

.btn { display: inline-block; border: 0; border-radius: 12px; padding: .7em 1.3em; background: var(--amber); color: #2a1a10;
  font-weight: 800; letter-spacing: .02em; box-shadow: 0 4px 0 #b67a3e, 0 0 24px rgba(255, 190, 115, .25); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b67a3e; }
.btn.big { font-size: 1.15rem; padding: .85em 1.6em; }

/* ---- title card (ui-intro-r001): neon logo floating over the arcade, a frosted glass sheet below it ----
   Phones in portrait: the sheet sits at the bottom within thumb reach. Phones sideways: logo left, sheet right.
   Computers: logo above a centred sheet. No flashing; the entrance motion is off with reduced motion. */
.intro { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(14px, 3.2vh, 34px); padding: calc(18px + var(--safe-t)) calc(16px + var(--safe-r)) calc(18px + var(--safe-b)) calc(16px + var(--safe-l));
  background: radial-gradient(120% 70% at 50% 30%, rgba(20, 14, 32, .18), rgba(12, 9, 18, .55) 60%, rgba(9, 7, 14, .9));
  transition: opacity .5s ease; overflow-y: auto; }
.intro.out { opacity: 0; pointer-events: none; }
.intro-hero { position: relative; text-align: center; animation: intro-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
/* a soft dark halo keeps the neon logo readable over the busy arcade behind it */
.intro-hero::before { content: ''; position: absolute; z-index: -1; inset: -55% -24% -85%; pointer-events: none;
  background: radial-gradient(farthest-side, rgba(10, 7, 16, .92), rgba(10, 7, 16, .86) 55%, rgba(10, 7, 16, .4) 80%, transparent);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  -webkit-mask-image: radial-gradient(farthest-side, #000 62%, transparent); mask-image: radial-gradient(farthest-side, #000 62%, transparent); }
.intro-eyebrow { display: inline-flex; align-items: center; gap: .55em; margin: 0 0 1.1em; padding: .42em .95em; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e9dccd;
  background: rgba(22, 16, 32, .55); border: 1px solid rgba(255, 220, 190, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.intro-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.logo { margin: 0; font-family: var(--mono); font-weight: 900; font-size: clamp(2.7rem, 13vw, 5.4rem); line-height: .95;
  letter-spacing: .03em; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .04em; }
.logo .k { color: #ffd9ac; text-shadow: 0 0 6px rgba(255, 190, 115, .55), 0 0 26px rgba(255, 160, 80, .45), 0 0 60px rgba(255, 140, 60, .22); }
.logo .plus { color: #ff8fab; text-shadow: 0 0 6px rgba(255, 143, 171, .6), 0 0 26px rgba(240, 110, 150, .5); }
.logo .v { color: #bdf5e6; text-shadow: 0 0 6px rgba(127, 214, 196, .6), 0 0 26px rgba(110, 220, 196, .45), 0 0 60px rgba(90, 200, 180, .2); }
.logo small { flex-basis: 100%; font-family: var(--ui); font-size: .24em; font-weight: 800; letter-spacing: .42em; color: #f6ece0;
  margin-top: .8em; padding-left: .42em; text-shadow: 0 0 12px rgba(20, 8, 30, .95), 0 0 3px rgba(20, 8, 30, .9); }
.intro-card { width: 100%; max-width: 430px; text-align: center; padding: 22px 20px 16px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(36, 28, 50, .74), rgba(20, 15, 30, .84));
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 228, 200, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(0, 0, 0, .4);
  animation: intro-rise .9s .12s cubic-bezier(.2, .8, .2, 1) both; }
.intro-card { position: relative; }
.intro-card::before { content: ''; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 190, 115, .95) 22%, rgba(255, 143, 171, 1) 50%, rgba(127, 214, 196, .95) 78%, transparent); box-shadow: 0 0 8px rgba(255, 143, 171, .35); }
.intro-sub span { color: #ffd9ac; font-weight: 600; }
.intro-sub { color: var(--text); margin: 0 auto 18px; max-width: 30ch; font-size: 1.04rem; line-height: 1.42; opacity: .92; }
.intro-card .btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: .5em; min-height: 54px;
  border-radius: 16px; font-size: 1.08rem; letter-spacing: .01em; }
.btn.cta { background: linear-gradient(180deg, #ffd29a, #ffb366 55%, #f7a253); color: #2a1608; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(160, 80, 20, .25), 0 10px 28px rgba(255, 160, 80, .32), 0 2px 0 #b8743a;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn.cta::after { content: '→'; font-weight: 900; transition: transform .2s ease; }
.btn.cta:hover::after { transform: translateX(3px); }
.btn.cta:active { transform: scale(.98); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 14px rgba(255, 160, 80, .25); }
.btn.cta:disabled { cursor: progress; color: #4a2f15;
  background: linear-gradient(100deg, #f2c48e 30%, #ffe0b8 50%, #f2c48e 70%) 0 0 / 260% 100%; animation: cta-wait 2.6s linear infinite; }
.btn.cta:disabled::after { content: ''; }
.btn.ghost { margin-top: 10px; min-height: 48px; font-size: .98rem; font-weight: 700; color: #f1e6da; background: rgba(255, 240, 225, .06);
  border: 1px solid rgba(255, 228, 200, .14); box-shadow: none; }
.btn.ghost:active { transform: scale(.98); background: rgba(255, 240, 225, .1); }
.intro-help { list-style: none; margin: 18px 0 0; padding: 14px 4px 0; border-top: 1px solid rgba(255, 228, 200, .09);
  display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 10px 20px; justify-items: start; color: rgba(243, 234, 223, .8); font-size: .82rem; }
.intro-help li { display: inline-flex; align-items: center; gap: 7px; }
.intro-help .keys { display: inline-flex; gap: 3px; }
kbd { min-width: 22px; height: 22px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 6px; font: 700 .72rem/1 var(--ui);
  color: #f3eadf; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 228, 200, .16);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.intro-help.touch { display: none; }
.is-touch .intro-help.desk { display: none; }
.is-touch .intro-help.touch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-inline: 0; }
.intro-help.touch li { flex-direction: column; justify-content: center; justify-self: stretch; gap: 3px; padding: 4px 4px 2px; color: rgba(243, 234, 223, .72);
  font-size: .74rem; line-height: 1.15; text-align: center; }
.intro-help.touch li + li { border-left: 1px solid rgba(255, 228, 200, .09); }
.intro-help.touch b { color: var(--text); font-size: .86rem; font-weight: 700; }
.intro-help svg { width: 22px; height: 22px; margin-bottom: 3px; fill: none; stroke: var(--teal); stroke-width: 1.8; }
.intro-help svg .fill { fill: var(--teal); stroke: none; }
.intro-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; min-height: 50px; border-radius: 16px 16px 0 0;
  text-decoration: none; color: var(--text); background: rgba(255, 240, 225, .05); font-size: .95rem; font-weight: 600; text-align: left; }
.intro-row:active { background: rgba(255, 240, 225, .09); }
.intro-row .row-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; font-size: .85rem; color: #2a1608;
  background: linear-gradient(135deg, #ffd29a, #f08aa0); }
.intro-row .row-text { flex: 1; }
.intro-row .chev { color: var(--dim); font-size: 1.4rem; line-height: 1; }
.intro-social { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 12px 12px; border-radius: 0 0 16px 16px;
  background: rgba(255, 240, 225, .05); border-top: 1px solid rgba(255, 228, 200, .08); }
.social-label { color: var(--dim); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.social-icons { display: flex; justify-content: space-evenly; gap: 8px; }
.social-icons a { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #f1e6da;
  background: rgba(255, 240, 225, .06); border: 1px solid rgba(255, 228, 200, .1); transition: background .15s ease, color .15s ease; }
.social-icons a:hover, .social-icons a:active { background: rgba(255, 190, 115, .16); color: var(--amber); }
.social-icons svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-icons svg .fill { fill: currentColor; stroke: none; }
@media (hover: hover) {
  .btn.cta:not(:disabled):hover { filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(160, 80, 20, .25), 0 14px 34px rgba(255, 160, 80, .42), 0 2px 0 #b8743a; }
  .btn.ghost:hover { background: rgba(255, 240, 225, .1); border-color: rgba(255, 228, 200, .24); }
  .intro-row:hover { background: rgba(255, 240, 225, .09); }
  .intro-row:hover .chev { color: var(--amber); transform: translateX(2px); }
}
.intro-row .chev { transition: transform .15s ease, color .15s ease; }
.intro-row, .btn.ghost { transition: background .15s ease, border-color .15s ease, transform .15s ease; }

/* ---- Liquid Glass (polish round 3, owner: "replace the magenta background with apple liquid glass style ui") ----
   Clear, neutral glass instead of the purple-tinted panel: the arcade shows through, heavily blurred and
   saturated; a light-catching rim (bright top-left, faint warm/teal tints), a soft specular sheen at the top,
   inner light for thickness; capsule buttons; inner groups concentric with the card (32 outer, 16 inner). */
.intro { background: radial-gradient(120% 70% at 50% 30%, rgba(8, 8, 12, .12), rgba(8, 8, 12, .5) 60%, rgba(6, 6, 10, .88)); }
.intro-hero::before { background: radial-gradient(farthest-side, rgba(8, 8, 12, .9), rgba(8, 8, 12, .82) 55%, rgba(8, 8, 12, .38) 80%, transparent); }
.intro-card { isolation: isolate; border: 0; border-radius: 32px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05) 38%, rgba(255, 255, 255, .03) 62%, rgba(255, 255, 255, .08)), rgba(18, 19, 26, .46);
  -webkit-backdrop-filter: blur(30px) saturate(55%) brightness(1.02); backdrop-filter: blur(30px) saturate(55%) brightness(1.02);
  box-shadow: inset 0 1px .5px rgba(255, 255, 255, .5), inset 0 -1px .5px rgba(255, 255, 255, .12), inset 0 0 32px rgba(255, 255, 255, .05),
    0 26px 70px rgba(0, 0, 0, .45), 0 2px 10px rgba(0, 0, 0, .2); }
/* the rim: a 1 px gradient border that catches the light */
.intro-card::before { left: 0; right: 0; top: 0; bottom: 0; height: auto; z-index: -1; border-radius: inherit; padding: 1px; box-shadow: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .75), rgba(255, 226, 190, .28) 16%, rgba(255, 255, 255, .06) 42%, rgba(255, 255, 255, .03) 62%, rgba(170, 245, 228, .26) 86%, rgba(255, 255, 255, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* specular sheen across the top of the glass */
.intro-card::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(130% 55% at 18% 0%, rgba(255, 255, 255, .13), transparent 60%), radial-gradient(90% 40% at 100% 100%, rgba(170, 245, 228, .05), transparent 70%); }
/* glass surfaces inside the card */
.btn.ghost, .intro-row, .intro-social, .social-icons a, .intro-eyebrow {
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05));
  border: 0; box-shadow: inset 0 1px .5px rgba(255, 255, 255, .32), inset 0 -1px .5px rgba(255, 255, 255, .06), 0 1px 3px rgba(0, 0, 0, .12); }
.intro-eyebrow { background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)), rgba(10, 10, 16, .35); color: #f2ece4; }
.intro-row { border-radius: 16px 16px 0 0; }
.intro-social { border-radius: 0 0 16px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.intro-help, .intro-help.touch li + li { border-color: rgba(255, 255, 255, .1); }
kbd { background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06)); border: 0;
  box-shadow: inset 0 1px .5px rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .3); }
/* capsule buttons; the main one is amber tinted glass with a gloss on top */
.intro-card .btn { border-radius: 999px; }
.btn.cta { background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, #ffd7a3, #ffb469 58%, #f7a052);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -3px 8px rgba(190, 90, 20, .22), 0 10px 30px rgba(255, 160, 80, .34), 0 1px 3px rgba(120, 60, 10, .3); }
.btn.cta:active { box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 -2px 6px rgba(190, 90, 20, .25), 0 4px 14px rgba(255, 160, 80, .25); }
.btn.cta:disabled { background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 52%), linear-gradient(100deg, #f2c48e 30%, #ffe0b8 50%, #f2c48e 70%) 0 0 / 260% 100%; }
@media (hover: hover) {
  .btn.cta:not(:disabled):hover { box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -3px 8px rgba(190, 90, 20, .22), 0 14px 36px rgba(255, 160, 80, .45), 0 1px 3px rgba(120, 60, 10, .3); }
  .btn.ghost:hover, .intro-row:hover, .social-icons a:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .08)); }
}
.btn.ghost:active, .intro-row:active, .social-icons a:active { background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .1)); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .intro-card { background: rgba(22, 20, 30, .92); }   /* browsers without glass: keep the text readable */
}
@keyframes intro-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes cta-wait { to { background-position: -260% 0; } }
/* phones held upright: the sheet anchors to the bottom, within thumb reach */
@media (max-width: 560px) and (orientation: portrait) {
  .intro { justify-content: flex-start; padding-bottom: max(16px, calc(8px + var(--safe-b))); padding-inline: max(16px, var(--safe-l)) max(16px, var(--safe-r)); }
  .intro-hero { margin-bottom: auto; margin-top: auto; }
  .intro-card { max-width: none; border-radius: 32px; padding: 22px 16px 16px; }
}
/* phones sideways and other short screens: logo left, sheet right */
@media (orientation: landscape) and (max-height: 520px) {
  .intro { flex-direction: row; gap: 4vw; justify-content: center; padding-top: max(10px, var(--safe-t)); padding-bottom: max(10px, var(--safe-b)); }
  .intro-hero { flex: 0 1 auto; }
  .logo { font-size: clamp(2.2rem, 7.5vw, 3.6rem); }
  .intro-card { flex: 0 1 40%; min-width: 330px; max-width: 370px; padding: 12px 14px 12px; border-radius: 28px; }
  .intro-sub { margin-bottom: 8px; font-size: .9rem; line-height: 1.3; }
  .intro-card .btn { min-height: 46px; }
  .btn.ghost { min-height: 44px; margin-top: 8px; }
  .is-touch .intro-help.touch { margin-top: 8px; padding-top: 6px; }
  .intro-help.touch li { padding: 6px 4px; }
  .intro-help.touch svg { display: none; }
  .intro-row { margin-top: 8px; padding: 6px 12px; min-height: 44px; }
  .intro-social { gap: 2px; padding: 5px 8px 6px; }
  .social-label { font-size: .64rem; line-height: 1.1; }
}

/* ---- HUD ---- */
#hud { position: fixed; top: calc(10px + var(--safe-t)); right: calc(10px + var(--safe-r)); display: flex; gap: 8px; z-index: 10; }
.hud-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(22, 17, 31, .72);
  font-size: 20px; line-height: 1; display: grid; place-items: center; color: var(--text); }
.hud-btn[aria-pressed="true"] { color: var(--amber); border-color: rgba(255, 190, 115, .5); }
.hud-btn.off { color: var(--dim); text-decoration: line-through; }
#crosshair { position: fixed; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: rgba(255, 240, 225, .7); box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); pointer-events: none; z-index: 5; }
#prompt { position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); transform: translateX(-50%); z-index: 6; pointer-events: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; text-align: center; max-width: min(92vw, 520px); }
#prompt .t { font-weight: 800; font-size: 1.1rem; }
#prompt .g { color: var(--dim); font-size: .88rem; margin-top: 2px; }
#prompt kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 6px; background: var(--amber); color: #2a1a10;
  font-family: var(--mono); font-weight: 900; margin-right: 6px; }
.is-touch #prompt { bottom: calc(96px + var(--safe-b)); }
#touch-play { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + var(--safe-b)); z-index: 7; font-size: 1.1rem; }
/* The sign itself supplies the social context. Keep one reachable action on phones,
   leaving the artwork and decorative book visible, especially in landscape. */
.is-touch #prompt:is([data-kind="links"],[data-kind="social"]) { display: none; }
.is-touch #touch-play:is([data-kind="links"],[data-kind="social"]) { bottom: calc(10px + var(--safe-b)); min-height: 44px; padding: 9px 18px; font-size: .95rem; white-space: nowrap; }
#toast { position: fixed; left: 50%; top: calc(70px + var(--safe-t)); transform: translateX(-50%); z-index: 12; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; max-width: 90vw; text-align: center; }
#stick { position: fixed; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; z-index: 4; pointer-events: none;
  border: 2px solid rgba(255, 230, 210, .22); background: rgba(20, 15, 28, .25); }
#stick-knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: rgba(255, 220, 190, .35); }

/* ---- small dialogs ---- */
.modal { position: fixed; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 8, 15, .6); }
.modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; max-width: 420px; width: 100%; text-align: center; }
.modal-card h2 { margin: 0 0 .4em; }
.modal-card p { color: var(--dim); }
.modal-card .links { list-style: none; padding: 0; margin: 1em 0 1.3em; display: grid; gap: 10px; }
.modal-card .links a { display: block; padding: 12px; border-radius: 12px; background: var(--ink2); border: 1px solid var(--line); text-decoration: none; font-weight: 800; }

/* ---- game list (screen readers / old phones / ☰) ---- */
.list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.list.open, .fallback .list, .no3d .list { position: fixed; inset: 0; width: auto; height: auto; clip: auto; clip-path: none; white-space: normal;
  overflow: auto; z-index: 30; background: rgba(14, 11, 20, .96); padding: calc(16px + var(--safe-t)) 16px calc(24px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.fallback body, .no3d body { overflow: auto; }
.list-inner { max-width: 640px; margin: 0 auto; }
.list h2 { margin: .2em 0 .3em; font-size: 1.5rem; padding-right: 50px; }
.list h3 { margin: 1.6em 0 .4em; color: var(--amber); }
.list-sub, .fan-note { color: var(--dim); }
.fan-note { border-left: 3px solid var(--teal); padding-left: 10px; }
.list ul { list-style: none; padding: 0; margin: 0; }
.list li.game { display: flex; gap: 12px; align-items: center; padding: 12px; margin: 8px 0; border-radius: 14px; background: var(--ink2);
  border: 1px solid var(--line); }
.list li.game .sw { width: 14px; align-self: stretch; border-radius: 6px; flex: none; }
.list li.game .info { flex: 1; min-width: 0; }
.list li.game .name { font-weight: 800; font-size: 1.1rem; }
.list li.game .new { font-size: .75rem; background: var(--rose); color: #2a0f18; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.list li.game .tag { color: var(--dim); font-size: .92rem; }
.list li.game .vid { font-size: .85rem; }
.list li.game .play { flex: none; padding: .55em 1em; }
.list li.game .soon { flex: none; color: var(--dim); font-size: .9rem; }
.list .links { display: flex; gap: 10px; flex-wrap: wrap; }
.list .links a { display: inline-block; padding: 8px 14px; border-radius: 10px; background: var(--ink2); border: 1px solid var(--line); text-decoration: none; }
.list-close { position: fixed; top: calc(12px + var(--safe-t)); right: calc(12px + var(--safe-r)); width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--ink2); font-size: 18px; display: none; }
.list.open .list-close { display: block; }
.noscript { position: fixed; left: 0; right: 0; bottom: 0; padding: 16px; background: var(--ink2); z-index: 40; }

/* ---- game layer ---- */
#game-layer { position: fixed; inset: 0; z-index: 50; background: #07060b; }
#game-frame-host, #game-frame-host iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
#game-frame-host iframe { background: #000; }
#game-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(ellipse at center, var(--g2, #2a2140), #07060b 75%); transition: opacity .35s ease; z-index: 2; }
#game-loading.out { opacity: 0; pointer-events: none; }
.load-card { text-align: center; }
.load-title { font-family: var(--mono); font-weight: 900; font-size: clamp(2rem, 9vw, 3.6rem); color: var(--g1, #fff);
  text-shadow: 0 0 22px var(--g1, #fff); letter-spacing: .03em; }
.load-tag { color: var(--dim); margin: .5em auto 1.4em; max-width: 30em; }
.load-bar { display: flex; gap: 6px; justify-content: center; }
.load-bar i { width: 14px; height: 14px; background: var(--g3, var(--amber)); opacity: .18; border-radius: 2px; animation: fillin 1.6s ease-in-out infinite; }
.load-bar i:nth-child(2) { animation-delay: .1s } .load-bar i:nth-child(3) { animation-delay: .2s } .load-bar i:nth-child(4) { animation-delay: .3s }
.load-bar i:nth-child(5) { animation-delay: .4s } .load-bar i:nth-child(6) { animation-delay: .5s } .load-bar i:nth-child(7) { animation-delay: .6s }
.load-bar i:nth-child(8) { animation-delay: .7s }
@keyframes fillin { 0%, 100% { opacity: .18 } 50% { opacity: .9 } }
.load-text { color: var(--dim); font-size: .9rem; margin-top: 1em; }
#game-ctrls { position: absolute; z-index: 3; top: calc(8px + var(--safe-t)); left: calc(8px + var(--safe-l)); display: flex; flex-direction: column;
  align-items: flex-start; gap: 8px; transition: opacity .6s ease; }
#game-ctrls.corner-tr { left: auto; right: calc(8px + var(--safe-r)); align-items: flex-end; }
#game-ctrls.corner-bl { top: auto; bottom: calc(8px + var(--safe-b)); flex-direction: column-reverse; }
#game-ctrls.corner-br { top: auto; left: auto; bottom: calc(8px + var(--safe-b)); right: calc(8px + var(--safe-r)); flex-direction: column-reverse; align-items: flex-end; }
#game-ctrls.corner-ml { top: 50%; transform: translateY(-50%); }
#game-ctrls.rest { opacity: .86; }
#game-ctrls:hover, #game-ctrls:focus-within { opacity: 1; }
#game-exit, #game-credits { border: 1px solid rgba(255, 255, 255, .55); background: rgba(10, 8, 16, .8); color: #fff; border-radius: 999px; padding: 8px 14px;
  font-weight: 800; font-size: 14px; line-height: 1; min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; }
#game-credits { font-weight: 700; font-size: 13px; min-height: 32px; padding: 6px 12px; border-color: rgba(255, 255, 255, .35); }
#game-exit:hover, #game-exit:focus-visible, #game-credits:hover { background: rgba(40, 30, 55, .9); }
@media (max-width: 500px), (max-height: 500px) { #game-exit { min-height: 44px; min-width: 76px; } #game-credits { min-height: 40px; } }
#game-hint { position: absolute; z-index: 3; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translateX(-50%); background: rgba(10, 8, 16, .85);
  color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; padding: 10px 14px; font-weight: 700; text-align: center; pointer-events: none; max-width: 86vw; }

@media (prefers-reduced-motion: reduce) {
  .load-bar i { animation: none; opacity: .6; }
  .intro, #game-loading { transition: none; }
  .intro-hero, .intro-card, .btn.cta:disabled { animation: none; }
}

/* Poke Defense uses the full original viewport, with one compact floating host control. */
.defense-host #game-ctrls { opacity:.9; }
.defense-host #game-exit { width:44px; min-width:44px; height:44px; min-height:44px; padding:0; justify-content:center; font-size:12px; }
.defense-host #game-hint { display:none; }
#load-retry { margin-top:16px; min-height:44px; }
@media (max-width: 370px) {
  .intro-help.touch li { padding-inline: 2px; font-size: .7rem; }
  .intro-help.touch b { font-size: .8rem; }
}
/* very short phones (iPhone SE 1st gen): smaller logo, no eyebrow, so nothing is cut off */
@media (orientation: portrait) and (max-height: 620px) {
  .intro-eyebrow { display: none; }
  .logo { font-size: clamp(2.3rem, 12vw, 3rem); }
  .intro-sub { margin-bottom: 12px; font-size: .96rem; }
  .is-touch .intro-help.touch { margin-top: 12px; padding-top: 10px; }
  .intro-help svg { display: none; }
}
/* glass round: brighter small labels for contrast on the neutral glass */
.social-label { color: rgba(255, 255, 255, .74); }
.intro-help { color: rgba(255, 255, 255, .78); }
.intro-help.touch li { color: rgba(255, 255, 255, .74); }
/* ---- clear glass (owner: "the glass piece is still grey, make it transparent while still holding its UI") ----
   No grey tint at all: the arcade shows through in its own colours, only softly blurred, so the card reads as a
   clear pane. The rim, the top sheen and a light text shadow keep the edges and the words standing out. */
.intro-card { background: linear-gradient(155deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 40%, rgba(255, 255, 255, .01) 65%, rgba(255, 255, 255, .06));
  -webkit-backdrop-filter: blur(12px) saturate(115%); backdrop-filter: blur(12px) saturate(115%);
  box-shadow: inset 0 1px .5px rgba(255, 255, 255, .55), inset 0 -1px .5px rgba(255, 255, 255, .14), inset 0 0 28px rgba(255, 255, 255, .06), 0 20px 50px rgba(0, 0, 0, .28); }
.intro-card { text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 12px rgba(0, 0, 0, .35); }
.btn.cta, .btn.cta * { text-shadow: none; }
.btn.ghost, .intro-row, .intro-social, .social-icons a {
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.intro-social { border-top-color: rgba(255, 255, 255, .12); }
@media (hover: hover) { .btn.ghost:hover, .intro-row:hover, .social-icons a:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); } }
.intro { background: radial-gradient(120% 75% at 50% 35%, rgba(8, 8, 12, 0), rgba(8, 8, 12, .16) 60%, rgba(6, 6, 10, .42)); }
.intro-card { -webkit-backdrop-filter: blur(9px) saturate(115%); backdrop-filter: blur(9px) saturate(115%); }
/* clear glass, round 2: the tagline holds over bright colours; softer logo backing; one even pane */
.intro-sub { opacity: 1; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 14px rgba(0, 0, 0, .6), 0 0 28px rgba(0, 0, 0, .35); }
.intro-sub span { color: #ffe4c2; font-weight: 700; }
.intro-hero::before { background: radial-gradient(farthest-side, rgba(8, 8, 12, .62), rgba(8, 8, 12, .5) 50%, rgba(8, 8, 12, .18) 78%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.logo .k, .logo .plus, .logo .v { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55)); }
.btn.ghost, .intro-row, .intro-social, .social-icons a { -webkit-backdrop-filter: none; backdrop-filter: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)); }
.intro-card { -webkit-backdrop-filter: blur(9px) saturate(120%) brightness(1.1); backdrop-filter: blur(9px) saturate(120%) brightness(1.1); }
.intro-card::after { background: radial-gradient(120% 50% at 15% 0%, rgba(255, 255, 255, .22), transparent 58%), radial-gradient(90% 40% at 100% 100%, rgba(170, 245, 228, .06), transparent 70%); }
@media (orientation: landscape) and (max-height: 520px) { .intro { padding-inline: max(28px, var(--safe-l)) max(28px, var(--safe-r)); } }
/* ---- round 5 (owner): a bigger CTRL+VIBE that fills the space above the menu, and much more saturated neon ----
   Size is set by the width the wordmark can use (it is about 5.8em wide); ARCADE and the badge scale with it.
   Neon: saturated tube colours with a hot pale core and stacked glows. Static: no flicker. */
.logo { font-size: clamp(3rem, 15.6vw, 7.6rem); }
@media (orientation: landscape) and (max-height: 520px) { .logo { font-size: clamp(2.4rem, 8.2vw, 4.6rem); } }
@media (orientation: portrait) and (max-height: 620px) { .logo { font-size: clamp(2.6rem, 14vw, 3.6rem); } }
.intro-eyebrow { font-size: clamp(.78rem, 2.3vw, .9rem); }
.logo .k { color: #ffe1b0; text-shadow: 0 0 2px #fff3dc, 0 0 6px #ffae3d, 0 0 14px #ff9a1f, 0 0 30px #ff8a00, 0 0 60px rgba(255, 120, 0, .7); }
.logo .plus { color: #ffd0e2; text-shadow: 0 0 2px #fff0f6, 0 0 6px #ff3d8b, 0 0 14px #ff1f7a, 0 0 30px #ff0a6c, 0 0 60px rgba(255, 0, 110, .7); }
.logo .v { color: #d3fff4; text-shadow: 0 0 2px #f2fffb, 0 0 6px #22ffd2, 0 0 14px #00f5c4, 0 0 30px #00e6b8, 0 0 60px rgba(0, 230, 190, .65); }
.logo .k, .logo .plus, .logo .v { filter: none; }
.logo .k { color: #ffb43c; text-shadow: 0 0 1px #fff0d0, 0 0 5px #ffa424, 0 0 12px #ff9300, 0 0 26px #ff8400, 0 0 52px rgba(255, 115, 0, .75); }
.logo .plus { color: #ff4f98; text-shadow: 0 0 1px #ffe2ef, 0 0 5px #ff2e86, 0 0 12px #ff137a, 0 0 26px #ff006c, 0 0 52px rgba(255, 0, 110, .75); }
.logo .v { color: #3fffd6; text-shadow: 0 0 1px #e6fff9, 0 0 5px #1affcf, 0 0 12px #00f2c2, 0 0 26px #00e3b6, 0 0 52px rgba(0, 225, 185, .7); }
@media (orientation: landscape) and (max-height: 520px) { .logo { font-size: clamp(2.4rem, 7.8vw, 4.4rem); } }
/* ---- Enter button: the rainbow wave from the content-video captions (Pulse Wing's .song-now title) ----
   Lavender words; a narrow neon band (pink, gold, mint, cyan, violet) sweeps left to right once every 3.6 s,
   with a thin dark outline. The button itself becomes a dark glass capsule so the wave reads. No flashing;
   under reduced motion the words stay lavender. */
.btn.cta, .btn.cta:disabled { color: #b9aedb; animation: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 55%), rgba(12, 10, 24, .62);
  box-shadow: inset 0 1px .5px rgba(255, 255, 255, .55), inset 0 -1px .5px rgba(255, 255, 255, .12), 0 0 0 1px rgba(185, 174, 219, .28),
    0 8px 26px rgba(0, 0, 0, .35), 0 0 22px rgba(180, 140, 255, .18); }
.btn.cta:not(:disabled):active { transform: scale(.98); }
@media (hover: hover) { .btn.cta:not(:disabled):hover { filter: none; box-shadow: inset 0 1px .5px rgba(255, 255, 255, .6), inset 0 -1px .5px rgba(255, 255, 255, .14), 0 0 0 1px rgba(185, 174, 219, .45), 0 10px 30px rgba(0, 0, 0, .4), 0 0 30px rgba(180, 140, 255, .32); } }
.cta-label { font-weight: 900; letter-spacing: .02em; color: transparent; padding: 2px 0;
  background: linear-gradient(90deg, #b9aedb 0 38%, #ff3d8b 42%, #ffd23f 45.5%, #5dffc8 49%, #23e5ff 52.5%, #b48cff 56%, #b9aedb 60% 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: rainbowPass 3.6s linear infinite;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .55)) drop-shadow(0 1px 1px rgba(0, 0, 0, .55)); }
.btn.cta::after { color: #b9aedb; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .55)); }
.btn.cta:disabled .cta-label { opacity: .8; }
@keyframes rainbowPass { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .cta-label { animation: none; background-position: 0 0; } }
/* the main button keeps top billing: a soft rainbow rim in the caption colours (static, no flashing) */
.btn.cta { position: relative; isolation: isolate; }
.btn.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(90deg, #ff3d8b, #ffd23f, #5dffc8, #23e5ff, #b48cff, #ff3d8b); opacity: .75;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.btn.cta { box-shadow: inset 0 1px .5px rgba(255, 255, 255, .5), 0 8px 26px rgba(0, 0, 0, .35), 0 0 24px rgba(255, 61, 139, .16), 0 0 24px rgba(35, 229, 255, .14); }
.btn.cta .cta-label { font-size: 1.1em; }
/* wide screens: the bigger wordmark sits in front of the room's own signs, so its frosted backing is a little stronger */
@media (min-width: 900px) and (min-height: 600px) {
  .intro-hero::before { inset: -40% -14% -70%; background: radial-gradient(farthest-side, rgba(8, 8, 12, .8), rgba(8, 8, 12, .7) 50%, rgba(8, 8, 12, .3) 78%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
/* round 5 fixes: the Enter capsule gets a faint violet tint so it outranks the list button; on phones the logo
   group sits just above the card and ARCADE is a touch larger; a little top breathing room on the smallest phones */
.btn.cta, .btn.cta:disabled { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 55%), linear-gradient(90deg, rgba(255, 61, 139, .16), rgba(120, 90, 220, .2) 50%, rgba(35, 229, 255, .14)), rgba(14, 10, 30, .62); }
.logo small { font-size: .28em; }
@media (max-width: 560px) and (orientation: portrait) { .intro-hero { margin-top: auto; margin-bottom: clamp(18px, 5vh, 44px); } }
@media (orientation: portrait) and (max-height: 620px) { .intro { padding-top: max(26px, calc(10px + var(--safe-t))); } .intro-hero { margin-bottom: 14px; } }
@media (orientation: portrait) and (max-height: 700px) {
  .logo small { font-size: .24em; margin-top: .6em; }
  .intro-hero { margin-bottom: 12px; }
  .intro-eyebrow { margin-bottom: .7em; }
  .intro { gap: 10px; }
}
@media (orientation: portrait) and (max-height: 620px) { .logo { font-size: clamp(2.4rem, 12.5vw, 3.2rem); } .intro { padding-top: max(20px, calc(8px + var(--safe-t))); } }
@media (orientation: landscape) and (max-height: 520px) { .logo small { font-size: .24em; } }
/* very short sideways phones (iPhone SE/mini landscape): compact card; the thumb hints become one short line */
@media (orientation: landscape) and (max-height: 400px) {
  .intro { padding-top: max(8px, var(--safe-t)); padding-bottom: max(8px, var(--safe-b)); }
  .intro-eyebrow { display: none; }
  .intro-card { padding: 10px 12px 10px; }
  .intro-sub { font-size: .84rem; margin-bottom: 6px; }
  .intro-card .btn { min-height: 44px; font-size: .98rem; }
  .btn.ghost { margin-top: 6px; }
  .is-touch .intro-help.touch { margin-top: 6px; padding-top: 4px; }
  .intro-help.touch li { flex-direction: row; gap: 4px; padding: 2px; font-size: .7rem; }
  .intro-help.touch b { font-size: .74rem; }
  .intro-row { margin-top: 6px; padding: 4px 10px; }
  .intro-row .row-icon { width: 24px; height: 24px; }
  .social-label { display: none; }
  .intro-social { padding: 4px 6px; }
}
@media (orientation: landscape) and (max-height: 340px) { .intro-sub { font-size: .78rem; line-height: 1.2; margin-bottom: 4px; } .intro-card { padding-top: 8px; padding-bottom: 8px; } }
.btn.ghost { text-shadow: 0 1px 2px rgba(0, 0, 0, .75), 0 0 12px rgba(0, 0, 0, .5); }
@media (orientation: landscape) and (max-height: 400px) {
  .logo { font-size: clamp(2rem, 6vw, 3rem); }
  .intro-card { min-width: 300px; }
  .intro-help.touch li { white-space: nowrap; font-size: .66rem; }
}
@media (orientation: landscape) and (max-height: 340px) { .logo { font-size: clamp(1.8rem, 5.4vw, 2.4rem); } .intro-card { min-width: 280px; } }

/* ---- round 6 (owner): the caption rainbow wave on the tagline, the list button and the "How AI agents built"
   row, plus a rainbow band that runs around the whole outer trim of the card. One shared .wave style (the exact
   Pulse Wing .song-now gradient); each line starts a beat after the one above, so the band cascades down the card.
   Outlines use drop-shadow filters (a text-shadow would paint over the clipped gradient). All static under reduced motion. */
.wave, .intro-sub.wave span { color: transparent; text-shadow: none; }
.wave { background: linear-gradient(90deg, #b9aedb 0 38%, #ff3d8b 42%, #ffd23f 45.5%, #5dffc8 49%, #23e5ff 52.5%, #b48cff 56%, #b9aedb 60% 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: rainbowPass 3.6s linear infinite;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .6)) drop-shadow(0 1px 1.5px rgba(0, 0, 0, .6)); }
.intro-sub.wave { animation-delay: -.45s; }        /* the band reaches the tagline first */
.cta-label { animation-delay: -.25s; }
#intro-list .wave { animation-delay: -.05s; }
.intro-row .wave { animation-delay: .25s; }
.btn.ghost { text-shadow: none; }
/* the perimeter: a neon band circles the card's outer trim once every 6 s over a soft lavender rim */
@property --rim { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.intro-card::before { padding: 1.5px; --rim: 0deg;
  background: conic-gradient(from var(--rim), rgba(185, 174, 219, .5) 0 70%, #ff3d8b 75%, #ffd23f 79%, #5dffc8 83%, #23e5ff 87%, #b48cff 91%, rgba(185, 174, 219, .5) 96% 100%);
  animation: rimRun 6s linear infinite; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .25)); }
@keyframes rimRun { to { --rim: 360deg; } }
@media (prefers-reduced-motion: reduce) { .wave, .intro-card::before { animation: none; } .wave { background-position: 0 0; } }
.intro-card::before { padding: 2px; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .3)) drop-shadow(0 0 10px rgba(180, 140, 255, .35)); }
.intro-sub.wave { filter: drop-shadow(0 0 1px rgba(0, 0, 0, .75)) drop-shadow(0 1px 2px rgba(0, 0, 0, .7)) drop-shadow(0 0 8px rgba(0, 0, 0, .35)); font-weight: 600; }
/* performance: each animated wave and the running rim get their own GPU layer, so a frame of the wave repaints only
   that text, not the whole glass card and its blur (measured on a 4x-slowed phone: ~14-32 ms per frame -> ~4-7 ms) */
.wave, .cta-label, .intro-card::before { will-change: transform; transform: translateZ(0); }

/* ---- round 7 (owner) ----
   CTRL takes the orange and VIBE the teal of the owner's autumn-leaves reference (#ef6912 / #049e96), lit as neon tubes;
   the + becomes the rainbow wave; the "Open late" badge gets the card's polish (glass, wave text, running rainbow rim);
   the social buttons wear their real brand colours. */
.logo .k { color: #ff7a24; text-shadow: 0 0 1px #ffd9b8, 0 0 5px #ef6912, 0 0 12px #ef6912, 0 0 26px #e85d00, 0 0 52px rgba(239, 105, 18, .75); }
.logo .v { color: #0fbcb1; text-shadow: 0 0 1px #c8fffb, 0 0 5px #049e96, 0 0 12px #06b3a9, 0 0 26px #049e96, 0 0 52px rgba(4, 158, 150, .75); }
.logo .plus { color: transparent; text-shadow: none; will-change: transform; transform: translateZ(0);
  background: linear-gradient(90deg, #ff3d8b, #ffd23f, #5dffc8, #23e5ff, #b48cff, #ff3d8b, #ffd23f, #5dffc8, #23e5ff, #b48cff, #ff3d8b);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: rainbowPass 3.6s linear infinite;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .45)) drop-shadow(0 0 12px rgba(255, 61, 139, .45)) drop-shadow(0 0 22px rgba(35, 229, 255, .3)); }
/* the badge: clear glass pill, wave text, a rainbow band running around its trim */
.intro-eyebrow { position: relative; isolation: isolate; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)), rgba(10, 10, 16, .25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px .5px rgba(255, 255, 255, .5), 0 4px 14px rgba(0, 0, 0, .25); }
.intro-eyebrow::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--rim), rgba(185, 174, 219, .5) 0 70%, #ff3d8b 75%, #ffd23f 79%, #5dffc8 83%, #23e5ff 87%, #b48cff 91%, rgba(185, 174, 219, .5) 96% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rimRun 4s linear infinite; will-change: transform; transform: translateZ(0); }
.intro-eyebrow .wave { animation-delay: -.8s; }
/* social buttons in their real colours, with the glass highlight kept on top */
.social-icons a { color: #fff; border: 0; }
.social-icons a.sb-youtube { background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%), #ff0000; }
.social-icons a.sb-tiktok { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%), #010101; }
.social-icons a.sb-tiktok svg { filter: drop-shadow(-1.2px -1px 0 #25f4ee) drop-shadow(1.2px 1px 0 #fe2c55); }
.social-icons a.sb-instagram { background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 55%),
  radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-icons a.sb-x { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%), #000; }
.social-icons a { box-shadow: inset 0 1px .5px rgba(255, 255, 255, .45), 0 0 0 1px rgba(255, 255, 255, .14), 0 4px 12px rgba(0, 0, 0, .35); }
@media (hover: hover) { .social-icons a:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; } }
.social-icons a:active { filter: brightness(.92); transform: scale(.96); color: #fff; }
.social-icons a { transition: filter .15s ease, transform .15s ease; }
@media (prefers-reduced-motion: reduce) { .logo .plus, .intro-eyebrow::before { animation: none; } }
/* the +: always the full spectrum (two seamless cycles over 200%, so one whole rainbow is visible and keeps flowing) */
.logo .plus { font-size: 1.08em; margin: 0 .05em;
  background: linear-gradient(90deg, #ff3d6e, #ff8a2a 8.3%, #ffd23f 16.6%, #5dffc8 25%, #23e5ff 33.3%, #b48cff 41.6%, #ff3d6e 50%, #ff8a2a 58.3%, #ffd23f 66.6%, #5dffc8 75%, #23e5ff 83.3%, #b48cff 91.6%, #ff3d6e 100%);
  background-size: 200% 100%; animation: rainbowPass 3s linear infinite;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)) drop-shadow(0 0 6px rgba(255, 255, 255, .35)) drop-shadow(0 0 14px rgba(255, 120, 200, .45)); }
.logo .plus { -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- round 8 (owner): CTRL teal, VIBE a softer orange that sits with the teal; ARCADE in the title's typeface;
   the logo + ARCADE centred in the open space between the badge and the card ---- */
.logo .k { color: #14c4b8; text-shadow: 0 0 1px #d2fffb, 0 0 5px #049e96, 0 0 12px #06b3a9, 0 0 26px #049e96, 0 0 52px rgba(4, 158, 150, .75); }
.logo .v { color: #ffab73; text-shadow: 0 0 1px #fff0e4, 0 0 5px #f59a5e, 0 0 12px #f08a4b, 0 0 26px rgba(240, 138, 75, .8), 0 0 50px rgba(240, 130, 70, .5); }
.logo small { font-family: var(--mono); font-weight: 900; letter-spacing: .38em; padding-left: .38em; }
/* the hero takes the free height; the badge stays at its top and the wordmark group centres in the rest */
.intro-hero { display: flex; flex-direction: column; align-items: center; }
.intro-hero::before { display: none; }
.logo { position: relative; isolation: isolate; }
.logo::before { content: ''; position: absolute; z-index: -1; inset: -45% -14% -40%; pointer-events: none;
  background: radial-gradient(farthest-side, rgba(8, 8, 12, .62), rgba(8, 8, 12, .5) 50%, rgba(8, 8, 12, .18) 78%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: radial-gradient(farthest-side, #000 62%, transparent); mask-image: radial-gradient(farthest-side, #000 62%, transparent); }
@media (min-width: 900px) and (min-height: 600px) { .logo::before { background: radial-gradient(farthest-side, rgba(8, 8, 12, .8), rgba(8, 8, 12, .7) 50%, rgba(8, 8, 12, .3) 78%, transparent); } }
@media (max-width: 560px) and (orientation: portrait) {
  .intro-hero { flex: 1 1 auto; align-self: stretch; margin: 0 0 12px; }
  .intro-hero .logo { margin: auto 0; }
}
.logo::before { inset: -40% -12% -75%; }
@media (min-width: 900px) and (min-height: 600px) { .logo::before { inset: -45% -12% -95%; } .intro-eyebrow { margin-bottom: 1.6em; } }
@media (orientation: landscape) and (max-height: 520px) { .logo::before { inset: -40% -10% -90%; background: radial-gradient(farthest-side, rgba(8, 8, 12, .78), rgba(8, 8, 12, .66) 50%, rgba(8, 8, 12, .25) 78%, transparent); } }
/* portrait: equal spacing above (from the badge) and below (to the card), so the wordmark is truly centred */
@media (max-width: 560px) and (orientation: portrait) { .intro { gap: 0; } .intro-eyebrow { margin-bottom: 16px; } .intro-hero { margin-bottom: 16px; } }
/* round 9 (owner): the AI-story row + "Watch the builds" panel take the Enter button's tint (pink -> violet -> cyan over a
   dark base), as one continuous panel: the gloss only on the top piece, the same horizontal tint in both */
.intro-row, .intro-social {
  background: linear-gradient(90deg, rgba(255, 61, 139, .16), rgba(120, 90, 220, .2) 50%, rgba(35, 229, 255, .14)), rgba(14, 10, 30, .62); }
.intro-row { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%), linear-gradient(90deg, rgba(255, 61, 139, .16), rgba(120, 90, 220, .2) 50%, rgba(35, 229, 255, .14)), rgba(14, 10, 30, .62); }
.intro-social { border-top-color: rgba(255, 255, 255, .1); }
/* iPhone entrance fit r001: bound decorative paint and reflow the shortest screens. */
@media (max-width: 560px), (max-height: 520px) {
  .intro .logo::before { inset: 0; }
}
@media (max-width: 560px) and (orientation: portrait) and (max-height: 760px) {
  .intro-card { padding: 14px 14px 12px; flex-shrink: 0; }
  .intro-sub { font-size: .95rem; margin-bottom: 10px; }
  .intro-card .btn { min-height: 44px; padding: .5em .8em; font-size: 1rem; }
  .intro-card .btn.ghost { margin-top: 8px; }
  .is-touch .intro-help.touch { margin-top: 10px; padding-top: 8px; }
  .intro-row { margin-top: 10px; padding: 8px 10px; min-height: 44px; }
  .intro-social { padding: 6px 8px; gap: 4px; }
}
@media (orientation: landscape) and (max-height: 340px) {
  .intro { gap: 12px; }
  .intro-hero { flex: 1 1 0; min-width: 0; }
  .intro-hero .logo { font-size: clamp(1.8rem, 4vw, 2.5rem); }
  .intro-card { flex: 0 0 66%; min-width: 400px; max-width: 560px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; padding: 8px; }
  .intro-sub, .intro-help { grid-column: 1 / -1; }
  .intro-sub { margin-bottom: 0; max-width: none; font-size: .82rem; }
  .intro-card .btn { min-height: 44px; padding: 5px 8px; font-size: .9rem; }
  .intro-card .btn.ghost { margin-top: 0; }
  .is-touch .intro-help.touch { margin-top: 0; padding-top: 4px; }
  .intro-row { margin-top: 0; padding: 4px 6px; gap: 6px; font-size: .8rem; min-height: 44px; border-radius: 16px; }
  .intro-row .row-icon { flex-shrink: 0; }
  .intro-social { padding: 2px; gap: 2px; border-radius: 16px; }
  .intro-social .social-label { display: block; font-size: .55rem; }
  .intro-social .social-icons { gap: 2px; }
}
@media (hover: hover) { .intro-row:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04) 70%), linear-gradient(90deg, rgba(255, 61, 139, .22), rgba(120, 90, 220, .26) 50%, rgba(35, 229, 255, .2)), rgba(14, 10, 30, .62); } }
.intro-row:active { background: linear-gradient(90deg, rgba(255, 61, 139, .26), rgba(120, 90, 220, .3) 50%, rgba(35, 229, 255, .24)), rgba(14, 10, 30, .62); }

/* Owner-approved title vibrance: same teal/orange hues and glow geometry. */
.logo .k { color: #00e9da; text-shadow: 0 0 1px #9afff4, 0 0 5px #00d4c6, 0 0 12px #00cdbf, 0 0 26px #00b9ad, 0 0 52px rgba(0, 190, 176, .85); }
.logo .v { color: #ff913d; text-shadow: 0 0 1px #ffd0a6, 0 0 5px #ff8426, 0 0 12px #ff781a, 0 0 26px rgba(255, 116, 20, .9), 0 0 50px rgba(255, 106, 10, .65); }

/* Approved title fit r001: natural letter proportions; 4px clearance each side.
   The existing monospace wordmark occupies less than 5.6em including the plus, with .01em letter spacing.
   Viewport sizing remains a fallback for engines without container units. */
.intro-hero { width: min(100%, 900px); container-type: inline-size; }
.intro-hero .logo { flex-wrap: nowrap; white-space: nowrap; letter-spacing: .01em; font-size: min(159px, calc(17.85vw - 8px)); }
.logo > span { flex-shrink: 0; }
@media (orientation: landscape) and (max-height: 520px) {
  .intro-hero { width: auto; flex: 1 1 0; min-width: 0; }
  .intro-hero .logo { font-size: calc(5vw - 4px); }
}
@supports (font-size: 1cqw) {
  .intro-hero .logo { font-size: calc(17.85cqw - 1.45px); }
}

/* Owner-approved three-row stagger; fit both available dimensions. */
.intro-hero { container-type: size; --stack-reserve: 19px; height: clamp(220px, 35vh, 330px); }
.intro-hero .logo { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .04em; line-height: .9; margin: auto 0; font-size: min(28vw, 9vh); }
.logo .k { transform: translateX(-.2em); }
.logo .v { transform: translateX(.35em); }
.logo .plus { font-size: .7em; margin: 0; }
@media (max-width: 560px) and (orientation: portrait) {
  .intro-hero { height: auto; flex: 1 1 0; min-height: 0; }
  .intro-hero .logo { font-size: min(28vw, 7vh); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .intro-hero { height: auto; align-self: stretch; justify-content: center; }
  .intro-hero .logo { font-size: min(9vw, 18vh); }
}
@supports (font-size: 1cqh) {
  .intro-hero .logo { font-size: min(calc(32cqw - 3px), calc(36cqh - var(--stack-reserve))); }
}

/* Existing short-screen rules hide the badge: reclaim its height reservation. */
@media (orientation: portrait) and (max-height: 620px),
       (orientation: landscape) and (max-height: 400px) {
  .intro-hero { --stack-reserve: 3px; }
}

/* Final fit refinement: reuse compact card spacing for short desktop windows.
   Content and 44px primary targets remain intact; phone layouts are unchanged. */
@media (min-width: 561px) and (min-height: 521px) and (max-height: 640px) {
  .intro-card { padding: 14px 14px 12px; flex-shrink: 0; }
  .intro-sub { font-size: .95rem; margin-bottom: 10px; }
  .intro-card .btn { min-height: 44px; padding: .5em .8em; font-size: 1rem; }
  .intro-card .btn.ghost { margin-top: 8px; }
  .intro-help.desk { margin-top: 10px; padding-top: 8px; gap: 6px 12px; }
  .intro-row { margin-top: 10px; padding: 8px 10px; min-height: 44px; }
  .intro-social { padding: 6px 8px; gap: 4px; }
}
