/* FMみなもと 76.4 — a bright local radio station: cream paper, orange, deep navy, radio-wave motifs.
   Stage-driven alterations: faint static (2), the whole background turns to snow and the logo waves become a heartbeat (3). */
:root {
  --cream: #fff6e6;
  --cream-2: #fcebcf;
  --paper: #fffdf8;
  --orange: #f2792b;
  --orange-d: #c95810;
  --orange-soft: #ffe1c2;
  --navy: #1d2a4d;
  --navy-2: #2d3f6d;
  --ink: #1d2a4d;
  --muted: #5f6886;
  --line: #ead7b8;
  --sky: #7db9df;
  --sky-soft: #e2f1fa;
  --red: #d7343c;
  --f-pop: "Mochiy Pop One", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", sans-serif;
  --f-ja: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --f-hand: "Zen Kurenaido", "Klee One", cursive;
  --f-mono: "Share Tech Mono", ui-monospace, Consolas, monospace;
  --r: 18px;
  --pop: 4px 4px 0 var(--navy);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; color: var(--ink); font-family: var(--f-ja); font-size: 15.5px; line-height: 1.85; -webkit-font-smoothing: antialiased;
  background-color: var(--cream);
  background-image: radial-gradient(circle at 100% 0, transparent 0 120px, rgba(242,121,43,.07) 120px 124px, transparent 124px 170px, rgba(242,121,43,.06) 170px 174px, transparent 174px 220px, rgba(242,121,43,.05) 220px 224px, transparent 224px);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.container { max-width: 1140px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.pop { font-family: var(--f-pop); font-weight: 400; }
.mono { font-family: var(--f-mono); }
.nb { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* stage visibility helpers */
html[data-stage="0"] :is(.from-1, .from-2, .from-3, .from-4),
html[data-stage="1"] :is(.from-2, .from-3, .from-4),
html[data-stage="2"] :is(.from-3, .from-4),
html[data-stage="3"] .from-4,
html:is([data-stage="1"], [data-stage="2"], [data-stage="3"], [data-stage="4"]) .until-1,
html:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .until-2,
html:is([data-stage="3"], [data-stage="4"]) .until-3 { display: none !important; }

/* ---------- top bar & header ---------- */
.topbar { background: var(--navy); color: #e8ecf8; font-size: 12.5px; }
.topbar .container { display: flex; gap: 20px; align-items: center; min-height: 32px; flex-wrap: wrap; }
.topbar .ticker { margin-left: auto; font-family: var(--f-pop); color: #ffb48a; letter-spacing: .06em; animation: flick 4s steps(1) infinite; }
@keyframes flick { 0%, 90%, 100% { opacity: 1; } 91% { opacity: .2; } 93% { opacity: .9; } 95% { opacity: .1; } }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--cream); }
.site-header .container { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.hdr-wave { display: block; width: 100%; height: 10px; }
.hdr-wave path { fill: none; stroke: var(--orange); stroke-width: 2.4; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark { width: 42px; height: 42px; flex: none; }
.logo .disc { fill: var(--orange); }
.logo .waves { stroke: #fff; }
.logo .waves .dot { fill: #fff; stroke: none; }
.logo .ecg { stroke: #fff; display: none; }
.logo .word { font-family: var(--f-pop); font-size: 21px; line-height: 1; letter-spacing: .02em; color: var(--navy); }
.logo .word small { display: block; font-size: 13px; color: var(--orange-d); margin-top: 5px; letter-spacing: .08em; }
.logo .word small i { font-style: normal; font-size: 10px; margin-left: 2px; }
html[data-stage="1"] .logo .waves, html[data-stage="2"] .logo .waves { animation: waveflick 6s steps(1) infinite; }
@keyframes waveflick { 0%, 94%, 100% { opacity: 1; } 95% { opacity: .2; } 97% { opacity: .8; } }
html:is([data-stage="3"], [data-stage="4"]) .logo .waves { display: none; }
html:is([data-stage="3"], [data-stage="4"]) .logo .ecg { display: inline; stroke-dasharray: 60; animation: ecg 1.6s linear infinite; }
html:is([data-stage="3"], [data-stage="4"]) .logo .disc { fill: var(--navy); }
html[data-stage="4"] .logo .ecg { animation: none; }
@keyframes ecg { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }

.nav { display: flex; gap: 4px; margin-left: auto; font-size: 14px; font-weight: 700; }
.nav a { text-decoration: none; padding: 7px 12px; border-radius: 999px; color: var(--navy); }
.nav a:hover { background: var(--orange-soft); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.onair-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; text-decoration: none; font-family: var(--f-pop); font-size: 13px; padding: 7px 14px; border-radius: 999px; box-shadow: 2px 2px 0 var(--navy); flex: none; }
.onair-pill .lamp { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq b { width: 3px; background: #fff; border-radius: 1px; animation: eq 0.9s ease-in-out infinite; }
.eq b:nth-child(2) { animation-delay: -.3s; } .eq b:nth-child(3) { animation-delay: -.6s; } .eq b:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.menu-btn { display: none; background: #fff; border: 2px solid var(--navy); border-radius: 12px; width: 44px; height: 42px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2.5px; background: var(--navy); margin: 4px auto; border-radius: 2px; }

/* ---------- common parts ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2.5px solid var(--navy); background: var(--orange); color: #fff; cursor: pointer; box-shadow: 3px 3px 0 var(--navy); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--navy); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.ghost { background: #fff; color: var(--navy); }
.btn.sm { padding: 7px 15px; font-size: 13.5px; }
.card { background: var(--paper); border: 2.5px solid var(--navy); border-radius: var(--r); box-shadow: var(--pop); }
section.sec { padding-block: 64px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--f-pop); font-weight: 400; font-size: clamp(24px, 3vw, 32px); margin: 0; line-height: 1.35; display: flex; align-items: center; gap: 12px; }
.sec-head h2::before { content: ""; width: 30px; height: 30px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M2 15 Q6 4 10 15 T18 15 T26 15' fill='none' stroke='%23f2792b' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.sec-head p { margin: 0; color: var(--muted); max-width: 34em; }
.en-sub { font-family: var(--f-pop); font-size: 12px; letter-spacing: .2em; color: var(--orange-d); display: block; margin-bottom: 4px; }
.wave-div { display: block; width: 100%; height: 26px; }
.wave-div path { fill: var(--navy); }
.page-head { padding: 36px 0 8px; }
.page-head h1 { font-family: var(--f-pop); font-weight: 400; font-size: clamp(28px, 4vw, 40px); margin: 4px 0 6px; line-height: 1.35; }
.page-head p { margin: 0; color: var(--muted); }
.crumb { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--muted); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-d); border: 1.5px solid currentColor; line-height: 1.6; }
.tag.navy { background: var(--sky-soft); color: var(--navy-2); }
.tag.red { background: #fde6e6; color: var(--red); }
.note { font-size: 13px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding-block: 34px 20px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 30px; align-items: start; }
.hero-photo { position: relative; border-radius: 26px; overflow: hidden; border: 3px solid var(--navy); box-shadow: 6px 6px 0 var(--navy); background: var(--navy); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(16,22,44,.62)); pointer-events: none; }
.hero-photo .catch { z-index: 1; position: absolute; left: 22px; bottom: 20px; right: 22px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero-photo .catch h1 { font-family: var(--f-pop); font-weight: 400; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.3; margin: 0 0 6px; }
.hero-photo .catch p { margin: 0; font-weight: 700; }
.hero-photo .freq-badge { position: absolute; top: 18px; left: 18px; background: var(--orange); color: #fff; font-family: var(--f-pop); border-radius: 999px; padding: 6px 16px 5px; border: 2.5px solid var(--navy); font-size: 18px; }
.hero-photo .onair-glow { position: absolute; border-radius: 6px; background: rgba(255,40,40,.0); mix-blend-mode: screen; pointer-events: none; }
html:is([data-stage="3"], [data-stage="4"]) .hero-photo .onair-glow { background: rgba(255,50,40,.55); box-shadow: 0 0 40px 12px rgba(255,40,30,.5); animation: blink 1.1s steps(1) infinite; }

/* mini player */
.player { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--navy); color: #fff; border-color: var(--navy); }
.player .ph { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #b9c4e6; }
.player .live { background: var(--red); color: #fff; font-family: var(--f-pop); font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.player .prog { font-family: var(--f-pop); font-size: 22px; line-height: 1.4; }
.player .who { font-size: 13.5px; color: #cdd5f0; }
.player .ctrl { display: flex; align-items: center; gap: 14px; }
.play-btn { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; background: var(--orange); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 3px 3px 0 #0e1630; }
.play-btn svg { width: 28px; height: 28px; }
.player .vu { flex: 1; height: 38px; display: flex; gap: 3px; align-items: center; }
.player .vu i { flex: 1; background: #3b4d80; border-radius: 2px; height: 20%; transition: height .08s; }
.player .vol { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #b9c4e6; }
.player .vol input { flex: 1; accent-color: var(--orange); }
.subline { min-height: 3.4em; background: rgba(255,255,255,.07); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; line-height: 1.7; }
.subline .sp { display: inline-block; font-size: 11.5px; font-weight: 700; background: var(--orange); color: #fff; border-radius: 6px; padding: 0 7px; margin-right: 8px; }
.subline.dim { color: #8f9bc2; }

/* today strip */
.today { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.today .slot { scroll-snap-align: start; padding: 14px 16px; }
.today .slot .t { font-family: var(--f-mono); font-size: 14px; color: var(--orange-d); }
.today .slot h3 { margin: 2px 0; font-size: 16px; line-height: 1.5; }
.today .slot p { margin: 0; font-size: 13px; color: var(--muted); }
.today .slot.now { background: var(--orange-soft); }
.today .slot.now .t::after { content: " ON AIR"; color: var(--red); font-family: var(--f-pop); font-size: 11px; }

/* news */
.news { list-style: none; margin: 0; padding: 0; }
.news li { display: grid; grid-template-columns: 110px 92px 1fr; gap: 14px; padding: 14px 6px; border-bottom: 2px dotted var(--line); align-items: baseline; }
.news time { font-family: var(--f-mono); color: var(--muted); font-size: 14px; }
.news .tag { justify-self: start; }
.news li.odd { color: var(--red); }

/* bousai */
.bousai { background: var(--navy); color: #fff; border-radius: 28px; padding: 32px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; border: 3px solid var(--navy); }
.bousai h2 { font-family: var(--f-pop); font-weight: 400; font-size: 26px; margin: 0 0 8px; }
.bousai .big { font-family: var(--f-pop); font-size: 46px; color: #ffb48a; line-height: 1.1; }
.bousai ul { padding-left: 1.2em; margin: 10px 0 0; }
.bousai img { border-radius: 18px; border: 3px solid #fff; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.bousai a { color: #ffd2b5; }

/* events */
.events { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.event { overflow: hidden; }
.event img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border-bottom: 2.5px solid var(--navy); }
.event .b { padding: 16px 20px 20px; }
.event h3 { margin: 6px 0 4px; font-size: 18px; }
.event p { margin: 0; font-size: 14px; color: var(--muted); }

/* personalities */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person { overflow: hidden; display: flex; flex-direction: column; }
.person img { aspect-ratio: 1; object-fit: cover; width: 100%; border-bottom: 2.5px solid var(--navy); }
.person .b { padding: 14px 16px 18px; }
.person h3 { margin: 0; font-family: var(--f-pop); font-weight: 400; font-size: 18px; }
.person .prog { font-size: 13px; color: var(--orange-d); font-weight: 700; }
.person p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.person.night { background: #1b2238; color: #d9def0; }
.person.night h3 { color: #fff; }
.person.night p { color: #a9b2cf; }
.person.night img { filter: saturate(.6) contrast(1.05); }
.profile { display: grid; grid-template-columns: 260px 1fr; gap: 26px; padding: 22px; margin-bottom: 24px; }
.profile img { border-radius: 14px; border: 2.5px solid var(--navy); aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; align-self: start; }
.profile h2 { font-family: var(--f-pop); font-weight: 400; margin: 0; font-size: 26px; }
.profile dl { display: grid; grid-template-columns: 7em 1fr; gap: 4px 12px; margin: 12px 0; font-size: 14.5px; }
.profile dt { color: var(--muted); }
.profile dd { margin: 0; }
.profile .msg { background: var(--cream); border-radius: 12px; padding: 12px 16px; font-family: var(--f-hand); font-size: 18px; line-height: 1.7; }
.profile.night { background: #171d31; color: #dfe4f5; border-color: #0b1020; }
.profile.night dt { color: #8d97ba; }
.profile.night .msg { background: #232b45; color: #f0f2fa; }

/* timetable */
.tt-wrap { overflow-x: auto; }
.tt { display: grid; grid-template-columns: 64px repeat(3, minmax(150px, 1fr)); grid-auto-rows: 50px; gap: 4px; min-width: 560px; position: relative; }
.tt .hd { font-family: var(--f-pop); text-align: center; background: var(--navy); color: #fff; border-radius: 10px; display: grid; place-items: center; font-size: 14px; }
.tt .tm { font-family: var(--f-mono); font-size: 13px; color: var(--muted); padding-top: 2px; text-align: right; padding-right: 8px; }
.tt .pg { background: var(--paper); border: 2px solid var(--navy); border-radius: 10px; padding: 4px 10px; overflow: hidden; line-height: 1.35; font-size: 13.5px; }
.tt .pg b { display: block; font-size: 14px; }
.tt .pg small { color: var(--muted); font-size: 12px; }
.tt .pg.music { background: var(--sky-soft); border-style: dashed; }
.tt .pg.morning { background: #fff0d6; } .tt .pg.day { background: var(--orange-soft); } .tt .pg.evening { background: #ffe9e0; } .tt .pg.weekend { background: #eef3dc; }
.tt .pg.now { outline: 3px solid var(--red); outline-offset: 1px; }
.tt .blank { border: 2px dotted #e6d6bb; border-radius: 10px; background: transparent; color: var(--paper); padding: 6px 12px; font-size: 13.5px; line-height: 1.45; cursor: text; user-select: text; overflow: hidden; }
.tt .blank::selection, .tt .blank *::selection { background: var(--navy); color: #ffb48a; }
html:is([data-stage="1"], [data-stage="2"]) .tt .blank { color: rgba(29,42,77,.28); }
html:is([data-stage="3"], [data-stage="4"]) .tt .blank { color: #fff; background: #1b2238; border: 2px solid var(--red); }
.tt-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 16px; }
.tt-legend span::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--navy); vertical-align: -2px; margin-right: 6px; background: var(--c); }

/* letters */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs button { border: 2.5px solid var(--navy); background: #fff; border-radius: 999px; padding: 7px 18px; font-weight: 700; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.tabs button.night { border-color: #0b1020; }
.tabs button.night[aria-selected="true"] { background: #0f1528; color: #ffb48a; }
.tabs .new { color: var(--red); font-family: var(--f-pop); font-size: 11px; margin-left: 4px; }
.letters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.letter { padding: 18px 20px 16px; position: relative; background: var(--paper) repeating-linear-gradient(transparent 0 31px, #f0e2c8 31px 32px); background-position: 0 10px; }
.letter:nth-child(3n+1) { transform: rotate(-.6deg); } .letter:nth-child(3n+2) { transform: rotate(.5deg); }
.letter .rn { font-weight: 700; font-size: 13.5px; color: var(--orange-d); }
.letter .to { font-size: 12px; color: var(--muted); }
.letter .body { font-family: var(--f-hand); font-size: 18.5px; line-height: 32px; margin: 6px 0 10px; }
.letter .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); border-top: 2px dotted var(--line); padding-top: 8px; flex-wrap: wrap; }
.letter .meta time { font-family: var(--f-mono); font-size: 13.5px; }
.letter.photo { padding: 10px; background: var(--paper); }
.letter.photo button { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.letter.photo img { border-radius: 8px; width: 100%; height: auto; }
.letter.photo .cap { padding: 10px 8px 2px; }
.letters.night .letter { background: #151b2e; color: #e6e9f5; border-color: #0b1020; box-shadow: 4px 4px 0 #0b1020; }
.letters.night .letter .meta { color: #9aa4c6; border-color: #2c3554; }
.letters.night .letter .meta time { color: #ffb48a; font-size: 15px; }
.letters.night .letter .rn { color: #ffb48a; }
.night-intro { background: #151b2e; color: #dfe4f5; border-radius: 18px; padding: 18px 22px; margin-bottom: 22px; border: 2.5px solid #0b1020; }
.night-intro b { color: #ffb48a; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12,16,30,.88); display: grid; place-items: center; padding: 18px; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { border-radius: 10px; max-height: 80vh; width: auto; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: #e8ecf8; text-align: center; font-size: 14px; margin-top: 12px; }
.lightbox button { margin: 12px auto 0; display: flex; }
.form { padding: 24px; display: grid; gap: 16px; max-width: 760px; }
.form label { font-weight: 700; font-size: 14px; display: grid; gap: 6px; }
.form input[type=text], .form select, .form textarea { border: 2.5px solid var(--navy); border-radius: 12px; padding: 10px 12px; background: #fff; font-weight: 400; width: 100%; }
.form textarea { min-height: 120px; resize: vertical; font-family: var(--f-hand); font-size: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .chk { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.form-msg { font-weight: 700; min-height: 1.6em; margin: 0; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: #23804a; }
.sent { position: fixed; inset: 0; z-index: 80; background: rgba(12,16,30,.85); display: grid; place-items: center; padding: 18px; }
.sent .box { max-width: 520px; width: 100%; padding: 26px; background: #151b2e; color: #e6e9f5; border-color: #000; text-align: left; }
.sent .box h3 { font-family: var(--f-pop); font-weight: 400; margin: 0 0 10px; color: #ffb48a; }
.sent dl { display: grid; grid-template-columns: 6.5em 1fr; gap: 4px 10px; font-size: 14.5px; margin: 0 0 14px; }
.sent dt { color: #8d97ba; }
.sent dd { margin: 0; }

/* station page */
.facts { display: grid; grid-template-columns: 9em 1fr; border: 2.5px solid var(--navy); border-radius: var(--r); overflow: hidden; background: var(--paper); margin: 0; }
.facts dt, .facts dd { padding: 11px 16px; border-bottom: 2px dotted var(--line); margin: 0; }
.facts dt { background: var(--cream-2); font-weight: 700; font-size: 14px; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.photo-r { border-radius: 22px; border: 3px solid var(--navy); box-shadow: var(--pop); overflow: hidden; }
.table-wrap { overflow-x: auto; border: 2.5px solid var(--navy); border-radius: var(--r); background: var(--paper); }
table.price { width: 100%; border-collapse: collapse; min-width: 540px; font-size: 14.5px; }
table.price th, table.price td { padding: 12px 16px; border-bottom: 2px dotted var(--line); text-align: left; }
table.price th { background: var(--cream-2); font-size: 13px; }
table.price td.num { font-family: var(--f-mono); font-size: 16px; }
table.price tr:last-child td { border-bottom: 0; }
.faq details { background: var(--paper); border: 2.5px solid var(--navy); border-radius: 14px; margin-bottom: 12px; padding: 12px 18px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; gap: 10px; }
.faq summary::before { content: "Q"; font-family: var(--f-pop); color: var(--orange); }
.faq details p { margin: 8px 0 2px; color: var(--muted); }

/* ---------- radio page ---------- */
.radio-stage { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.radio-photo { position: relative; border-radius: 24px; overflow: hidden; border: 3px solid var(--navy); box-shadow: 6px 6px 0 var(--navy); background: #efe1c4; touch-action: none; user-select: none; -webkit-user-select: none; }
.radio-photo > img { width: 100%; height: auto; }
.radio-photo .needle { position: absolute; width: .32%; background: linear-gradient(90deg, #8b0d0d, #e02020 45%, #ff6a5a 55%, #8b0d0d); box-shadow: 1px 0 1.5px rgba(0,0,0,.35); border-radius: 1px; pointer-events: none; transition: left .05s linear; }
.radio-photo .needle.shiver { animation: shiver .16s steps(2) infinite; }
@keyframes shiver { 50% { transform: translateX(1px); } }
.radio-photo .dial-glow { position: absolute; pointer-events: none; border-radius: 4px; background: radial-gradient(ellipse at 50% 60%, rgba(255,190,90,.35), rgba(255,170,60,.12) 60%, transparent 80%); mix-blend-mode: multiply; opacity: 0; transition: opacity .6s; }
.radio-photo.on .dial-glow { opacity: 1; mix-blend-mode: soft-light; }
.radio-photo .knob { position: absolute; border-radius: 50%; cursor: grab; touch-action: none; }
.radio-photo .knob:active { cursor: grabbing; }
.radio-photo .knob img { width: 100%; height: 100%; pointer-events: none; }
.radio-photo .knob:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.radio-photo .clock { position: absolute; border-radius: 50%; cursor: grab; touch-action: none; }
.radio-photo .clock svg { width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.radio-photo .clock:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.radio-photo .vol-knob { position: absolute; border-radius: 50%; cursor: pointer; }
.radio-photo .vol-knob img { width: 100%; height: 100%; pointer-events: none; }
.radio-photo .hint-ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(242,121,43,.9); pointer-events: none; animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.radio-photo.used .hint-ring { display: none; }
.panel { padding: 20px; display: grid; gap: 14px; }
.panel h2 { font-family: var(--f-pop); font-weight: 400; font-size: 20px; margin: 0; }
.readout { background: #10182e; color: #ffb48a; border-radius: 14px; padding: 12px 16px; display: flex; align-items: baseline; gap: 10px; border: 2.5px solid var(--navy); }
.readout .f { font-family: var(--f-mono); font-size: 44px; line-height: 1; letter-spacing: .04em; min-width: 3.6ch; text-align: right; }
.readout .u { font-family: var(--f-mono); color: #8d97ba; }
.readout .band { margin-left: auto; font-family: var(--f-mono); font-size: 13px; color: #8d97ba; text-align: right; line-height: 1.4; }
.readout.off .f { color: #ff5a5a; }
.meter { display: flex; gap: 4px; align-items: flex-end; height: 26px; }
.meter i { width: 12%; background: #e9dcc5; border-radius: 3px; border: 1.5px solid var(--navy); }
.meter i.on { background: var(--orange); }
.meter i:nth-child(1) { height: 30%; } .meter i:nth-child(2) { height: 45%; } .meter i:nth-child(3) { height: 60%; } .meter i:nth-child(4) { height: 75%; } .meter i:nth-child(5) { height: 88%; } .meter i:nth-child(6) { height: 100%; }
.ctl-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.power { display: inline-flex; gap: 8px; align-items: center; }
.power .lamp { width: 12px; height: 12px; border-radius: 50%; background: #c9bda6; border: 2px solid var(--navy); }
.power[aria-pressed="true"] .lamp { background: #ff5a3a; box-shadow: 0 0 10px #ff5a3a; }
.subs { background: #10182e; color: #f2f4fb; border-radius: 16px; padding: 14px 18px; min-height: 6.2em; font-size: 16px; line-height: 1.75; border: 2.5px solid var(--navy); position: relative; }
.subs .sp { display: inline-block; font-size: 12px; font-weight: 700; background: var(--orange); color: #fff; border-radius: 6px; padding: 0 8px; margin-right: 8px; }
.subs .sp.night { background: #5b2a6e; }
.subs.dim { color: #7d88ad; }
.subs .glitch { color: #ffb48a; letter-spacing: .1em; animation: flick .5s steps(1) infinite; }
.subs-label { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.help { font-size: 13.5px; color: var(--muted); margin: 0; padding-left: 1.2em; }
.help li { margin: 3px 0; }
.help .red { color: var(--red); font-weight: 700; }
.clock-read { font-family: var(--f-mono); font-size: 15px; }
.postcard-you { position: fixed; inset: 0; z-index: 85; background: rgba(5,8,18,.92); display: grid; place-items: center; padding: 18px; cursor: pointer; }
.postcard-you canvas { max-width: min(900px, 100%); height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.postcard-you p { color: #ffb48a; font-family: var(--f-pop); text-align: center; margin: 14px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #cdd5f0; margin-top: 60px; padding: 46px 0 26px; font-size: 14px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 V10 Q15 0 30 10 T60 10 T90 10 T120 10 V20 Z' fill='%231d2a4d'/%3E%3C/svg%3E") repeat-x; background-size: 120px 20px; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 30px; }
.site-footer .logo .word { color: #fff; }
.site-footer .logo .word small { color: #ffb48a; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #e8ecf8; }
.site-footer p { margin: 14px 0 0; max-width: 30em; }
.f-night { color: #ffb48a; font-family: var(--f-pop); font-size: 13px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #9aa6cc; }
.site-footer .legal button { background: transparent; border: 1.5px solid #6b7aa8; color: #cdd5f0; border-radius: 999px; padding: 4px 14px; cursor: pointer; font-size: 12.5px; }

/* ---------- alteration overlay ---------- */
.alter { position: fixed; inset: 0; z-index: 999; cursor: pointer; display: grid; place-items: center; }
.alter canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.alter .msg { position: relative; background: rgba(10,14,28,.9); color: #fff; font-family: var(--f-pop); font-size: clamp(20px, 3.4vw, 30px); padding: 20px 30px; border-radius: 14px; text-align: center; border: 2px solid #ffb48a; }
.alter .msg small { display: block; font-family: var(--f-mono); font-size: 13px; letter-spacing: .3em; color: #ffb48a; margin-top: 6px; }
html.glitching body { animation: glitch .5s steps(2) 1; }
@keyframes glitch { 0% { transform: translate(3px, 0); filter: hue-rotate(40deg); } 50% { transform: translate(-3px, 1px); } 100% { transform: none; } }

/* ---------- stage 2-3 background static ---------- */
.bg-static { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; pointer-events: none; image-rendering: pixelated; transition: opacity 1.2s; }
html[data-stage="2"] .bg-static { opacity: .1; }
html:is([data-stage="3"], [data-stage="4"]) body { background: #777; }
html:is([data-stage="3"], [data-stage="4"]) .bg-static { opacity: 1; }
html:is([data-stage="3"], [data-stage="4"]) main > .container,
html:is([data-stage="3"], [data-stage="4"]) main > section > .container,
html:is([data-stage="3"], [data-stage="4"]) .page-head .container { background: rgba(255,246,230,.94); border-radius: 22px; padding-top: 18px; padding-bottom: 18px; }
html:is([data-stage="3"], [data-stage="4"]) .site-header { background: rgba(255,246,230,.96); }
html:is([data-stage="3"], [data-stage="4"]) section.sec { padding-block: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); flex-direction: column; padding: 10px 18px 18px; border-bottom: 3px solid var(--navy); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
  .menu-btn { display: block; }
  .onair-pill { margin-left: auto; }
  .hero .container, .radio-stage, .bousai, .two { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .letters { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .site-footer .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hide-sm { display: none; }
  .topbar .ticker { margin-left: 0; }
  .logo .word { font-size: 18px; }
  .logo .mark { width: 36px; height: 36px; }
  .onair-pill .eq { display: none; }
  .events, .letters, .how { grid-template-columns: 1fr !important; }
  .hero-photo .catch { left: 16px; bottom: 12px; }
  .hero-photo .catch h1 { font-size: 23px; }
  .hero-photo .catch p { font-size: 12.5px; }
  .hero-photo .freq-badge { font-size: 14px; top: 10px; left: 10px; padding: 3px 12px; }
  .people { grid-template-columns: 1fr 1fr; gap: 12px; }
  .person .b { padding: 10px 12px 14px; }
  .profile { grid-template-columns: 1fr; }
  .profile img { max-width: 240px; }
  .news li { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .news li > span:last-child { grid-column: 1 / -1; }
  .form .row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 2px; }
  .site-footer .container { grid-template-columns: 1fr; }
  .bousai { padding: 22px; }
  .bousai .big { font-size: 36px; }
  .readout .f { font-size: 36px; }
  section.sec { padding-block: 44px; }
}
