:root {
  --ink: #171a20;
  --muted: #646b77;
  --quiet: #9097a2;
  --paper: #f4f5f6;
  --snow: #fff;
  --well: #f7f8f9;
  --lan: #0700f9;
  --graphic: #ff4b16;
  --ascii: #ebd900;
  --task: #19c526;
  --shadow-btn: 5px 5px 9px rgb(124 134 148 / .34), -5px -5px 10px #fff, inset 1px 1px 2px #fff;
  --shadow-inset: inset 5px 5px 10px rgb(130 140 153 / .3), inset -5px -5px 10px #fff;
  --shadow-raised: 10px 10px 20px rgb(131 141 155 / .3), -9px -9px 20px #fff, inset 2px 2px 3px #fff, inset -2px -2px 4px rgb(156 165 179 / .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 640px at 50% 44%, #fff 0%, #f4f5f6 52%, #e8ebf0 100%);
}
button { font: inherit; cursor: pointer; color: inherit; border: 0; background: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--lan); outline-offset: 6px; }
.gate { position: relative; display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; overflow: hidden; padding: 24px; }
.kicker { position: absolute; top: 32px; left: 50%; margin: 0; transform: translateX(-50%); font: 10px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.gate-stage { position: relative; display: grid; width: min(1120px, 100%); place-items: center; }
.stack { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.runner-info { --info-color: var(--task); position: absolute; left: 0; top: 50%; z-index: 3; display: grid; width: min(300px, 27vw); gap: 10px; padding: 16px; border: 1px solid rgb(255 255 255 / .9); border-radius: 22px; background: linear-gradient(145deg, #fff, #f1f3f6); box-shadow: var(--shadow-raised); opacity: 0; transform: translate(-12px, -50%) scale(.98); transition: opacity 320ms ease, transform 420ms var(--ease); }
.runner-info[hidden] { display: none; }
.runner-info.is-visible { opacity: 1; transform: translate(0, -50%) scale(1); }
.runner-info::before { position: absolute; top: 18px; bottom: 18px; left: -1px; width: 4px; border-radius: 0 5px 5px 0; background: var(--info-color); content: ""; }
.runner-info[data-runner="graphic"] { --info-color: var(--graphic); }
.runner-info[data-runner="ascii"] { --info-color: var(--ascii); }
.runner-info[data-runner="lan"] { --info-color: var(--lan); }
.runner-info[data-runner="task-plus"] { --info-color: var(--task); }
.runner-info-top { display: flex; align-items: center; gap: 12px; }
.runner-info-icon { display: block; width: clamp(72px, 9vw, 104px); height: auto; aspect-ratio: 1; flex: 0 0 auto; border: 1px solid rgb(23 26 32 / .12); border-radius: 14px; box-shadow: 4px 5px 10px rgb(124 134 148 / .22), -3px -3px 8px #fff; }
.runner-info-id { display: grid; gap: 7px; }
.runner-info-number { color: var(--quiet); font: 10px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; }
.runner-info-chip { width: fit-content; padding: 5px 7px; border-radius: 6px; background: color-mix(in srgb, var(--info-color) 16%, white); color: var(--ink); font: 700 9px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; }
.runner-info-title { margin: 2px 0 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.1; letter-spacing: -.045em; }
.runner-info-copy, .runner-info-audience { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.runner-info-audience { padding-top: 8px; border-top: 1px solid rgb(100 107 119 / .16); font-size: 11px; }
.runner-info-audience strong { color: var(--ink); }
.runner-info-link { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; padding: 0 13px; border-radius: 11px; background: linear-gradient(145deg, #fff, #eef1f4); box-shadow: var(--shadow-btn); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .025em; text-decoration: none; transition: box-shadow 180ms var(--ease), transform 180ms var(--ease); }
.runner-info-link:hover { box-shadow: var(--shadow-inset); transform: translateY(-1px); }
.runner-info-link span { color: var(--info-color); font-size: 16px; }
.orbit { position: relative; display: grid; width: min(72vw, 480px); aspect-ratio: 1; place-items: center; border-radius: 999px; background: #f3f4f6; box-shadow: inset 18px 18px 36px rgb(130 140 153 / .28), inset -16px -16px 32px #fff; animation: breathe 6s ease-in-out infinite; transition: width 650ms var(--ease), aspect-ratio 650ms var(--ease), border-radius 650ms var(--ease), box-shadow 650ms var(--ease); }
.core { position: relative; isolation: isolate; display: grid; width: 62%; aspect-ratio: 1; place-items: center; overflow: hidden; padding: 0; border: 0; border-radius: 999px; background: linear-gradient(145deg, #fff, #eef1f4); box-shadow: 16px 16px 32px rgb(124 134 148 / .32), -14px -14px 28px #fff, inset 2px 2px 3px #fff; transition: box-shadow 900ms var(--ease), transform 180ms var(--ease); }
.core::before { position: absolute; z-index: 0; inset: 0; content: ""; border-radius: inherit; background: var(--runner-flash, #fff); opacity: 0; transition: opacity 900ms var(--ease); }
.core.is-flashing::before { opacity: 1; transition-duration: 140ms; }
.core.is-flashing { box-shadow: 16px 16px 32px color-mix(in srgb, var(--runner-flash) 28%, transparent), -14px -14px 28px #fff, inset 2px 2px 3px rgb(255 255 255 / .55); }
.core.is-flashing[data-runner="lan"] .mark { color: #fff; }
.core:hover { transform: scale(1.015); }
.core:active { transform: scale(.985); }
.mark { position: relative; z-index: 1; padding-right: .12em; color: var(--ink); font-size: clamp(64px, 14vw, 120px); font-weight: 600; letter-spacing: -.14em; line-height: 1; transition: color 180ms ease; }
.pong[hidden] { display: none; }
.pong { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 8px; padding: clamp(10px, 2vw, 18px); opacity: 0; transform: scale(.94); transition: opacity 360ms ease 180ms, transform 500ms var(--ease) 120ms; }
.pong-canvas { display: block; width: 100%; height: 100%; min-height: 0; border-radius: 12px; touch-action: none; outline: none; }
.pong-canvas:focus-visible { box-shadow: 0 0 0 3px var(--lan); }
.pong-score { display: flex; justify-content: space-between; padding: 0 4px; color: var(--muted); font: 600 11px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; }
.pong-score b { margin-left: 6px; color: var(--ink); font-size: 15px; }
.pong-help { margin: 0; color: var(--muted); text-align: center; font-size: clamp(9px, 1.8vw, 12px); line-height: 1.35; }
.pong-reset { justify-self: center; min-height: 38px; padding: 0 18px; border-radius: 11px; background: linear-gradient(145deg, #fff, #eef1f4); box-shadow: var(--shadow-btn); font-size: 12px; font-weight: 700; }
.pong-reset[hidden] { display: none; }
.orbit.pong-active { width: min(88vw, 720px); aspect-ratio: 16 / 9; border-radius: 24px; animation: none; }
.orbit.pong-active .core { position: absolute; left: 10%; top: var(--player-y, 50%); z-index: 2; width: 9px; height: 56px; border-radius: 6px; transform: translateY(-50%); background: var(--lan); box-shadow: 0 0 14px color-mix(in srgb, var(--lan) 40%, transparent); animation: pong-paddle-in 520ms var(--ease) both; transition: top 55ms linear; }
.orbit.pong-active .core::before { display: none; }
.orbit.pong-live .core { opacity: 0; pointer-events: none; }
.orbit.pong-active .mark { position: absolute; right: -2px; top: 50%; color: var(--lan); font-size: 18px; transform: translate(100%, -50%); animation: pong-mark-in 520ms var(--ease) both; }
.orbit.pong-active .pong { opacity: 1; transform: scale(1); pointer-events: auto; }
.orbit.pong-active .pong-canvas { visibility: visible; }
.orbit.pong-active .pong-reset:not([hidden]) { position: absolute; z-index: 3; bottom: 42px; left: 50%; transform: translateX(-50%); }
@keyframes pong-paddle-in { 0% { left: 50%; top: 50%; width: 100px; height: 100px; border-radius: 50%; } 65% { left: 10%; width: 6px; height: 76px; } 100% { left: 10%; width: 9px; height: 56px; border-radius: 6px; } }
@keyframes pong-mark-in { 0%, 30% { right: 50%; font-size: clamp(64px, 14vw, 120px); transform: translate(50%, -50%) rotate(0); } 100% { right: -2px; font-size: 18px; transform: translate(100%, -50%) rotate(90deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.neo-cta { min-height: 56px; min-width: 220px; padding: 0 40px; border-radius: 12px; background: linear-gradient(145deg, #fff, #eef1f4); box-shadow: var(--shadow-btn); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-decoration: none; transition: box-shadow 200ms var(--ease); }
.neo-cta:hover { box-shadow: var(--shadow-inset); }
.neo-cta:active { box-shadow: inset 4px 4px 8px rgb(184 192 203 / .33), -4px -4px 8px #fff; }
.gate-dialog { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); max-height: 90vh; max-height: 90dvh; overflow: auto; padding: 48px 24px 24px; border: 0; border-radius: 30px; background: linear-gradient(135deg, var(--paper), var(--snow) 70%); box-shadow: var(--shadow-raised); text-align: center; color: var(--ink); }
.gate-dialog:not([open]) { display: none; }
.gate-dialog::backdrop { background: rgb(244 245 246 / .7); }
.skip { position: absolute; top: 14px; right: 16px; min-height: 40px; min-width: unset; padding: 10px 16px; font-size: 11px; letter-spacing: .06em; }
.note { margin: 0 auto 16px; max-width: 40ch; font-size: 12px; line-height: 1.6; color: var(--muted); }
.thanks-message { max-width: 38ch; margin: 20px auto; padding: 18px 22px; border-radius: 18px; background: var(--well); box-shadow: var(--shadow-inset); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.55; }
.thanks-message[hidden] { display: none; }
.form-well { position: relative; min-height: 300px; overflow: hidden; border-radius: 22px; background: var(--well); box-shadow: var(--shadow-inset); }
.form-well iframe { display: block; width: 100% !important; min-width: 0; max-width: 100%; height: 340px; border: 0; background: var(--well); }
.loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font: 11px ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; pointer-events: none; }
.form-well.is-ready .loading { display: none; }
.coffee { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.coffee a { color: var(--ink); }
@keyframes breathe { 50% { transform: scale(1.02); } }
@media (max-width: 520px) {
  .gate { padding: 16px; }
  .stack { gap: 28px; }
  .orbit { width: min(76vw, 360px); }
  .orbit.pong-active { width: min(94vw, 520px); aspect-ratio: 4 / 3; border-radius: 18px; }
  .pong { gap: 6px; padding: 10px; }
  .gate-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 64px 14px 18px; border-radius: 26px; }
  .skip { top: 12px; right: 12px; }
  .note { padding: 0 28px; margin-bottom: 14px; }
  .form-well { min-height: 260px; }
  .form-well iframe { width: 100% !important; max-width: 100%; height: 300px; }
  .coffee { margin-top: 14px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .orbit { width: min(40vw, 400px); }
  .runner-info { width: min(27vw, 270px); padding: 14px; }
}
@media (max-width: 760px) {
  .gate { overflow: visible; min-height: 100vh; min-height: 100dvh; padding: 76px 16px 30px; }
  .gate-stage { display: flex; flex-direction: column; gap: 26px; }
  .stack { order: 0; gap: 28px; }
  .runner-info { position: relative; top: auto; left: auto; order: 1; width: min(420px, 100%); transform: translateY(10px) scale(.99); }
  .runner-info.is-visible { transform: translateY(0) scale(1); }
  .runner-info-icon { width: 88px; }
  .orbit { width: min(76vw, 360px); }
  .orbit.pong-active { width: min(94vw, 520px); }
}
.orbit.plus-reveal { animation: none; }
.orbit.plus-reveal::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; pointer-events: none; background: conic-gradient(from 0deg, transparent 0deg 225deg, rgb(25 197 38 / .04) 245deg, rgb(25 197 38 / .75) 285deg, rgb(213 255 219 / .95) 298deg, transparent 325deg); mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); animation: plus-orbit-light 3.4s cubic-bezier(.2,.7,.2,1) both; }
.orbit.plus-reveal::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; pointer-events: none; box-shadow: 0 0 35px rgb(25 197 38 / .13), inset 0 0 23px rgb(25 197 38 / .08); animation: plus-halo 3.4s ease both; }
.core[data-runner="ascii"].is-flashing .mark { color: #ec4c78; }
.core[data-runner="task-plus"] { background: linear-gradient(145deg, #fff, #f5f7f9); }
.core[data-runner="task-plus"].is-flashing { box-shadow: 16px 16px 32px rgb(124 134 148 / .32), -14px -14px 28px #fff, inset 2px 2px 3px #fff; }
.core[data-runner="task-plus"]::before { background: #fff; }
.plus-reveal .core::after { content: ""; position: absolute; z-index: 2; inset: -35%; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgb(25 197 38 / .02) 43%, rgb(25 197 38 / .24) 49%, rgb(238 255 240 / .85) 51%, transparent 59%); animation: plus-surface-light 2.8s cubic-bezier(.22,1,.36,1) both; }
.plus-reveal .mark { animation: plus-mark-light 3.4s ease both; }
.runner-info[data-runner="task-plus"] { --info-color: #159c24; background: linear-gradient(145deg, #fff, #f7f9fa); box-shadow: 12px 12px 25px rgb(131 141 155 / .28), -9px -9px 20px #fff, inset 2px 2px 3px #fff, inset -1px -1px 3px rgb(156 165 179 / .14); }
.runner-info[data-runner="task-plus"]::before { background: linear-gradient(180deg, #fff, #d6fadd 30%, #19c526 50%, #f1fff3 70%, #fff); }
.runner-info[data-runner="task-plus"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(125deg, transparent 30%, rgb(25 197 38 / .06) 45%, rgb(255 255 255 / .65) 50%, transparent 60%); background-size: 250% 100%; animation: plus-card-light 2.8s cubic-bezier(.22,1,.36,1) both; }
.runner-info[data-runner="task-plus"] .runner-info-icon { border: 0; background: #fff; padding: 10px; box-shadow: inset 4px 4px 9px #e0e5e9, inset -4px -4px 9px #fff; }
.runner-info[data-runner="task-plus"] .runner-info-chip { background: #fff; box-shadow: inset 2px 2px 4px #e3e8ed, inset -2px -2px 4px #fff; color: #526159; }
@keyframes plus-orbit-light { 0% { transform: rotate(-120deg); opacity: 0; } 18% { opacity: 1; } 75% { opacity: .65; } 100% { transform: rotate(250deg); opacity: 0; } }
@keyframes plus-halo { 0%,100% { opacity: 0; transform: scale(.96); } 35% { opacity: 1; transform: scale(1.04); } }
@keyframes plus-surface-light { 0% { transform: translateX(-65%); opacity: 0; } 18% { opacity: 1; } 80% { opacity: .8; } 100% { transform: translateX(65%); opacity: 0; } }
@keyframes plus-mark-light { 0%,100% { color: var(--ink); text-shadow: none; } 32%,50% { color: #159c24; text-shadow: 0 0 18px rgb(25 197 38 / .16); } }
@keyframes plus-card-light { 0% { background-position: 100% 0; opacity: 0; } 20% { opacity: 1; } 100% { background-position: 0 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .orbit.plus-reveal::before, .orbit.plus-reveal::after, .plus-reveal .core::after, .plus-reveal .mark, .runner-info[data-runner="task-plus"]::after { animation: none; }
  .orbit.plus-reveal::before, .orbit.plus-reveal::after, .plus-reveal .core::after, .runner-info[data-runner="task-plus"]::after { display: none; }
  .orbit, .core, .core::before, .mark, .pong, .runner-info, .runner-info-link { animation: none; transition: none; }
}
