/* Noodles by KG3: one stage that re-molds itself. Each [data-scene] sets palette, grid and type.
   scenes.js switches the scene (inside a View Transition when supported); rope.js bends the rope. */

:root {
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --draw: 3.4s;
  --gutter: clamp(16px, 4vw, 48px);
  --morph: 1.1s;
  --ease: cubic-bezier(.65, 0, .25, 1);

  /* marquee palette is the default */
  --bg: #060507; --ink: #f5ede5; --muted: #a69b91; --accent: #ffb36b; --line: rgba(255, 196, 140, 0.14);
  --glow-o: 0.55; --haze: rgba(255, 140, 60, 0.2); --btn-ink: #1a0d05;
}

[data-scene="sheet"]   { --bg: #050c1a; --ink: #e8f2ff; --muted: #8ea6c6; --accent: #62d6ff; --line: rgba(98, 214, 255, 0.22); --glow-o: 0.5; --haze: rgba(40, 120, 255, 0.18); --btn-ink: #03111f; }
[data-scene="swag"]    { --bg: #10030d; --ink: #ffeaf8; --muted: #c79bbb; --accent: #ff5cd6; --line: rgba(255, 92, 214, 0.22); --glow-o: 0.6; --haze: rgba(255, 40, 200, 0.16); --btn-ink: #22001a; }
[data-scene="menu"]    { --bg: #f6eddc; --ink: #2b1510; --muted: #7b5a4b; --accent: #c4352a; --line: rgba(43, 21, 16, 0.16); --glow-o: 0; --haze: rgba(255, 255, 255, 0.5); --btn-ink: #fff6ea; --basil: #2f7a4b; }
[data-scene="console"] { --bg: #040704; --ink: #d9ffe3; --muted: #6f9479; --accent: #43ff8f; --line: rgba(67, 255, 143, 0.2); --glow-o: 0.5; --haze: rgba(40, 255, 120, 0.08); --btn-ink: #02160a; }
[data-scene="poster"]  { --bg: #0b0618; --ink: #ffffff; --muted: #b3a8cc; --accent: #c39bff; --line: rgba(195, 155, 255, 0.22); --glow-o: 0.6; --haze: rgba(140, 80, 255, 0.2); --btn-ink: #12062b; }

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color var(--morph) var(--ease), color var(--morph) var(--ease);
}
a { color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.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; }

/* ---------- stage ---------- */

.stage { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }

.haze {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70vmax 40vmax at 50% 30%, var(--haze), transparent 70%);
  opacity: 0; animation: haze-up 2.4s ease-out calc(var(--draw) - 0.6s) forwards;
}
@keyframes haze-up { to { opacity: 1; } }

.rope { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.rope-glow { filter: blur(14px); }
.live .rope-tube { opacity: 1; }
.live .rope-glow { opacity: var(--glow-o); transition: opacity var(--morph) var(--ease); }

.bar, .layout, .foot { position: relative; z-index: 1; }

/* ---------- chrome (same in every look) ---------- */

.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px var(--gutter); }
.brand { margin: 0; font: 400 22px/1 var(--serif); white-space: nowrap; }
.brand-by { font: 500 13px/1 var(--sans); letter-spacing: 0.04em; color: var(--muted); }
.looks { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.look-name { white-space: nowrap; }
.dots { display: flex; gap: 6px; }
.dot {
  position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: color-mix(in srgb, var(--ink) 28%, transparent); overflow: hidden;
  transition: width 0.4s var(--ease), background-color 0.4s;
}
.dot[aria-current="true"] { width: 30px; }
.dot[aria-current="true"]::after {
  content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left;
  animation: fill var(--hold, 9s) linear forwards;
}
.paused .dot[aria-current="true"]::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dot:focus-visible, .pause:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pause {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.pause i { width: 9px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.paused .pause i { width: 0; height: 0; border: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; margin-left: 3px; }

.foot { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px var(--gutter) 22px; color: var(--muted); }
.foot p { margin: 0; text-transform: none; letter-spacing: 0.02em; font-size: 11.5px; }
.foot p span { opacity: 0.5; padding: 0 4px; }
.foot-logo img { display: block; width: 56px; height: auto; }

/* ---------- content blocks (hidden unless a look asks for them) ---------- */

.layout {
  flex: 1; width: min(100% - 2 * var(--gutter), var(--max, 940px)); margin: 0 auto;
  display: grid; align-content: center; gap: 0 48px; padding: 2vh 0 4vh;
}
.wm, .by, .slot, .specs, .uses, .menu, .cues, .patch { display: none; }

.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); margin: 0 0 14px; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 2.2s steps(1) infinite; }
@keyframes blink { 60% { opacity: 0.25; } }

.headline { font: 400 clamp(40px, 6.4vw, 76px)/1.02 var(--serif); letter-spacing: -0.01em; margin: 0 0 18px; }
.headline em { white-space: nowrap; color: var(--accent); text-shadow: 0 0 28px color-mix(in srgb, var(--accent) 45%, transparent); }
.lede { color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.lede:empty { display: none; }

.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; transition: box-shadow 0.25s, transform 0.25s;
}
.btn-hot { background: var(--accent); color: var(--btn-ink); box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-hot:hover { transform: translateY(-1px); box-shadow: 0 0 44px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-line { border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 3%, transparent); }
.btn-line:hover { border-color: var(--accent); }

/* wordmark (intro draw-on lives in SVG; rope.js takes over on canvas after power-up) */
.wm { width: 100%; }
.wordmark { display: block; width: 100%; height: auto; overflow: visible; -webkit-box-reflect: below -4% linear-gradient(transparent 55%, rgba(0, 0, 0, 0.16)); }
.s { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw var(--draw) cubic-bezier(.55, .1, .35, 1) 0.4s forwards; }
.s-bloom { stroke: #ff9a45; stroke-width: 24; opacity: 0.45; filter: url(#bloom); --lit: 0.6; }
.s-halo  { stroke: #ffb27a; stroke-width: 14; opacity: 0.5; filter: url(#soft); --lit: 0.72; }
.s-tube  { stroke: #ffcf9c; stroke-width: 9; }
.s-core  { stroke: #fff7ee; stroke-width: 3.2; opacity: 0.9; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.s-bloom, .s-halo { animation: draw var(--draw) cubic-bezier(.55, .1, .35, 1) 0.4s forwards, power 1.1s linear calc(var(--draw) + 0.4s) forwards; }
@keyframes power { 0% { opacity: 0.55; } 8% { opacity: 0.2; } 16% { opacity: 0.8; } 24% { opacity: 0.35; } 40%, 100% { opacity: var(--lit, 0.7); } }
.s-chase { stroke: #fff; stroke-width: 7; opacity: 0; stroke-dasharray: 0.045 0.955; stroke-dashoffset: 1; filter: url(#soft); animation: chase 7s linear calc(var(--draw) + 1.6s) infinite; }
@keyframes chase { 0% { stroke-dashoffset: 1.05; opacity: 0.85; } 100% { stroke-dashoffset: 0; opacity: 0.85; } }
.cap-b { opacity: 0; animation: cap-in 0.3s ease-out calc(var(--draw) + 0.3s) forwards; }
@keyframes cap-in { to { opacity: 1; } }
.warm, .cap { transition: opacity 1.4s ease; }
.live .warm, .live .cap { opacity: 0; }
.live .wordmark { -webkit-box-reflect: unset; }

.by { margin: -0.3em 3% 0 0; justify-self: end; font: 500 clamp(15px, 2.1vw, 22px)/1 var(--sans); letter-spacing: 0.04em; opacity: 0.9; }
.by b { font-weight: 600; }

/* spec table */
.specs { border-collapse: collapse; width: 100%; font: 400 15px/1.3 var(--sans); }
.specs th, .specs td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.specs thead th { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.specs tbody th { font: 600 16px/1.2 var(--sans); }
.specs td { font-family: var(--mono); font-size: 13.5px; color: var(--accent); }
.specs tfoot td { font: 400 12.5px/1.5 var(--sans); color: var(--muted); white-space: normal; border: 0; padding-top: 14px; }

/* uses */
.uses { list-style: none; margin: 0 0 28px; padding: 0; flex-wrap: wrap; gap: 8px; }
.uses li { border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-size: 14px; color: var(--ink); background: color-mix(in srgb, var(--accent) 7%, transparent); }

/* pasta menu */
.menu { list-style: none; margin: 8px 0 30px; padding: 0; text-align: left; }
.menu li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 0 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu b { font: 400 30px/1.1 var(--serif); }
.menu i { border-bottom: 2px dotted color-mix(in srgb, var(--ink) 35%, transparent); transform: translateY(-6px); }
.menu span { font: 500 13px/1 var(--mono); color: var(--accent); letter-spacing: 0.04em; }
.menu small { grid-column: 1 / -1; color: var(--muted); font-size: 15px; margin-top: 4px; }

/* console */
.cues { list-style: none; margin: 4px 0 22px; padding: 0; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px; }
.cues button { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.cues button:hover { border-color: var(--accent); color: var(--ink); }
.cues button.on { background: var(--accent); border-color: var(--accent); color: var(--btn-ink); }
.cues button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.patch { border-collapse: collapse; margin: 0 0 22px; font-size: 12px; }
.patch th, .patch td { padding: 6px 18px 6px 0; text-align: left; border-bottom: 1px dashed var(--line); font-weight: 400; }
.patch thead th { color: var(--muted); }
.patch td { color: var(--accent); }
.slot { width: 100%; aspect-ratio: 1; max-width: 440px; justify-self: center; }

/* ---------- looks ---------- */

/* 1 marquee: centered word */
[data-scene="marquee"] .layout { --max: 940px; justify-items: center; text-align: center; grid-template-areas: "wm" "by" "eyebrow" "headline" "lede" "ctas"; }
[data-scene="marquee"] .wm, [data-scene="marquee"] .by { display: block; }
[data-scene="marquee"] .wm { grid-area: wm; margin-bottom: 4vh; }
[data-scene="marquee"] .by { grid-area: by; margin-bottom: 4vh; }
[data-scene="marquee"] .eyebrow { justify-content: center; }
[data-scene="marquee"] .lede { margin-inline: auto; }
[data-scene="marquee"] .ctas { justify-content: center; }

/* 2 spec sheet: copy left, framed table right */
[data-scene="sheet"] .layout { --max: 1140px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "eyebrow specs" "headline specs" "lede specs" "ctas specs"; align-items: start; }
[data-scene="sheet"] .specs { display: table; grid-area: specs; align-self: center; margin: 24px 0; }
[data-scene="sheet"] .headline { font: 600 clamp(38px, 5vw, 64px)/1.02 var(--sans); letter-spacing: -0.035em; }
[data-scene="sheet"] .headline em { font-style: normal; }

/* 3 on the truss: swags overhead, big copy low-left */
[data-scene="swag"] .layout { --max: 1140px; align-content: end; padding-top: max(30vh, 200px); padding-bottom: 6vh; grid-template-areas: "eyebrow" "headline" "lede" "uses" "ctas"; }
[data-scene="swag"] .uses { display: flex; grid-area: uses; }
[data-scene="swag"] .headline { font-size: clamp(52px, 9vw, 128px); line-height: 0.95; font-style: italic; }

/* 4 noodle bar: light pasta-brand menu board */
[data-scene="menu"] { color-scheme: light; }
[data-scene="menu"] .layout { --max: 600px; text-align: center; padding-top: 12vh; grid-template-areas: "eyebrow" "headline" "menu" "ctas"; }
[data-scene="menu"] .menu { display: block; grid-area: menu; }
[data-scene="menu"] .eyebrow { justify-content: center; color: var(--basil); }
[data-scene="menu"] .eyebrow .led { background: var(--basil); box-shadow: none; }
[data-scene="menu"] .headline em { text-shadow: none; }
[data-scene="menu"] .btn-hot { box-shadow: none; }
[data-scene="menu"] .ctas { justify-content: center; }

/* 5 console: cue list + patch left, coil right */
[data-scene="console"] .layout { --max: 1140px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "eyebrow slot" "headline slot" "cues slot" "patch slot" "lede slot" "ctas slot"; align-items: start; }
[data-scene="console"] .slot { display: block; grid-area: slot; align-self: center; }
[data-scene="console"] .cues { display: grid; grid-area: cues; }
[data-scene="console"] .patch { display: table; grid-area: patch; }
[data-scene="console"] .headline { font: 500 clamp(32px, 4.6vw, 58px)/1.05 var(--mono); letter-spacing: -0.03em; text-transform: uppercase; }
[data-scene="console"] .headline em { font-style: normal; }
[data-scene="console"] .lede { font-size: 15px; }

/* 6 poster: huge type, rope loops the CTA */
[data-scene="poster"] .layout { --max: 1180px; justify-items: center; text-align: center; grid-template-areas: "eyebrow" "headline" "lede" "ctas"; }
[data-scene="poster"] .eyebrow { justify-content: center; }
[data-scene="poster"] .headline { font-size: clamp(56px, 11vw, 168px); line-height: 0.9; margin-bottom: 26px; }
[data-scene="poster"] .ctas { justify-content: center; margin-top: 14px; gap: 40px; }
[data-scene="poster"] .btn { min-height: 58px; padding: 0 32px; font-size: 17px; }

/* grid areas used by every look */
.eyebrow { grid-area: eyebrow; } .headline { grid-area: headline; } .lede { grid-area: lede; } .ctas { grid-area: ctas; }

/* ---------- morph (View Transitions) ---------- */

.brand { view-transition-name: brand; } .looks { view-transition-name: looks; } .foot { view-transition-name: foot; }
.wm { view-transition-name: wm; } .by { view-transition-name: by; } .slot { view-transition-name: slot; }
.eyebrow { view-transition-name: eyebrow; } .headline { view-transition-name: headline; } .lede { view-transition-name: lede; }
.specs { view-transition-name: specs; } .uses { view-transition-name: uses; } .menu { view-transition-name: menu; }
.cues { view-transition-name: cues; } .patch { view-transition-name: patch; } .ctas { view-transition-name: ctas; }
.rope-tube { view-transition-name: rope-tube; } .rope-glow { view-transition-name: rope-glow; }

::view-transition-group(*) { animation-duration: var(--morph); animation-timing-function: var(--ease); }
::view-transition-old(*), ::view-transition-new(*) { animation-duration: calc(var(--morph) * 0.8); }
/* the rope morphs itself point by point, so show only its live canvas */
::view-transition-group(rope-tube), ::view-transition-group(rope-glow), ::view-transition-new(rope-tube), ::view-transition-new(rope-glow) { animation: none; }
::view-transition-old(rope-tube), ::view-transition-old(rope-glow) { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  [data-scene="sheet"] .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eyebrow" "headline" "specs" "lede" "ctas"; }
  [data-scene="console"] .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "slot" "eyebrow" "headline" "cues" "patch" "ctas"; }
  [data-scene="console"] .slot { max-width: 170px; margin-bottom: 12px; }
  [data-scene="console"] .lede { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .look-name { display: none; }
  .brand { font-size: 20px; }
  .foot p { font-size: 10.5px; }
  .foot-logo { display: none; }
  .btn { flex: 1 1 100%; }
  .specs th, .specs td { padding: 10px 6px; }
  .specs .pitch { display: none; }
  .specs tbody th { font-size: 14px; }
  .specs td { font-size: 12px; }
  .cues { grid-template-columns: repeat(4, auto); gap: 5px; }
  .cues button { padding: 6px 7px; font-size: 10.5px; }
  .menu b { font-size: 26px; }
  [data-scene="swag"] .layout { padding-top: 24vh; padding-bottom: 3vh; }
  [data-scene="menu"] .layout { padding-top: 10vh; }
  [data-scene="poster"] .btn { flex: 0 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .s, .s-bloom, .s-halo, .haze, .cap-b, .led { animation: none; }
  .s { stroke-dashoffset: 0; }
  .s-bloom { opacity: 0.6; } .s-halo { opacity: 0.72; }
  .s-chase { display: none; }
  .haze, .cap-b { opacity: 1; }
  .dot[aria-current="true"]::after { animation: none; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* tab opened in the background: hold the intro until it is seen */
.wait .s, .wait .haze, .wait .cap-b, .wait .dot::after { animation-play-state: paused; }

/* ---------- /list/ signup page ---------- */

[data-scene="list"] .layout { --max: 640px; grid-template-areas: "eyebrow" "headline" "lede" "form"; padding: 5vh 0 8vh; }
[data-scene="list"] .headline { font-size: clamp(40px, 6vw, 68px); }
.geo { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand { text-decoration: none; }
.back { color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }

.signup, .thanks { grid-area: form; }
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin: 6px 0 0; }
.thanks { outline: none; }
.signup[hidden] { display: none; }
.thanks .headline { font-size: clamp(36px, 5vw, 56px); }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > legend { font: 500 11px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field label span { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.signup input:not([type="checkbox"]), .signup select, .signup textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: color-mix(in srgb, var(--ink) 4%, transparent); border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.signup select option { background: #120e0c; color: var(--ink); }
.signup textarea { resize: vertical; min-height: 92px; }
.signup input:focus, .signup select:focus, .signup textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes legend { margin-bottom: 7px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: baseline; gap: 6px; min-height: 40px; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; font: 500 14px/1 var(--sans); transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.chip small { font: 500 11px/1 var(--mono); color: var(--muted); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--btn-ink); }
.chip input:checked + span small { color: var(--btn-ink); opacity: 0.7; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.form-msg.err { color: #ff8f7a; }
.signup .btn { grid-column: 1 / -1; justify-self: start; border: 0; cursor: pointer; }
.signup .btn:disabled { opacity: 0.6; cursor: progress; }

@media (max-width: 560px) {
  .signup { grid-template-columns: 1fr; }
  .back { display: none; }
  .signup .btn { justify-self: stretch; }
}

/* ---------- KG3 logo ---------- */
.kg3 { display: inline-block; width: auto; vertical-align: middle; }
.brand-by .kg3 { height: 19px; margin: -5px 0 0 2px; }
.by .kg3 { height: 1.5em; margin: -0.35em 0 0 0.15em; }
[data-scene="menu"] .kg3, [data-scene="menu"] .foot-logo img { filter: drop-shadow(0 0 0.6px rgba(43, 21, 16, 0.85)); }

/* ---------- pixel pattern picker ---------- */
.pixels { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px var(--gutter) 0; color: var(--muted); view-transition-name: pixels; }
.pixels .mono { margin-right: 4px; }
.pixels button {
  width: 24px; height: 24px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid color-mix(in srgb, var(--bg) 70%, transparent); background: var(--sw);
  box-shadow: 0 0 0 1px var(--line); transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.pixels button:hover { transform: scale(1.15); }
.pixels button.on { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.12); }
.pixels button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[data-look="warm"]    { --sw: linear-gradient(90deg, #ff8c2e, #ffdba8, #ff8c2e); }
[data-look="ice"]     { --sw: linear-gradient(90deg, #1f4dff, #d1f2ff, #1f4dff); }
[data-look="sweep"]   { --sw: linear-gradient(90deg, #ff1fc7, #14dbff); }
[data-look="tomato"]  { --sw: linear-gradient(90deg, #db1f12, #ff7a14); }
[data-look="comets"]  { --sw: linear-gradient(90deg, #0d1770 0 45%, #14dbff 70%, #fff 80%, #0d1770 82%); }
[data-look="rainbow"] { --sw: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
[data-look="wipe"]    { --sw: linear-gradient(90deg, #ff8c2e 0 50%, #ff1fc7 50% 100%); }
[data-look="bands"]   { --sw: repeating-linear-gradient(90deg, #ff1f14 0 5px, #ffdba8 5px 10px); }
.holding .dot[aria-current="true"]::after { animation-play-state: paused; }
@media (max-width: 560px) {
  .pixels { gap: 6px; padding-top: 2px; }
  .pixels button { width: 22px; height: 22px; }
  .pixels .mono { display: none; }
  .brand-by .kg3 { height: 15px; }
}

/* ---------- signup surprise ---------- */
.surprise .stage { height: 100svh; min-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.surprise .stage:active { cursor: grabbing; }
.surprise .layout, .surprise .foot, .surprise .back { display: none; }
.dock[hidden] { display: none; }
.dock {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; justify-items: center; gap: 12px;
  padding: 14px var(--gutter) max(18px, env(safe-area-inset-bottom)); text-align: center;
  background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 88%, transparent) 30%);
  animation: dock-in 0.9s var(--ease) 0.4s both; cursor: default;
}
@keyframes dock-in { from { opacity: 0; transform: translateY(16px); } }
.dock-title { margin: 0; font: 400 clamp(24px, 3.4vw, 38px)/1.1 var(--serif); outline: none; }
.dock-title em { color: var(--accent); }
.dock-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dock .pixels { padding: 0; }
.shapes button {
  min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); cursor: pointer;
  background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); font: 500 14px/1 var(--sans);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.shapes button:hover { border-color: var(--accent); }
.shapes button.on { background: var(--accent); border-color: var(--accent); color: var(--btn-ink); }
.shapes button[data-shape="noodles"] { font: 400 17px/1 var(--serif); font-style: italic; }
.shapes button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dock-hint { margin: 0; color: var(--muted); text-transform: none; letter-spacing: 0.02em; }
.dock-hint a { color: var(--ink); margin-left: 8px; }
@media (max-width: 560px) {
  .dock { gap: 10px; }
  .shapes button { min-height: 34px; padding: 0 11px; font-size: 13px; }
  .dock-hint a { display: block; margin: 6px 0 0; }
}
