@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Press+Start+2P&display=swap");

:root {
    color-scheme: dark;
    --bg: #07080f;
    --panel: #121827;
    --panel-light: #1c2438;
    --accent: #63f5ff;
    --accent-alt: #ffb454;
    --accent-ice: #88a8ff;
    --text: #e7f0ff;
    --muted: #9aa7c4;
    --shadow: rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top, #131c33 0%, #0a0f1d 45%, #05060c 100%);
    color: var(--text);
    font-family: "IBM Plex Mono", "SFMono-Regular", "Menlo", "Consolas", monospace;
    min-height: 100vh;
}

.screen {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 28px 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.back {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge {
    align-self: flex-start;
    background: var(--panel-light);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-family: "Press Start 2P", "IBM Plex Mono", monospace;
    letter-spacing: 0.04em;
}

.subtitle {
    color: var(--muted);
    max-width: 680px;
    line-height: 1.6;
}

.deck {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
}

.marquee-panel {
    background: var(--panel);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.marquee-bezel {
    position: relative;
    background: #05060b;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #1a2234;
    box-shadow: inset 0 0 24px rgba(99, 245, 255, 0.15);
}

canvas {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: pixelated;
    background: #04050a;
    border-radius: 12px;
}

.scanlines {
    pointer-events: none;
    position: absolute;
    inset: 18px;
    border-radius: 12px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(12, 16, 26, 0.18) 0px,
        rgba(12, 16, 26, 0.18) 2px,
        rgba(6, 8, 14, 0.6) 3px,
        rgba(6, 8, 14, 0.6) 4px
    );
    mix-blend-mode: screen;
    opacity: 0.65;
}

.marquee-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
}

.status {
    color: var(--accent);
}

.controls {
    background: var(--panel);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label,
.label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

input[type="text"] {
    background: #0b1220;
    border: 1px solid #243050;
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 14px;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

.palette {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #2a3656;
    background: #121a2d;
    color: var(--text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.1s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
    transform: translateY(-1px);
    border-color: #3b4d78;
}

.chip.active {
    background: linear-gradient(135deg, #2d9ad7, #63f5ff);
    color: #021018;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(99, 245, 255, 0.35);
}

.chip.ghost {
    background: transparent;
    color: var(--accent);
    border: 1px dashed #364464;
}

.actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.btn {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #2a3a64;
    background: #141f3b;
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: #3c4f80;
}

.btn:active {
    transform: translateY(1px);
}

.btn.ghost {
    background: transparent;
    color: var(--accent);
    border: 1px dashed #3a4d75;
}

.tips {
    background: #0d1426;
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.tips ul {
    padding-left: 18px;
    margin-top: 8px;
}

.tips li {
    margin-bottom: 6px;
}

.footer {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .deck {
        grid-template-columns: 1fr;
    }
}
