:root {
    --bg-deep: #070b09;
    --bg-panel: #101612;
    --ink: #d7e2d4;
    --muted: #8a9a86;
    --accent: #c4a574;
    --accent-soft: rgba(196, 165, 116, 0.25);
    --line: rgba(215, 226, 212, 0.12);
    --danger: #c47a74;
    --font-display: "Instrument Serif", "Times New Roman", serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-mono);
    color: var(--ink);
    background: var(--bg-deep);
    line-height: 1.5;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: #e4c79a;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--ink);
}

.btn--primary {
    border-color: var(--accent);
    background: rgba(196, 165, 116, 0.18);
}

.flash {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 40;
    max-width: 22rem;
    padding: 0.75rem 1rem;
    background: var(--bg-panel);
    border: 1px solid var(--line);
}

.flash--success {
    border-color: rgba(120, 170, 120, 0.5);
}

.flash--error {
    border-color: rgba(196, 122, 116, 0.6);
}

.page-home {
    min-height: 100vh;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 2rem;
}

.hero.is-glitching {
    animation: hero-glitch-burst 0.32s steps(1, end);
}

.hero__atmosphere {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(70, 90, 60, 0.35), transparent 55%),
        radial-gradient(ellipse at 70% 80%, rgba(40, 55, 70, 0.45), transparent 50%),
        linear-gradient(160deg, #050806, #0c1410 45%, #081018);
    animation: drift 28s ease-in-out infinite alternate;
}

.hero__grain {
    position: absolute;
    /* Oversized so grain translate never reveals a clean strip at the edges */
    inset: -14%;
    opacity: 0.38;
    pointer-events: none;
    z-index: 0;
    background-color: transparent;
    /* Low-res noise scaled up hard = chunky CRT static */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='1' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='discrete' tableValues='0 0.35 0.7 1'/%3E%3CfeFuncG type='discrete' tableValues='0 0.35 0.7 1'/%3E%3CfeFuncB type='discrete' tableValues='0 0.35 0.7 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 140px 140px;
    background-repeat: repeat;
    image-rendering: pixelated;
    mix-blend-mode: soft-light;
    animation: grain 0.85s steps(2) infinite;
    will-change: transform;
}

.hero__glitch {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.03) 0 1px,
            transparent 1px 4px
        ),
        linear-gradient(
            105deg,
            transparent 40%,
            rgba(255, 60, 80, 0.06) 45%,
            rgba(60, 220, 255, 0.06) 55%,
            transparent 60%
        );
    mix-blend-mode: screen;
}

.hero__glitch.is-glitching {
    animation: glitch-veil-burst 0.36s steps(1, end);
}

.hero__crt {
    text-shadow:
        0.045em 0 rgba(255, 70, 90, 0.35),
        -0.04em 0 rgba(70, 200, 255, 0.32),
        0 0 10px rgba(170, 210, 170, 0.12);
}

.hero__freq.hero__crt {
    text-shadow:
        0.06em 0 rgba(255, 70, 90, 0.4),
        -0.05em 0 rgba(70, 200, 255, 0.35),
        0 0 8px rgba(170, 210, 170, 0.1);
}

.hero__static {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    left: auto;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.45rem;
    border: 1px solid var(--line);
    background: rgba(7, 11, 9, 0.55);
    backdrop-filter: blur(8px);
}

.hero__static-mute {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.1rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    line-height: 0;
}

.hero__static-mute:hover,
.hero__static-mute[aria-pressed='false'] {
    color: var(--accent);
}

.hero__static-icon {
    width: 0.9rem;
    height: 0.9rem;
    display: block;
    fill: currentColor;
}

.hero__static-mute[aria-pressed='true'] .hero__static-icon--unmuted,
.hero__static-mute[aria-pressed='false'] .hero__static-icon--muted {
    display: none;
}

.hero__static-volume {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.hero__static-volume input[type='range'] {
    width: 3.25rem;
    height: 0.25rem;
    padding: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.hero__account {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    z-index: 2;
    max-width: min(24rem, calc(100vw - 2rem));
    font-size: 0.8rem;
}

.hero__account-bar {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    border: 1px solid var(--line);
    background: rgba(7, 11, 9, 0.55);
    backdrop-filter: blur(8px);
}

.hero__account-bar__label,
.hero__account-bar__link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-right: 1px solid var(--line);
    text-decoration: none;
    white-space: nowrap;
}

.hero__account-bar__label:last-child,
.hero__account-bar__link:last-child {
    border-right: none;
}

.hero__account-bar__label {
    color: var(--muted);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 11rem;
}

.hero__account-bar__link {
    color: var(--ink);
    transition: background 160ms ease, color 160ms ease;
}

.hero__account-bar__link:hover {
    background: var(--accent-soft);
    color: var(--ink);
}

.hero__account-bar__link--primary {
    color: var(--accent);
}

.hero__legal {
    position: absolute;
    bottom: 1.1rem;
    left: 1.25rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    max-width: min(22rem, calc(100vw - 2rem));
    font-size: 0.75rem;
}

.hero__legal a {
    color: var(--muted);
    text-decoration: none;
    text-underline-offset: 0.2em;
}

.hero__legal a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 40rem;
}

.hero__freq {
    margin: 0 0 0.75rem;
    color: var(--muted);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.hero__brand {
    position: relative;
    display: inline-block;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 16vw, 8rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 0.9;
    color: var(--ink);
    animation: glow 6s ease-in-out infinite alternate;
}

.hero__brand-text {
    position: relative;
    display: inline-block;
    /* Soft phosphor + VHS chroma without CRT RGB on the wordmark itself */
    text-shadow:
        0 0 28px rgba(196, 165, 116, 0.28),
        0 0 2px rgba(215, 226, 212, 0.4);
}

.hero__brand-text::after {
    content: '';
    position: absolute;
    inset: -0.05em 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.42) 2px,
        rgba(0, 0, 0, 0.42) 3px
    );
    mix-blend-mode: multiply;
    opacity: 0.85;
    animation: vhs-scan 4.5s linear infinite;
}

.hero__tagline {
    margin: 1.25rem auto 2rem;
    max-width: 28rem;
    color: var(--muted);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.hero__tagline.hero__crt {
    text-shadow:
        0.06em 0 rgba(255, 70, 90, 0.4),
        -0.05em 0 rgba(70, 200, 255, 0.35),
        0 0 8px rgba(170, 210, 170, 0.1);
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero__coming-soon {
    margin: 0 auto;
    color: var(--muted);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.hero__coming-soon.hero__crt {
    text-shadow:
        0.06em 0 rgba(255, 70, 90, 0.4),
        -0.05em 0 rgba(70, 200, 255, 0.35),
        0 0 8px rgba(170, 210, 170, 0.1);
}

.hero__links {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    font-size: 0.85rem;
}

.listen,
.tape,
.map-page,
.admin {
    width: min(960px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.listen__header,
.page-section__nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.page-listen .listen {
    padding-top: 0;
}

/* --- Full-screen DOS CRT terminal shell --- */
body.dos-crt {
    background: #000;
    color: #33ff33;
    min-height: 100vh;
}

body.dos-crt.page-listen,
body.dos-crt.page-map,
body.dos-crt.page-tape {
    height: 100vh;
    overflow: hidden;
}

body.dos-crt .terminal-shell {
    min-height: 100vh;
    padding: 0.75rem;
    box-sizing: border-box;
}

body.dos-crt.page-listen .terminal-shell,
body.dos-crt.page-map .terminal-shell,
body.dos-crt.page-tape .terminal-shell {
    height: 100vh;
    min-height: 0;
}

body.dos-crt .terminal-shell__frame {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 1.5rem);
    border: 2px solid #1a6b1a;
    background: #010501;
    box-shadow:
        inset 0 0 60px rgba(0, 255, 65, 0.06),
        0 0 28px rgba(0, 255, 65, 0.12);
    overflow: hidden;
}

body.dos-crt.page-listen .terminal-shell__frame,
body.dos-crt.page-map .terminal-shell__frame,
body.dos-crt.page-tape .terminal-shell__frame {
    height: calc(100vh - 1.5rem);
    min-height: 0;
}

body.dos-crt .terminal-shell__scan {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0,
            rgba(0, 0, 0, 0) 2px,
            rgba(0, 0, 0, 0.28) 2px,
            rgba(0, 0, 0, 0.28) 3px
        ),
        radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
    opacity: 0.75;
}

body.dos-crt .terminal-shell__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
    gap: 0;
    flex: 1;
    min-height: 0;
    height: 100%;
}

body.dos-crt .terminal-nav {
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 1rem 0.9rem 1.25rem;
    overflow: auto;
    border: 0;
    border-right: 1px solid #1a6b1a;
    border-radius: 0;
    background: #000;
    box-shadow: none;
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.55;
    color: #33ff33;
    text-shadow: 0 0 6px rgba(51, 255, 51, 0.65);
}

body.dos-crt .terminal-nav::after {
    display: none;
}

body.dos-crt .terminal-nav__prompt {
    position: relative;
    z-index: 1;
    margin: 0 0 0.55rem;
    color: #22cc22;
    text-shadow: 0 0 5px rgba(34, 204, 34, 0.55);
    opacity: 0.9;
    word-break: break-all;
}

body.dos-crt .terminal-nav a,
body.dos-crt .terminal-nav__current {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0;
    padding: 0.15rem 0.2rem;
    color: #33ff33;
    text-decoration: none;
    text-shadow: 0 0 6px rgba(51, 255, 51, 0.65);
}

body.dos-crt .terminal-nav a::before,
body.dos-crt .terminal-nav__current::before {
    content: '  ';
    white-space: pre;
}

body.dos-crt .terminal-nav__current::before {
    content: '> ';
    color: #66ff66;
}

body.dos-crt .terminal-nav a:hover {
    color: #9dff9d;
    text-shadow: 0 0 10px rgba(157, 255, 157, 0.9);
    background: rgba(0, 255, 65, 0.08);
}

body.dos-crt .terminal-nav__current {
    color: #66ff66;
    text-shadow: 0 0 8px rgba(102, 255, 102, 0.85);
    background: rgba(0, 255, 65, 0.06);
}

body.dos-crt .terminal-shell__main {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 0;
    padding: 1rem 1.25rem 1.5rem;
    overflow: auto;
}

body.dos-crt.page-listen .terminal-shell__main,
body.dos-crt.page-map .terminal-shell__main,
body.dos-crt.page-tape .terminal-shell__main {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem 0.85rem;
    overflow: hidden;
}

body.dos-crt .terminal-shell__boot,
body.dos-crt .dos-crt__boot {
    margin: 0 0 0.85rem;
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #22cc22;
    text-shadow: 0 0 5px rgba(34, 204, 34, 0.45);
}

body.dos-crt .listen,
body.dos-crt .tape,
body.dos-crt .map-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.dos-crt .listen.listen--watch .tv {
    flex: 1;
    min-height: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dos-crt .listen.listen--watch .tv__bezel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    box-sizing: border-box;
}

body.dos-crt .listen.listen--watch .tv__screen {
    aspect-ratio: 16 / 9;
    height: 100%;
    width: auto;
    max-width: 100%;
    max-height: 100%;
}

body.dos-crt .listen.listen--audio .audio-only {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    text-align: left;
    padding: 1.5rem 1.75rem;
    box-sizing: border-box;
}

body.dos-crt .listen.listen--audio .audio-only__clock {
    font-size: clamp(4.5rem, 14vh, 8rem);
}

body.dos-crt .listen.listen--audio .now-playing-credit {
    margin: 0;
    padding: 0.75rem 0 0;
    border-top: 1px solid #1a6b1a;
}

body.dos-crt .listen.listen--audio .now-playing-credit__track {
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
}

body.dos-crt .listen.listen--audio .audio-only__controls {
    margin-top: 0.5rem;
}

body.dos-crt .map-page h1 {
    flex: 0 0 auto;
    margin: 0 0 0.4rem;
}

body.dos-crt .map-page > p {
    flex: 0 0 auto;
    margin: 0 0 0.85rem;
    max-width: 42rem;
}

body.dos-crt .map-page .map-canvas {
    flex: 1;
    min-height: 0;
    height: auto;
    margin: 0;
    width: 100%;
}

body.dos-crt .tape h1 {
    flex: 0 0 auto;
    margin: 0 0 0.4rem;
}

body.dos-crt .tape__lead,
body.dos-crt .tape__phone {
    flex: 0 0 auto;
    margin: 0 0 0.65rem;
    max-width: 42rem;
}

body.dos-crt .tape .tape-form {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-sizing: border-box;
}

body.dos-crt .tape .tape-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.dos-crt .tape .tape-letter-input {
    flex: 1;
    min-height: 8rem;
}

body.dos-crt .listen__home,
body.dos-crt .tape h1,
body.dos-crt .map-page h1 {
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    color: #33ff33;
    text-shadow: 0 0 8px rgba(51, 255, 51, 0.55);
    text-decoration: none;
}

body.dos-crt .tape__lead,
body.dos-crt .tape__phone,
body.dos-crt .map-page > p,
body.dos-crt .now-playing-credit,
body.dos-crt .now-playing-credit__label,
body.dos-crt .now-playing-credit__track,
body.dos-crt .now-playing-credit__artist,
body.dos-crt .player-bar,
body.dos-crt .player-bar__signal,
body.dos-crt .audio-only__clock,
body.dos-crt .audio-only__type {
    color: #33ff33;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.35);
}

body.dos-crt .player-bar {
    border-color: #1a6b1a;
    background: #000;
}

body.dos-crt .player-bar .btn,
body.dos-crt .tape-form .btn,
body.dos-crt .btn {
    border-color: #1a6b1a;
    border-radius: 0;
    background: #031003;
    color: #33ff33;
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.45);
}

body.dos-crt .player-bar .btn:hover,
body.dos-crt .tape-form .btn:hover,
body.dos-crt .btn:hover {
    background: rgba(0, 255, 65, 0.12);
    color: #9dff9d;
    border-color: #33ff33;
}

body.dos-crt .btn--primary {
    border-color: #33ff33;
    box-shadow: 0 0 12px rgba(51, 255, 51, 0.2);
}

body.dos-crt .tape-form,
body.dos-crt .tape-panel,
body.dos-crt .tape-file {
    border-color: #1a6b1a;
    border-radius: 0;
    background: #000;
}

body.dos-crt .tape-field__label,
body.dos-crt .tape-field__hint,
body.dos-crt .tape-form label,
body.dos-crt .form-stack label {
    color: #33ff33;
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.dos-crt .tape-letter-input,
body.dos-crt .tape-form input,
body.dos-crt .tape-form textarea,
body.dos-crt .form-stack input,
body.dos-crt .form-stack textarea {
    border: 1px solid #1a6b1a;
    border-radius: 0;
    background: #000;
    color: #33ff33;
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    caret-color: #33ff33;
}

body.dos-crt .form-stack input[type="date"],
body.dos-crt .form-stack input[type="datetime-local"] {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.65rem 0.7rem;
    color-scheme: dark;
}

body.dos-crt .form-stack input[type="date"]::-webkit-calendar-picker-indicator,
body.dos-crt .form-stack input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    filter: invert(58%) sepia(93%) saturate(445%) hue-rotate(86deg) brightness(103%) contrast(101%);
}

body.dos-crt .form-stack input[type="date"]::-webkit-calendar-picker-indicator:hover,
body.dos-crt .form-stack input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    filter: invert(72%) sepia(93%) saturate(445%) hue-rotate(86deg) brightness(118%) contrast(101%);
}

body.dos-crt .tape-letter-input:focus,
body.dos-crt .tape-form input:focus,
body.dos-crt .tape-form textarea:focus,
body.dos-crt .form-stack input:focus,
body.dos-crt .form-stack textarea:focus {
    outline: 1px solid #33ff33;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.25);
}

body.dos-crt .map-canvas {
    border: 2px solid #1a6b1a;
    border-radius: 0;
    background: #000;
    box-shadow: inset 0 0 40px rgba(0, 255, 65, 0.06);
}

body.dos-crt .tv__bezel {
    border-radius: 0;
    border: 2px solid #1a6b1a;
    background: #000;
    padding: 0.4rem;
    box-shadow:
        inset 0 0 28px rgba(0, 255, 65, 0.06),
        0 0 22px rgba(0, 255, 65, 0.12);
}

body.dos-crt .tv__screen {
    border-radius: 0;
    border-color: #0a1a0a;
}

body.dos-crt .audio-only {
    border: 2px solid #1a6b1a;
    background: #000;
    padding: 2rem 1.25rem;
    min-height: 0;
}

body.dos-crt .audio-only__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

/* --- Admin CRT panel --- */
body.dos-crt.page-admin .admin {
    width: 100%;
    max-width: 52rem;
    margin: 0;
    padding: 0 0 2.5rem;
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    color: #33ff33;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.35);
}

body.dos-crt.page-admin .admin h1 {
    margin: 0 0 0.45rem;
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #66ff66;
    text-shadow: 0 0 8px rgba(102, 255, 102, 0.7);
}

body.dos-crt.page-admin .admin-section h2 {
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #66ff66;
    text-shadow: 0 0 6px rgba(102, 255, 102, 0.45);
}

body.dos-crt.page-admin .admin-hint,
body.dos-crt.page-admin .admin-muted,
body.dos-crt.page-admin .admin p {
    color: #33ff33;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.3);
    max-width: 44rem;
}

body.dos-crt.page-admin .admin-hint,
body.dos-crt.page-admin .admin-muted {
    opacity: 0.85;
    font-size: 0.85rem;
}

body.dos-crt.page-admin .admin-section {
    margin: 1.75rem 0 0;
    padding-top: 1.15rem;
    border-top: 1px solid #1a6b1a;
}

body.dos-crt.page-admin .admin-section--flush {
    margin-top: 1.25rem;
    padding-top: 0;
    border-top: 0;
}

body.dos-crt.page-admin .admin__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.85rem 0 1.25rem;
}

body.dos-crt.page-admin .admin-table {
    width: 100%;
    border-collapse: collapse;
}

body.dos-crt.page-admin .admin-table th,
body.dos-crt.page-admin .admin-table td {
    padding: 0.55rem 0.4rem;
    border-bottom: 1px solid #1a6b1a;
    text-align: left;
    vertical-align: top;
    font-size: 0.82rem;
    color: #33ff33;
}

body.dos-crt.page-admin .admin-table th {
    color: #22cc22;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

body.dos-crt.page-admin .admin-table a {
    color: #66ff66;
    text-decoration: none;
}

body.dos-crt.page-admin .admin-table a:hover {
    color: #9dff9d;
    text-shadow: 0 0 8px rgba(157, 255, 157, 0.8);
}

body.dos-crt.page-admin .form-stack {
    max-width: 36rem;
}

body.dos-crt.page-admin .form-stack select,
body.dos-crt .form-stack select {
    width: 100%;
    padding: 0.65rem 0.7rem;
    border: 1px solid #1a6b1a;
    border-radius: 0;
    background: #000;
    color: #33ff33;
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
}

body.dos-crt.page-admin .form-stack select:focus,
body.dos-crt .form-stack select:focus {
    outline: 1px solid #33ff33;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.25);
}

body.dos-crt.page-admin .form-stack input[type="checkbox"] {
    width: auto;
    padding: 0;
    accent-color: #33ff33;
}

body.dos-crt.page-admin .form-stack .form-help,
body.dos-crt.page-admin .form-stack .help-text,
body.dos-crt.page-admin .form-stack .form-error {
    font-size: 0.75rem;
    color: #22cc22;
    text-transform: none;
    letter-spacing: 0;
}

body.dos-crt.page-admin .broadcast-status__pill {
    border-color: #1a6b1a;
    color: #33ff33;
}

body.dos-crt.page-admin .broadcast-status__pill--live {
    border-color: #33ff33;
    color: #9dff9d;
}

body.dos-crt.page-admin .broadcast-preview__frame {
    border-color: #1a6b1a;
    background: #000;
}

body.dos-crt.page-admin .tape-letter {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid #1a6b1a;
    background: #000;
    color: #33ff33;
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

body.dos-crt.page-admin .admin-table input[type="number"],
body.dos-crt.page-admin .admin-table input[type="text"] {
    width: 4.5rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid #1a6b1a;
    border-radius: 0;
    background: #000;
    color: #33ff33;
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
}

.listen__home {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--ink);
    text-decoration: none;
}

.listen__mode,
.tv__label,
.audio-only__type {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
}

.tv {
    margin: 0.5rem 0 0;
    width: 100%;
}

.tv__bezel {
    padding: 0.55rem;
    border-radius: 1.4rem;
    background:
        linear-gradient(145deg, #2a2f2b, #141816 55%, #0d100e);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 30px 60px rgba(0, 0, 0, 0.45);
}

.tv__screen {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    border-radius: 0.4rem;
    background: #050807;
    border: 2px solid #050505;
    cursor: pointer;
}

.tv__visualizer {
    width: 100%;
    height: 100%;
    display: block;
}

.tv__scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.03),
        transparent 40%,
        rgba(0, 0, 0, 0.2)
    );
    mix-blend-mode: soft-light;
    animation: scan 7s linear infinite;
}

.tv__play-cue {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    margin: 0;
    pointer-events: none;
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #66ff66;
    text-shadow: 0 0 12px rgba(102, 255, 102, 0.7);
    background: rgba(0, 0, 0, 0.35);
}

.listen.is-playing .tv__play-cue {
    display: none;
}

.tv__hud {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 70%);
}

.tv__hud .now-playing-credit--hud {
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
    max-width: min(70%, 36rem);
}

.tv__hud .now-playing-credit__track {
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    font-size: clamp(1rem, 2.4vw, 1.45rem);
}

.tv__hud-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    pointer-events: auto;
}

.tv__signal {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #33ff33;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.45);
    opacity: 0.85;
}

.tv__volume {
    display: inline-flex;
    margin: 0;
}

.tv__volume input[type='range'] {
    width: 5.5rem;
    height: 0.28rem;
    accent-color: #33ff33;
    cursor: pointer;
}

.tv__now {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem 0.9rem;
    background: rgba(5, 8, 7, 0.72);
    border: 1px solid var(--line);
    backdrop-filter: blur(4px);
}

.now-playing-credit {
    margin: 1rem 0 0;
    padding: 0.85rem 0.1rem 0.25rem;
    border-top: 1px solid var(--line);
}

.now-playing-credit__label {
    margin: 0 0 0.35rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}

.now-playing-credit__track {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 400;
    line-height: 1.1;
}

.now-playing-credit__artist {
    margin: 0.35rem 0 0;
    color: var(--accent);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.now-playing-credit--overlay {
    position: fixed;
    left: 1.5rem;
    bottom: 4.5rem;
    margin: 0;
    padding: 0.75rem 1rem;
    max-width: min(28rem, 46vw);
    border: 1px solid rgba(215, 226, 212, 0.18);
    background: rgba(5, 8, 7, 0.55);
    backdrop-filter: blur(6px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tv__now strong {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
}

.audio-only {
    min-height: 40vh;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 0.5rem;
}

.audio-only__clock {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(4rem, 18vw, 7rem);
    line-height: 1;
    color: var(--accent);
    animation: glow 5s ease-in-out infinite alternate;
}

.audio-only__title {
    margin: 0;
    font-size: 1.1rem;
}

.player-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(16, 22, 18, 0.7);
}

.player-bar__volume {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.player-bar__script {
    flex: 1 1 100%;
    margin: 0;
    color: var(--muted);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.player-bar__signal {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: calc(0.45 + (var(--signal, 0.3) * 0.55));
}

.overlay-body {
    margin: 0;
    background: transparent;
    overflow: hidden;
}

.overlay-body--preview {
    background:
        radial-gradient(ellipse at 40% 30%, rgba(60, 80, 55, 0.35), transparent 50%),
        #070b09;
}

.overlay {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.overlay__brand {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    margin: 0;
    font-family: var(--font-display);
    font-size: 2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.overlay__script {
    position: fixed;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.tv--overlay {
    width: min(1100px, 92vw);
}

.map-canvas {
    position: relative;
    height: 420px;
    margin: 1.5rem 0;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 20% 30%, rgba(80, 100, 70, 0.2), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(50, 70, 90, 0.25), transparent 45%),
        #0b1210;
    overflow: hidden;
}

.map-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(196, 165, 116, 0.8);
    transform: translate(-50%, -50%);
}

.map-pin__label {
    position: absolute;
    left: 14px;
    top: -0.2rem;
    white-space: nowrap;
    font-size: 0.7rem;
    color: var(--muted);
}

.admin h1,
.tape h1,
.map-page h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 2.6rem);
    margin: 1.25rem 0 0.5rem;
}

.admin-hint {
    color: var(--muted);
    max-width: 40rem;
}

.admin-section {
    margin: 2.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.admin-section h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.75rem;
    margin: 0 0 0.75rem;
}

.admin-muted {
    color: var(--muted);
    font-size: 0.85rem;
}

.admin__nav,
.admin-table {
    width: 100%;
}

.admin__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.admin-table {
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 0.9rem;
}

.form-stack {
    display: grid;
    gap: 1rem;
    max-width: 36rem;
}

.form-stack label {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    background: #0c1210;
    color: var(--ink);
    font: inherit;
}

.broadcast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0 2rem;
}

.broadcast-status__pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
}

.broadcast-status__pill--live {
    border-color: rgba(120, 170, 120, 0.7);
    color: #9dcf9a;
}

.broadcast-status__pill--error {
    border-color: rgba(196, 122, 116, 0.7);
    color: var(--danger);
}

.broadcast-status__pill--starting {
    border-color: var(--accent);
    color: var(--accent);
}

.broadcast-preview__frame {
    margin-top: 1rem;
    max-width: 56rem;
    background: #000;
    border: 1px solid var(--line);
}

.broadcast-preview__video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.broadcast-preview__frame .admin-muted {
    margin: 0;
    padding: 0.65rem 0.85rem;
}

@keyframes drift {
    from { transform: translate3d(-2%, -1%, 0) scale(1.02); }
    to { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

@keyframes grain {
    0%, 100% { transform: translate3d(0, 0, 0); }
    33% { transform: translate3d(-3%, 2%, 0); }
    66% { transform: translate3d(2%, -2.5%, 0); }
}

@keyframes vhs-scan {
    from { background-position: 0 0; }
    to { background-position: 0 12px; }
}

@keyframes hero-glitch-burst {
    0% {
        transform: none;
        filter: none;
    }
    20% {
        transform: translate3d(-2px, 1px, 0);
        filter: saturate(1.2);
    }
    45% {
        transform: translate3d(3px, -1px, 0) skewX(-0.4deg);
        filter: hue-rotate(12deg) contrast(1.05);
    }
    70% {
        transform: translate3d(-1px, 0, 0);
        filter: none;
    }
    100% {
        transform: none;
        filter: none;
    }
}

@keyframes glitch-veil-burst {
    0% {
        opacity: 0;
        transform: none;
        clip-path: inset(0 0 0 0);
    }
    25% {
        opacity: 0.55;
        transform: translate3d(2px, 0, 0);
        clip-path: inset(18% 0 62% 0);
    }
    55% {
        opacity: 0.4;
        transform: translate3d(-3px, 1px, 0);
        clip-path: inset(55% 0 28% 0);
    }
    100% {
        opacity: 0;
        transform: none;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes glow {
    from { filter: drop-shadow(0 0 14px rgba(196, 165, 116, 0.12)); }
    to { filter: drop-shadow(0 0 34px rgba(196, 165, 116, 0.28)); }
}

@keyframes scan {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .hero,
    .hero__atmosphere,
    .hero__grain,
    .hero__glitch,
    .hero__brand,
    .hero__brand-text::after {
        animation: none !important;
    }

    .hero__glitch {
        display: none;
    }

    body.dos-crt::before,
    body.dos-crt .terminal-shell__scan,
    body.dos-crt .dos-terminal::after {
        display: none;
    }
}

.page-auth {
    min-height: 100vh;
    background: #000;
}

.auth {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    position: relative;
    z-index: 1;
}

.auth__panel {
    width: min(28rem, 100%);
}

body.dos-crt .dos-terminal {
    position: relative;
    overflow: hidden;
    padding: 1.25rem 1.35rem 1.5rem;
    border: 2px solid #1a6b1a;
    background: #010501;
    box-shadow:
        inset 0 0 36px rgba(0, 255, 65, 0.08),
        0 0 28px rgba(0, 255, 65, 0.16);
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    color: #33ff33;
    text-shadow: 0 0 6px rgba(51, 255, 51, 0.45);
}

body.dos-crt .dos-terminal::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0,
            rgba(0, 0, 0, 0) 2px,
            rgba(0, 0, 0, 0.35) 2px,
            rgba(0, 0, 0, 0.35) 3px
        ),
        radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0.8;
}

body.dos-crt .dos-terminal > * {
    position: relative;
    z-index: 1;
}

body.dos-crt .auth__boot {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #22cc22;
}

.auth__eyebrow {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #22cc22;
}

.auth__eyebrow a {
    color: inherit;
    text-decoration: none;
}

.auth__eyebrow a:hover {
    color: #9dff9d;
}

.auth__title {
    margin: 0 0 0.5rem;
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #66ff66;
    text-shadow: 0 0 8px rgba(102, 255, 102, 0.7);
}

.auth__lead {
    margin: 0 0 1.35rem;
    color: #33ff33;
    font-size: 0.85rem;
    opacity: 0.9;
}

.auth__error {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #66ff66;
    background: rgba(0, 255, 65, 0.08);
    color: #9dff9d;
    font-size: 0.85rem;
}

.auth__twitch {
    width: 100%;
}

.auth__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #22cc22;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth__divider::before,
.auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #1a6b1a;
}

.auth__form {
    display: grid;
    gap: 0.9rem;
}

.auth__field {
    display: grid;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #33ff33;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth__field input {
    width: 100%;
    padding: 0.65rem 0.7rem;
    border: 1px solid #1a6b1a;
    border-radius: 0;
    background: #000;
    color: #33ff33;
    font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
    caret-color: #33ff33;
}

.auth__field input:focus {
    outline: 1px solid #33ff33;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.25);
}

.auth__form .btn {
    width: 100%;
    margin-top: 0.25rem;
}

.auth__footer {
    margin: 1.25rem 0 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #22cc22;
}

.auth__footer--legal {
    margin-top: 0.75rem;
    opacity: 0.75;
}

.auth__footer a {
    color: #33ff33;
    text-decoration: none;
}

.auth__footer a:hover {
    color: #9dff9d;
}

.auth__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth__altcha {
    min-height: 1.5rem;
}

.auth__altcha altcha-widget {
    display: block;
    max-width: 100%;
}

.tape-review-audio {
    width: min(100%, 28rem);
    margin: 0.5rem 0 0;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.admin-reject {
    margin-top: 1rem;
}

.tape__lead {
    max-width: 34rem;
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
}

.tape__phone {
    color: var(--accent);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

.tape-form {
    margin-top: 1.75rem;
    padding: 1.35rem 1.35rem 1.5rem;
    border: 1px solid var(--line);
    background:
        linear-gradient(165deg, rgba(16, 22, 18, 0.95), rgba(8, 12, 10, 0.92));
    max-width: 28rem;
    gap: 1.25rem;
}

.tape-panel {
    display: grid;
    gap: 0.5rem;
}

.tape-field {
    display: grid;
    gap: 0.4rem;
    margin: 0;
}

.tape-field__label {
    color: var(--muted);
    font-size: 0.85rem;
}

.tape-field__hint {
    color: rgba(138, 154, 134, 0.85);
    font-size: 0.75rem;
    line-height: 1.4;
}

.tape-file {
    display: block;
    padding: 1rem 1rem 1.05rem;
    border: 1px dashed rgba(215, 226, 212, 0.22);
    background: rgba(7, 11, 9, 0.65);
    transition: border-color 160ms ease, background 160ms ease;
}

.tape-file:hover,
.tape-file:focus-within {
    border-color: rgba(196, 165, 116, 0.55);
    background: rgba(196, 165, 116, 0.06);
}

.tape-file__input {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.85rem;
}

.tape-file__input::file-selector-button {
    margin-right: 0.85rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--line);
    background: rgba(196, 165, 116, 0.12);
    color: var(--ink);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.tape-file__input::file-selector-button:hover {
    border-color: var(--accent);
}

.tape-letter-input {
    min-height: 12rem;
    resize: vertical;
    line-height: 1.55;
}

.tape-meta {
    display: grid;
    gap: 1rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--line);
}

.tape-form__submit {
    justify-self: start;
    margin-top: 0.25rem;
}

.tape-letter {
    white-space: pre-wrap;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.55;
    padding: 1rem;
    border: 1px solid var(--line);
    background: var(--bg-panel);
    max-width: 40rem;
    color: var(--ink);
}

@media (max-width: 640px) {
    .player-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .hero__static {
        top: 0.75rem;
        right: 0.85rem;
        left: auto;
        gap: 0.3rem;
        padding: 0.22rem 0.35rem;
    }

    .hero__static-volume input[type='range'] {
        width: 2.75rem;
    }

    .hero__account {
        top: 0.75rem;
        right: 0.85rem;
        font-size: 0.75rem;
    }

    .hero__account-bar__label {
        max-width: 7.5rem;
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .hero__account-bar__link {
        padding: 0.4rem 0.65rem;
    }

    .hero__legal {
        bottom: 0.75rem;
        left: 0.85rem;
        gap: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    body.dos-crt .terminal-shell {
        padding: 0.4rem;
    }

    body.dos-crt .terminal-shell__frame {
        min-height: calc(100vh - 0.8rem);
    }

    body.dos-crt .terminal-shell__grid {
        grid-template-columns: 1fr;
    }

    body.dos-crt .terminal-nav {
        border-right: 0;
        border-bottom: 1px solid #1a6b1a;
        font-size: 0.75rem;
        padding: 0.75rem 0.85rem;
    }

    body.dos-crt .terminal-shell__main {
        padding: 0.85rem 0.9rem 1.25rem;
    }

    body.dos-crt.page-listen,
    body.dos-crt.page-map,
    body.dos-crt.page-tape {
        height: auto;
        overflow: auto;
    }

    body.dos-crt.page-listen .terminal-shell,
    body.dos-crt.page-map .terminal-shell,
    body.dos-crt.page-tape .terminal-shell,
    body.dos-crt.page-listen .terminal-shell__frame,
    body.dos-crt.page-map .terminal-shell__frame,
    body.dos-crt.page-tape .terminal-shell__frame {
        height: auto;
        min-height: calc(100vh - 0.8rem);
    }

    body.dos-crt.page-listen .terminal-shell__main,
    body.dos-crt.page-map .terminal-shell__main,
    body.dos-crt.page-tape .terminal-shell__main {
        overflow: auto;
        display: block;
    }

    body.dos-crt .map-page .map-canvas {
        min-height: 18rem;
        height: 50vh;
    }

    .tape-form {
        padding: 1.1rem;
    }
}
