/* Ship for Brains prototype. Palette from the logo: black, hot pink, white, grey.
   Will's rule: big text on pink is white, small text on pink is black. */
@font-face { font-family: "Bungee"; src: url("fonts/Bungee-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bungee Shade"; src: url("fonts/BungeeShade-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Marker"; src: url("fonts/PermanentMarker-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --black: #0a0a0a; --ink: #000; --pink: #ff00aa; --pink-deep: #d1008b; --white: #fff;
  --grey: #a3a3a3; --grey-2: #d4d4d4; --grey-dark: #2a2a2a; --brick: #141414;
  --display: "Bungee", "Arial Black", Impact, sans-serif;
  --shade: "Bungee Shade", "Bungee", "Arial Black", sans-serif;
  --marker: "Marker", "Comic Sans MS", "Chalkboard SE", cursive;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px; --ease: cubic-bezier(.2,.8,.2,1);
  --gold: #f5ff00; --lantern: #ffb000; --water: #030303; --water-2: #0a0909; --water-3: #141211; --wood: #5a3a1a; --wood-2: #8a5a2b;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--water); color: var(--white); font: 17px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; box-shadow: 0 0 0 6px var(--pink); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--pink); color: var(--ink); padding: 10px 14px; font-weight: 700; z-index: 100; }
.skip:focus { left: 8px; }
kbd { font-family: ui-monospace, monospace; background: var(--grey-dark); border: 1px solid #555; border-radius: 4px; padding: 0 5px; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* header */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 10px clamp(14px, 3vw, 32px); background: rgba(10,10,10,.92); backdrop-filter: blur(6px); border-bottom: 3px solid var(--pink); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--display); font-size: 18px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--pink); }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.top nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 10px; color: var(--white); text-decoration: none; font-family: var(--display); font-size: 14px; border-radius: 4px; }
.top nav a:hover { background: var(--pink); color: var(--ink); }
.sound { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; background: var(--ink); color: var(--white); border: 2px solid var(--grey); border-radius: 999px; cursor: pointer; font-family: var(--display); font-size: 12px; }
.sound .knob { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #666, #111); border: 2px solid var(--grey); position: relative; transform: rotate(-120deg); transition: transform .3s var(--ease); }
.sound .knob::after { content: ""; position: absolute; left: 50%; top: 2px; width: 2px; height: 7px; background: var(--white); transform: translateX(-50%); }
.sound[aria-pressed="true"] { border-color: var(--pink); }
.sound[aria-pressed="true"] .knob { transform: rotate(120deg); border-color: var(--pink); }

/* ticker */
.ticker { background: var(--pink); color: var(--ink); overflow: hidden; border-bottom: 3px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker-track span { font-family: var(--display); font-size: 14px; padding: 8px 22px; white-space: nowrap; }
.ticker-track span::after { content: "\2726"; margin-left: 22px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* shared */
section { position: relative; padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 40px); }
.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; position: relative; }
.kicker { font-family: var(--marker); color: var(--pink); font-size: 20px; margin: 0 0 6px; transform: rotate(-2deg); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 14px; letter-spacing: .01em; }
h2 { font-size: clamp(34px, 6vw, 64px); text-shadow: 4px 4px 0 var(--pink); }
h3 { font-size: 24px; }
.sub { color: var(--grey-2); max-width: 62ch; margin: 0 auto; }
.small { font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border-radius: 6px; font-family: var(--display); font-size: 15px; text-decoration: none; cursor: pointer; border: 3px solid var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.btn-pink { background: var(--pink); color: var(--ink); box-shadow: 5px 5px 0 var(--white); }
.btn-pink:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--white); }
.btn-ghost { background: var(--ink); color: var(--white); border-color: var(--white); box-shadow: 5px 5px 0 var(--pink); }
.btn-ghost:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--pink); }
.link-btn { background: none; border: 0; color: var(--grey-2); text-decoration: underline; cursor: pointer; padding: 10px 0; min-height: 44px; }
.lbl { display: block; font-family: var(--display); font-size: 14px; margin: 0 0 8px; }
.help { color: var(--grey); font-size: 14px; }
.stamp { display: inline-block; font-family: var(--display); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--grey-2); padding: 2px 7px; border-radius: 3px; transform: rotate(-3deg); border: 2px dashed var(--ink); }
.bricks { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-color: var(--brick);
  background-image: linear-gradient(#000 2px, transparent 2px), linear-gradient(90deg, #000 2px, transparent 2px);
  background-size: 64px 32px, 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); }

/* hero */
.hero-inner { position: relative; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-art { position: relative; max-width: 560px; margin: 0 auto; width: 100%; }
.logo { width: 100%; border-radius: 12px; border: 4px solid var(--ink); box-shadow: 12px 12px 0 var(--pink), 0 0 0 4px var(--white); transform: rotate(-2deg); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-8px); } }
.sticker { position: absolute; z-index: 2; font-family: var(--display); text-align: center; line-height: 1; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.sticker-soon { top: -14px; right: -10px; background: var(--white); color: var(--ink); padding: 8px; font-size: 17px; border-radius: 50%; width: 116px; height: 116px; display: grid; place-items: center; transform: rotate(12deg); animation: wobble 4s ease-in-out infinite; }
.sticker-skull { top: -26px; left: -22px; width: 104px; height: 104px; border: 0; box-shadow: none; transform: rotate(-12deg); filter: drop-shadow(4px 4px 0 #000) drop-shadow(0 0 18px rgba(255,197,61,.55)); animation: skullbob 3.4s ease-in-out infinite; }
@keyframes skullbob { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(-4deg) translateY(-6px); } }
@keyframes wobble { 0%,100% { transform: rotate(12deg); } 50% { transform: rotate(4deg) scale(1.04); } }
.dock h1 { font-size: clamp(48px, 8.5vw, 112px); line-height: .95; margin-bottom: 22px; }
.spray { display: block; color: var(--white); text-shadow: 3px 3px 0 var(--ink), 6px 6px 0 var(--pink); position: relative; }
.spray-pink { color: var(--pink); text-shadow: 3px 3px 0 var(--ink), 6px 6px 0 var(--white); transform: rotate(-2deg); transform-origin: left; }
.lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 56ch; color: var(--white); }
.lede-tag { font-kerning: none; font-feature-settings: "kern" 0; word-spacing: .08em; font-family: var(--marker); font-size: clamp(22px, 2.4vw, 30px); color: var(--pink); margin: 6px 0 26px; transform: rotate(-1.5deg); }
/* Permanent Marker's period is a tiny dot that tucks under the "r" in "filter". Space it out and thicken it; copy unchanged. */
.lede-dot { margin-left: .06em; -webkit-text-stroke: .06em currentColor; paint-order: stroke fill; }
/* Hero kicker sits on the lighter part of the night sky at wide widths: lighter pink tint keeps small text at AA. */
.dock .kicker { color: #ff00aa; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* TV */
.tube { background: linear-gradient(180deg, #060505, #0d0608 55%, #050505); }
.tv-wrap { max-width: 860px; margin: 0 auto; position: relative; }
.antenna { height: 70px; position: relative; }
.antenna i { position: absolute; bottom: 0; left: 50%; width: 4px; height: 90px; background: var(--grey); transform-origin: bottom center; border-radius: 2px; }
.antenna i:first-child { transform: rotate(-32deg); }
.antenna i:last-child { transform: rotate(28deg); }
.antenna i::after { content: ""; position: absolute; top: -6px; left: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); }
.tv { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 170px; gap: 22px; padding: 26px; background: linear-gradient(145deg, #3a3a3a, #1b1b1b); border: 4px solid var(--ink); border-radius: 28px; box-shadow: 10px 10px 0 var(--pink), inset 0 2px 0 #555; }
.tv-screen-bezel { background: #111; padding: 18px; border-radius: 22px; box-shadow: inset 0 0 0 3px #000, inset 0 0 30px #000; }
.tv-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 40px / 30px; overflow: hidden; background: #000; }
.tv-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; }
.tv-screen.is-static canvas { opacity: 1; }
.testcard { position: absolute; inset: 0; display: flex; flex-direction: column; }
.bars { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); }
.bars i:nth-child(1) { background: #fff; } .bars i:nth-child(2) { background: #d4d4d4; } .bars i:nth-child(3) { background: #ff00aa; }
.bars i:nth-child(4) { background: #c4006a; } .bars i:nth-child(5) { background: #8a8a8a; } .bars i:nth-child(6) { background: #ff7dbd; } .bars i:nth-child(7) { background: #3a3a3a; }
.testcard-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); background: var(--ink); color: var(--white); border: 4px solid var(--white); padding: 14px 22px; text-align: center; min-width: 62%; max-width: 90%; box-shadow: 8px 8px 0 var(--pink); }
.testcard-label .ch { display: block; font-family: var(--display); color: var(--pink); font-size: 16px; }
.testcard-label strong { display: block; font-family: var(--shade); font-weight: 400; font-size: clamp(24px, 4.6vw, 48px); line-height: 1.05; margin: 4px 0; }
.testcard-label span:last-child { font-size: 15px; color: var(--grey-2); }
.tv-screen.is-static .bars { visibility: hidden; }
.tv-poster { position: absolute; inset: 0; z-index: 2; padding: 0; border: 0; background: #000; cursor: pointer; display: flex; align-items: flex-end; justify-content: flex-start; gap: 12px; padding: 0 0 6% 6%; }
.tv-poster[hidden] { display: none; }
.tv-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-poster-play { position: relative; width: 72px; height: 72px; border-radius: 50%; background: #ff2d95; color: #fff; font-size: 30px; line-height: 72px; text-align: center; padding-left: 6px; box-shadow: 0 0 0 6px rgba(255,255,255,.85), 0 8px 30px rgba(0,0,0,.6); transition: transform .15s; }
.tv-poster-cta { position: relative; margin-bottom: 20px; background: rgba(0,0,0,.7); color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.tv-poster:hover .tv-poster-play, .tv-poster:focus-visible .tv-poster-play { transform: scale(1.08); }
.tv-poster:focus-visible { outline: 4px solid #ffe600; outline-offset: -4px; }
.tv-screen.has-video .tv-poster { display: none; }
.tv-player { position: absolute; inset: 0; background: #000; z-index: 3; }
.tv-player iframe { width: 100%; height: 100%; border: 0; }
.scanlines { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 2px, transparent 2px 4px); }
.tv-screen.has-video .scanlines { display: none; }
.tv-screen.power-on { animation: crt .7s var(--ease); }
@keyframes crt { 0% { transform: scale(1, .005); filter: brightness(4); } 50% { transform: scale(1, .02); } 100% { transform: scale(1,1); filter: none; } }
.tv-panel { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 12px 0; }
.tv-brand { font-family: var(--display); font-size: 13px; color: var(--grey-2); letter-spacing: .06em; text-align: center; }
.dial { width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--ink); background: radial-gradient(circle at 35% 30%, #777, #1a1a1a 70%); cursor: pointer; padding: 0; box-shadow: 0 6px 0 #000; }
.dial-face { display: block; width: 100%; height: 100%; border-radius: 50%; position: relative; transition: transform .35s var(--ease); background: repeating-conic-gradient(from 0deg, transparent 0 8deg, rgba(0,0,0,.35) 8deg 10deg); }
.dial-face i { position: absolute; left: 50%; top: 8px; width: 8px; height: 30px; margin-left: -4px; background: var(--pink); border-radius: 4px; border: 2px solid var(--ink); }
.ch-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.ch-buttons button { min-height: 44px; background: #111; color: var(--white); border: 2px solid #555; border-radius: 6px; font-family: var(--display); font-size: 13px; cursor: pointer; }
.ch-buttons button[aria-pressed="true"] { background: var(--pink); color: var(--ink); border-color: var(--ink); }
.tv-play { width: 100%; font-size: 13px; padding: 10px; }
.tv-feet { display: flex; justify-content: space-between; padding: 0 90px; }
.tv-feet i { width: 70px; height: 20px; background: #1b1b1b; border: 4px solid var(--ink); border-top: 0; border-radius: 0 0 10px 10px; }

/* deck: boombox + shelf */
.deck { max-width: var(--wrap); margin: 56px auto 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.boombox-handle { height: 34px; margin: 0 22%; border: 8px solid #333; border-bottom: 0; border-radius: 22px 22px 0 0; }
.boombox-body { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 14px; align-items: center; padding: 20px; background: linear-gradient(160deg, #d4d4d4, #9a9a9a); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--pink); }
.speaker { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #222 0 22%, #000 23% 26%, #2b2b2b 27% 60%, #000 61% 64%, #1a1a1a 65%); border: 4px solid var(--ink); display: grid; place-items: center; }
.speaker i { width: 30%; height: 30%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--pink), var(--pink-deep)); }
.is-playing .speaker i { animation: thump .45s ease-in-out infinite; }
@keyframes thump { 50% { transform: scale(1.18); } }
.boombox-mid { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cassette { background: var(--ink); border: 3px solid var(--ink); border-radius: 8px; padding: 8px; }
.cassette-label { background: var(--tape); color: var(--ink); font-family: var(--marker); font-size: 15px; padding: 4px 8px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reels { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 0 2px; }
.reel { width: 34px; height: 34px; border-radius: 50%; background: repeating-conic-gradient(var(--white) 0 30deg, #444 30deg 60deg); border: 4px solid var(--grey-2); }
.tape-window { width: 40px; height: 16px; background: #3a1a28; border: 2px solid #555; border-radius: 3px; }
.is-playing .reel { animation: spin 1.6s linear infinite; }
.is-rewinding .reel { animation: spin .35s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.eq { display: flex; gap: 4px; height: 34px; align-items: flex-end; background: #111; padding: 4px; border-radius: 4px; border: 2px solid var(--ink); }
.eq i { flex: 1; height: 15%; background: var(--pink); border-radius: 2px; }
.is-playing .eq i { animation: eq .8s ease-in-out infinite alternate; }
.eq i:nth-child(2n) { animation-delay: -.3s; } .eq i:nth-child(3n) { animation-delay: -.55s; animation-duration: .6s; }
@keyframes eq { from { height: 15%; } to { height: 95%; } }
.boombox-controls { display: flex; gap: 6px; }
.bb-btn { flex: 1; min-height: 44px; background: #222; color: var(--white); border: 3px solid var(--ink); border-radius: 6px; cursor: pointer; font-size: 14px; }
.bb-play { background: var(--pink); color: var(--ink); }
.bb-status { margin: 0; font-size: 14px; color: var(--ink); font-weight: 600; min-height: 2.6em; }
.shelf h3 { font-size: 28px; }
.tapes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.jcard { display: grid; grid-template-columns: 14px 1fr; background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--pink); overflow: hidden; }
.jcard::before { content: ""; background: var(--tape, var(--pink)); border-right: 3px solid var(--ink); }
.jcard-body { padding: 12px 14px; }
.jcard h4 { font-family: var(--marker); font-weight: 400; font-size: 20px; margin: 0 0 4px; line-height: 1.2; }
.jcard p { margin: 0 0 8px; font-size: 15px; }
.jcard .meta { font-family: var(--display); font-size: 11px; color: #333; letter-spacing: .04em; }
.jcard button { min-height: 40px; padding: 6px 12px; background: var(--ink); color: var(--white); border: 0; border-radius: 4px; font-family: var(--display); font-size: 12px; cursor: pointer; }
.jcard-soon { transform: rotate(-1deg); }

/* wall */
.wall { overflow: hidden; }
.wall-grid { position: relative; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; align-items: start; }
.tag-form { background: var(--ink); border: 3px solid var(--white); border-radius: 10px; padding: 22px; box-shadow: 8px 8px 0 var(--pink); position: sticky; top: 90px; }
.tag-form textarea, .mc-form input { width: 100%; background: #161616; color: var(--white); border: 2px solid var(--grey); border-radius: 6px; padding: 12px; font-size: 17px; resize: vertical; }
.tag-form textarea:focus, .mc-form input:focus { border-color: var(--pink); }
.form-meta { text-align: right; color: var(--grey); font-size: 13px; margin-top: 4px; }
.chips { border: 0; padding: 0; margin: 14px 0; }
.chips label, .pa-vote label { display: inline-block; margin: 0 6px 8px 0; position: relative; }
.chips input, .pa-vote input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span, .pa-vote span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 2px solid var(--grey); border-radius: 999px; cursor: pointer; font-family: var(--display); font-size: 13px; }
.chips input:checked + span { background: var(--pink); color: var(--ink); border-color: var(--ink); }
.chips input:focus-visible + span, .pa-vote input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.form-error { color: #ff4da6; min-height: 1.4em; margin: 10px 0 0; font-weight: 600; }
.board-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filter { min-height: 44px; padding: 6px 14px; background: var(--ink); color: var(--white); border: 2px solid var(--grey); border-radius: 4px; font-family: var(--display); font-size: 13px; cursor: pointer; }
.filter.is-on { background: var(--white); color: var(--ink); border-color: var(--white); }
.example-note { color: var(--grey-2); font-size: 14px; margin: 0 0 18px; }
.tags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; }
.tag { position: relative; background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; padding: 14px 14px 12px; box-shadow: 5px 5px 0 var(--ink); transform: rotate(var(--r, 0deg)); transition: transform .2s var(--ease); }
.tag:hover { transform: rotate(0deg) scale(1.02); }
.tag.t-AI { background: var(--pink); }
.tag.t-Shipping { background: var(--grey-2); }
.tag.t-Wildcard { background: var(--ink); color: var(--white); border-color: var(--white); box-shadow: 5px 5px 0 var(--pink); }
.tag .tag-theme { font-family: var(--display); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.tag .tag-text { font-family: var(--marker); font-size: 19px; line-height: 1.25; margin: 6px 0 12px; overflow-wrap: anywhere; }
.tag .stamp { position: absolute; top: -12px; right: 10px; }
.tag .yours { position: absolute; top: -12px; right: 10px; font-family: var(--display); font-size: 11px; background: var(--ink); color: var(--white); border: 2px solid var(--white); padding: 2px 7px; border-radius: 3px; transform: rotate(3deg); }
.tag-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.votes { font-family: var(--display); font-size: 20px; line-height: 1; }
.votes small { font-size: 11px; display: block; letter-spacing: .04em; margin-top: 3px; }
.spray-btn { position: relative; min-height: 44px; padding: 6px 12px; background: var(--ink); color: var(--white); border: 2px solid var(--ink); border-radius: 6px; font-family: var(--display); font-size: 12px; cursor: pointer; }
.t-Wildcard .spray-btn { background: var(--pink); color: var(--ink); }
.spray-btn[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--ink); }
.drip { position: absolute; left: 50%; top: 100%; width: 6px; height: 0; background: var(--pink); border-radius: 0 0 4px 4px; transform: translateX(-50%); }
.t-AI .drip { background: var(--ink); }
.spray-btn[aria-pressed="true"] .drip { height: 18px; animation: drip .7s ease-out; }
@keyframes drip { from { height: 0; } }

/* pirate vs architect */
.pa { position: relative; max-width: 980px; margin: 64px auto 0; padding: clamp(24px, 4vw, 44px); background: var(--pink); color: var(--ink); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 10px 10px 0 var(--gold); text-align: center; }
.pa-title { font-size: clamp(28px, 4.4vw, 46px); color: var(--white); text-shadow: 4px 4px 0 var(--ink); }
.pa-card h4 { font-family: var(--display); font-weight: 400; color: var(--pink); font-size: 26px; margin: 0 0 10px; }
.pa-grid { margin-top: 22px !important; }
.pa .kicker { color: var(--ink); }
.pa h2 { color: var(--white); text-shadow: 4px 4px 0 var(--ink); }
.pa .sub { color: var(--ink); }
.pa-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.pa-card { background: var(--ink); color: var(--white); border: 3px solid var(--ink); border-radius: 10px; padding: 22px; box-shadow: 8px 8px 0 var(--white); }
.pa-card h3 { color: var(--pink); font-size: 28px; }
.pa-card p { margin: 0; color: var(--grey-2); }
.pa-pirate { transform: rotate(-2deg); } .pa-arch { transform: rotate(2deg); }
.pa-vs { font-family: var(--shade); font-size: 56px; color: var(--white); text-shadow: 3px 3px 0 var(--ink); }
.pa-vote { max-width: 900px; margin: 30px auto 0; border: 0; padding: 0; text-align: center; }
.pa-vote legend { font-family: var(--display); font-size: 22px; margin: 0 auto 12px; color: var(--ink); }
.pa-vote span { border-color: var(--ink); background: var(--white); color: var(--ink); font-size: 15px; min-height: 48px; padding: 8px 18px; }
.pa-vote input:checked + span { background: var(--ink); color: var(--white); }
.pa-vote input:focus-visible + span { outline-color: var(--ink); }
.pa-result { text-align: center; font-family: var(--marker); font-size: 24px; min-height: 1.5em; margin: 12px 0 0; color: var(--ink); }

/* map */
.map-board { position: relative; max-width: var(--wrap); margin: 0 auto; background: radial-gradient(circle at 20% 30%, rgba(255,197,61,.14), transparent 40%), radial-gradient(circle at 80% 70%, rgba(255,0,170,.12), transparent 40%), #17110b;
  border: 4px solid var(--ink); outline: 2px dashed var(--grey); outline-offset: -14px; border-radius: 14px; padding: 50px 34px 30px; box-shadow: 10px 10px 0 var(--pink); }
.doubloons { position: absolute; top: 18px; right: 26px; font-family: var(--display); font-size: 14px; color: var(--grey-2); }
.coin { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 13px; border: 2px solid var(--ink); }
.map-route { list-style: none; margin: 0; padding: 30px 0 10px; display: grid; grid-template-columns: repeat(var(--stops, 6), minmax(0, 1fr)); gap: 10px; position: relative; }
.map-route::before { content: ""; position: absolute; left: 6%; right: 6%; top: 85px; border-top: 4px dashed var(--pink); }
.stop { position: relative; text-align: center; }
.stop:nth-child(even) { margin-top: 34px; }
.stop-x { position: relative; z-index: 1; width: 80px; height: 80px; margin: 0 auto; padding: 8px; background: #1d140b; color: var(--white); border: 3px solid var(--grey); border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease); }
.stop-x svg { width: 100%; height: 100%; }
.stop-x:hover { transform: rotate(-8deg) scale(1.08); }
.stop.is-done .stop-x { border-color: var(--gold); box-shadow: 0 0 18px 2px rgba(255,197,61,.55); animation: chestglow 2.6s ease-in-out infinite; }
@keyframes chestglow { 50% { box-shadow: 0 0 30px 8px rgba(255,197,61,.75); } }
.stop.is-next .stop-x { background: var(--pink); border-color: var(--white); }
.stop-x[aria-expanded="true"] { background: var(--gold); border-color: var(--ink); box-shadow: 0 0 0 5px var(--pink); }
.stop-x.digging { animation: dig .5s steps(4) 1; }
@keyframes dig { 25% { transform: translate(-3px, 2px) rotate(-6deg); } 50% { transform: translate(3px,-2px) rotate(6deg); } 75% { transform: translate(-2px, 3px); } }
.stop-date { display: block; font-family: var(--display); font-size: 12px; color: var(--grey); margin-top: 10px; }
.stop-title { display: block; font-size: 15px; line-height: 1.3; margin-top: 4px; }
.stop .stamp { margin-top: 6px; }
.chest { margin-top: 26px; background: var(--ink); border: 3px solid var(--grey-2); border-radius: 10px; padding: 20px 24px; min-height: 110px; }
.chest:focus { outline: none; }
.chest-empty { color: var(--grey-2); margin: 0; font-family: var(--marker); font-size: 20px; }
.chest h3 { color: var(--pink); font-size: 26px; margin-bottom: 6px; }
.chest .chest-meta { font-family: var(--display); font-size: 12px; color: var(--grey-2); margin: 0 0 10px; }
.chest p { margin: 0; }
.chest.opened { animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.96); opacity: .4; } }

/* mc */
.mc { position: relative; max-width: 760px; margin: 60px auto 0; text-align: center; background: rgba(0,0,0,.6); border: 3px solid var(--gold); border-radius: 14px; padding: 26px clamp(16px, 3vw, 30px); }
.mc h3 { color: var(--gold); font-size: clamp(22px, 3vw, 30px); }
.mc-form { max-width: 560px; margin: 0 auto; text-align: left; }
.mc-row { display: flex; gap: 12px; }
.mc-row input { flex: 1; min-height: 52px; }
.mc-out { margin: 26px auto 0; }
.mc-coin { width: min(340px, 82vw); aspect-ratio: 1; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 35% 30%, #fff1b8, var(--gold) 45%, #b8860b 100%); border: 5px solid var(--ink); box-shadow: inset 0 0 0 10px rgba(0,0,0,.18), 8px 8px 0 var(--pink); }
.mc-handle { font-family: var(--display); font-size: clamp(22px, 3.4vw, 32px); color: var(--ink); margin: 0; line-height: 1.1; overflow-wrap: anywhere; }

/* crew */
.posters { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 26px; align-items: center; }
.poster { background: var(--grey-2); color: var(--ink); border: 4px solid var(--ink); padding: 22px 20px; text-align: center; box-shadow: 8px 8px 0 var(--pink); transform: rotate(-2.5deg); }
.poster:last-child { transform: rotate(2deg); }
.poster .wanted { font-family: var(--shade); font-size: 40px; margin: 0; line-height: 1; }
.poster h3 { font-size: 26px; margin: 10px 0; }
.poster .charge { font-family: var(--marker); font-size: 19px; margin: 0 0 10px; }
.poster .reward { font-family: var(--display); font-size: 12px; margin: 0; border-top: 2px dashed var(--ink); padding-top: 10px; }
.crew-pic img { border: 4px solid var(--ink); border-radius: 10px; box-shadow: 0 0 0 4px var(--white), 10px 10px 0 4px var(--pink); }

/* footer */
.foot { border-top: 3px solid var(--pink); padding: 40px clamp(16px, 4vw, 40px) 60px; text-align: center; color: var(--grey-2); font-size: 15px; }
.foot-small { font-size: 14px; color: var(--grey); }
.plank { color: var(--grey); font-size: 12px; margin-left: 8px; }
.parrot-wrap { position: relative; display: inline-block; }
.parrot { background: none; border: 0; cursor: pointer; padding: 6px; min-width: 44px; min-height: 44px; }
.parrot.squawking svg { animation: squawk .4s ease-in-out 2; }
@keyframes squawk { 50% { transform: rotate(-14deg) translateY(-6px); } }
.squawk { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 280px; background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 8px 12px; font-family: var(--marker); font-size: 17px; box-shadow: 4px 4px 0 var(--pink); margin-bottom: 8px; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 95; background: var(--ink); color: var(--white); border: 3px solid var(--pink); padding: 10px 16px; border-radius: 8px; font-family: var(--display); font-size: 13px; box-shadow: 5px 5px 0 var(--pink); max-width: calc(100vw - 32px); text-align: center; }

/* graffiti mode (Konami code) */
body.graffiti-mode { cursor: crosshair; }
body.graffiti-mode h2 { font-family: var(--shade); color: var(--pink); text-shadow: 4px 4px 0 var(--white); }
.tagged { position: absolute; z-index: 80; pointer-events: none; font-family: var(--marker); font-size: 34px; color: var(--pink); text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--white); transform: translate(-50%, -50%) rotate(var(--r)); animation: sprayin .25s ease-out; }
@keyframes sprayin { from { opacity: 0; filter: blur(3px); } }

/* 404: walk the plank */
.plank-page { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 90px 16px 120px; background: linear-gradient(180deg, #070607, #050505); }
.plank-inner { z-index: 1; }
.plank-page .scene-sign { color: var(--ink); max-width: none; margin: 0 0 14px; }
.plank-page .plank-kicker { font-size: clamp(22px, 3vw, 28px); color: #ff00aa; font-kerning: none; }
.plank-scene { position: relative; width: min(520px, 92vw); height: 220px; margin: 0 auto 26px; overflow: hidden; }
.plank-board { position: absolute; left: 24%; bottom: 96px; width: 52%; height: 14px; background: linear-gradient(180deg, var(--wood-2), var(--wood)); border: 3px solid var(--ink); }
.plank-ship { position: absolute; left: -4%; bottom: 40px; width: 32%; height: auto; filter: drop-shadow(0 0 16px rgba(255,197,61,.35)); }
.walker { position: absolute; bottom: 110px; left: 20%; font-family: var(--display); font-size: 40px; color: var(--gold); text-shadow: 3px 3px 0 var(--ink); animation: walk 5s ease-in infinite; }
@keyframes walk { 0% { left: 20%; transform: none; opacity: 1; } 60% { left: 66%; transform: none; } 75% { left: 72%; bottom: 110px; transform: rotate(40deg); } 100% { left: 76%; bottom: -20px; transform: rotate(180deg); opacity: 0; } }
.sea { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 18c15-10 30-10 45 0s30 10 45 0 22-8 30-5V40H0z' fill='%2312505f'/%3E%3Cpath d='M0 18c15-10 30-10 45 0s30 10 45 0 22-8 30-5' stroke='%23d8f3f7' stroke-width='3' fill='none' opacity='.7'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 40px; animation: flow2 6s linear infinite; }
.plank-page h1 { font-size: clamp(40px, 8vw, 80px); text-shadow: 4px 4px 0 var(--pink); }
.plank-page p { color: var(--grey-2); max-width: 46ch; margin: 0 auto 24px; }

/* ================= v4: darker, cinematic ================= */
/* Every scene is near-black, tinted toward its own color. Light comes from lanterns, torches, fire and the moon. */
:root { --bg: #060606; --text: #ece7dd; --muted: #bcb4a7; --pink-glow: #ff00aa; --gold-dim: #f5ff00; --gold-1: #ffffb8; --gold-2: #f5ff00; --gold-3: #e0a800; --hot: #ff00aa; --hot-btn: #d1008b; --line: #2a2420; }
body { background: var(--bg); color: var(--text); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.scene { scroll-margin-top: 72px; overflow: clip; isolation: isolate; padding-bottom: clamp(100px, 11vw, 160px); }
.scene > * { position: relative; }
.scene > .bricks { position: absolute; z-index: -1; opacity: .18; }
.section-head { max-width: 920px; margin-bottom: 44px; }
.scene-sign { display: inline-block; font-family: var(--display); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-dim); margin: 0 0 16px; padding: 6px 0; border-top: 1px solid rgba(245,255,0,.4); border-bottom: 1px solid rgba(245,255,0,.4); }
h2, .scene .section-head h2 { font-size: clamp(42px, 7.6vw, 108px); line-height: .92; color: #f3efe6; text-shadow: 0 0 34px rgba(255,0,170,.28), 0 5px 0 #000; letter-spacing: -.005em; }
.sub { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.kicker { color: #ff00aa; transform: none; }
.btn { border-width: 2px; border-radius: 4px; letter-spacing: .04em; }
.btn-pink { background: var(--hot-btn); color: #fff; border-color: var(--pink); box-shadow: 0 0 26px rgba(255,0,170,.45); }
.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(255,0,170,.65); }
.btn-ghost { background: rgba(0,0,0,.4); color: var(--text); border-color: rgba(236,231,221,.7); box-shadow: none; }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--pink); box-shadow: 0 0 22px rgba(255,0,170,.35); }
.link-btn { color: var(--muted); }
.help { color: #a39b8f; }
body::after { opacity: .09; }

/* header + ticker */
.top { background: rgba(5,5,6,.92); border-bottom: 1px solid #2a1a20; }
.brand img { border: 1px solid rgba(255,0,170,.6); box-shadow: 0 0 12px rgba(255,0,170,.4); }
.top nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; letter-spacing: .06em; }
.top nav a:hover { background: transparent; color: var(--pink-glow); }
.sound { background: #000; border: 1px solid #555; }
.ticker { background: #0a0707; color: #ff00aa; border-top: 1px solid #2a1a20; border-bottom: 1px solid #2a1a20; }
.ticker-track span { font-size: 12px; letter-spacing: .18em; padding: 7px 24px; }
.ticker-track span::after { content: "\2020"; color: var(--gold-dim); }
.ride-progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; pointer-events: none; }
.ride-progress-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-dim), var(--pink)); transform-origin: left; transform: scaleX(var(--ride, 0)); }
.ride-progress-boat { position: absolute; top: -15px; left: 0; width: 34px; height: 24px; transform: translateX(calc(var(--ride, 0) * (100vw - 40px))); filter: drop-shadow(0 0 6px rgba(255,197,61,.9)); }
.ride-rail { display: none; }
@media (min-width: 1360px) {
  .ride-rail { display: block; position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 40; }
  .ride-rail ol { list-style: none; margin: 0; padding: 10px 0; position: relative; }
  .ride-rail ol::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 1px; background: rgba(245,255,0,.35); }
  .ride-rail a { position: relative; display: block; width: 18px; height: 18px; margin: 13px 4px; border-radius: 50%; background: #000; border: 2px solid #4a3c2c; }
  .ride-rail a::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; }
  .ride-rail a span { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--display); font-size: 11px; letter-spacing: .12em; color: var(--text); background: #000; border: 1px solid var(--line); padding: 4px 8px; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .ride-rail a:hover span, .ride-rail a:focus-visible span, .ride-rail a.is-here span { opacity: 1; }
  .ride-rail a.is-here { background: var(--gold-dim); border-color: var(--gold-dim); box-shadow: 0 0 14px 3px rgba(245,255,0,.6); }
}

/* water: black, with lantern and pink reflections */
.water { position: absolute !important; left: 0; right: 0; bottom: 0; height: 80px; z-index: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='40' viewBox='0 0 260 40'%3E%3Cpath d='M0 20c32-14 64-14 96 0s64 14 96 0 48-10 68-6V40H0z' fill='%23100e0d'/%3E%3Cpath d='M40 22h22M170 18h14' stroke='%23f5ff00' stroke-width='1.5' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") repeat-x 0 0 / 260px 40px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='40' viewBox='0 0 320 40'%3E%3Cpath d='M0 24c42-12 84-12 126 0s84 12 126 0 46-8 68-5V40H0z' fill='%23030303'/%3E%3Cpath d='M70 26h30M230 22h18' stroke='%23ff00aa' stroke-width='1.5' stroke-linecap='round' opacity='.45'/%3E%3C/svg%3E") repeat-x 0 40px / 320px 40px;
  animation: flow 18s linear infinite; }
.water-dark { opacity: .85; }
@keyframes flow { to { background-position: -260px 0, 320px 40px; } }
.lantern-row { position: absolute !important; left: 0; right: 0; top: 0; height: 130px; display: flex; justify-content: space-around; pointer-events: none; z-index: 0; }
.lantern { position: relative; display: block; width: 24px; height: 100px; transform-origin: top center; animation: sway 5s ease-in-out infinite; }
.lantern:nth-child(2n) { animation-delay: -1.7s; animation-duration: 6s; height: 72px; }
.lantern:nth-child(3n) { animation-delay: -3s; height: 124px; }
.lantern::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 34px; width: 1px; background: #2c2c2c; }
.lantern::after { content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 34px; border-radius: 5px 5px 9px 9px; background: radial-gradient(circle at 50% 58%, #fff0bf, #ffb547 40%, #8a3d06 85%); border: 2px solid #0b0b0b; box-shadow: 0 0 26px 10px rgba(255,170,60,.38), 0 0 110px 34px rgba(255,150,40,.12); animation: flicker 3s steps(6) infinite; }
@keyframes sway { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes flicker { 0%,100% { opacity: 1; } 40% { opacity: .78; } 60% { opacity: .95; } 80% { opacity: .72; } }
.fireflies { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.fireflies i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffcf7a; box-shadow: 0 0 8px 2px rgba(255,150,40,.8); opacity: 0; animation: mote var(--d, 9s) ease-in-out var(--delay, 0s) infinite; }
@keyframes mote { 0% { opacity: 0; transform: translate(0,0); } 25% { opacity: .75; } 70% { opacity: .35; } 100% { opacity: 0; transform: translate(var(--dx, 20px), calc(var(--dy, -40px) - 60px)); } }
.fog { position: absolute !important; left: -20%; width: 140%; height: 300px; pointer-events: none; z-index: 0; opacity: .55;
  background: radial-gradient(ellipse 30% 50% at 20% 50%, rgba(200,200,190,.16), transparent 70%), radial-gradient(ellipse 25% 45% at 55% 60%, rgba(200,200,190,.13), transparent 70%), radial-gradient(ellipse 30% 50% at 85% 45%, rgba(200,200,190,.15), transparent 70%); }
.fog-1 { top: 20%; animation: drift 28s ease-in-out infinite alternate; }
.fog-2 { bottom: 50px; animation: drift 36s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.lightning { position: absolute !important; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse at 60% 0%, rgba(235,235,225,.55), transparent 60%); opacity: 0; animation: lightning 13s linear infinite; }
@keyframes lightning { 0%, 88% { opacity: 0; } 88.6% { opacity: .55; } 89.2% { opacity: 0; } 90% { opacity: .3; } 90.8%, 100% { opacity: 0; } }

/* I. landing */
.dock { padding-top: clamp(90px, 9vw, 140px); background: radial-gradient(ellipse 50% 40% at 78% 6%, rgba(225,222,210,.10), transparent 70%), radial-gradient(ellipse 60% 50% at 20% 70%, rgba(255,0,170,.10), transparent 70%), linear-gradient(180deg, #070607 0%, #0a0809 70%, #050505 100%); }
.night-sky { position: absolute !important; inset: 0; z-index: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1.2px 1.2px at 10% 20%, #ddd, transparent), radial-gradient(1px 1px at 30% 8%, #bbb, transparent), radial-gradient(1.2px 1.2px at 55% 15%, #ddd, transparent), radial-gradient(1px 1px at 75% 30%, #bbb, transparent), radial-gradient(1px 1px at 90% 12%, #ccc, transparent), radial-gradient(1.2px 1.2px at 40% 28%, #ccc, transparent); }
.moon { position: absolute; right: 9%; top: 60px; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #f4f0e2, #cfc8b4 60%, #8f887a); box-shadow: 0 0 80px 26px rgba(240,236,220,.12); opacity: .9; }
.dock .hero-inner { z-index: 1; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.hero-art { max-width: 520px; }
.logo { border: 1px solid #1d1d1d; border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 30px 80px rgba(0,0,0,.9), 0 0 90px rgba(255,0,170,.28); transform: none; filter: saturate(.92) contrast(1.05); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-7px) rotate(.6deg); } }
.hero-art::after { content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%); z-index: 2; }
.hero-water { position: absolute; left: -8%; right: -8%; bottom: -26px; height: 56px; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 18c15-10 30-10 45 0s30 10 45 0 22-8 30-5V40H0z' fill='%23050505'/%3E%3Cpath d='M0 18c15-10 30-10 45 0s30 10 45 0 22-8 30-5' stroke='%23ff00aa' stroke-width='1.5' fill='none' opacity='.55'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 40px; animation: flow2 7s linear infinite; }
@keyframes flow2 { to { background-position: 120px 0; } }
.dock h1 { font-size: clamp(76px, 12vw, 184px); line-height: .84; margin: 0 0 26px; letter-spacing: -.01em; }
.h1-a { display: block; color: #f3efe6; text-shadow: 0 6px 0 #000, 0 0 40px rgba(255,255,255,.08); }
.h1-b { display: block; color: var(--pink); text-shadow: 0 6px 0 #000, 0 0 36px rgba(255,0,170,.7), 0 0 90px rgba(255,0,170,.35); }
.lede { color: #e2ddd3; }
.lede-tag { color: #ff00aa; transform: none; }
.stencil { font-family: var(--display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #a39b8f; margin: 30px 0 0; padding-top: 14px; border-top: 1px solid var(--line); max-width: 48ch; }

/* II. the captain's log */
.log { background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(120,20,50,.16), transparent 70%), linear-gradient(180deg, #050505, #0a0708 50%, #060506); }
.featured { max-width: 1040px; margin: 0 auto 56px; }
.feat { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; background: linear-gradient(180deg, rgba(20,15,15,.92), rgba(10,8,8,.92)); border: 1px solid var(--line); border-left: 3px solid var(--pink); padding: clamp(18px, 3vw, 30px); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.feat-cover { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(255,0,170,.22), #000 70%); border: 1px solid #241c1c; overflow: hidden; }
.feat-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.feat-num { font-family: var(--shade); font-size: clamp(56px, 7vw, 84px); color: var(--pink); text-shadow: 0 0 30px rgba(255,0,170,.6); line-height: 1; }
.feat-kicker { font-family: var(--display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dim); margin: 0 0 10px; }
.feat-title { font-size: clamp(30px, 4vw, 52px); line-height: 1; margin: 0 0 14px; color: #f3efe6; }
.feat-sum { color: #d6d0c5; margin: 0 0 14px; max-width: 60ch; }
.feat-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }
.feat-pending { margin: 0; font-family: var(--display); font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.topics { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.topics li { font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); border: 1px solid #4a3c3c; padding: 4px 9px; }
.feat-empty .feat-title { color: var(--pink); text-shadow: 0 0 30px rgba(255,0,170,.45); }

.tv { background: linear-gradient(150deg, #262321, #0d0c0b); border: 2px solid #000; box-shadow: 0 40px 90px rgba(0,0,0,.85), 0 0 70px rgba(255,0,170,.18), inset 0 1px 0 #3a3632; }
.tv-screen-bezel { background: #050505; }
.antenna i { background: #4a4540; }
.antenna i::after { background: var(--gold-dim); box-shadow: 0 0 10px var(--gold-dim); }
.bars { opacity: .5; }
.testcard { background: #000; }
.testcard-label { background: rgba(0,0,0,.88); border: 1px solid var(--pink); box-shadow: 0 0 30px rgba(255,0,170,.35); transform: translate(-50%, -50%); }
.testcard-label strong { font-family: var(--display); color: #f3efe6; }
.tv-brand { color: #8f877b; letter-spacing: .2em; }
.dial { background: radial-gradient(circle at 35% 30%, #4a4642, #0d0c0b 70%); border: 2px solid #000; }
.ch-buttons { grid-template-columns: repeat(var(--chs, 3), 1fr); }
.ch-buttons button { background: #090909; border: 1px solid #3a3632; }
.ch-buttons button[aria-pressed="true"] { background: var(--hot-btn); color: #fff; border-color: var(--pink); box-shadow: 0 0 18px rgba(255,0,170,.5); }
.tv-feet i { background: #0d0c0b; border-color: #000; }
.deck { margin-top: 70px; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; }
.logbook h3 { font-size: 28px; color: var(--gold-dim); letter-spacing: .06em; }
.entries { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.entry-link, .entry-empty { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 4px; color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
.entry-empty { grid-column: 1 / -1; }
.entry-link:hover .entry-title, .entry-link:focus-visible .entry-title { color: var(--pink-glow); }
.entry-link[aria-current="true"] { border-left-color: var(--pink); background: linear-gradient(90deg, rgba(255,0,170,.12), transparent); }
.entry-num { font-family: var(--shade); font-size: 30px; color: var(--gold-dim); line-height: 1; text-align: center; }
.entry-main { display: grid; gap: 3px; min-width: 0; }
.entry-title { font-family: var(--display); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.15; overflow-wrap: anywhere; }
.entry-meta, .entry-topics { font-size: 14px; color: var(--muted); }
.entry-topics { color: #d9b8c6; }
.entry-copy { min-height: 44px; padding: 6px 12px; background: transparent; color: var(--text); border: 1px solid #4a3c3c; font-family: var(--display); font-size: 11px; letter-spacing: .1em; cursor: pointer; }
.entry-copy:hover { border-color: var(--pink); }
.deck-label { font-family: var(--display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; text-align: center; }
.boombox-handle { border-color: #1d1b1a; }
.boombox-body { background: linear-gradient(160deg, #2b2826, #121110); border: 2px solid #000; box-shadow: 0 30px 70px rgba(0,0,0,.8), 0 0 40px rgba(255,0,170,.12); }
.speaker { border-color: #000; }
.cassette-label { background: #e8dcc0; }
.reel { background: repeating-conic-gradient(#cfc6b0 0 30deg, #2a2a2a 30deg 60deg); border-color: #6a645a; }
.bb-btn { background: #0b0b0b; border: 1px solid #3a3632; }
.bb-play { background: var(--hot-btn); color: #fff; border-color: var(--pink); }
.bb-status { color: #e2ddd3; font-weight: 500; }

/* III. grotto: moss and teal-black */
.grotto { background: radial-gradient(ellipse 60% 50% at 30% 60%, rgba(40,70,52,.30), transparent 70%), radial-gradient(ellipse 50% 40% at 80% 30%, rgba(20,55,52,.22), transparent 70%), linear-gradient(180deg, #050605, #060907 50%, #030403); }
.cave-mouth { position: absolute !important; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse 75% 65% at 50% 55%, transparent 50%, #000 85%); }
.cave-mouth::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 110px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='110' viewBox='0 0 200 110'%3E%3Cpath d='M0 0h200v10l-14 60-10-56-18 92-16-94-12 46-14-48-20 76-12-74-16 50-14-54-18 84-14-80-12 40L0 10z' fill='%23000'/%3E%3C/svg%3E") repeat-x 0 0 / 200px 110px; }
.grotto-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 70px); align-items: center; z-index: 1; }
.skull-perch { text-align: center; position: relative; }
.skull-perch::before { content: ""; position: absolute; left: 50%; bottom: 10px; width: 360px; height: 300px; margin-left: -180px; background: radial-gradient(ellipse at 50% 90%, rgba(120,190,150,.16), transparent 65%); pointer-events: none; }
.big-skull { width: min(330px, 72vw); height: auto; display: block; margin: 0 auto -16px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.9)) drop-shadow(0 0 30px rgba(255,0,170,.18)); position: relative; z-index: 1; }
.big-skull .jaw { transform-box: fill-box; transform-origin: 50% 0; }
.big-skull.talking .jaw { animation: chatter .2s ease-in-out 6 alternate; }
@keyframes chatter { to { transform: translateY(10px) rotate(2deg); } }
.big-skull .eye-glow { animation: glow 3.2s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .3; } }
.rock { width: min(340px, 78vw); height: 70px; margin: 0 auto; border-radius: 50% 50% 10px 10px; background: radial-gradient(ellipse at 45% 20%, #1d2620, #050605 70%); }
.voice { font-family: var(--display); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.08; color: #e9e1cc; text-shadow: 0 0 30px rgba(140,200,160,.18), 0 3px 0 #000; margin: 0 0 26px; min-height: 3.3em; }
.voice::before { content: "\201C"; color: var(--pink); margin-right: .05em; }
.voice::after { content: "\201D"; color: var(--pink); margin-left: .05em; }

/* IV. the drop: storm-black */
.plunge { height: 230vh; padding: 0; background: linear-gradient(180deg, #030303 0%, #070707 50%, #0a0909 100%); }
.plunge-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; --lip: 46; }
.falls { position: absolute; left: 50%; top: calc(var(--lip) * 1vh + 20px); bottom: 0; width: min(560px, 84vw); transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 1fr); opacity: .8;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.falls i { background: repeating-linear-gradient(90deg, rgba(230,226,215,.12) 0 2px, transparent 2px 10px), repeating-linear-gradient(180deg, rgba(230,226,215,.45) 0 4px, rgba(20,20,20,.9) 4px 34px, rgba(230,226,215,.2) 34px 38px, rgba(8,8,8,.95) 38px 80px); background-size: 100% 100%, 100% 80px; animation: fall .6s linear infinite; }
.falls i:nth-child(2) { animation-duration: .5s; } .falls i:nth-child(3) { animation-duration: .7s; } .falls i:nth-child(4) { animation-duration: .55s; }
@keyframes fall { to { background-position: 0 0, 0 80px; } }
.plunge-lip { position: absolute; left: 0; right: 0; top: calc(var(--lip) * 1vh); height: 20px; background: linear-gradient(180deg, #1a1918, #050505); border-top: 1px solid #333; }
.plunge-boat { position: absolute; left: 50%; top: calc(var(--lip) * 1vh); width: clamp(140px, 18vw, 230px); height: auto; margin-left: calc(clamp(140px, 18vw, 230px) / -2); margin-top: calc(clamp(140px, 18vw, 230px) * -.66); transform: translateY(calc(var(--drop, 0) * (83 - var(--lip)) * 1vh)) rotate(calc(var(--tilt, 0) * 1deg)); transform-origin: 70% 80%; z-index: 3; filter: drop-shadow(0 0 16px rgba(255,190,80,.35)); }
.splash { position: absolute; left: 50%; bottom: 12%; width: 300px; height: 160px; margin-left: -150px; z-index: 4; pointer-events: none; opacity: 0; }
.splash i { position: absolute; bottom: 0; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: #e8e4da; box-shadow: 0 0 8px rgba(255,255,255,.6); }
.plunge-stage.is-splash .splash { opacity: 1; }
.plunge-stage.is-splash .splash i { animation: droplet .9s ease-out forwards; }
.splash i:nth-child(1) { --sx: -130px; --sy: -110px; } .splash i:nth-child(2) { --sx: -80px; --sy: -150px; } .splash i:nth-child(3) { --sx: -20px; --sy: -170px; } .splash i:nth-child(4) { --sx: 30px; --sy: -160px; } .splash i:nth-child(5) { --sx: 90px; --sy: -140px; } .splash i:nth-child(6) { --sx: 130px; --sy: -100px; } .splash i:nth-child(7) { --sx: 0px; --sy: -120px; }
@keyframes droplet { from { transform: translate(-50%, 0) scale(1.4); opacity: 1; } to { transform: translate(calc(-50% + var(--sx)), var(--sy)) scale(.4); opacity: 0; } }
.plunge-copy { position: absolute; left: 0; right: 0; top: clamp(96px, 12vh, 140px); text-align: center; z-index: 5; padding: 0 16px; }
.plunge-copy h2 { font-size: clamp(36px, 6.4vw, 90px); }
.plunge-line { display: inline-block; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s var(--ease); }
.plunge-stage.s1 .l1, .plunge-stage.s2 .l2, .plunge-stage.is-splash .l3, .plunge-stage.is-splash .l4 { opacity: 1; transform: none; }
.plunge-copy .sub { display: block; margin-top: 10px; }
.splash-word { display: block; font-family: var(--shade); font-size: clamp(64px, 13vw, 170px); color: #e8e4da; text-shadow: 0 0 40px rgba(255,0,170,.55); line-height: 1; position: absolute; left: 0; right: 0; top: calc((var(--lip) + 12) * 1vh - 110px); }
.plunge-pool { position: absolute; left: 0; right: 0; bottom: 0; height: 17%; background: linear-gradient(180deg, #0b0a0a, #020202); border-top: 1px solid rgba(255,0,170,.55); box-shadow: 0 -10px 40px rgba(255,0,170,.12); z-index: 2; }
.lightning-drop { animation-duration: 9s; }

/* V. the brig: rust and amber torchlight */
.jail { background: radial-gradient(ellipse 50% 45% at 50% 55%, rgba(150,70,20,.22), transparent 70%), linear-gradient(180deg, #070504, #0c0806 50%, #050403); }
.jail::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; background-image: linear-gradient(#000 3px, transparent 3px), linear-gradient(90deg, #000 3px, transparent 3px); background-size: 90px 46px, 90px 92px; }
.torches { position: absolute !important; left: 0; right: 0; top: 150px; display: flex; justify-content: space-between; padding: 0 5%; pointer-events: none; z-index: 0; }
.torch { position: relative; width: 12px; height: 64px; background: linear-gradient(180deg, #3a2410, #120a04); border-radius: 2px; }
.torch::before { content: ""; position: absolute; left: 50%; top: -44px; width: 34px; height: 48px; margin-left: -17px; border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%; background: radial-gradient(circle at 50% 75%, #fff2b0, #ffb547 40%, #d9420f 75%, transparent 76%); filter: drop-shadow(0 0 22px rgba(255,120,30,.95)); animation: burn .5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.torch::after { content: ""; position: absolute; left: 50%; top: -120px; width: 360px; height: 360px; margin-left: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,130,40,.16), transparent 65%); }
@keyframes burn { to { transform: scale(1.08, .92) rotate(3deg); } }
.jail-stage { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 10px; z-index: 1; }
.cell { position: relative; background: radial-gradient(ellipse 60% 70% at 55% 45%, rgba(255,140,50,.38), rgba(80,30,8,.25) 50%, #050302 85%); border: 2px solid #000; padding: 18px 10px 0; }
.pirates { display: block; width: 100%; height: auto; }
.pirate.p1 { animation: coax 2.4s ease-in-out infinite; transform-origin: 30% 100%; transform-box: fill-box; }
.pirate.p2 { animation: coax 2.9s ease-in-out -.7s infinite; transform-origin: 30% 100%; transform-box: fill-box; }
@keyframes coax { 50% { transform: rotate(2deg) translateX(3px); } }
.cell .bars { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 34px, #141414 34px 42px, #000 42px 44px); border-top: 10px solid #111; pointer-events: none; box-shadow: inset 0 0 60px #000; }
.floor-dog { position: relative; transition: transform 1.2s var(--ease); }
.floor-dog svg { width: 100%; max-width: 300px; height: auto; display: block; margin-left: auto; transform: scaleX(-1); filter: drop-shadow(0 0 1.5px rgba(255,170,70,.85)) drop-shadow(0 0 20px rgba(255,120,30,.25)); }
.floor-dog .tail { transform-origin: 42px 70px; animation: wag 1.4s ease-in-out infinite alternate; }
@keyframes wag { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
.floor-dog .key { filter: drop-shadow(0 0 4px #f5ff00); }
.floor-dog.is-tempted { animation: tempt 1s ease-in-out; }
@keyframes tempt { 40% { transform: translateX(-24px); } 100% { transform: none; } }
.floor-dog.is-friend { transform: translateX(-38%); }
.floor-dog.is-friend .key { transition: transform .8s var(--ease) .9s, opacity .4s 1.4s; transform: translate(-40px, -30px) rotate(-30deg); opacity: 0; }
.jail-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 34px; z-index: 1; }
.jail-status { text-align: center; font-family: var(--display); font-size: clamp(17px, 1.8vw, 22px); line-height: 1.3; color: #f5ff00; margin: 20px auto 0; max-width: 44ch; min-height: 2.6em; z-index: 1; }

/* VI. burning port: ember and oxblood */
.town { background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(170,40,10,.35), transparent 70%), linear-gradient(180deg, #080404 0%, #120605 55%, #070303 100%); }
.town.is-calm { background: linear-gradient(180deg, #060505 0%, #0a0808 55%, #050404 100%); }
.skyline { position: absolute !important; left: 0; right: 0; bottom: 70px; height: 280px; z-index: -1; pointer-events: none; background: #000;
  clip-path: polygon(0 100%, 0 55%, 6% 55%, 6% 35%, 10% 25%, 14% 35%, 14% 60%, 22% 60%, 22% 30%, 30% 30%, 30% 50%, 36% 50%, 36% 15%, 40% 5%, 44% 15%, 44% 55%, 52% 55%, 52% 40%, 60% 40%, 60% 25%, 66% 25%, 66% 60%, 74% 60%, 74% 20%, 78% 12%, 82% 20%, 82% 50%, 90% 50%, 90% 35%, 96% 35%, 96% 55%, 100% 55%, 100% 100%); }
.town::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; z-index: -2; background: radial-gradient(ellipse at 50% 100%, rgba(255,80,20,.38), transparent 65%); animation: flicker 2s steps(5) infinite; }
.town.is-calm::after { opacity: 0; }
.embers i { position: absolute; bottom: 80px; width: 4px; height: 4px; border-radius: 50%; background: #ffb547; box-shadow: 0 0 8px #ff6a1a; animation: ember 4.5s linear infinite; }
.embers i:nth-child(1) { left: 8%; animation-delay: -.5s; } .embers i:nth-child(2) { left: 20%; animation-delay: -2s; } .embers i:nth-child(3) { left: 33%; animation-delay: -1s; } .embers i:nth-child(4) { left: 47%; animation-delay: -3s; } .embers i:nth-child(5) { left: 60%; animation-delay: -.2s; } .embers i:nth-child(6) { left: 72%; animation-delay: -2.6s; } .embers i:nth-child(7) { left: 85%; animation-delay: -1.4s; } .embers i:nth-child(8) { left: 93%; animation-delay: -3.4s; }
@keyframes ember { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(30px, -440px); opacity: 0; } }
.town.is-calm .embers { display: none; }
.server-room { max-width: 780px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 30px); padding-top: 70px; z-index: 1; }
.rack { position: relative; background: linear-gradient(180deg, #161413, #070606); border: 2px solid #000; padding: 10px; display: grid; gap: 8px; box-shadow: 0 20px 40px rgba(0,0,0,.8); }
.rack i { display: block; height: 22px; background: #040404; border: 1px solid #1d1b1a; position: relative; }
.rack i::before, .rack i::after { content: ""; position: absolute; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; animation: blink .5s steps(2) infinite; }
.rack i::before { left: 8px; } .rack i::after { left: 20px; animation-delay: -.25s; }
.town.is-calm .rack i::before, .town.is-calm .rack i::after { background: #39d98a; box-shadow: 0 0 8px #39d98a; animation-duration: 2s; }
@keyframes blink { 50% { opacity: .2; } }
.flame { position: absolute; bottom: 88%; left: 30%; width: 64px; height: 90px; border-radius: 50% 0 50% 50%; transform: rotate(-45deg); background: radial-gradient(circle at 60% 40%, #fff2b0 0 12%, #ffb547 32%, #e0400f 65%, rgba(120,20,5,.6) 80%); filter: drop-shadow(0 0 24px rgba(255,80,20,.9)); animation: lick .45s ease-in-out infinite alternate; transform-origin: 100% 0; transition: opacity .6s, transform .6s; }
.flame.f2 { left: 60%; width: 48px; height: 70px; animation-duration: .35s; }
.flame.f3 { left: 6%; width: 42px; height: 58px; animation-duration: .55s; }
@keyframes lick { to { transform: rotate(-45deg) scale(1.15, .9); } }
.town.is-calm .flame { opacity: 0; transform: rotate(-45deg) scale(.2); }
.alarms { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-around; pointer-events: none; }
.alarms span { font-family: var(--display); font-size: clamp(18px, 3vw, 30px); color: #ff5a4a; text-shadow: 0 0 14px rgba(255,60,40,.7); animation: blink .8s steps(2) infinite; }
.alarms span:nth-child(2n) { animation-delay: -.4s; }
.town.is-calm .alarms span { color: #39d98a; text-shadow: none; animation: none; }
.town-controls { text-align: center; margin-top: 38px; z-index: 1; }
.town-status { font-family: var(--display); font-size: clamp(16px, 1.8vw, 21px); color: #f5ff00; margin: 18px 0 0; min-height: 1.5em; }

/* VII. crew: sepia black */
.crew { background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(120,90,50,.14), transparent 70%), linear-gradient(180deg, #060505, #0b0908 60%, #060505); }
.poster { background: linear-gradient(180deg, #2b241a, #1a150f); color: #eadfc4; border: 1px solid #000; box-shadow: 0 20px 50px rgba(0,0,0,.85), inset 0 0 40px rgba(0,0,0,.6); }
.poster .wanted { color: var(--gold-dim); text-shadow: 0 0 20px rgba(245,255,0,.3); }
.poster .charge { font-family: var(--display); font-size: 17px; color: #eadfc4; }
.poster .reward { border-top-color: rgba(234,223,196,.35); color: #d8ccb0; }
.crew-pic img { border: 1px solid #000; box-shadow: 0 30px 70px rgba(0,0,0,.85), 0 0 50px rgba(255,0,170,.2); filter: brightness(.88) contrast(1.05) saturate(.9); }
.pa { position: relative; max-width: 980px; margin: 70px auto 0; padding: clamp(24px, 4vw, 44px); background: linear-gradient(180deg, #121010, #0a0909); color: var(--text); border: 1px solid var(--line); border-top: 2px solid var(--pink); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.pa .sub { color: var(--muted); }
.pa-title { font-size: clamp(30px, 4.6vw, 54px); color: #f3efe6; text-shadow: 0 0 30px rgba(255,0,170,.3); }
.pa-grid { max-width: 900px; margin: 26px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.pa-card { background: #050505; color: var(--text); border: 1px solid #2c2626; padding: 22px; text-align: left; box-shadow: none; transform: none !important; }
.pa-card h4 { font-family: var(--display); font-weight: 400; color: var(--pink-glow); font-size: 24px; margin: 0 0 8px; }
.pa-card p { margin: 0; color: var(--muted); }
.pa-vs { font-family: var(--shade); font-size: 50px; color: var(--gold-dim); text-shadow: none; }
.pa-vote legend { color: var(--text); }
.pa-vote span { background: #050505; color: var(--text); border: 1px solid #4a3c3c; }
.pa-vote input:checked + span { background: var(--hot-btn); color: #fff; border-color: var(--pink); }
.pa-vote input:focus-visible + span { outline-color: var(--text); }
.pa-result { font-family: var(--display); font-size: 19px; color: #f5ff00; }

/* VIII. wall: plum-black */
.wall { background: radial-gradient(ellipse 60% 40% at 70% 30%, rgba(120,20,70,.18), transparent 70%), linear-gradient(180deg, #060506, #0b070a 50%, #060506); }
.auctioneer { max-width: 760px; margin: -10px auto 34px; display: flex; align-items: center; justify-content: center; gap: 14px; z-index: 1; }
.gavel { width: 60px; height: 60px; flex: none; }
.gavel .gavel-head { transform-box: view-box; transform-origin: 20px 70px; }
.gavel.bang .gavel-head { animation: bang .45s ease-in 1; }
@keyframes bang { 40% { transform: rotate(-30deg); } 70% { transform: rotate(8deg); } }
.auction-call { font-family: var(--display); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dim); margin: 0; }
.tag-form { background: #0a0809; border: 1px solid var(--line); border-top: 2px solid var(--pink); box-shadow: 0 20px 60px rgba(0,0,0,.7); border-radius: 0; }
.tag-form textarea, .mc-form input { background: #050505; border: 1px solid #4a4540; color: var(--text); }
.chips span { border: 1px solid #5a524a; }
.chips input:checked + span { background: var(--hot-btn); color: #fff; border-color: var(--pink); }
.filter { background: #050505; border: 1px solid #4a4540; border-radius: 0; }
.filter.is-on { background: var(--text); color: #000; border-color: var(--text); }
.example-note { color: var(--muted); }
.tag { background: #121012; color: var(--text); border: 1px solid #3a2c33; border-radius: 0; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.tag.t-AI { background: #160b11; border-color: rgba(255,0,170,.6); box-shadow: 0 0 24px rgba(255,0,170,.15); }
.tag.t-Shipping { background: #13100a; border-color: rgba(245,255,0,.55); }
.tag.t-Wildcard { background: #0d0d0d; border-color: #6a645a; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.tag .tag-theme { color: var(--gold-dim); }
.tag.t-AI .tag-theme { color: var(--pink-glow); }
.tag .tag-text { color: #f0ebe1; }
.spray-btn, .t-Wildcard .spray-btn { background: transparent; color: var(--text); border: 1px solid var(--pink); border-radius: 0; }
.spray-btn[aria-pressed="true"] { background: var(--hot-btn); color: #fff; border-color: var(--pink); }
.drip, .t-AI .drip { background: var(--pink); }
.tag .yours { background: #000; color: var(--text); border: 1px solid var(--pink); }
.form-error { color: #ff4da6; }

/* IX. chart room: parchment brown-black */
.map { background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(110,80,40,.18), transparent 70%), linear-gradient(180deg, #060505, #0c0906 60%, #060504); }
.map-board { background: radial-gradient(circle at 20% 30%, rgba(245,255,0,.10), transparent 40%), radial-gradient(circle at 80% 70%, rgba(255,0,170,.07), transparent 40%), #0e0b08; border: 1px solid #000; outline: 1px dashed rgba(245,255,0,.35); border-radius: 2px; box-shadow: 0 40px 90px rgba(0,0,0,.8); }
.map-route::before { border-top: 2px dashed rgba(255,0,170,.6); }
.stop-x { position: relative; z-index: 1; width: 80px; height: 80px; margin: 0 auto; padding: 8px; background: #0a0705; border: 1px solid #4a3c2c; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease); }
.stop-x svg { width: 100%; height: 100%; }
.stop.is-done .stop-x { border-color: var(--gold-dim); box-shadow: 0 0 22px 2px rgba(245,255,0,.45); }
.stop.is-next .stop-x { border-color: var(--pink); box-shadow: 0 0 22px 2px rgba(255,0,170,.45); background: #120609; }
.stop-x[aria-expanded="true"] { background: #2a1d0a; border-color: var(--gold-dim); box-shadow: 0 0 0 3px var(--pink); }
.stop-date { color: #a39b8f; }
.stop-title { color: var(--text); }
.chest { background: #050505; border: 1px solid var(--line); border-radius: 0; }
.chest h3 { color: var(--pink-glow); }
.chest .chest-meta { color: #a39b8f; }
.chest-empty { color: var(--muted); font-family: var(--display); font-size: 16px; letter-spacing: .04em; }
.doubloons { color: #d6d0c5; }
.map-legend { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--display); font-size: 11px; letter-spacing: .1em; color: #c7bfb3; }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.map-legend svg { width: 26px; height: 26px; }

/* X. hoard: tarnished gold */
.vault { background: radial-gradient(ellipse 60% 50% at 50% 62%, rgba(150,110,20,.24), transparent 70%), linear-gradient(180deg, #060504, #0c0a05 60%, #050403); }
.vault-glow { position: absolute !important; left: 50%; top: 42%; width: 900px; height: 500px; margin-left: -450px; z-index: -1; background: radial-gradient(ellipse, rgba(200,150,40,.20), transparent 65%); animation: flicker 4s steps(8) infinite; pointer-events: none; }
.hoard { position: relative; max-width: 860px; height: 300px; margin: 0 auto; z-index: 1; }
.hoard::before { content: ""; position: absolute; left: 5%; right: 5%; bottom: 0; height: 150px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: radial-gradient(circle at 50% 25%, #d8b453, #9a7418 40%, #3a2a06 85%); box-shadow: 0 0 80px 10px rgba(200,150,40,.22); }
.gold { position: absolute; display: grid; place-items: center; min-width: 74px; height: 74px; padding: 0 12px; border-radius: 999px; font-family: var(--display); font-size: 12px; color: #120d02; text-align: center; line-height: 1.05; background: radial-gradient(circle at 35% 30%, #f6e2a0, #d4a93a 50%, #8a6514); border: 1px solid #000; box-shadow: inset 0 0 0 4px rgba(0,0,0,.18), 0 6px 12px rgba(0,0,0,.6); animation: gleam 3.4s ease-in-out infinite; }
.gold:nth-child(odd) { animation-delay: -1.7s; }
@keyframes gleam { 50% { filter: brightness(1.15); transform: translateY(-3px); } }
.g1 { left: 6%; bottom: 40px; } .g2 { left: 18%; bottom: 100px; } .g3 { left: 30%; bottom: 30px; } .g4 { left: 34%; bottom: 150px; min-width: 60px; height: 60px; font-size: 22px; } .g5 { left: 44%; bottom: 90px; }
.g6 { left: 56%; bottom: 30px; } .g7 { left: 58%; bottom: 150px; } .g8 { left: 70%; bottom: 90px; } .g9 { left: 80%; bottom: 30px; } .g10 { left: 47%; bottom: 200px; min-width: 66px; height: 66px; font-size: 24px; }
.g11 { left: 12%; bottom: 0; } .g12 { left: 66%; bottom: 10px; } /* was under the chest */ .g13 { left: 68%; bottom: 190px; } .g14 { left: 84%; bottom: 120px; }
.toss { position: absolute; z-index: 5; pointer-events: none; animation: toss .9s cubic-bezier(.3,.7,.4,1) forwards; }
@keyframes toss { from { transform: translate(0,0) rotate(0); opacity: 1; } to { transform: translate(var(--tx), -180px) rotate(540deg); opacity: 0; } }
.vault-actions { text-align: center; margin-top: 34px; z-index: 1; }
.loot-count { font-family: var(--display); color: #f5ff00; font-size: 14px; letter-spacing: .08em; margin: 14px 0 0; }
.mc { position: relative; max-width: 760px; margin: 70px auto 0; text-align: center; background: rgba(0,0,0,.55); border: 1px solid rgba(245,255,0,.45); padding: 28px clamp(16px, 3vw, 30px); }
.mc h3 { color: #f5ff00; font-size: clamp(22px, 3vw, 32px); }
.mc-coin { width: min(320px, 80vw); aspect-ratio: 1; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 35% 30%, #f1dc98, #c99a2e 50%, #5e440b 100%); border: 2px solid #000; box-shadow: inset 0 0 0 10px rgba(0,0,0,.2), 0 0 50px rgba(200,150,40,.3); }
.mc-handle { font-family: var(--display); font-size: clamp(22px, 3.4vw, 30px); color: #0d0a02; margin: 0; line-height: 1.1; overflow-wrap: anywhere; }

/* XI. quartermaster */
.shop { background: radial-gradient(ellipse 60% 40% at 50% 20%, rgba(255,0,170,.08), transparent 70%), linear-gradient(180deg, #050404, #090707 50%, #040404); padding-bottom: 90px; }
.exit-sign { position: absolute !important; top: 30px; right: clamp(16px, 4vw, 60px); font-family: var(--display); font-size: 16px; letter-spacing: .2em; color: #4fe39b; background: #020a05; border: 1px solid #39d98a; padding: 6px 14px; box-shadow: 0 0 22px rgba(57,217,138,.45); text-transform: uppercase; z-index: 1; }
.merch { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; z-index: 1; }
.item { background: linear-gradient(180deg, #121010, #0a0909); color: var(--text); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.7); }
.item h3 { font-size: 21px; margin: 14px 0 6px; color: #f3efe6; }
.item p { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.item .price { font-family: var(--display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dim); margin-top: auto; }
.want { min-height: 44px; padding: 8px 14px; background: transparent; color: var(--text); border: 1px solid #6a645a; font-family: var(--display); font-size: 13px; letter-spacing: .08em; cursor: pointer; }
.want:hover { border-color: var(--pink); }
.want[aria-pressed="true"] { background: var(--hot-btn); color: #fff; border-color: var(--pink); }
.item-art { height: 170px; display: grid; place-items: center; text-align: center; background: radial-gradient(ellipse at 50% 60%, rgba(255,0,170,.14), #050505 70%); border: 1px solid #1d1a18; overflow: hidden; color: var(--text); }
.item-art svg { width: 150px; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,.8)); }
.art-skull svg { width: 110px; }
.art-stickers { grid-template-columns: repeat(3, auto); gap: 8px; justify-content: center; }
.art-stickers span { font-family: var(--display); font-size: 11px; letter-spacing: .08em; padding: 6px 8px; border: 1px solid var(--pink); color: var(--pink-glow); background: #000; transform: rotate(-5deg); }
.art-stickers span:nth-child(2) { transform: rotate(4deg); color: var(--text); border-color: #6a645a; } .art-stickers span:nth-child(3) { color: #f5ff00; border-color: var(--gold-dim); }
.art-lantern { background: radial-gradient(ellipse at 50% 65%, rgba(255,170,60,.22), #050505 70%); }
.lantern-solo { width: 30px; height: 120px; animation: sway 5s ease-in-out infinite; }
.lantern-solo::after { width: 30px; height: 42px; }
.art-logbook span { font-family: var(--marker); font-size: 24px; line-height: 1.1; color: #e8dcc0; background: linear-gradient(180deg, #3a2414, #1f130a); border: 1px solid #000; padding: 26px 22px; box-shadow: 6px 0 0 -2px #e8dcc0, 0 12px 24px rgba(0,0,0,.8); }

/* footer, toast, egg tweaks */
.foot { background: #040404; border-top: 1px solid #2a1a20; color: var(--muted); }
.foot-big { font-family: var(--display); font-size: clamp(18px, 2.2vw, 24px); letter-spacing: .04em; color: #f5ff00; }
.foot-small, .plank { color: #a39b8f; }
.squawk { background: #0b0b0b; color: var(--text); border: 1px solid var(--pink); box-shadow: 0 0 20px rgba(255,0,170,.3); }
.toast { background: #050505; border: 1px solid var(--pink); box-shadow: 0 0 24px rgba(255,0,170,.35); }
.stamp { background: #cfc6b0; }
body.graffiti-mode h2 { color: var(--pink); }
.plank-page { background: radial-gradient(ellipse 50% 40% at 78% 6%, rgba(225,222,210,.10), transparent 70%), linear-gradient(180deg, #070607, #0a0809 70%, #050505); }
.plank-page .scene-sign { color: var(--gold-dim); }
.sea { filter: grayscale(1) brightness(.35); }

@media (max-width: 980px) {
  .dock .hero-inner { grid-template-columns: 1fr; }
  .grotto-grid { grid-template-columns: 1fr; text-align: center; }
  .merch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .top nav a { font-size: 11px; padding: 8px 4px; min-height: 44px; }
  .scene { scroll-margin-top: 120px; }
  .moon { width: 60px; height: 60px; top: 40px; }
  .lantern-row .lantern:nth-child(n+4) { display: none; }
  .feat { grid-template-columns: 1fr; border-left-width: 1px; border-top: 3px solid var(--pink); }
  .feat-cover { max-width: 180px; }
  .entry-link, .entry-empty { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
  .entry-num { font-size: 24px; }
  .entry { grid-template-columns: 1fr; gap: 0; padding-bottom: 12px; }
  .entry-copy { justify-self: start; margin-left: 68px; }
  .plunge { height: 200vh; }
  .plunge-stage { --lip: 50; }
  .plunge-copy { top: 118px; }
  .jail-stage { grid-template-columns: 1fr; }
  .floor-dog svg { max-width: 220px; margin: -10px auto 0; }
  .floor-dog.is-friend { transform: translateY(-30px); }
  .server-room { padding-top: 54px; }
  .rack { padding: 6px; gap: 6px; }
  .rack i { height: 16px; }
  .rack i::before, .rack i::after { top: 4px; }
  .flame { width: 40px; height: 56px; } .flame.f2 { width: 30px; height: 44px; } .flame.f3 { width: 26px; height: 36px; }
  .hoard { height: 260px; }
  .gold { min-width: 58px; height: 58px; font-size: 10px; padding: 0 8px; }
  .g4, .g10 { min-width: 48px; height: 48px; font-size: 18px; }
  .g12 { left: 3%; bottom: 160px; } .g2 { left: 4%; } .g7 { left: 52%; } .g13 { left: 64%; } .g14 { left: 72%; bottom: 140px; } .g9 { left: 76%; } .g8 { left: 66%; }
  .merch { grid-template-columns: 1fr; }
  .exit-sign { font-size: 12px; top: 16px; }
  .pa-grid { grid-template-columns: 1fr; }
  .stencil { letter-spacing: .14em; }
  .torches { top: 40px; padding: 0 3%; }
}

/* responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .deck { grid-template-columns: 1fr; }
  .wall-grid { grid-template-columns: 1fr; }
  .tag-form { position: static; }
  .posters { grid-template-columns: 1fr 1fr; }
  .crew-pic { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top { gap: 10px; flex-wrap: wrap; padding-bottom: 4px; }
  .brand span { font-size: 15px; }
  .top nav { order: 3; width: 100%; margin: 0; }
  .top nav ul { justify-content: space-between; }
  .top nav a { font-size: 12px; padding: 8px 6px; }
  .sound { margin-left: auto; }
  .tv { grid-template-columns: 1fr; padding: 14px; border-radius: 22px; }
  .tv-screen-bezel { padding: 10px; }
  .tv-screen { border-radius: 26px / 20px; }
  .tv-panel { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 0; gap: 14px; }
  .tv-brand { width: 100%; }
  .dial { width: 84px; height: 84px; }
  .ch-buttons { width: auto; flex: 1; min-width: 160px; }
  .tv-feet { padding: 0 40px; }
  .testcard-label { padding: 8px 10px; min-width: 80%; border-width: 3px; }
  .testcard-label span:last-child { font-size: 12px; }
  .boombox-body { grid-template-columns: 1fr; padding: 14px; }
  .speaker { display: none; }
  .boombox-handle { margin: 0 28%; }
  .pa-grid { grid-template-columns: 1fr; }
  .pa-vs { text-align: center; font-size: 40px; }
  .map-board { padding: 56px 16px 20px; }
  .doubloons { left: 22px; right: auto; }
  .map-route { grid-template-columns: 1fr; gap: 0; }
  .map-route::before { left: 37px; right: auto; top: 30px; bottom: 30px; border-top: 0; border-left: 4px dashed var(--pink); }
  .stop { display: grid; grid-template-columns: 78px 1fr; column-gap: 14px; align-items: center; text-align: left; margin: 0 0 18px; }
  .stop:nth-child(even) { margin-top: 0; }
  .stop-x { width: 64px; height: 64px; margin: 0 0 0 5px; grid-row: span 3; }
  .stop-date { margin-top: 0; }
  .stop .stamp { justify-self: start; }
  .posters { grid-template-columns: 1fr; }
  .mc-row { flex-direction: column; }
}

/* ================= v5: gold, hot pink, glow and fire ================= */
/* Palette from resume.willschmierer.com: --accent #ff00aa (hot pink), --accent-secondary #f5ff00 (gold), --gradient-headline 120deg #f5f5f5 > #ff67cd > #f5ff00. Metallic ramp built on #f5ff00: #ffffb8 > #f5ff00 > #ffd000 > #e0a800. Pink button fill #d1008b so white text passes AA at any size. */
:root { --gold-grad: linear-gradient(180deg, #ffffb8 0%, #f5ff00 40%, #ffd000 75%, #e0a800 100%); --gold-glow: 0 0 8px rgba(245,255,0,.75), 0 0 22px rgba(245,255,0,.5), 0 0 48px rgba(245,255,0,.28); --pink-neon: 0 0 4px #ff00aa, 0 0 14px #ff00aa, 0 0 34px rgba(255,0,170,.85), 0 0 80px rgba(255,0,170,.5); }

/* gold display text and badges */
.scene-sign, .feat-kicker, .logbook h3, .entry-num, .pa-vs, .poster .wanted, .mc h3, .auction-call, .h1-a, .loot-count, .stencil, .foot-big {
  color: #f5ff00; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 0 6px rgba(245,255,0,.55)) drop-shadow(0 0 18px rgba(245,255,0,.3)); }
.scene-sign { border-image: linear-gradient(90deg, transparent, #f5ff00 15%, #ffffb8 50%, #f5ff00 85%, transparent) 1; border-top-width: 1px; border-bottom-width: 1px; border-style: solid none; }
.h1-a { filter: drop-shadow(0 6px 0 #000) drop-shadow(0 0 14px rgba(245,255,0,.6)) drop-shadow(0 0 44px rgba(245,255,0,.35)); }
.h1-b { color: #ff00aa; text-shadow: 0 6px 0 #000, var(--pink-neon); }
h2, .scene .section-head h2 { color: #fff7ea; text-shadow: 0 5px 0 #000, 0 0 2px #fff, 0 0 14px rgba(255,0,170,.8), 0 0 36px rgba(255,0,170,.55), 0 0 90px rgba(255,0,170,.3); }
.kicker, .lede-tag, .ticker, .entry-topics { color: #ff00aa; }
.lede-tag, .dock .kicker { text-shadow: 0 0 12px rgba(255,0,170,.55); }
.ticker { border-color: rgba(255,0,170,.5); box-shadow: 0 0 18px rgba(255,0,170,.25); }
.ticker-track span::after { color: #f5ff00; }
.topics li, .stop.is-done .stop-x { border-color: #f5ff00; }
.topics li { box-shadow: 0 0 10px rgba(245,255,0,.25); }
.feat { border-left-color: #ff00aa; box-shadow: 0 30px 80px rgba(0,0,0,.7), -6px 0 30px -10px rgba(255,0,170,.8); }
.feat-cover { border-color: rgba(255,0,170,.5); box-shadow: 0 0 30px rgba(255,0,170,.35), inset 0 0 40px rgba(255,0,170,.2); }
.feat-num { color: #ff00aa; text-shadow: var(--pink-neon); }
.entry-link[aria-current="true"] { border-left-color: #ff00aa; background: linear-gradient(90deg, rgba(255,0,170,.2), transparent); box-shadow: -4px 0 18px -6px #ff00aa; }

/* buttons */
.btn-pink, .bb-play, .ch-buttons button[aria-pressed="true"], .chips input:checked + span, .pa-vote input:checked + span, .spray-btn[aria-pressed="true"], .want[aria-pressed="true"] {
  background: #d1008b; color: #fff; border-color: #ff00aa; text-shadow: 0 1px 0 rgba(0,0,0,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 1px #ff00aa, 0 0 16px rgba(255,0,170,.75), 0 0 44px rgba(255,0,170,.45); }
.btn-pink:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 1px #ff00aa, 0 0 24px #ff00aa, 0 0 70px rgba(255,0,170,.6); }
.btn-ghost { color: #ffffb8; border-color: #f5ff00; box-shadow: 0 0 14px rgba(245,255,0,.35), inset 0 0 12px rgba(245,255,0,.12); }
.btn-ghost:hover { border-color: #ffffb8; box-shadow: var(--gold-glow); }
.entry-copy, .want, .spray-btn { border-color: rgba(245,255,0,.6); }
.entry-copy:hover, .want:hover { border-color: #ffffb8; box-shadow: 0 0 14px rgba(245,255,0,.45); }

/* TV, boombox, rail, lanterns */
.tv { border-color: #000; box-shadow: 0 40px 90px rgba(0,0,0,.85), 0 0 0 2px rgba(245,255,0,.5), 0 0 40px rgba(245,255,0,.25), 0 0 90px rgba(255,0,170,.3); }
.tv-screen-bezel { box-shadow: 0 0 0 2px #ff00aa, 0 0 22px rgba(255,0,170,.7), 0 0 60px rgba(255,0,170,.35), inset 0 0 30px rgba(255,0,170,.25); }
.testcard-label { border-color: #ff00aa; box-shadow: var(--pink-neon); }
.boombox-body { box-shadow: 0 30px 70px rgba(0,0,0,.8), 0 0 0 1px rgba(245,255,0,.4), 0 0 40px rgba(255,0,170,.25); }
.lantern::after { background: radial-gradient(circle at 50% 58%, #fffbe6, #ffffb8 30%, #f5ff00 60%, #a85f00 90%); box-shadow: 0 0 18px 6px rgba(245,255,0,.75), 0 0 60px 20px rgba(245,255,0,.38), 0 0 140px 50px rgba(255,140,0,.16); }
.ride-progress-fill { background: linear-gradient(90deg, #f5ff00, #ffffb8 40%, #ff00aa); box-shadow: 0 0 10px #ff00aa; }
@media (min-width: 1360px) {
  .ride-rail ol { display: flex; flex-direction: column; gap: 28px; padding: 14px 0; }
  .ride-rail ol::before { background: linear-gradient(180deg, rgba(245,255,0,.2), rgba(245,255,0,.6), rgba(245,255,0,.2)); box-shadow: 0 0 8px rgba(245,255,0,.4); }
  .ride-rail a { margin: 0 4px; border-color: #e0a800; box-shadow: 0 0 8px rgba(245,255,0,.35); }
  .ride-rail a::before { inset: -13px; }
  .ride-rail a.is-here { background: radial-gradient(circle at 40% 35%, #ffffc8, #faff4d 45%, #e0a800); border-color: #ffffb8; box-shadow: 0 0 10px #faff4d, 0 0 26px rgba(245,255,0,.8), 0 0 50px rgba(255,0,170,.35); }
  .ride-rail a span { font-size: 13px; border-color: rgba(245,255,0,.5); color: #ffffb8; }
}

/* richer scene tints, still near-black, no navy */
.dock { background: radial-gradient(ellipse 50% 40% at 78% 6%, rgba(240,235,215,.12), transparent 70%), radial-gradient(ellipse 45% 35% at 8% 92%, rgba(255,120,0,.22), transparent 70%), radial-gradient(ellipse 45% 35% at 92% 92%, rgba(255,120,0,.2), transparent 70%), radial-gradient(ellipse 60% 50% at 25% 60%, rgba(255,0,170,.16), transparent 70%), linear-gradient(180deg, #070607, #0b0709 70%, #050505); }
.log { background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(200,0,90,.2), transparent 70%), radial-gradient(ellipse 40% 30% at 50% 0%, rgba(245,255,0,.12), transparent 70%), linear-gradient(180deg, #050505, #0c0609 50%, #060506); }
.grotto { background: radial-gradient(ellipse 60% 50% at 30% 60%, rgba(0,150,100,.22), transparent 70%), radial-gradient(ellipse 50% 40% at 80% 30%, rgba(0,130,120,.16), transparent 70%), linear-gradient(180deg, #040605, #050a07 50%, #030403); }
.jail { background: radial-gradient(ellipse 50% 45% at 50% 55%, rgba(255,110,10,.3), transparent 70%), linear-gradient(180deg, #080504, #0d0805 50%, #050403); }
.town { background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255,60,0,.45), transparent 70%), radial-gradient(ellipse 60% 40% at 50% 40%, rgba(160,0,30,.22), transparent 70%), linear-gradient(180deg, #090404, #130605 55%, #070303); }
.crew { background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(255,140,30,.15), transparent 70%), linear-gradient(180deg, #060505, #0c0907 60%, #060505); }
.wall { background: radial-gradient(ellipse 60% 40% at 70% 30%, rgba(220,0,120,.24), transparent 70%), radial-gradient(ellipse 40% 30% at 15% 70%, rgba(245,255,0,.08), transparent 70%), linear-gradient(180deg, #060506, #0c060a 50%, #060506); }
.map { background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255,170,30,.16), transparent 70%), linear-gradient(180deg, #060505, #0d0906 60%, #060504); }
.vault { background: radial-gradient(ellipse 60% 50% at 50% 62%, rgba(255,190,0,.28), transparent 70%), linear-gradient(180deg, #060504, #0d0a04 60%, #050403); }
.vault-glow { background: radial-gradient(ellipse, rgba(255,200,40,.3), transparent 65%); }
.hoard::before { background: radial-gradient(circle at 50% 25%, #ffffb8, #f5ff00 35%, #e0a800 60%, #3a2a06 90%); box-shadow: 0 0 90px 16px rgba(245,255,0,.35); }
.gold { background: radial-gradient(circle at 35% 30%, #ffffc8, #faff4d 35%, #f5ff00 60%, #e0a800); box-shadow: inset 0 0 0 4px rgba(0,0,0,.15), 0 6px 12px rgba(0,0,0,.6), 0 0 16px rgba(245,255,0,.5); }
@keyframes gleam { 50% { transform: translateY(-4px) scale(1.04); } }
.mc { border-color: rgba(245,255,0,.6); box-shadow: 0 0 40px rgba(245,255,0,.15); }
.mc-coin { background: radial-gradient(circle at 35% 30%, #ffffc8, #faff4d 35%, #f5ff00 60%, #a86f00); box-shadow: inset 0 0 0 10px rgba(0,0,0,.15), 0 0 30px rgba(245,255,0,.55), 0 0 90px rgba(245,255,0,.3); }
.shop { background: radial-gradient(ellipse 60% 40% at 50% 20%, rgba(255,0,170,.14), transparent 70%), radial-gradient(ellipse 50% 30% at 50% 100%, rgba(245,255,0,.1), transparent 70%), linear-gradient(180deg, #050404, #0a0608 50%, #040404); }
.item { border-color: rgba(245,255,0,.25); }
.item:hover { border-color: rgba(245,255,0,.6); box-shadow: 0 20px 50px rgba(0,0,0,.7), 0 0 24px rgba(245,255,0,.2); }
.item .price { color: #f5ff00; text-shadow: 0 0 10px rgba(245,255,0,.5); }
.poster { box-shadow: 0 20px 50px rgba(0,0,0,.85), inset 0 0 40px rgba(0,0,0,.6), 0 0 30px rgba(255,140,30,.15); }
.tag.t-AI { border-color: #ff00aa; box-shadow: 0 0 22px rgba(255,0,170,.3); }
.tag.t-Shipping { border-color: #f5ff00; box-shadow: 0 0 18px rgba(245,255,0,.2); }
.tag .tag-theme { color: #f5ff00; }
.jail-status, .town-status, .pa-result { color: #f5ff00; text-shadow: 0 0 12px rgba(245,255,0,.4); }
.voice { text-shadow: 0 0 30px rgba(0,200,140,.25), 0 3px 0 #000; }
.voice::before, .voice::after { color: #ff00aa; text-shadow: var(--pink-neon); }
.brand img { border-color: #ff00aa; box-shadow: 0 0 10px #ff00aa, 0 0 24px rgba(255,0,170,.5); }
.logo { box-shadow: 0 0 0 1px #000, 0 30px 80px rgba(0,0,0,.9), 0 0 40px rgba(255,0,170,.5), 0 0 120px rgba(255,0,170,.3), 0 0 60px rgba(245,255,0,.15); }
.foot { border-top-color: #ff00aa; box-shadow: 0 -10px 30px -10px rgba(255,0,170,.5); }
.exit-sign { box-shadow: 0 0 10px #39d98a, 0 0 30px rgba(57,217,138,.5); }

/* fire: shared flame (transform and opacity only) */
@keyframes flameA { 0% { transform: translateX(-50%) scale(1, 1) rotate(-2deg); } 50% { transform: translateX(-50%) scale(1.08, .9) rotate(3deg); } 100% { transform: translateX(-50%) scale(.94, 1.1) rotate(-3deg); } }
@keyframes pool { 0%, 100% { opacity: .85; } 30% { opacity: .62; } 55% { opacity: .95; } 80% { opacity: .7; } }
@keyframes rise { 0% { opacity: 0; transform: translate(0, 0) scale(var(--s, 1)); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx, 20px), -520px) scale(calc(var(--s, 1) * .3)); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.edge-flame b, .brazier-flame b, .firewall i { position: absolute; left: 50%; bottom: 0; transform-origin: 50% 100%; border-radius: 50% 50% 35% 35% / 65% 65% 35% 35%; }
.edge-flame b:nth-child(1), .brazier-flame b:nth-child(1) { width: 100%; height: 100%; background: radial-gradient(ellipse at 50% 85%, #ffb000 0%, #ff5a00 45%, rgba(200,30,0,.0) 72%); animation: flameA .5s ease-in-out infinite alternate; }
.edge-flame b:nth-child(2), .brazier-flame b:nth-child(2) { width: 66%; height: 78%; background: radial-gradient(ellipse at 50% 80%, #fff6c8 0%, #faff4d 40%, rgba(255,140,0,0) 72%); animation: flameA .38s ease-in-out -.2s infinite alternate; }
.edge-flame b:nth-child(3), .brazier-flame b:nth-child(3) { width: 34%; height: 46%; background: radial-gradient(ellipse at 50% 80%, #fff 0%, #ffffc8 50%, rgba(255,230,120,0) 75%); animation: flameA .3s ease-in-out -.1s infinite alternate; }

/* torches along the scene edges */
.edge-torch { position: absolute !important; top: 150px; width: 40px; height: 150px; z-index: 0; pointer-events: none; display: none; }
.edge-l { left: clamp(10px, 2vw, 34px); }
.edge-r { right: clamp(10px, 2vw, 34px); }
@media (min-width: 900px) { .edge-torch { display: block; } }
@media (min-width: 1360px) { .edge-r { right: 70px; } }
.edge-stick { position: absolute; left: 50%; bottom: 0; width: 12px; height: 92px; margin-left: -6px; background: linear-gradient(90deg, #2a1608, #5a3416 50%, #1d0f05); border-radius: 2px; box-shadow: 0 -4px 0 #000 inset; }
.edge-stick::before { content: ""; position: absolute; left: -6px; right: -6px; top: 0; height: 12px; background: linear-gradient(180deg, #faff4d, #e0a800); border-radius: 2px; box-shadow: 0 0 10px rgba(245,255,0,.6); }
.edge-flame { position: absolute; left: 50%; bottom: 88px; width: 44px; height: 66px; margin-left: -22px; filter: drop-shadow(0 0 12px rgba(255,120,0,.9)); }
.edge-pool { position: absolute; left: 50%; top: -170px; width: 420px; height: 420px; margin-left: -210px; border-radius: 50%; background: radial-gradient(circle, rgba(255,150,30,.26), rgba(255,90,0,.08) 40%, transparent 68%); animation: pool 2.6s steps(7) infinite; }
.jail .torch::before { background: radial-gradient(circle at 50% 75%, #fff, #ffffb8 25%, #ffb000 50%, #ff4a00 78%, transparent 80%); }
.jail .torch::after { background: radial-gradient(circle, rgba(255,140,30,.28), transparent 65%); animation: pool 2.3s steps(6) infinite; }

/* braziers in the hero */
.brazier { position: absolute !important; bottom: 66px; width: 110px; height: 190px; z-index: 1; pointer-events: none; display: none; }
.brazier-l { left: clamp(10px, 2.5vw, 40px); }
.brazier-r { right: clamp(10px, 2.5vw, 40px); }
@media (min-width: 900px) { .brazier { display: block; } }
@media (min-width: 1360px) { .brazier-r { right: 70px; } }
.brazier-pool { position: absolute; left: 50%; top: -120px; width: 560px; height: 560px; margin-left: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,150,30,.3), rgba(255,80,0,.1) 40%, transparent 68%); animation: pool 2.2s steps(6) infinite; }
.brazier-flame { position: absolute; left: 50%; bottom: 96px; width: 96px; height: 120px; margin-left: -48px; filter: drop-shadow(0 0 18px rgba(255,110,0,.95)) drop-shadow(0 0 40px rgba(255,60,0,.5)); }
.brazier-bowl { position: absolute; left: 50%; bottom: 74px; width: 110px; height: 34px; margin-left: -55px; background: linear-gradient(180deg, #faff4d 0 4px, #2b1a0a 4px, #120a04); border-radius: 4px 4px 50% 50% / 4px 4px 100% 100%; box-shadow: 0 0 16px rgba(245,255,0,.5), inset 0 -6px 12px #000; }
.brazier-legs { position: absolute; left: 50%; bottom: 0; width: 70px; height: 78px; margin-left: -35px; background: linear-gradient(75deg, transparent 44%, #1a120b 44% 52%, transparent 52%), linear-gradient(-75deg, transparent 44%, #1a120b 44% 52%, transparent 52%), linear-gradient(90deg, transparent 46%, #120c07 46% 54%, transparent 54%); }

/* rising embers */
.rising { position: absolute !important; inset: auto 0 0 0; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.rising i { position: absolute; bottom: 40px; width: 4px; height: 4px; border-radius: 50%; background: #faff4d; box-shadow: 0 0 6px 2px rgba(255,120,0,.85); opacity: 0; animation: rise var(--d, 6s) linear var(--delay, 0s) infinite; }
.rising i:nth-child(4n) { background: #ff00aa; box-shadow: 0 0 6px 2px rgba(255,0,170,.8); }
.town.is-calm .rising, .town.is-calm .firewall { display: none; }

/* the burning port: a wall of fire behind the skyline */
.firewall { position: absolute !important; left: 0; right: 0; bottom: 70px; height: 160px; z-index: -1; pointer-events: none; }
.firewall i { width: 90px; height: var(--h, 90px); margin-left: -45px; transform: none; background: radial-gradient(ellipse at 50% 90%, #ffffc8 0%, #ffb000 22%, #ff4a00 50%, rgba(160,20,0,0) 74%); opacity: .9; animation: flameA var(--fd, .45s) ease-in-out infinite alternate; }
.firewall i:nth-child(odd) { opacity: .7; }
.flame { background: radial-gradient(circle at 60% 40%, #fff 0 8%, #ffffc8 14%, #ffb000 34%, #ff4a00 62%, rgba(140,20,5,.6) 80%); filter: drop-shadow(0 0 24px rgba(255,90,0,1)) drop-shadow(0 0 50px rgba(255,40,0,.5)); }

/* string lights */
.string-lights { position: absolute !important; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; z-index: 0; }
.string-lights svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.string-lights path { fill: none; stroke: #1d1712; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.bulb { position: absolute; width: 10px; height: 13px; margin: -2px 0 0 -5px; border-radius: 45% 45% 50% 50%; background: radial-gradient(circle at 50% 40%, #fffbe6, #faff4d 50%, #e0a800); box-shadow: 0 0 8px 2px rgba(245,255,0,.85), 0 0 24px 6px rgba(245,255,0,.35); animation: twinkle var(--tw, 2.4s) ease-in-out var(--twd, 0s) infinite; }
.bulb-pink { background: radial-gradient(circle at 50% 40%, #ffd6f0, #ff00aa 55%, #a3006b); box-shadow: 0 0 8px 2px rgba(255,0,170,.85), 0 0 24px 6px rgba(255,0,170,.35); }
.log .section-head, .wall .section-head, .shop .section-head { padding-top: 40px; }

/* 404 in the v5 voice */
.plank-page { background: radial-gradient(ellipse 50% 40% at 78% 6%, rgba(240,235,215,.12), transparent 70%), radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255,90,0,.18), transparent 70%), linear-gradient(180deg, #070607, #0b0709 70%, #050505); }
.plank-page h1 { font-size: clamp(56px, 9vw, 120px); color: #ff00aa; text-shadow: 0 5px 0 #000, var(--pink-neon); }
.plank-page .plank-kicker { color: #f5ff00; }
.plank-page .torches { top: 90px; }
.plank-page .sub { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }

/* desktop: bigger, super legible */
@media (min-width: 1024px) {
  body { font-size: 20px; line-height: 1.6; }
  .sub, .lede, .feat-sum, .pa .sub, .pa-card p, .item p, .poster p, .chest p, .foot p { font-size: 20px; line-height: 1.6; }
  .lede { font-size: 21px; }
  .lede-tag { font-size: clamp(26px, 2.2vw, 32px); }
  .kicker { font-size: clamp(22px, 1.8vw, 26px); }
  .scene-sign { font-size: 15px; letter-spacing: .3em; padding: 8px 0; }
  .stencil { font-size: 14px; letter-spacing: .22em; }
  .feat-kicker { font-size: 15px; letter-spacing: .18em; }
  .feat-title { font-size: clamp(36px, 3.6vw, 56px); }
  .topics li { font-size: 14px; padding: 6px 12px; }
  .entry-title { font-size: 24px; }
  .entry-meta, .entry-topics { font-size: 17px; }
  .entry-num { font-size: 36px; }
  .entry-link, .entry-empty { grid-template-columns: 92px minmax(0, 1fr); } /* fit "002" at 36px; gradient text is clipped to the box */
  .entry-copy, .deck-label, .map-legend, .item .price, .stop-date, .tag .tag-theme { font-size: 14px; letter-spacing: .14em; }
  .top nav a { font-size: 16px; padding: 10px 14px; }
  .brand { font-size: 20px; }
  .ticker-track span { font-size: 14px; }
  .btn { font-size: 17px; min-height: 56px; padding: 14px 28px; }
  .want, .spray-btn, .filter, .bb-btn, .ch-buttons button, .chips span, .pa-vote span { font-size: 15px; }
  .auction-call { font-size: 17px; }
  .jail-status, .town-status, .pa-result { font-size: 24px; }
  .voice { font-size: clamp(32px, 3.4vw, 48px); }
  .item h3 { font-size: 24px; }
  .stop-title { font-size: 17px; }
  .tag .tag-text { font-size: 19px; }
  .foot-big { font-size: 26px; }
  .foot-small { font-size: 16px; }
  .testcard-label strong { font-size: 20px; }
  .bb-status { font-size: 17px; }
  .loot-count { font-size: 16px; }
  .exit-sign { font-size: 18px; }
}

/* ---- v5b: resume-site headline gradient, full-width bands, brains, music ---- */
h2, .scene .section-head h2 { color: #f5f5f5; background: linear-gradient(120deg, #f5f5f5 0%, #ff67cd 55%, #f5ff00 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 4px 0 #000) drop-shadow(0 0 12px rgba(255,0,170,.65)) drop-shadow(0 0 36px rgba(255,0,170,.35)); }

/* full-width bands (resume style, turned up to 11) */
.section-head.band { position: relative; max-width: none; margin: 0 calc(50% - 50vw) 48px; padding: clamp(34px, 5vw, 64px) max(16px, calc(50vw - 520px)); text-align: center; overflow: hidden; isolation: isolate;
  background-color: #d1008b;
  background-image: radial-gradient(ellipse 50% 140% at 50% 50%, rgba(255,90,200,.9), transparent 70%), radial-gradient(ellipse 30% 120% at 0% 50%, rgba(245,255,0,.35), transparent 70%), radial-gradient(ellipse 30% 120% at 100% 50%, rgba(245,255,0,.35), transparent 70%), linear-gradient(90deg, #7a0052 0%, #ff00aa 22%, #ff00aa 78%, #7a0052 100%);
  border-top: 4px solid #f5ff00; border-bottom: 4px solid #f5ff00; border-image: linear-gradient(90deg, #e0a800, #f5ff00 25%, #ffffb8 50%, #f5ff00 75%, #e0a800) 1;
  box-shadow: 0 0 30px rgba(255,0,170,.85), 0 0 110px rgba(255,0,170,.5), 0 -3px 22px rgba(245,255,0,.55), 0 3px 22px rgba(245,255,0,.55); }
.section-head.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(0,0,0,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.12) 1px, transparent 1px); background-size: 40px 40px; }
.section-head.band::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; z-index: -1; background: linear-gradient(105deg, transparent, rgba(255,255,255,.28) 45%, rgba(245,255,0,.35) 50%, rgba(255,255,255,.28) 55%, transparent); animation: sweep 7s linear infinite; }
@keyframes sweep { to { transform: translateX(450%); } }
.band h2, .scene .section-head.band h2 { color: #fff; background: none; -webkit-text-fill-color: #fff; filter: none; text-shadow: 0 4px 0 #4d0033, 0 0 2px #fff, 0 0 18px rgba(255,255,255,.55), 0 0 48px rgba(245,255,0,.45); }
.band .scene-sign { background: #050505; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: #f5ff00; color: #f5ff00; filter: none; padding: 8px 16px; border: 1px solid #f5ff00; border-image: none; box-shadow: 0 0 14px rgba(245,255,0,.7), 0 0 30px rgba(0,0,0,.5); }
.band .sub { display: inline-block; background: rgba(5,5,5,.82); color: #f5f0e6; padding: 10px 18px; border-radius: 4px; margin-top: 18px; box-shadow: 0 0 0 1px rgba(245,255,0,.35); }
.log .section-head.band, .wall .section-head.band, .shop .section-head.band { padding-top: clamp(34px, 5vw, 64px); }
.string-lights { z-index: 1; }

/* brains */
.brain-moon { display: grid; place-items: center; }
.brain-moon svg { width: 76%; height: auto; }
.constellation { position: absolute; left: 4%; top: 96px; width: clamp(130px, 15vw, 220px); height: auto; z-index: 0; pointer-events: none; opacity: .9; }
.constellation path { fill: none; stroke: rgba(245,255,0,.35); stroke-width: 1; stroke-dasharray: 3 4; }
.constellation circle { fill: #fffbe6; filter: drop-shadow(0 0 3px #f5ff00); animation: twinkle 3s ease-in-out infinite; }
.constellation circle:nth-child(3n) { animation-delay: -1s; } .constellation circle:nth-child(3n+1) { animation-delay: -2s; fill: #ffd6f0; filter: drop-shadow(0 0 3px #ff00aa); }
.brain-lantern::after { display: none; }
.brain-lantern svg { position: absolute; left: 50%; bottom: 0; width: 46px; height: auto; margin-left: -23px; filter: drop-shadow(0 0 6px #ff00aa) drop-shadow(0 0 22px rgba(255,0,170,.8)) drop-shadow(0 0 60px rgba(255,0,170,.4)); animation: flicker 2.6s steps(5) infinite; }
.coral-bed { position: absolute !important; left: 0; right: 0; bottom: 60px; height: 150px; z-index: 0; pointer-events: none; }
.coral { position: absolute; bottom: 0; overflow: visible; color: #3dffc8; filter: drop-shadow(0 0 4px #3dffc8) drop-shadow(0 0 18px rgba(61,255,200,.5)); animation: pulse 4s ease-in-out infinite; }
.coral.c1 { left: 2%; width: 200px; height: 117px; } .coral.c2 { left: 18%; width: 120px; height: 70px; color: #ff00aa; filter: drop-shadow(0 0 4px #ff00aa) drop-shadow(0 0 18px rgba(255,0,170,.55)); animation-delay: -1.3s; }
.coral.c3 { right: 24%; width: 150px; height: 88px; animation-delay: -2.1s; } .coral.c4 { right: 4%; width: 220px; height: 128px; color: #ff00aa; filter: drop-shadow(0 0 4px #ff00aa) drop-shadow(0 0 18px rgba(255,0,170,.55)); animation-delay: -.6s; }
.coral.c5 { left: 44%; width: 110px; height: 64px; animation-delay: -3s; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.grotto-grid { z-index: 2; }
.brainwave { position: absolute !important; left: 0; right: 0; top: 0; height: 40px; z-index: 0; pointer-events: none; }
.brainwave svg { width: 100%; height: 100%; display: block; }
.brainwave path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.bw-line { stroke: #ff00aa; stroke-width: 2; }
.bw-glow { stroke: rgba(255,0,170,.55); stroke-width: 7; filter: blur(3px); animation: pulse 2.4s ease-in-out infinite; }
.bw-gold .bw-line { stroke: #f5ff00; } .bw-gold .bw-glow { stroke: rgba(245,255,0,.5); }
.gold-brain { position: absolute; z-index: 2; height: auto; filter: drop-shadow(0 0 10px rgba(245,255,0,.7)) drop-shadow(0 6px 10px rgba(0,0,0,.6)); animation: gleam 3.8s ease-in-out infinite; }
.gb1 { left: 50%; bottom: 236px; width: 120px; margin-left: -60px; } .gb2 { left: 22%; bottom: 150px; width: 64px; animation-delay: -1.2s; } .gb3 { right: 18%; bottom: 140px; width: 70px; animation-delay: -2.4s; }

/* music control */
.music { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: rgba(5,5,5,.92); border: 1px solid rgba(245,255,0,.55); border-radius: 999px; box-shadow: 0 0 18px rgba(245,255,0,.25), 0 10px 30px rgba(0,0,0,.6); }
.music[hidden] { display: none; }
.music-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 999px; background: #050505; color: #f5f0e6; border: 1px solid #555; font-family: var(--display); font-size: 13px; letter-spacing: .08em; cursor: pointer; }
.music.is-on .music-btn { background: #d1008b; color: #fff; border-color: #ff00aa; box-shadow: 0 0 14px rgba(255,0,170,.7); }
.music-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.music-eq i { width: 3px; height: 40%; background: currentColor; transform-origin: bottom; }
.music.is-on .music-eq i { animation: eqbar .6s ease-in-out infinite alternate; } .music-eq i:nth-child(2) { animation-delay: -.2s !important; } .music-eq i:nth-child(3) { animation-delay: -.4s !important; }
@keyframes eqbar { from { transform: scaleY(.6); } to { transform: scaleY(2.4); } }
.music-vol { display: flex; align-items: center; min-height: 44px; }
.music-vol input { width: 110px; accent-color: #ff00aa; height: 44px; cursor: pointer; }

/* mobile polish (360 / 390 / 430) */
@media (max-width: 720px) {
  .section-head.band { margin-bottom: 36px; padding: 34px 18px; }
  .band .sub { padding: 10px 14px; font-size: 16px; }
  .coral-bed { height: 90px; bottom: 50px; }
  .coral.c1 { width: 120px; height: 70px; } .coral.c4 { width: 130px; height: 76px; } .coral.c3, .coral.c5 { display: none; } .coral.c2 { left: 30%; width: 80px; height: 47px; }
  .gb1 { width: 84px; margin-left: -42px; bottom: 196px; } .gb2 { width: 46px; left: 14%; bottom: 140px; } .gb3 { width: 50px; right: 10%; bottom: 150px; }
  .constellation { left: auto; right: 4%; top: 72px; width: 110px; opacity: .7; }
  .music { left: 8px; bottom: 8px; padding-right: 8px; }
  .music-vol input { width: 84px; }
  .edge-torch.edge-l, .edge-torch.edge-r { display: block; top: 26px; transform: scale(.6); transform-origin: top center; }
  .edge-pool { opacity: .6; }
  .brazier { display: block; transform: scale(.55); transform-origin: bottom center; bottom: 50px; }
  .brazier-l { left: -10px; } .brazier-r { right: -10px; }
}
@media (max-width: 380px) {
  .top nav a { font-size: 12px; letter-spacing: .02em; padding: 8px 2px; }
  h2, .scene .section-head h2 { font-size: clamp(34px, 11vw, 44px); }
  .music-btn { padding: 6px 10px; font-size: 12px; }
}

/* ---- v5 motion: fx.js hooks (all transform/opacity; off under reduced motion) ---- */
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
.fx-burst { z-index: 70; }
.fx-embers { z-index: 20; }
.fx-on .lightning { animation: none; opacity: 0; }
.lightning.fx-strike { animation: strike .32s ease-out 1; }
/* one peak per strike: the old .2 -> .55 rebound counted as a second flash (WCAG 2.3.1) */
@keyframes strike { 0% { opacity: .85; } 100% { opacity: 0; } }
.fx-bolt { position: absolute !important; inset: 0 0 auto 0; width: 100%; height: 70%; z-index: 0; pointer-events: none; opacity: 0; overflow: visible; }
.fx-bolt path { fill: none; stroke: #fffbe6; stroke-width: 3; stroke-linejoin: bevel; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #f5ff00) drop-shadow(0 0 40px #ff00aa); }
.fx-bolt.fx-strike { animation: strike .28s ease-out 1; }
.fx-lit .big-skull, .fx-lit .brain-moon, .fx-lit .brain-lantern svg, .fx-lit .plunge-boat, .fx-lit .constellation, .fx-lit .coral { filter: brightness(1.9) drop-shadow(0 0 18px #fff) drop-shadow(0 0 40px #f5ff00); }
.edge-flame, .brazier-flame { scale: var(--flare, 1); transform-origin: 50% 100%; transition: scale .25s ease-out; }
.edge-pool, .brazier-pool { scale: calc(.8 + var(--flare, 1) * .2); transition: scale .3s ease-out; }
.jail .torch::before { scale: var(--flare, 1); transition: scale .25s ease-out; }
.ride-boat { position: absolute; left: 0; bottom: 34px; width: clamp(64px, 7vw, 96px); height: auto; overflow: visible; filter: drop-shadow(0 0 10px rgba(255,0,170,.6)); will-change: transform; }
@keyframes dipBoat { 0% { translate: 0 0; rotate: 0deg; } 35% { translate: 0 9px; rotate: 28deg; } 70% { translate: 0 13px; rotate: -6deg; } 100% { translate: 0 0; rotate: 0deg; } }
.ride-progress-boat.fx-dip { animation: dipBoat .8s cubic-bezier(.3,.7,.3,1) 1; }
@keyframes dipIn { 0% { translate: 0 -30px; opacity: .3; } 55% { translate: 0 7px; opacity: 1; } 100% { translate: 0 0; } }
.fx-dipin > .section-head, .fx-dipin .plunge-copy, .fx-dipin .grotto-grid .voice { animation: dipIn .75s cubic-bezier(.25,.8,.3,1.15) 1; }
/* glitch-neon: flickers on like old ride signage, then locks in. 3 dips over 1.4 s (under 3 per second). */
@keyframes neonOn { 0% { opacity: .08; } 9% { opacity: 1; } 15% { opacity: .2; transform: translateX(-3px) skewX(-8deg); } 24% { opacity: .95; transform: translateX(2px); } 40% { opacity: .95; transform: none; } 47% { opacity: .3; } 56% { opacity: 1; } 78% { opacity: 1; } 84% { opacity: .55; } 100% { opacity: 1; transform: none; } }
.fx-neon { animation: neonOn 1.4s steps(1, end) 1; }
@keyframes shake { 0%, 100% { translate: 0 0; } 20% { translate: -4px 2px; } 40% { translate: 4px -2px; } 60% { translate: -2px 1px; } 80% { translate: 2px 0; } }
.fx-shake main { animation: shake .35s ease-out 1; }
/* treasure chest */
.hoard-chest { position: absolute; left: 50%; bottom: 6px; width: 170px; height: auto; margin-left: -85px; z-index: 3; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0,0,0,.7)) drop-shadow(0 0 18px rgba(255,196,0,.35)); }
.chest-lid { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.hoard-chest.is-open .chest-lid { transform: translateY(-14px) rotate(-24deg); }
.chest-glow { transition: opacity .3s; }
.hoard-chest.is-open .chest-glow { opacity: .55; }
.gb1 { bottom: 150px; }
@media (max-width: 720px) { .hoard-chest { width: 120px; margin-left: -60px; } .gb1 { bottom: 160px; } .ride-boat { bottom: 26px; } }

/* reduced motion: no loops, no spins, no flicker */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker-track span:nth-child(n+8) { display: none; }
  .is-playing .eq i { height: 60%; }
  .walker { left: 46%; }
  .fireflies, .fog, .embers, .splash { display: none !important; }
  .plunge { height: auto; }
  .plunge-stage { position: relative; height: 560px; }
  .plunge-line { opacity: 1 !important; transform: none !important; }
  .plunge-stage { --lip: 46; }
  .plunge-lip, .falls { top: 300px; }
  .plunge-boat { top: auto; bottom: 16%; margin-top: 0; transform: none !important; }
  .splash-word { top: 230px; }
  .lightning { display: none !important; }
  .ride-progress-boat { display: none; }
  .rising { display: none !important; }
  .fx-canvas, .fx-bolt, .ride-boat { display: none !important; }
  .hoard-chest.is-open .chest-lid { transform: translateY(-14px) rotate(-24deg); }
  .edge-pool, .brazier-pool { opacity: .85; }
  .floor-dog.is-friend .key { opacity: 0; }
}
@media (max-width: 720px) {
  .dock .hero-art { max-width: min(300px, 78vw); margin: 0 auto; }
}
@media (max-width: 720px) {
  .brand { min-height: 44px; }
  .top nav a { font-size: 12px; }
  .stencil, .topics li, .entry-copy, .deck-label, .stamp, .tag .tag-theme, .tag-votes, .spray-count, .map-legend, .item .price, .feat-kicker, .scene-sign { font-size: 13px; }
}
.votes small, .map-legend li, .map-legend span { font-size: max(13px, 1em); }
@media (max-width: 720px) { .votes small { font-size: 13px; } .map-legend, .map-legend li { font-size: 13px; } }
/* metallic gold for physical treasure (coins, hoard, idols): warmer stops on the #f5ff00 ramp */
.gold { background: radial-gradient(circle at 35% 30%, #ffffc8, #ffe94d 28%, #ffc400 58%, #b98200); box-shadow: inset 0 0 0 4px rgba(0,0,0,.15), 0 6px 12px rgba(0,0,0,.6), 0 0 16px rgba(255,196,0,.5); }
.hoard::before { background: radial-gradient(circle at 50% 25%, #ffffb8, #ffe14d 25%, #ffc400 50%, #b98200 75%, #3a2a06 95%); box-shadow: 0 0 90px 16px rgba(255,196,0,.35); }
.mc-coin { background: radial-gradient(circle at 35% 30%, #ffffc8, #ffe94d 30%, #ffc400 60%, #9a6c00); }

.prototype-note { position: relative; z-index: 2; margin: 1rem auto; padding: 1rem; max-width: 70rem; background: #111; color: #fff; border-left: 3px solid #ff00aa; font: 1rem/1.5 system-ui, sans-serif; }
.save-warning { border: 2px solid #ff00aa; }
.save-warning .btn { margin: .25rem; }
[hidden] { display: none !important; }

.episode-transcript{margin-top:20px;border-top:1px solid #64748b;padding-top:16px;line-height:1.65}.episode-transcript summary{cursor:pointer;font-weight:700;padding:8px 0}.episode-transcript p{font-family:system-ui,sans-serif}.listening-note{max-width:42rem;margin:10px auto 20px;line-height:1.5}#audio{display:block;width:100%;max-width:100%;margin:12px 0}.boombox-mid{min-width:0}

/* Public topic suggestions */
.topic-box { min-width: 0; }
.topic-privacy { font-size: .85rem; color: #bcb4a7; }
#topic-form { position: relative; margin-top: 1rem; padding: 1.5rem; border: 1px solid #ff00aa44; background: #140b11; }
#topic-form label { display: block; margin-bottom: .55rem; }
#topic-form label span, .topic-picks legend span { font-size: .8rem; color: #bcb4a7; }
#topic-form input, #topic-form textarea { width: 100%; min-width: 0; min-height: 48px; padding: .8rem; font: inherit; color: #ece7dd; background: #080607; border: 1px solid #736270; border-radius: 3px; }
#topic-form textarea { resize: vertical; min-height: 160px; }
#topic-form :is(input, textarea, button):focus-visible { outline: 2px solid #f5ff00; outline-offset: 3px; }
.topic-count { text-align: right; font-size: .8rem; color: #bcb4a7; margin: .3rem 0 1rem; }
.topic-contact { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.topic-picks { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.topic-picks > p { font-size: .85rem; color: #bcb4a7; margin: .4rem 0 .8rem; }
.topic-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic-chip { font: inherit; font-size: .85rem; border: 1px solid #736270; border-radius: 2rem; padding: .6rem .85rem; background: #080607; color: #ece7dd; cursor: pointer; min-height: 44px; }
.topic-chip:hover { border-color: #f5ff00; }
.topic-chip[aria-pressed=true] { background: #f5ff00; border-color: #f5ff00; color: #080607; }
.topic-chip[aria-pressed=true]::before { content: '✓ '; }
.topic-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#topic-form button[type=submit] { width: 100%; }
#topic-form button:disabled { cursor: default; opacity: .7; }
#topic-status { font-size: .85rem; margin-top: 1rem; color: #f5ff00; min-height: 1.5em; }
.topic-burst { position: absolute; bottom: 4rem; left: 0; right: 0; display: flex; justify-content: center; gap: 1rem; pointer-events: none; visibility: hidden; color: #f5ff00; font-size: 1.8rem; }
.topic-burst.celebrate { visibility: visible; }
.topic-burst.celebrate span { animation: brain-burst .9s ease-out both; }
.topic-burst span:nth-child(even) { animation-delay: .08s; color: #ff00aa; }
@keyframes brain-burst { 0% { opacity: 0; transform: translateY(15px) scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-90px) rotate(20deg) scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .topic-burst, .topic-burst.celebrate { display: none; } .topic-burst.celebrate span { animation: none; } }
