﻿/* ===== STATIC — VHS / dead-broadcast theme ===== */
:root {
    --bg: #07060a;
    --bg-panel: #0e0b15;
    --ink: #e8e6f0;
    --ink-dim: #8a8499;
    --magenta: #ff2d95;
    --cyan: #19e6e6;
    --blood: #e11d2a;
    --line: #241c33;
    --mono: "Consolas", "Courier New", monospace;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--mono);
    line-height: 1.6;
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
}

    /* CRT scanline overlay */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 9999;
        background: repeating-linear-gradient( to bottom, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 3px );
    }

a {
    color: var(--cyan);
    text-decoration: none;
}

    a:hover {
        color: var(--magenta);
        text-decoration: underline;
    }

.wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
    border-bottom: 2px solid var(--magenta);
    padding: 28px 0 18px;
    margin-bottom: 10px;
    position: relative;
}

.site-title {
    font-size: 3rem;
    letter-spacing: 0.35em;
    margin: 0;
    color: var(--ink);
    text-shadow: 3px 0 var(--magenta), -3px 0 var(--cyan);
    animation: glitch 6s infinite steps(1);
}

    .site-title a {
        color: inherit;
        text-decoration: none;
    }

@keyframes glitch {
    0%, 92%, 100% {
        text-shadow: 3px 0 var(--magenta), -3px 0 var(--cyan);
    }

    93% {
        text-shadow: -3px 0 var(--magenta), 3px 0 var(--cyan);
        transform: translateX(2px);
    }

    95% {
        text-shadow: 2px 2px var(--blood), -2px 0 var(--cyan);
    }
}

.tagline {
    color: var(--ink-dim);
    font-size: 0.95rem;
    margin: 6px 0 0;
    font-style: italic;
}

.nav {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

    .nav a {
        color: var(--ink-dim);
    }

        .nav a:hover {
            color: var(--cyan);
            text-decoration: none;
        }

        /* Dividers between nav items */
        .nav a:not(:last-child)::after {
            content: "";
            display: inline-block;
            width: 1px;
            height: 0.9em;
            background: var(--magenta);
            margin-left: 18px; /* matches your existing gap */
            vertical-align: middle;
            opacity: 0.6;
        }

@media (prefers-reduced-motion: reduce) {
    .site-title {
        animation: none;
    }
}

/* ===== Feed ===== */
.feed-banner {
    color: var(--cyan);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin: 18px 0;
    border-left: 3px solid var(--cyan);
    padding-left: 12px;
}

.post-card {
    border: 1px solid var(--line);
    background: var(--bg-panel);
    padding: 22px 24px;
    margin: 0 0 22px;
    position: relative;
}

    .post-card .rec {
        color: var(--blood);
        font-size: 0.72rem;
        letter-spacing: 0.15em;
        margin-bottom: 8px;
    }

        .post-card .rec .dot {
            animation: blink 1.2s infinite;
        }

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.post-card h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    line-height: 1.2;
}

    .post-card h2 a {
        color: var(--ink);
    }

        .post-card h2 a:hover {
            color: var(--magenta);
            text-decoration: none;
        }

.post-card .excerpt {
    color: var(--ink-dim);
    margin: 6px 0 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--magenta);
    color: var(--magenta);
    padding: 2px 8px;
    border-radius: 2px;
}

    .tag:hover {
        background: var(--magenta);
        color: var(--bg);
        text-decoration: none;
    }

/* ===== Single post ===== */
.post-full {
    padding: 10px 0 40px;
}

    .post-full h1 {
        font-size: 2.2rem;
        line-height: 1.15;
        margin: 0 0 6px;
    }

.post-meta {
    color: var(--ink-dim);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.post-body {
    font-size: 1.05rem;
}

    .post-body h2, .post-body h3 {
        color: var(--cyan);
        margin-top: 1.6em;
    }

    .post-body blockquote {
        border-left: 3px solid var(--magenta);
        margin: 1.2em 0;
        padding: 4px 0 4px 18px;
        color: var(--ink-dim);
        font-style: italic;
    }

    .post-body code {
        background: #1a1426;
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 0.9em;
        color: var(--cyan);
    }

    .post-body pre {
        background: #120e1c;
        border: 1px solid var(--line);
        padding: 14px;
        overflow-x: auto;
    }

    .post-body img {
        max-width: 100%;
        height: auto;
    }

.signoff {
    margin-top: 36px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    color: var(--ink-dim);
    font-style: italic;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 40px;
    padding: 22px 0 50px;
    color: var(--ink-dim);
    font-size: 0.8rem;
    text-align: center;
}

.byline {
    color: var(--magenta);
}

.empty {
    color: var(--ink-dim);
    text-align: center;
    padding: 60px 0;
    font-style: italic;
}

@media (max-width: 600px) {
    .site-title {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }

    body {
        font-size: 16px;
    }
}

/* ===== Toys / Junk Drawer ===== */
.toy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin: 24px 0 40px;
}

.toy-card {
    display: block;
    border: 1px solid var(--line);
    background: var(--bg-panel);
    padding: 22px;
    text-align: center;
    color: var(--ink);
}

    .toy-card:hover {
        border-color: var(--magenta);
        text-decoration: none;
        transform: translateY(-2px);
    }

    .toy-card .toy-icon {
        font-size: 2.4rem;
        margin-bottom: 10px;
    }

    .toy-card h3 {
        margin: 6px 0;
        color: var(--cyan);
    }

    .toy-card p {
        color: var(--ink-dim);
        font-size: 0.85rem;
    }

    .toy-card.disabled {
        opacity: 0.45;
        pointer-events: none;
    }

/* Spite Ball */
.spiteball-wrap {
    text-align: center;
    padding: 10px 0 50px;
}

.spite-input {
    width: 100%;
    max-width: 460px;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 12px;
    font-family: var(--mono);
    font-size: 1rem;
    margin: 14px 0;
}

.ball {
    width: 240px;
    height: 240px;
    margin: 24px auto;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #2a2436, #07060a 70%);
    border: 2px solid var(--magenta);
    box-shadow: 0 0 30px rgba(255,45,149,0.4), inset 0 0 40px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ball-window {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #120e1c, #050409);
    border: 1px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    text-align: center;
}

#answer {
    color: var(--cyan);
    font-size: 0.9rem;
    line-height: 1.4;
}

.ball.shaking {
    animation: shake 0.6s;
}

@keyframes shake {
    0%,100% {
        transform: translate(0,0) rotate(0);
    }

    20% {
        transform: translate(-8px,4px) rotate(-3deg);
    }

    40% {
        transform: translate(8px,-4px) rotate(3deg);
    }

    60% {
        transform: translate(-6px,-4px) rotate(-2deg);
    }

    80% {
        transform: translate(6px,4px) rotate(2deg);
    }
}

.btn-shake {
    background: none;
    border: 1px solid var(--magenta);
    color: var(--magenta);
    padding: 12px 30px;
    font-family: var(--mono);
    font-size: 1rem;
    letter-spacing: 0.2em;
    cursor: pointer;
}

    .btn-shake:hover {
        background: var(--magenta);
        color: var(--bg);
    }

@media (prefers-reduced-motion: reduce) {
    .ball.shaking {
        animation: none;
    }
}

/* ===== Generator card toys ===== */
.card-display {
    max-width: 600px;
    margin: 24px auto;
    min-height: 140px;
    border: 1px solid var(--cyan);
    background: var(--bg-panel);
    padding: 28px;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}

/* Fortune cookie */
.cookie {
    font-size: 5rem;
    cursor: pointer;
    margin: 20px 0;
    user-select: none;
    transition: transform .1s;
}

    .cookie:active {
        transform: scale(0.9);
    }

/* ===== Memory Match ===== */
.mem-status {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    font-size: .9rem;
}

.mem-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    max-width: 440px;
    margin: 0 auto 50px;
}

.mem-card {
    aspect-ratio: 1/1;
    perspective: 600px;
    cursor: pointer;
}

.mem-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .4s;
}

.mem-card.flipped .mem-inner, .mem-card.done .mem-inner {
    transform: rotateY(180deg);
}

.mem-front, .mem-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 1.8rem;
}

.mem-front {
    background: var(--bg-panel);
    color: var(--magenta);
}

.mem-back {
    background: #120e1c;
    transform: rotateY(180deg);
}

.mem-card.done .mem-back {
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(25,230,230,.5);
}

@media (max-width:480px) {
    .mem-grid {
        gap: 7px;
    }

    .mem-front, .mem-back {
        font-size: 1.3rem;
    }
}

/* ===== Reaction Test ===== */
.react-pad {
    max-width: 600px;
    margin: 24px auto;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--line);
    cursor: pointer;
    user-select: none;
    font-size: 1.4rem;
    letter-spacing: .15em;
    text-align: center;
    transition: background .05s;
}

.react-wait {
    background: var(--bg-panel);
    color: var(--ink-dim);
    border-color: var(--line);
}

.react-go {
    background: var(--cyan);
    color: #03242a;
    border-color: var(--cyan);
}

.react-fail {
    background: var(--blood);
    color: #fff;
    border-color: var(--blood);
}

@media (prefers-reduced-motion: reduce) {
    .mem-inner {
        transition: none;
    }
}

/* ===== Snake ===== */
.snake-status {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    font-size: .9rem;
}

.snake-canvas {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1/1;
    border: 2px solid var(--magenta);
    box-shadow: 0 0 25px rgba(255,45,149,.35), inset 0 0 30px rgba(0,0,0,.7);
    image-rendering: pixelated;
    touch-action: none;
}

.snake-controls {
    text-align: center;
    margin: 16px 0;
}

.dpad {
    display: none;
    max-width: 200px;
    margin: 10px auto 50px;
    text-align: center;
}

    .dpad button {
        width: 56px;
        height: 56px;
        margin: 3px;
        background: var(--bg-panel);
        border: 1px solid var(--cyan);
        color: var(--cyan);
        font-size: 1.2rem;
        cursor: pointer;
        border-radius: 6px;
    }

        .dpad button:active {
            background: var(--cyan);
            color: var(--bg);
        }
/* show dpad on touch / small screens */
@media (max-width:768px) {
    .dpad {
        display: block;
    }
}

/* ===== Tic-Tac-Toe ===== */
.ttt-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    max-width: 300px;
    margin: 24px auto;
}

.ttt-cell {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--bg-panel);
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--cyan);
    user-select: none;
}

    .ttt-cell:hover:not(.filled) {
        border-color: var(--magenta);
    }

    .ttt-cell.filled {
        cursor: default;
    }

/* ===== Optical Illusions ===== */
/* ===== Optical Illusions (reworked) ===== */
.illusion-stage {
    display: flex;
    justify-content: center;
    margin: 24px 0;
    min-height: 300px;
    align-items: center;
}

/* Hermann grid — grey lines on black, white gaps */
.ill-hermann {
    width: 300px;
    height: 300px;
    background: repeating-linear-gradient(0deg, #fff 0 16px, transparent 16px 36px), repeating-linear-gradient(90deg, #fff 0 16px, transparent 16px 36px), #000;
}

/* Scintillating grid — grey lines with white dots at intersections */
.ill-scint {
    width: 300px;
    height: 300px;
    position: relative;
    background: repeating-linear-gradient(0deg, #888 0 14px, transparent 14px 44px), repeating-linear-gradient(90deg, #888 0 14px, transparent 14px 44px), #111;
}

    .ill-scint::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(#fff 3px, transparent 4px);
        background-size: 44px 44px;
        background-position: 0px 0px;
    }

/* Rotating drift — concentric high-contrast bands */
.ill-drift {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle at center, #000 0 8px, #ff2d95 8px 16px, #fff 16px 24px, #19e6e6 24px 32px);
}

/* Breathing square — static square on animated striped bg */
.ill-breathe {
    width: 300px;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: repeating-linear-gradient(45deg, #000 0 12px, #fff 12px 24px);
    background-size: 200% 200%;
    animation: ill-bgmove 4s linear infinite;
}

.ill-breathe-sq {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%,-50%);
    background: #777;
    border: 2px solid #555;
}

@keyframes ill-bgmove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100% 100%;
    }
}

/* Simultaneous contrast — identical inner squares on different bg */
.ill-contrast2 {
    display: flex;
}

.ill-c2 {
    width: 150px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ill-c2.dark {
        background: #1a1a1a;
    }

    .ill-c2.light {
        background: #d8d8d8;
    }

    .ill-c2 span {
        width: 70px;
        height: 70px;
        background: #808080;
        display: block;
    }
/* same grey both sides */

/* Café wall — offset rows shear the parallel lines */
.ill-cafe2 {
    width: 320px;
    height: 240px;
    background: repeating-linear-gradient(0deg, transparent 0 28px, #888 28px 32px), repeating-linear-gradient(90deg, #000 0 40px, #fff 40px 80px);
    position: relative;
}

    .ill-cafe2::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 30px;
        height: 30px;
        background: repeating-linear-gradient(90deg, #fff 0 40px, #000 40px 80px);
    }
/* simpler reliable café: alternating shifted rows via box-shadow trick */
.ill-cafe2 {
    background: #888;
    background-image: linear-gradient(90deg, #000 50%, #fff 50%);
    background-size: 80px 32px;
    box-shadow: none;
}

/* Motion-aftereffect spiral (animated, guaranteed to work) */
.ill-spiral {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, #000 0 8deg, #fff 8deg 16deg);
    animation: ill-spin 6s linear infinite;
}

@keyframes ill-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Lilac chaser */
.ill-lilac {
    width: 300px;
    height: 300px;
    position: relative;
    background: var(--bg);
}

    .ill-lilac::before {
        content: "+";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        color: #fff;
        font-size: 24px;
        z-index: 3;
    }

    .ill-lilac .dot, .ill-lilac {
    }
/* dots built in JS below for the chase */
@media (prefers-reduced-motion: reduce) {
    .ill-breathe, .ill-spiral {
        animation: none;
    }
}

/* ===== CRT toy ===== */
.crt-canvas {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 4/3;
    border: 2px solid var(--cyan);
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(25,230,230,.4), inset 0 0 30px rgba(0,0,0,.8);
}

.crt-dial {
    width: 80%;
    max-width: 300px;
    accent-color: var(--magenta);
}

/* ===== They Live "obey" mode (site-wide) ===== */
body.obey {
    filter: grayscale(1) contrast(1.4);
}

    body.obey .site-title {
        text-shadow: none !important;
        animation: none;
    }

    body.obey .post-card::after,
    body.obey .feed-banner::after {
        content: " OBEY";
        color: #000;
    }

    body.obey .tagline::after {
        content: " — CONSUME. CONFORM. STAND BY.";
    }

    body.obey a {
        color: #000 !important;
        background: #fff;
    }

/* ===== CRT TV (Double Feature) ===== */
.crt-tv {
    max-width: 640px;
    margin: 24px auto;
}

.crt-tv-screen {
    background: #000;
    border: 14px solid #1a1622;
    border-radius: 18px;
    box-shadow: 0 0 30px rgba(255,45,149,.3), inset 0 0 40px rgba(0,0,0,.9);
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

    .crt-tv-screen::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 2;
        background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
    }

    .crt-tv-screen iframe {
        width: 100%;
        height: 100%;
        border: 0;
        position: relative;
        z-index: 1;
    }

.crt-tv-base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1622;
    border: 1px solid var(--line);
    border-top: none;
    padding: 12px 20px;
    border-radius: 0 0 12px 12px;
}

.crt-knob {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #555, #111);
    border: 1px solid #000;
}

.crt-label {
    color: var(--cyan);
    font-size: .75rem;
    letter-spacing: .1em;
    text-align: center;
}

.channel-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.channel-btn.active, .station-btn.active {
    background: var(--magenta);
    color: var(--bg);
}

/* ===== Radio deck ===== */
.radio-deck {
    max-width: 560px;
    margin: 24px auto;
    background: #1a1622;
    border: 2px solid var(--cyan);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 0 25px rgba(25,230,230,.3);
}

.radio-display {
    background: #03242a;
    color: var(--cyan);
    font-size: .9rem;
    letter-spacing: .1em;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--cyan);
    text-align: center;
}

/* ===== Cipher ===== */
.cipher-box {
    width: 30px;
    height: 34px;
    text-align: center;
    text-transform: uppercase;
    background: var(--bg-panel);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 1rem;
}

    .cipher-box:focus {
        outline: none;
        border-color: var(--magenta);
    }

/* ===== Lights Out ===== */
.lo-status {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
}

.lo-grid {
    display: grid;
    gap: 8px;
    max-width: 340px;
    margin: 0 auto 20px;
}

.lo-cell {
    aspect-ratio: 1/1;
    border: 1px solid var(--line);
    background: #0c0916;
    cursor: pointer;
    border-radius: 4px;
    transition: background .1s, box-shadow .1s;
}

    .lo-cell.on {
        background: var(--cyan);
        box-shadow: 0 0 14px var(--cyan);
        border-color: var(--cyan);
    }

/* ===== Mastermind ===== */
.mm-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.mm-sym {
    font-size: 1.6rem;
    background: var(--bg-panel);
    border: 1px solid var(--magenta);
    border-radius: 6px;
    cursor: pointer;
    padding: 6px 10px;
}

    .mm-sym:active {
        background: var(--magenta);
    }

.mm-current {
    font-size: 1.8rem;
    letter-spacing: .3em;
    color: var(--cyan);
}

.mm-board {
    max-width: 380px;
    margin: 14px auto;
}

.mm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 8px 4px;
}

.mm-guess {
    font-size: 1.4rem;
    letter-spacing: .2em;
}

.mm-pegs {
    color: var(--magenta);
    font-size: 1.1rem;
    letter-spacing: .15em;
}

.lilac-dot {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff5bd0 0%, rgba(255,91,208,0) 70%);
    animation: lilac-blink 1.2s linear infinite;
}

@keyframes lilac-blink {
    0%,8% {
        opacity: 1;
    }

    9%,100% {
        opacity: 0;
    }
}

.drawer-section {
    color: var(--magenta);
    font-size: 1rem;
    letter-spacing: 0.18em;
    margin: 36px 0 8px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

/* ===== Tools shared ===== */
.tool-wrap {
    max-width: 640px;
    margin: 24px auto 50px;
}

.tool-area {
    width: 100%;
    min-height: 160px;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 12px;
    font-family: var(--mono);
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 12px;
}

.tool-field {
    margin: 14px 0;
}

    .tool-field label {
        color: var(--ink-dim);
        font-size: .85rem;
    }

.tool-check {
    display: block;
    color: var(--ink);
    margin: 8px 0;
    cursor: pointer;
}

    .tool-check input {
        margin-right: 8px;
        accent-color: var(--magenta);
    }

.wc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(100px,1fr));
    gap: 10px;
    margin-top: 8px;
}

.wc-stat {
    border: 1px solid var(--line);
    background: var(--bg-panel);
    padding: 14px;
    text-align: center;
}

    .wc-stat span {
        display: block;
        font-size: 1.6rem;
        color: var(--cyan);
    }

    .wc-stat label {
        color: var(--ink-dim);
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .1em;
    }

.cc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 14px;
}

    .cc-buttons .btn-shake {
        padding: 10px 16px;
        font-size: .85rem;
    }

/* ===== Tools batch B ===== */
.tool-select {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 11px;
    font-family: var(--mono);
    font-size: 1rem;
    margin-left: 8px;
}

.color-picker {
    width: 120px;
    height: 120px;
    border: 2px solid var(--magenta);
    background: none;
    cursor: pointer;
    padding: 0;
}

.color-swatch {
    width: 100%;
    max-width: 300px;
    height: 80px;
    margin: 14px auto;
    border: 1px solid var(--line);
}

.timer-display {
    font-size: 3.4rem;
    color: var(--cyan);
    letter-spacing: .08em;
    margin: 20px 0;
    text-shadow: 0 0 16px rgba(25,230,230,.5);
}

@media (max-width:480px) {
    .timer-display {
        font-size: 2.6rem;
    }
}

/* ===== Tools batch C ===== */
.qr-frame {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 14px 0;
}

.md-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.md-preview {
    border: 1px solid var(--line);
    background: var(--bg-panel);
    padding: 14px;
    min-height: 340px;
    overflow: auto;
}

@media (max-width:700px) {
    .md-split {
        grid-template-columns: 1fr;
    }
}

.pomo-phase {
    font-size: 1.2rem;
    letter-spacing: .3em;
    color: var(--magenta);
    margin-top: 10px;
}

.pomo-count {
    color: var(--ink-dim);
    font-size: .85rem;
    margin-top: 14px;
}