/* ============================================================
   swipeplaysteal — design system
   dark arcade / deadpan internet / mint-peach-cyan verb colors
   ============================================================ */

:root {
  --bg: #131311;
  --bg-2: #1b1b18;
  --ink: #f2f0e8;
  --muted: #8a8a82;
  --line: #2e2e29;

  --mint: #74e7c1;   /* play  */
  --peach: #f5c0b0;  /* remix */
  --cyan: #65d8f9;   /* post  */
  --yellow: #ffd23f; /* the one CTA */
  --magenta: #fa24ef;/* fork lineage */

  --display: 'Anton', 'Arial Narrow', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --snap: cubic-bezier(.23, 1, .32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: var(--mint); color: #131311; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- shared chrome ---------- */

.topnav {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
}

.topnav .wordmark {
  pointer-events: auto;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .02em;
  padding: 8px 14px;
  border: 1px solid #fff;
  border-radius: 25px;
  background: transparent;
  color: #fff;
}

.topnav .navlinks {
  pointer-events: auto;
  display: flex;
  gap: 8px;
}

.topnav .navlinks a {
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid #fff;
  border-radius: 25px;
  color: #fff;
  transition: background .15s ease, color .15s ease;
}

.topnav .navlinks a:hover { background: #fff; color: #000; mix-blend-mode: normal; }

/* logo mark: shapes + bandit mask, no words */
.topnav .logomark {
  pointer-events: auto;
  display: block;
  padding: 4px;
  border: none;
  background: none;
  mix-blend-mode: normal;
}
.topnav .logomark img { display: block; width: 40px; height: 40px; }
.topnav .logomark:active { transform: scale(.92); }

@media (max-width: 560px) {
  .topnav .navlinks a:nth-child(2) { display: none; }
}

/* ---------- buttons ---------- */

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid #000;
  background: var(--yellow);
  color: #000;
  box-shadow: 4px 4px 0 #000;
  transition: transform .12s var(--snap), box-shadow .12s var(--snap);
}

.btn-pill:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.btn-pill:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}

.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.04); }

/* ---------- type utilities ---------- */

.display {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .95;
}

.mono { font-family: var(--mono); }

.verb-play  { color: var(--mint); }
.verb-remix { color: var(--peach); }
.verb-post  { color: var(--cyan); }

/* ============================================================
   LANDING
   ============================================================ */

.snap-scroll {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.snap-scroll::-webkit-scrollbar { display: none; }

.snap-section {
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 6vw 60px;
}

/* --- hero: physics playground --- */

.hero {
  background: var(--bg);
  overflow: hidden;
  position: relative;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#physics-canvas,
#physics-mirror {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#physics-mirror {
  pointer-events: none;
  filter: saturate(0) blur(6px);
  opacity: .5;
  left: 5px;
  top: 9px;
  z-index: 1;
}

#physics-canvas { z-index: 2; }

.hero-inner {
  position: relative;
  z-index: 3;
  pointer-events: none;
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-inner .kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-inner h1 {
  font-size: clamp(3rem, 11vw, 9.5rem);
  margin-bottom: 26px;
}

.hero-inner h1 .row { display: block; }

.hero-inner .sub {
  font-family: var(--mono);
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 34px;
  line-height: 1.7;
}

.hero-inner .sub b { color: var(--ink); font-weight: 500; }

.hero-inner .cta-row {
  pointer-events: auto;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-hint {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}

.hero-hint .arrow { display: block; margin-top: 6px; animation: bob 1.6s ease-in-out infinite; }

@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* --- how it works --- */

.hiw { background: var(--bg-2); }

.section-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 30px;
}

.hiw h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); margin-bottom: 8vh; max-width: 900px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }

.step {
  padding: 34px 30px 40px;
  border-right: 1px solid var(--line);
  position: relative;
}

.step:last-child { border-right: none; }

.step .n {
  font-family: var(--display);
  font-size: 15px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: #131311;
}

.step:nth-child(1) .n { background: var(--mint); }
.step:nth-child(2) .n { background: var(--peach); }
.step:nth-child(3) .n { background: var(--cyan); }

.step h3 { font-family: var(--display); text-transform: uppercase; font-size: 24px; letter-spacing: .02em; margin-bottom: 14px; }

.step p { font-family: var(--mono); font-size: 13.5px; color: var(--muted); line-height: 1.75; }

.step p em { color: var(--ink); font-style: normal; }

/* typewriter prompt demo */
.prompt-demo {
  margin-top: 8vh;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: clamp(13px, 1.5vw, 16px);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 860px;
}

.prompt-demo .ps1 { color: var(--mint); white-space: nowrap; }

.prompt-demo .tw {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  color: var(--ink);
}

.prompt-demo.tw-on .tw { animation: typing 3.2s steps(46, end) forwards, caret .6s step-end infinite; }

@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes caret { 50% { border-right: 1px solid transparent; } }

.prompt-demo .tw { border-right: 1px solid var(--ink); }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); padding: 26px 4px; }
  .step:last-child { border-bottom: none; }
}

/* --- remix chain --- */

.chain { background: var(--bg); }

.chain h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); margin-bottom: 10px; }
.chain .lede { font-family: var(--mono); color: var(--muted); font-size: 14px; max-width: 520px; margin-bottom: 6vh; line-height: 1.7; }

.chain-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 10px;
}
.chain-track::-webkit-scrollbar { display: none; }

.chain-node {
  flex: 0 0 240px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px;
  position: relative;
}

.chain-node .thumb {
  height: 130px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.chain-node h4 { font-family: var(--mono); font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.chain-node .by { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.chain-node .delta { font-family: var(--mono); font-size: 11.5px; color: var(--peach); margin-top: 8px; }

.chain-node.origin .delta { color: var(--mint); }

.chain-link {
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  color: var(--magenta);
  font-size: 18px;
  position: relative;
}

.chain-link::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px dashed var(--magenta);
}
.chain-link span { position: relative; background: var(--bg); padding: 0 4px; }

/* --- featured game --- */

.featured { background: var(--bg-2); }

.featured-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6vw; align-items: center; }

.featured .game-frame {
  border: 2px solid var(--ink);
  background: #000;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.featured .game-frame canvas { width: 100%; height: 100%; display: block; }

.featured .game-frame .frame-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 26px;
  background: var(--ink);
  color: #131311;
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  z-index: 2;
}

.featured .game-frame .frame-bar .dot { width: 8px; height: 8px; border-radius: 50%; }

.featured h2 { font-size: clamp(2.4rem, 6vw, 5rem); margin-bottom: 18px; }

.featured .blurb { font-family: var(--mono); font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 28px; max-width: 460px; }
.featured .blurb b { color: var(--ink); font-weight: 500; }

.featured .stats { display: flex; gap: 26px; margin-bottom: 30px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.featured .stats b { display: block; color: var(--ink); font-size: 18px; font-weight: 500; }

@media (max-width: 860px) {
  .featured-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* --- footer --- */

.footer {
  background: var(--bg);
  justify-content: flex-end;
  padding-bottom: 0;
  overflow: hidden;
}

.footer .big {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(4rem, 17.5vw, 19rem);
  line-height: .85;
  letter-spacing: .01em;
  white-space: nowrap;
  transform: scaleY(1.08);
  transform-origin: bottom;
  text-align: center;
  margin-bottom: 5vh;
}

.footer .fineprint {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 18px 6vw 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 -6vw;
}

/* ============================================================
   FEED
   ============================================================ */

.feed-shell {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  background: #000;
}
.feed-shell::-webkit-scrollbar { display: none; }

@media (min-width: 720px) {
  .feed-shell {
    max-width: 460px;
    margin: 0 auto;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

.game-card {
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  background: #000;
}

.game-card canvas.stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* gradient legibility layer */
.game-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  pointer-events: none;
}

.card-meta {
  position: absolute;
  left: 14px;
  right: 84px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 5;
  pointer-events: none;
}

.card-meta .title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 26px;
  letter-spacing: .02em;
  line-height: 1;
  margin-bottom: 8px;
}

.card-meta .creator {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.card-meta .creator b { color: var(--ink); font-weight: 500; }

.card-meta .prompt-chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: 6px 10px;
  display: inline-block;
  margin-bottom: 8px;
  max-width: 100%;
}

.lineage-chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--magenta);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lineage-chip a { text-decoration: underline; text-underline-offset: 2px; pointer-events: auto; }

/* action rail */
.action-rail {
  position: absolute;
  right: 10px;
  bottom: max(84px, calc(env(safe-area-inset-bottom) + 84px));
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.rail-btn {
  background: none;
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  transition: transform .15s var(--snap);
}

.rail-btn svg { width: 30px; height: 30px; display: block; }

.rail-btn:active { transform: scale(1.25); }
.rail-btn .count { color: rgba(255,255,255,.85); }

.rail-btn.liked svg { fill: var(--peach); stroke: var(--peach); animation: pop .3s var(--snap); }
.rail-btn.saved svg { fill: var(--cyan); stroke: var(--cyan); animation: pop .3s var(--snap); }

@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* feed top tabs */
.feed-tabs {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 26px;
  padding-top: max(16px, env(safe-area-inset-top));
  font-family: var(--mono);
  font-size: 13px;
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}

.feed-tabs a {
  pointer-events: auto;
  opacity: .55;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.feed-tabs a.active { opacity: 1; border-bottom-color: #fff; }

.feed-tabs .home-link { display: none; }

@media (max-width: 719px) {
  body.feed-page .topnav { display: none; }
  .feed-tabs .home-link { display: inline; opacity: 1; border-bottom: none; margin-right: 8px; }
}

/* tap-to-start overlay on cards that need it */
.start-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  font-family: var(--mono);
  font-size: 13px;
  color: #fff;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: opacity .2s ease;
}
.start-overlay.hide { opacity: 0; pointer-events: none; }

/* floating like heart burst */
.heart-burst {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  font-size: 0;
}

/* ============================================================
   GAME DETAIL / COMMENTS / REMIX — app-style screens
   ============================================================ */

.screen {
  min-height: 100dvh;
  background: var(--bg);
  animation: slide-in .22s cubic-bezier(.23,1,.32,1);
}

@keyframes slide-in {
  from { transform: translateX(100vw); }
  to { transform: translateX(0); }
}

.screen-back {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 16px;
  border: 1px solid #fff;
  border-radius: 25px;
  color: #fff;
  mix-blend-mode: difference;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.detail-stage {
  position: relative;
  height: 62dvh;
  background: #000;
  border-bottom: 1px solid var(--line);
}

.detail-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }

.detail-body { max-width: 720px; margin: 0 auto; padding: 26px 18px 120px; }

.detail-body h1 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: .02em;
  line-height: 1;
  margin-bottom: 10px;
}

.detail-body .creator-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.detail-body .prompt-chip {
  font-family: var(--mono);
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 10px 14px;
  margin-bottom: 16px;
  color: var(--ink);
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.chip-btn {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color .15s ease, background .15s ease, transform .15s var(--snap);
}
.chip-btn:hover { border-color: var(--ink); }
.chip-btn:active { transform: scale(.94); }
.chip-btn svg { width: 15px; height: 15px; }
.chip-btn.liked { border-color: var(--peach); color: var(--peach); }
.chip-btn.remix-cta { background: var(--yellow); border-color: #000; color: #000; font-weight: 500; }
.chip-btn.remix-cta:hover { background: #ffdd66; }

/* comments */
.comments-head {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }

.comment .av {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #131311;
}

.comment .c-body { flex: 1; min-width: 0; }

.comment .c-head {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  display: flex;
  gap: 10px;
}
.comment .c-head b { color: var(--ink); font-weight: 500; }

.comment .c-text { font-size: 14.5px; line-height: 1.55; }

.comment .c-foot {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  gap: 16px;
}
.comment .c-foot button { background: none; border: none; color: var(--muted); font-family: var(--mono); font-size: 11.5px; padding: 0; }
.comment .c-foot button:hover { color: var(--ink); }

.comment .fork-ref {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--magenta);
  border: 1px dashed var(--magenta);
  padding: 6px 10px;
  display: inline-block;
}

/* comment box */
.comment-box {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 55;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 12px 14px max(12px, env(safe-area-inset-bottom));
}

.comment-box .inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.comment-box input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 18px;
  outline: none;
}
.comment-box input:focus { border-color: var(--muted); }
.comment-box input::placeholder { color: var(--muted); }

.comment-box button {
  border-radius: 999px;
  border: 2px solid #000;
  background: var(--yellow);
  color: #000;
  font-family: var(--mono);
  font-size: 13px;
  padding: 0 20px;
  box-shadow: 2px 2px 0 #000;
}
.comment-box button:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 #000; }

/* ============================================================
   REMIX SCREEN
   ============================================================ */

.remix-body { max-width: 720px; margin: 0 auto; padding: 84px 18px 120px; }

.remix-body .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 10px;
}

.remix-body h1 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(30px, 5.5vw, 52px);
  line-height: .95;
  margin-bottom: 26px;
}

.remix-source {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 12px 14px;
  margin-bottom: 22px;
}

.remix-source .mini-thumb { width: 64px; height: 64px; flex: 0 0 64px; position: relative; overflow: hidden; }
.remix-source .mini-thumb canvas { width: 100%; height: 100%; display: block; }
.remix-source .s-title { font-family: var(--mono); font-size: 13px; margin-bottom: 3px; }
.remix-source .s-by { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.remix-form label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.remix-input-row { display: flex; gap: 10px; margin-bottom: 10px; }

.remix-input-row input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  padding: 14px 18px;
  outline: none;
}
.remix-input-row input:focus { border-color: var(--peach); }

.remix-input-row button { white-space: nowrap; }

.remix-suggestions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }

.remix-suggestions button {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  transition: color .15s ease, border-color .15s ease;
}
.remix-suggestions button:hover { color: var(--peach); border-color: var(--peach); }

/* generation log */
.gen-log {
  border: 1px solid var(--line);
  background: #0d0d0c;
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 16px 18px;
  min-height: 180px;
  line-height: 1.9;
  color: var(--muted);
  display: none;
  margin-bottom: 26px;
}
.gen-log.show { display: block; }
.gen-log .ok { color: var(--mint); }
.gen-log .warn { color: var(--yellow); }
.gen-log .dim { color: var(--muted); }
.gen-log .cursor { display: inline-block; width: 8px; height: 14px; background: var(--mint); vertical-align: -2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* remix result */
.remix-result { display: none; }
.remix-result.show { display: block; animation: result-in .3s var(--snap); }
@keyframes result-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.remix-result .preview-frame {
  border: 2px solid var(--ink);
  background: #000;
  aspect-ratio: 4/3;
  position: relative;
  margin-bottom: 8px;
}
.remix-result .preview-frame canvas { width: 100%; height: 100%; display: block; }

.remix-result .preview-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 22px;
}

.remix-result .post-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.remix-diff {
  font-family: var(--mono);
  font-size: 12.5px;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.remix-diff .row { display: flex; padding: 9px 14px; border-bottom: 1px solid var(--line); gap: 12px; }
.remix-diff .row:last-child { border-bottom: none; }
.remix-diff .row .k { color: var(--muted); flex: 0 0 130px; }
.remix-diff .row .was { color: var(--muted); text-decoration: line-through; margin-right: 8px; }
.remix-diff .row .now { color: var(--mint); }
