@font-face { font-family: 'Bricolage Grotesque'; src: url(/fonts/bricolage-grotesque.woff2) format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url(/fonts/space-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url(/fonts/space-mono-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Yellowtail'; src: url(/fonts/yellowtail.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --ground: #140F22; --panel: #1A1430; --card: #221A36; --raised: #2E2547; --line: #3A3056; --line-2: #4A3F66;
  --text: #F7F1E8; --muted: #B4A9C9; --soft: #E6DEF2; --done: #8C82A3;
  --ketchup: #FF5B3A; --ketchup-deep: #A83620; --mustard: #FFD23F; --mustard-deep: #B8901C;
  --cream: #F7F1E8; --ink: #1C1726; --ink-muted: #5B4F70; --moon: #F3E9D2;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --script: 'Yellowtail', cursive;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--display); font-size: 16px; line-height: 1.45; }
[hidden] { display: none !important; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
a { color: var(--mustard); }
a:hover { color: #FFE27A; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 80%; line-height: 1.02; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 64px) 56px; display: flex; flex-direction: column; gap: 36px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-between { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > .main { flex: 1 1 560px; min-width: 0; }
.split > .side { flex: 1 1 360px; min-width: 0; }
.split > .main.stack { gap: 26px; }
.split > .side.stack { gap: 16px; }
.split.center { align-items: center; }
.stack.tight { gap: 6px; }
.stack.loose { gap: 30px; }
.stack.narrow { max-width: 520px; }
.row.loose { gap: 36px; }
.row-between.end { align-items: flex-end; }
.grow { flex: 1 1 300px; min-width: 0; }
.centered { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.meter-box { flex: 0 1 360px; }
a.card { text-decoration: none; color: inherit; }
a.card.ketchup, a.card.ketchup:hover { color: var(--ground); }
.as-btn { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; text-decoration: none; }
.as-btn:hover { color: var(--text); }

/* ---------- type ---------- */
.h-xl { font-size: clamp(38px, 4.6vw, 64px); letter-spacing: -1px; max-width: 18ch; }
.h-l { font-size: 30px; }
.h-m { font-size: 24px; }
.lead { font-size: 20px; color: var(--muted); max-width: 46ch; line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.label { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.label.mustard { color: var(--mustard); }
.label.ketchup { color: var(--ketchup); }
.label.ketchup-deep { color: var(--ketchup-deep); }
.label.ink, .lead.ink, .link.ink { color: var(--ground); }
.mustard-text { color: var(--mustard); }
.mono { font-family: var(--mono); }
.big-num { font-family: var(--mono); font-weight: 700; color: var(--mustard); }

/* ---------- header ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-family: var(--script); font-size: 32px; line-height: 1; color: #FFF3C4; text-decoration: none; text-shadow: 0 0 4px var(--mustard), 0 0 14px rgba(255, 210, 63, .7); }
.wordmark:hover { color: #FFF3C4; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.pill:hover { color: var(--text); background: var(--card); }
.pill[aria-current="page"] { background: var(--card); color: var(--mustard); font-weight: 700; }
.pill.badge { background: var(--card); color: var(--mustard); font-weight: 700; font-size: 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 64px; padding: 0 28px; border: 0; border-radius: 18px; font-size: 21px; font-weight: 800; text-decoration: none; transition: transform .08s, box-shadow .08s; }
.btn svg { flex-shrink: 0; }
.btn-ketchup { background: var(--ketchup); color: var(--ground); box-shadow: 0 6px 0 var(--ketchup-deep); }
.btn-mustard { background: var(--mustard); color: var(--ground); box-shadow: 0 6px 0 var(--mustard-deep); }
.btn-ketchup:hover, .btn-mustard:hover { color: var(--ground); }
.btn-ketchup:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--ketchup-deep); }
.btn-mustard:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--mustard-deep); }
.btn-outline { background: transparent; color: var(--mustard); border: 2px solid var(--mustard); font-size: 17px; font-weight: 700; }
.btn-dark { background: var(--ground); color: var(--text); }
.btn-dark:hover { color: var(--text); }
.btn-outline.dark, .btn-outline.dark:hover { color: var(--ground); border-color: var(--ground); }
.btn-ghost { min-height: 48px; padding: 0 20px; border-radius: 14px; background: transparent; border: 1px solid var(--line-2); color: var(--text); font-size: 16px; font-weight: 700; }
.btn-ghost:disabled { color: var(--done); border-color: var(--line); }
.btn-block { width: 100%; justify-content: space-between; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 700; background: none; border: 0; padding: 0; color: var(--mustard); text-decoration: underline; text-underline-offset: 3px; }
.link.quiet { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 15px; font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--mustard); border-color: var(--mustard); color: var(--ground); }

/* ---------- cards ---------- */
.card { padding: 22px; border-radius: 22px; background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.card.ketchup { background: var(--ketchup); color: var(--ground); }
.card.mustard { background: var(--mustard); color: var(--ground); }
.card.cream { background: var(--cream); color: var(--ink); }
.card.dashed { background: transparent; border: 2px dashed var(--mustard); }
.card.outline { background: transparent; border: 1px dashed var(--line-2); }
.card.ketchup .label, .card.mustard .label { color: var(--ground); }
.card.cream .label { color: #6B5F80; }
.panel { padding: 26px; border-radius: 28px; background: var(--panel); border: 1px solid var(--raised); display: flex; flex-direction: column; gap: 18px; }
.quote { font-size: clamp(30px, 3vw, 38px); font-weight: 800; font-stretch: 78%; line-height: 1.02; }
.stat { padding: 16px 18px; border-radius: 18px; background: var(--card); display: flex; flex-direction: column; gap: 2px; }
.stat .big-num { font-size: 26px; }
.stat span:last-child { font-size: 14px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bubble { padding: 20px 22px; border-radius: 22px 22px 22px 6px; background: var(--cream); color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.bubble .label { color: #6B5F80; }
.bubble p { font-size: 20px; font-weight: 700; line-height: 1.3; }

/* ---------- neon sign ---------- */
.sign { align-self: flex-start; margin-left: 6px; display: flex; flex-direction: column; align-items: center; padding: 22px 44px 16px; border: 2px solid var(--mustard); border-radius: 28px; box-shadow: 0 0 10px rgba(255, 210, 63, .8), 0 0 40px rgba(255, 210, 63, .22), inset 0 0 18px rgba(255, 210, 63, .35); transform: rotate(-2deg); }
.sign-script { font-family: var(--script); font-size: clamp(50px, 6vw, 84px); line-height: 1; color: #FFF3C4; text-shadow: 0 0 4px var(--mustard), 0 0 16px var(--mustard), 0 0 44px rgba(255, 210, 63, .6); }
.sign-word { font-size: clamp(88px, 11vw, 156px); line-height: .9; font-weight: 800; font-stretch: 75%; letter-spacing: 4px; color: #FFE4DC; text-shadow: 0 0 4px var(--ketchup), 0 0 16px var(--ketchup), 0 0 48px rgba(255, 91, 58, .7); animation: hum 2.4s ease-in-out infinite; }
.sign.is-open .sign-word { color: #FFF6D2; text-shadow: 0 0 4px var(--mustard), 0 0 16px var(--mustard), 0 0 48px rgba(255, 210, 63, .7); }
.sign-tail { animation: flicker 5s linear infinite; }
@keyframes hum { 50% { opacity: .88; } }
@keyframes flicker { 0%, 17%, 21%, 24%, 52%, 56%, 100% { opacity: 1; } 19%, 23%, 54% { opacity: .3; } }

/* ---------- home ---------- */
.boss-teaser { padding: 16px 20px; border-radius: 20px; background: var(--card); color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 18px; }
.boss-teaser:hover { color: var(--text); background: var(--raised); }
.ribbon { display: flex; gap: 4px; }
.ribbon > div { flex-basis: 0; min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--card); display: flex; flex-direction: column; gap: 2px; }
.ribbon > div.is-now { background: var(--ketchup); color: var(--ground); }
.ribbon b, .ribbon span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ribbon b { font-size: 15px; }
.ribbon span { font-family: var(--mono); font-size: 11px; }
.note-banner { padding: 18px 22px; border-radius: 20px; border: 2px dashed var(--mustard); display: flex; flex-direction: column; gap: 6px; }
.note-banner p { font-size: 22px; font-weight: 700; line-height: 1.3; }
.foot { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 24px; border-top: 1px solid var(--raised); font-size: 14px; color: var(--muted); }
.foot span { display: inline-flex; align-items: center; gap: 8px; }
.foot p { flex-basis: 100%; }

/* ---------- vibe check ---------- */
fieldset { margin: 0; padding: 0 0 26px; border: 0; border-bottom: 1px solid var(--raised); min-width: 0; }
legend { padding: 0; margin-bottom: 6px; font-size: 20px; font-weight: 700; }
fieldset p { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.stamp { align-self: flex-start; padding: 8px 16px; border: 4px solid var(--ketchup); border-radius: 10px; color: var(--ketchup); font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: 2px; transform: rotate(-6deg); }
.stamp.mustard { border-color: var(--mustard); color: var(--mustard); }
.stamp.thunk { animation: thunk .45s ease-out both; }
@keyframes thunk { 0% { transform: rotate(-6deg) scale(1.5); opacity: 0; } 60% { transform: rotate(-6deg) scale(.95); opacity: 1; } 100% { transform: rotate(-6deg) scale(1); } }

/* ---------- fight ---------- */
.boss-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 16px 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--raised); }
.boss-strip .who { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.bob { transition: transform .5s ease-in-out; }
.hp { flex: 1 1 280px; display: flex; align-items: center; gap: 12px; }
.hp-bar { flex-grow: 1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.hp-bar span { height: 16px; border-radius: 4px; background: var(--raised); }
.hp-bar span.on { background: var(--ketchup); }
.gives-up { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.gives-up .big-num { font-size: 28px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 8px; border-radius: 999px; border: 2px dashed var(--line-2); color: var(--muted); font-size: 15px; font-weight: 700; }
.steps li i { font-style: normal; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--card); font-family: var(--mono); font-size: 13px; }
.steps small { font-family: var(--mono); font-size: 12px; font-weight: 400; }
.steps li.is-now { border: 2px solid var(--ketchup); background: var(--ketchup); color: var(--ground); }
.steps li.is-now i { background: var(--ground); color: var(--ketchup); }
.steps li.is-done { border: 2px solid var(--card); background: var(--card); color: var(--mustard); }
.steps li.is-done i { background: var(--mustard); color: var(--ground); }
.arena { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.arena > .panel { flex: 1 1 640px; min-width: 0; }
.arena > aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tv { padding: 16px; border-radius: 26px; background: var(--raised); box-shadow: inset 0 0 0 4px var(--line); }
.tv-screen { position: relative; border-radius: 14px; overflow: hidden; background: var(--panel); }
.tv-screen canvas { width: 100%; height: auto; aspect-ratio: 16 / 10; image-rendering: pixelated; }
.tv-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; }
.tv-over > * { padding: 6px 14px; border-radius: 12px; background: rgba(20, 15, 34, .75); }
.tv-over .big-num { font-size: clamp(40px, 6vw, 56px); line-height: 1.1; padding: 8px 20px; }
.tv-over b { font-size: 18px; }
.brick-zone { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.fridge { position: relative; flex-shrink: 0; width: min(300px, 100%); padding: 14px; border-radius: 20px; border: 3px solid var(--muted); background: var(--ground); }
.fridge::after { content: ''; position: absolute; right: -12px; top: 110px; width: 8px; height: 96px; border-radius: 4px; background: var(--muted); }
.board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; touch-action: manipulation; }
.board span { aspect-ratio: 1; border-radius: 4px; background: var(--card); }
.board span.b { background: var(--ketchup); box-shadow: inset 0 -3px 0 var(--ketchup-deep); }
.board span.s { background: var(--mustard); box-shadow: inset 0 -3px 0 var(--mustard-deep); }
.board span.f { background: var(--cream); box-shadow: inset 0 -3px 0 rgba(20, 15, 34, .25); }
.brick-side { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pad button { min-height: 64px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--card); color: var(--text); display: flex; align-items: center; justify-content: center; touch-action: manipulation; }
.pad button.go { border: 0; background: var(--ketchup); color: var(--ground); }
.moves { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.move { padding: 20px; border-radius: 22px; background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.move.walk { background: var(--mustard); color: var(--ground); }
.tag { align-self: flex-start; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.move.walk .tag { border: 0; background: var(--ground); color: var(--mustard); }
.move h3 { font-size: 26px; }
.move .dmg { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--ketchup); }
.move.walk .dmg { color: var(--ground); }
.move .btn-ghost { width: 100%; }
.move.walk .btn-dark { min-height: 52px; font-size: 17px; border-radius: 14px; }
.walk-clock { font-size: 40px; color: var(--ground); }
.moon { position: relative; flex-shrink: 0; width: 190px; height: 190px; border-radius: 999px; background: var(--moon); box-shadow: 0 0 70px rgba(243, 233, 210, .35); }
.moon::before, .moon::after { content: ''; position: absolute; border-radius: 999px; background: rgba(20, 15, 34, .1); }
.moon::before { left: 40px; top: 52px; width: 34px; height: 34px; }
.moon::after { left: 104px; top: 100px; width: 46px; height: 46px; }
.science h3 { font-size: 24px; }
.science p { color: var(--soft); }
.science a { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- feed ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.math-rows > div { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line-2); }
.math-rows > div:last-child { border-bottom: 1px dashed var(--line-2); }
.math-rows .big-num { font-size: 30px; }
.cheat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cheat ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.cheat ul + ul { padding-left: 14px; border-left: 2px solid var(--ketchup); }

/* ---------- menu ---------- */
.receipt-wrap { flex: 1 1 400px; max-width: 480px; min-width: 0; transform: rotate(1deg); }
.receipt { padding: 26px 24px 20px; border-radius: 6px 6px 0 0; background: var(--cream); color: var(--ink); font-family: var(--mono); display: flex; flex-direction: column; gap: 16px; }
.receipt header { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 14px; border-bottom: 2px dashed #9A8FA8; }
.receipt h3 { font-family: var(--mono); font-stretch: 100%; font-size: 13px; letter-spacing: 1.5px; }
.receipt h3.pick { color: var(--ketchup-deep); }
.receipt ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.receipt li { display: flex; align-items: flex-end; font-size: 14px; }
.receipt li i { flex-grow: 1; min-width: 12px; margin: 0 8px 4px; border-bottom: 2px dotted #9A8FA8; }
.receipt li b { white-space: nowrap; }
.receipt footer { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 14px; border-top: 2px dashed #9A8FA8; text-align: center; font-size: 13px; font-weight: 700; }
.receipt footer small { color: var(--ink-muted); font-weight: 400; }
.zigzag { width: 100%; height: 12px; }
.swap { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); font-size: 17px; }
.swap s { flex: 1 1 0; color: var(--muted); text-decoration-color: var(--ketchup); text-decoration-thickness: 2px; }
.swap b { flex: 1 1 0; }

/* ---------- win ---------- */
.win-stamp { width: 300px; height: 300px; max-width: 80vw; max-height: 80vw; border-radius: 999px; border: 5px solid var(--mustard); padding: 12px; box-shadow: 0 0 34px rgba(255, 210, 63, .35); transform: rotate(-8deg); }
.win-stamp > div { width: 100%; height: 100%; border-radius: 999px; border: 2px dashed var(--mustard); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--mustard); text-align: center; }
.win-stamp b { font-size: 60px; line-height: 1; font-weight: 800; font-stretch: 75%; }
.card-preview { width: min(405px, 100%); border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transform: rotate(2deg); }
.field { display: flex; gap: 8px; }
.field input { flex-grow: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); font-family: var(--mono); font-size: 15px; }
textarea { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card); font-size: 17px; line-height: 1.4; resize: vertical; }
.privacy { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--panel); font-size: 14px; color: var(--muted); }
.privacy svg { flex-shrink: 0; margin-top: 1px; }

/* ---------- gallery ---------- */
.bosses { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.boss-card { padding: 22px; border-radius: 24px; background: var(--card); border: 2px solid var(--mustard); display: flex; align-items: center; gap: 20px; }
.boss-card .sprite-box { flex-shrink: 0; width: 112px; display: flex; justify-content: center; }
.boss-card > div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.boss-card.is-tonight { border-color: var(--ketchup); }
.boss-card.is-met { background: var(--panel); border-color: var(--line-2); }
.boss-card.is-locked { background: transparent; border: 2px dashed var(--line-2); }
.boss-card .rec { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--mustard); }
.boss-card.is-met .rec { color: var(--ketchup); }
.boss-card.is-locked .rec { color: var(--muted); }
.meter6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.meter6 span { height: 14px; border-radius: 4px; background: var(--raised); }
.meter6 span.on { background: var(--mustard); }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border-radius: 24px; background: var(--ketchup); color: var(--ground); }
.callout strong { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; font-stretch: 80%; line-height: 1.05; }

/* ---------- alarm ---------- */
body.alarm { background: var(--ketchup); }
.view-alarm { background: var(--ketchup); color: var(--ground); min-height: 100vh; display: flex; flex-direction: column; }
.hazard { height: 22px; flex-shrink: 0; background: repeating-linear-gradient(-45deg, var(--ground) 0 18px, var(--ketchup) 18px 36px); }
.view-alarm .wrap { flex-grow: 1; width: 100%; }
.view-alarm a { color: var(--ground); }
.view-alarm .btn-dark, .view-alarm .btn-dark:hover { color: var(--text); }
.view-alarm .wordmark { color: var(--ground); text-shadow: none; }
.shout { font-size: clamp(72px, 11vw, 168px); line-height: .84; text-transform: uppercase; letter-spacing: -2px; font-stretch: 75%; animation: shake .6s ease-in-out 3; }
@keyframes shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.breath { width: 300px; height: 300px; max-width: 70vw; max-height: 70vw; border-radius: 999px; border: 8px solid var(--ground); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform 1s linear; }
.breath b { font-size: clamp(72px, 9vw, 110px); line-height: 1; }
.no-quote { min-height: 2.3em; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; font-stretch: 80%; line-height: 1.1; }
.breath-row { display: flex; align-items: center; gap: 20px; }
.breath-row .breath { flex-shrink: 0; width: 120px; height: 120px; border-width: 6px; }
.breath-row .breath b { font-size: 48px; }
.breath-row p { font-size: 17px; max-width: 34ch; }
.bouncer { display: flex; justify-content: center; }
.bouncer-frame { margin: 0; width: min(360px, 100%); padding: 14px; border-radius: 26px; background: var(--ground); color: var(--text); transform: rotate(2deg); box-shadow: 0 24px 50px rgba(20, 15, 34, .35); display: flex; flex-direction: column; gap: 12px; }
.bouncer-frame img, .bouncer-frame video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; background: var(--panel); }
.bouncer-frame figcaption { font-size: 18px; }
.bouncer-frame figcaption span { color: var(--mustard); font-weight: 800; }
.bouncer-setup { width: min(420px, 100%); padding: 24px; border-radius: 24px; border: 3px dashed var(--ground); display: flex; flex-direction: column; gap: 12px; }
.bouncer-setup h2 { font-size: 30px; }
.bouncer-setup input[type="text"] { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--ground); background: rgba(255, 255, 255, .25); color: var(--ground); }
.bouncer-setup input::placeholder { color: rgba(20, 15, 34, .6); }
.stock-wrap { width: min(340px, 100%); display: flex; flex-direction: column; gap: 14px; }
.stock { position: relative; width: 100%; aspect-ratio: 3 / 4.35; padding: 0; border: 0; background: none; }
.polaroid { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 10px 10px 0; border-radius: 6px; background: var(--cream); box-shadow: 0 18px 40px rgba(20, 15, 34, .35); transform: rotate(var(--r, 0deg)); }
.polaroid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; background: var(--card); }
.polaroid b { flex-grow: 1; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 22px; letter-spacing: 2px; color: var(--ketchup-deep); }
.polaroid.slam { animation: slam .38s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes slam { from { transform: rotate(var(--r, 0deg)) translateY(-24px) scale(1.35); opacity: 0; } to { transform: rotate(var(--r, 0deg)); opacity: 1; } }
.stock-meta a { color: var(--ground); }
.file-btn { position: relative; }
.file-btn input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--ground); outline-offset: 3px; }

/* ---------- dare ---------- */
.dare-art { position: relative; padding: 36px 28px 28px; border-radius: 28px; background: var(--panel); border: 1px solid var(--raised); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dare-art .say { position: absolute; top: 26px; right: 28px; padding: 10px 16px; border-radius: 16px 16px 4px 16px; background: var(--cream); color: var(--ink); font-size: 20px; font-weight: 800; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.how .big-num { font-size: 34px; }
.shadow { width: 200px; height: 14px; border-radius: 50%; background: #0E0A1A; }

@media (max-width: 640px) {
  .wrap { gap: 28px; }
  .sign { padding: 16px 26px 12px; }
  .btn { width: 100%; justify-content: space-between; }
  .ribbon { flex-wrap: wrap; }
  .ribbon > div { flex: 1 1 40%; }
  .bosses { grid-template-columns: 1fr; }
  .boss-card { align-items: flex-start; }
  .boss-card .sprite-box { width: 80px; }
  .brick-zone { gap: 14px; }
  .fridge { width: min(260px, 100%); margin: 0 auto; }
  .panel { padding: 18px; }
  .view-alarm .bouncer { order: -1; }
  .bouncer-frame { width: min(260px, 80%); }
  .stock-wrap { width: min(250px, 72%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
