:root {
    --sand: #d4c4a8;
    --muted-sage: #a89a7c;
    --copper: #c4956a;
    --amber: #d4a574;
    --loam: #3d3425;
    --black: #1e1b14;
    --paper: #e8dcc8;
    --green: #6b8f71;
    --olive-shadow: #4a4535;
    --control: #2d2a1e;
    --khaki: #8b7355;
}

/* Design language anchors: (Google Layer (10% Interference `#6b8f71` Phosphor TV accents IntersectionObserver` threshold. callbacks by 50ms prevent simultaneous animation floods detect entry. On entry IntersectionObserver`. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(196, 149, 106, 0.12), transparent 32rem),
        radial-gradient(circle at 85% 35%, rgba(107, 143, 113, 0.13), transparent 28rem),
        linear-gradient(135deg, var(--black), #17150f 55%, var(--black));
    color: var(--sand);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

button, input, textarea { font: inherit; }

.crt-vignette,
.scan-lines,
.static-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.crt-vignette {
    z-index: 60;
    background: radial-gradient(ellipse at center, transparent 42%, rgba(30, 27, 20, 0.42) 100%);
    mix-blend-mode: multiply;
}

.scan-lines {
    z-index: 61;
    opacity: 0.48;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(232, 220, 200, 0.045) 3px 4px);
}

.static-overlay {
    z-index: 62;
    opacity: 0;
    background:
        repeating-radial-gradient(circle at 20% 30%, rgba(232, 220, 200, 0.22) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(90deg, rgba(107, 143, 113, 0.16) 0 2px, transparent 2px 5px);
}

.static-overlay.burst { animation: staticBurst 330ms steps(6) both; }

@keyframes staticBurst {
    0% { opacity: 0; transform: translate(0, 0); }
    25% { opacity: 0.78; transform: translate(-6px, 3px); }
    55% { opacity: 0.42; transform: translate(5px, -4px); }
    100% { opacity: 0; transform: translate(0, 0); }
}

.channel-dial {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 70;
    display: grid;
    gap: 0.45rem;
    padding: 0.55rem;
    background: rgba(45, 42, 30, 0.78);
    border: 1px solid var(--khaki);
    box-shadow: 5px 5px 0 rgba(61, 52, 37, 0.9);
}

.dial-button {
    border: 1px solid var(--khaki);
    color: var(--sand);
    background: var(--loam);
    min-width: 2.6rem;
    padding: 0.4rem 0.55rem;
    font-family: "IBM Plex Mono", "Space Mono", monospace;
    font-weight: 600;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.dial-button:hover,
.dial-button.active {
    background: var(--copper);
    color: var(--black);
    transform: translate(-2px, -2px);
}

.floating-geometry {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.geo {
    position: absolute;
    opacity: 0.22;
    animation: floaty 9s ease-in-out infinite;
}

.square { width: 24px; height: 24px; background: var(--khaki); }
.circle { width: 18px; height: 18px; border-radius: 50%; background: var(--green); }
.ring { width: 42px; height: 42px; border: 3px solid var(--copper); border-radius: 50%; }
.triangle { width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 24px solid var(--amber); }
.g1 { left: 8%; top: 16%; }
.g2 { left: 88%; top: 24%; animation-delay: -1s; }
.g3 { left: 14%; top: 70%; animation-delay: -3s; }
.g4 { left: 73%; top: 68%; animation-delay: -5s; }
.g5 { left: 47%; top: 9%; animation-delay: -6s; }
.g6 { left: 36%; top: 82%; animation-delay: -8s; }

@keyframes floaty {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(12px, -34px, 0) rotate(10deg); }
}

.channel {
    position: relative;
    min-height: 100svh;
    padding: 4.8rem clamp(1.2rem, 4vw, 4.5rem) 5.2rem;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 5vw, 4rem);
    padding: 0.55rem 1rem;
    background: var(--copper);
    color: var(--black);
    font-family: "IBM Plex Mono", "Space Mono", monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 8;
}

.channel-watermark {
    position: absolute;
    left: -0.05em;
    top: 10%;
    color: rgba(212, 196, 168, 0.045);
    font-family: Righteous, Impact, sans-serif;
    font-size: clamp(11rem, 24vw, 28rem);
    letter-spacing: -0.08em;
    line-height: 0.8;
    z-index: 1;
}

.stage {
    position: relative;
    z-index: 4;
    width: min(1180px, 100%);
    margin: 0 auto;
    min-height: 72vh;
    display: grid;
    place-items: center;
}

.split-stage {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
    gap: clamp(1.4rem, 4vw, 4rem);
}

.panel {
    background: linear-gradient(150deg, rgba(74, 69, 53, 0.94), rgba(45, 42, 30, 0.98));
    border: 2px solid var(--khaki);
    box-shadow: 10px 10px 0 var(--loam), 0 0 45px rgba(196, 149, 106, 0.08);
}

.primary-panel {
    width: min(60vw, 780px);
    min-width: min(100%, 320px);
    padding: clamp(1.6rem, 4vw, 3.6rem);
    transform: rotate(-0.7deg);
    animation: panelDrift 8s ease-in-out infinite;
}

.drift-b { animation-delay: -2.2s; transform: rotate(0.65deg); }
.drift-c { animation-delay: -4.5s; transform: rotate(-0.25deg); }

@keyframes panelDrift {
    0%, 100% { translate: 0 0; rotate: -0.45deg; }
    50% { translate: 0 -10px; rotate: 0.35deg; }
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--green);
    font-family: "IBM Plex Mono", "Space Mono", monospace;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1, h2 {
    margin: 0 0 1.6rem;
    color: var(--copper);
    font-family: Righteous, Impact, sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 0.95;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #2d2a1e, 4px 4px 0 rgba(139,115,85,0.3);
}

.kinetic-headline .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px) rotate(8deg);
    filter: blur(3px);
}

.kinetic-headline .char.live { animation: assembleChar 560ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes assembleChar {
    to { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); }
}

.typewriter-text {
    margin: 0;
    color: var(--sand);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
}

.typewriter-text.typing::after {
    content: "|";
    color: var(--amber);
    margin-left: 0.2em;
    animation: blink 1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.note-panel {
    position: absolute;
    width: 12rem;
    padding: 1rem;
    background: var(--paper);
    color: var(--loam);
    font-family: "IBM Plex Mono", "Space Mono", monospace;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 94% 94%, 86% 91%, 76% 96%, 66% 90%, 55% 95%, 44% 91%, 34% 96%, 24% 90%, 14% 94%, 0 91%);
    animation: noteBob 6s ease-in-out infinite;
}

.left-note { left: 0; top: 28%; rotate: -5deg; }
.right-note { right: 0; top: 26%; rotate: 4deg; animation-delay: -2s; }

@keyframes noteBob { 50% { translate: 0 -9px; } }

.meter-panel {
    position: absolute;
    right: 7%;
    bottom: 10%;
    width: 15rem;
    padding: 1rem;
    rotate: 2deg;
}

.meter-label {
    color: var(--amber);
    font-family: "IBM Plex Mono", "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.meter-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem; align-items: end; height: 4.8rem; }
.meter-bars span { background: var(--green); box-shadow: 0 0 16px rgba(107, 143, 113, 0.35); animation: meterPulse 1.8s ease-in-out infinite; }
.meter-bars span:nth-child(1) { height: 25%; }
.meter-bars span:nth-child(2) { height: 48%; animation-delay: -0.3s; }
.meter-bars span:nth-child(3) { height: 75%; animation-delay: -0.8s; }
.meter-bars span:nth-child(4) { height: 58%; animation-delay: -0.5s; }
.meter-bars span:nth-child(5) { height: 90%; animation-delay: -1s; }
@keyframes meterPulse { 50% { opacity: 0.55; transform: scaleY(0.72); } }

.collage-board {
    position: absolute;
    width: min(36vw, 430px);
    height: 18rem;
    right: 2%;
    top: 12%;
    pointer-events: auto;
}

.collage-board i {
    position: absolute;
    display: block;
    width: 42%;
    height: 42%;
    border: 2px solid rgba(232, 220, 200, 0.18);
    opacity: 0.86;
    mix-blend-mode: soft-light;
    transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 420ms ease;
}

.collage-board:hover i { opacity: 1; mix-blend-mode: normal; }
.collage-board i:nth-child(1) { left: 9%; top: 12%; background: var(--copper); rotate: -7deg; }
.collage-board i:nth-child(2) { left: 28%; top: 28%; background: var(--paper); rotate: 5deg; }
.collage-board i:nth-child(3) { left: 52%; top: 18%; background: var(--green); rotate: -3deg; }
.collage-board i:nth-child(4) { left: 14%; top: 54%; background: var(--khaki); rotate: 8deg; }
.collage-board i:nth-child(5) { left: 47%; top: 55%; background: var(--loam); rotate: -9deg; }
.collage-board i:nth-child(6) { left: 67%; top: 48%; background: var(--amber); rotate: 4deg; }
.collage-board:hover i:nth-child(1) { transform: translate(-28px, -16px) rotate(12deg); }
.collage-board:hover i:nth-child(2) { transform: translate(8px, -26px) rotate(-10deg); }
.collage-board:hover i:nth-child(3) { transform: translate(30px, 4px) rotate(9deg); }
.collage-board:hover i:nth-child(4) { transform: translate(-22px, 22px) rotate(-8deg); }
.collage-board:hover i:nth-child(5) { transform: translate(18px, 24px) rotate(11deg); }
.collage-board:hover i:nth-child(6) { transform: translate(28px, 20px) rotate(-12deg); }

.method-collage { left: 2%; right: auto; top: 44%; }

.review-card {
    padding: 1.1rem;
    align-self: center;
    color: var(--sand);
    rotate: 1.2deg;
}

.mini-screen {
    min-height: 14rem;
    padding: 1rem;
    background: var(--black);
    border: 1px solid var(--green);
    box-shadow: inset 0 0 30px rgba(107, 143, 113, 0.16);
}

.screen-row { height: 0.75rem; width: 62%; margin: 0.7rem 0; background: var(--sand); opacity: 0.42; }
.screen-row.wide { width: 88%; height: 1rem; background: var(--copper); }
.screen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-top: 1rem; }
.screen-grid b { height: 3.1rem; background: var(--olive-shadow); border: 1px solid var(--khaki); }

.score-gauge { position: relative; width: 9rem; height: 9rem; margin: -4rem auto 0; }
.score-gauge svg { width: 100%; height: 100%; rotate: -90deg; filter: drop-shadow(0 0 12px rgba(196, 149, 106, 0.35)); }
.gauge-back, .gauge-line { fill: none; stroke-width: 9; }
.gauge-back { stroke: var(--loam); }
.gauge-line { stroke: var(--copper); stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; transition: stroke-dashoffset 1200ms cubic-bezier(0.65, 0, 0.35, 1); }
.score-gauge strong { position: absolute; inset: 0; display: grid; place-items: center; color: var(--amber); font-family: Righteous, Impact, sans-serif; font-size: 2.6rem; text-shadow: 2px 2px 0 var(--black); }
.review-card p { font-family: "IBM Plex Mono", "Space Mono", monospace; font-size: 0.82rem; line-height: 1.55; color: var(--paper); }

.control-board {
    position: absolute;
    right: 2%;
    bottom: 8%;
    width: min(28rem, 48vw);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    padding: 1rem;
    rotate: 1deg;
}

.control-board button,
.submission-panel button {
    border: 1px solid var(--khaki);
    background: var(--loam);
    color: var(--paper);
    padding: 0.75rem 0.55rem;
    cursor: pointer;
    font-family: "IBM Plex Mono", "Space Mono", monospace;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.control-board button:hover,
.control-board button.active,
.submission-panel button:hover { background: var(--green); color: var(--black); transform: translateY(-2px); }

.board-display {
    grid-column: 1 / -1;
    min-height: 5rem;
    padding: 1rem;
    background: var(--black);
    border: 1px solid var(--green);
    color: var(--sand);
    font-family: "IBM Plex Mono", "Space Mono", monospace;
    line-height: 1.55;
}

.submission-panel {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    rotate: -1.5deg;
}

.submission-panel label {
    display: grid;
    gap: 0.45rem;
    color: var(--green);
    font-family: "IBM Plex Mono", "Space Mono", monospace;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.submission-panel input,
.submission-panel textarea {
    width: 100%;
    border: 1px solid var(--khaki);
    background: var(--black);
    color: var(--sand);
    padding: 0.85rem;
    resize: vertical;
}

.submission-panel textarea { min-height: 9rem; }

.signoff-panel { text-align: center; }
.credits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem 1.4rem;
    margin-top: 2rem;
    color: var(--green);
    font-family: "IBM Plex Mono", "Space Mono", monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.credits a { color: var(--amber); text-decoration: none; border-bottom: 1px solid currentColor; }

.end-signal { display: flex; gap: 1rem; margin-top: 2rem; }
.end-signal span { width: 4rem; height: 1rem; background: var(--green); animation: meterPulse 1.4s ease-in-out infinite; }
.end-signal span:nth-child(2) { background: var(--copper); animation-delay: -0.3s; }
.end-signal span:nth-child(3) { background: var(--amber); animation-delay: -0.6s; }

.ticker {
    position: absolute;
    left: 0;
    bottom: 0;
    width: max-content;
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    color: var(--muted-sage);
    opacity: 0.72;
    font-family: "IBM Plex Mono", "Space Mono", monospace;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    animation: ticker 19s linear infinite;
}

.ticker span { padding-inline: 1rem; }
@keyframes ticker { to { transform: translateX(-45%); } }

@media (max-width: 920px) {
    .split-stage { grid-template-columns: 1fr; }
    .primary-panel { width: min(92vw, 740px); }
    .note-panel, .meter-panel, .collage-board, .control-board { position: relative; inset: auto; margin: 1rem auto; width: min(92vw, 28rem); }
    .stage { align-content: center; gap: 1rem; }
    .channel-dial { grid-auto-flow: column; grid-template-columns: none; right: 50%; transform: translateX(50%); }
    .status-bar span:nth-child(2) { display: none; }
}

@media (max-width: 560px) {
    .channel { padding: 5rem 1rem 4.5rem; }
    .primary-panel { padding: 1.4rem; width: 100%; }
    h1, h2 { font-size: clamp(2rem, 12vw, 3rem); }
    .typewriter-text { font-size: 0.96rem; line-height: 1.65; }
    .control-board { grid-template-columns: 1fr 1fr; }
    .status-bar { font-size: 0.66rem; gap: 1rem; }
    .channel-dial { top: auto; bottom: 0.65rem; }
}
