:root {
    color-scheme: dark;
    --bg: #0a0e1a;
    --panel: #121a2e;
    --panel-light: #1a2440;
    --accent: #5ef3ff;
    --accent-warm: #ffb454;
    --accent-hot: #ff6b6b;
    --text: #e9f1ff;
    --muted: #9bb0d3;
    --shadow: rgba(0, 0, 0, 0.35);
}

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

body {
    background: radial-gradient(circle at top, #14203b 0%, #0a0e1a 55%, #05070f 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);
}

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

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

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

.screen-bezel {
    position: relative;
    background: #05060b;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid #1d2a4c;
    box-shadow: inset 0 0 18px rgba(94, 243, 255, 0.12);
}

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

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

.screen-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

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

.mood,
.cycle {
    color: var(--muted);
}

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

.stats {
    display: grid;
    gap: 14px;
}

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

.stat-bar {
    background: #0b1224;
    border-radius: 999px;
    padding: 4px;
    border: 1px solid #1a2a4e;
}

.stat-bar span {
    display: block;
    height: 10px;
    border-radius: 999px;
    width: 50%;
    background: linear-gradient(90deg, var(--accent) 0%, #6c8bff 100%);
    box-shadow: 0 0 12px rgba(94, 243, 255, 0.4);
    transition: width 0.2s ease;
}

.buttons,
.utility {
    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.primary {
    background: linear-gradient(135deg, #2f9ad6, #5ef3ff);
    color: #041018;
    border: none;
}

.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;
    }
}
