/* /Games/Alphabet/AlphabetGame.razor.rz.scp.css */
/* Alphabet styles. Blazor scopes this file to AlphabetGame.razor, so these classes only affect this game.
   Shared look (colors, fonts, buttons, top bar) stays in wwwroot/css/app.css. */

.ab[b-47b4ggjej1] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 16px;
}

/* The 26 letters: 13 to a row, so A–M sit on top of N–Z. */
.ab-letters[b-47b4ggjej1] {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 5px;
    width: min(100%, 620px);
}

.ab-letter[b-47b4ggjej1] {
    min-width: 0;
    padding: 6px 0;
    font-family: var(--font-title);
    font-size: clamp(13px, 3.4vw, 20px);
    font-weight: 800;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

/* A letter already traced: tinted, with a small check mark in its corner. */
.ab-letter.ab-done[b-47b4ggjej1] {
    --btn-fill: color-mix(in srgb, var(--good) 22%, var(--glass-fill));
    color: var(--good);
}

.ab-letter.ab-done[b-47b4ggjej1]::after {
    content: "✓";
    position: absolute;
    right: 3px;
    bottom: 1px;
    font-family: system-ui, sans-serif;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0;
    color: var(--good);
}

/* The letter being traced: solid color, lifted, bigger and glowing (after .ab-done so it wins on a redo). */
.ab-letter.ab-current[b-47b4ggjej1],
.ab-letter.ab-current:hover[b-47b4ggjej1] {
    --btn-edge: var(--accent-border);
    --btn-fill: var(--accent);
    color: #ffffff;
    text-shadow: 0 1px 2px var(--accent-border), 0 0 6px var(--accent-border);
    border: 2px solid #ffffff;
    transform: translateY(-3px) scale(1.15);
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 4px 0 var(--accent-border),
        0 0 0 3px color-mix(in srgb, var(--accent-border) 60%, transparent),
        0 0 22px var(--accent);
    z-index: 1;
}

.ab-letter.ab-current[b-47b4ggjej1]::after {
    color: #ffffff;
}

.ab-message[b-47b4ggjej1] {
    min-height: 1.4em;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 0 1px 0 #ffffff, 0 0 12px #ffffff, 0 0 18px var(--glow);
}

.ab-status[b-47b4ggjej1] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
}

.ab-count[b-47b4ggjej1] {
    font-family: var(--font-title);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

/* How much of the current letter has been traced. */
.ab-bar[b-47b4ggjej1] {
    width: 140px;
    height: 12px;
    border-radius: 6px;
    background: var(--glass-fill);
    border: 1.5px solid #ffffffd0;
    box-shadow: inset 0 1px 3px #0002;
    overflow: hidden;
}

.ab-bar-fill[b-47b4ggjej1] {
    height: 100%;
    background: linear-gradient(to bottom, #ffffff80, transparent 60%), var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transition: width 0.2s ease;
}

.ab-time[b-47b4ggjej1], .ab-saved[b-47b4ggjej1] {
    font-size: 15px;
}

/* The tracing board: the same plexiglass tray as the puzzle. */
.ab-board[b-47b4ggjej1] {
    position: relative;
    width: min(92vw, 54dvh, 420px);
    aspect-ratio: 1;
    border-radius: 18px;
    background-color: color-mix(in srgb, var(--board) 50%, transparent);
    background-image: linear-gradient(160deg, #ffffff70 0%, #ffffff10 40%, #ffffff00 60%, #ffffff30 100%);
    outline: 2px solid #ffffffd0;
    backdrop-filter: blur(14px) saturate(1.6);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    box-shadow:
        0 0 0 7px color-mix(in srgb, #ffffff 35%, transparent),
        0 0 0 8px color-mix(in srgb, var(--edge) 50%, transparent),
        0 16px 34px #0003,
        0 0 36px var(--glow);
    transition: box-shadow 0.4s ease;
}

.ab-board-done[b-47b4ggjej1] {
    box-shadow:
        0 0 0 7px color-mix(in srgb, #ffffff 35%, transparent),
        0 0 0 8px var(--good),
        0 16px 34px #0003,
        0 0 48px var(--accent);
}

.ab-canvas[b-47b4ggjej1] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: crosshair;
}

.ab-tools[b-47b4ggjej1] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .ab-letter[b-47b4ggjej1], .ab-bar-fill[b-47b4ggjej1], .ab-board[b-47b4ggjej1] { transition: none; }
}

/* ---- Desktop layout (the rules above are the mobile layout) ---- */

/* All 26 letters in one row across the top. */
:root[data-device="desktop"] .ab-letters[b-47b4ggjej1] {
    grid-template-columns: repeat(26, 1fr);
    gap: 6px;
    width: min(100%, 1180px);
}

:root[data-device="desktop"] .ab-letter[b-47b4ggjej1] {
    font-size: 20px;
    padding: 8px 0;
}

:root[data-device="desktop"] .ab-message[b-47b4ggjej1] {
    font-size: 24px;
}

/* A bigger tracing board, sized to the window height. */
:root[data-device="desktop"] .ab-board[b-47b4ggjej1] {
    width: min(92vw, 62dvh, 560px);
}
/* /Games/Crawler/CrawlerGame.razor.rz.scp.css */
/* Sonik Crawler: a dark neon night scene with the palette bar at the bottom.
   The rules here are the mobile layout; the desktop layout is at the end. */

.cs-scene[b-yre4l3rzwj] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #020308;
}

/* The canvas fills the stage; the JS sizes its pixels from this box. */
.cs-stage[b-yre4l3rzwj] {
    position: relative;
    flex: 1;
    min-height: 0;
}

.cs-canvas[b-yre4l3rzwj] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #020308;
    touch-action: none;
    cursor: crosshair;
}

.cs-hint[b-yre4l3rzwj] {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: #8b95b5;
    opacity: 0.75;
    pointer-events: none;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- palette bar */

.cs-palette[b-yre4l3rzwj] {
    flex: none;
    background: #0a0d1c;
    border-top: 2px solid var(--hue-color);
    box-shadow: 0 -4px 22px -8px var(--hue-color);
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #eef3ff;
}

.cs-row[b-yre4l3rzwj] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-dot[b-yre4l3rzwj] {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hue-color);
    box-shadow: 0 0 14px var(--hue-color), 0 0 4px #fff inset;
}

.cs-name[b-yre4l3rzwj] {
    flex: none;
    min-width: 64px;
    font-family: var(--font-title);
    font-size: 13px;
    color: var(--hue-color);
    text-shadow: 0 0 10px var(--hue-color);
    text-align: right;
}

/* Spectrum slider: rainbow track and a big glowing thumb, sized for small fingers. */
.cs-spectrum[b-yre4l3rzwj] {
    flex: 1;
    min-width: 0;
    height: 40px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    touch-action: none;
    cursor: pointer;
}

.cs-spectrum[b-yre4l3rzwj]::-webkit-slider-runnable-track {
    height: 18px;
    border-radius: 9px;
    background: linear-gradient(to right,
        hsl(0 100% 55%), hsl(30 100% 55%), hsl(60 100% 55%), hsl(90 100% 55%), hsl(120 100% 55%),
        hsl(150 100% 55%), hsl(180 100% 55%), hsl(210 100% 55%), hsl(240 100% 60%), hsl(270 100% 60%),
        hsl(300 100% 55%), hsl(330 100% 55%), hsl(359 100% 55%));
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.cs-spectrum[b-yre4l3rzwj]::-moz-range-track {
    height: 18px;
    border-radius: 9px;
    background: linear-gradient(to right,
        hsl(0 100% 55%), hsl(30 100% 55%), hsl(60 100% 55%), hsl(90 100% 55%), hsl(120 100% 55%),
        hsl(150 100% 55%), hsl(180 100% 55%), hsl(210 100% 55%), hsl(240 100% 60%), hsl(270 100% 60%),
        hsl(300 100% 55%), hsl(330 100% 55%), hsl(359 100% 55%));
}

.cs-spectrum[b-yre4l3rzwj]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 36px;
    height: 36px;
    margin-top: -9px;
    border-radius: 50%;
    background: var(--hue-color);
    border: 3px solid #fff;
    box-shadow: 0 0 16px var(--hue-color), 0 0 4px #000;
}

.cs-spectrum[b-yre4l3rzwj]::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hue-color);
    border: 3px solid #fff;
    box-shadow: 0 0 16px var(--hue-color);
}

/* Swatches wrap onto two rows so every dot and button is in view (no hidden sideways scrolling). */
.cs-swatches[b-yre4l3rzwj] {
    flex-wrap: wrap;
    justify-content: center;
    padding: 2px;
}

.cs-swatches[b-yre4l3rzwj]::-webkit-scrollbar { display: none; }

/* Round color buttons: switch off the app's plexiglass button look. */
.cs-swatch[b-yre4l3rzwj] {
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--sw);
    background-image: none;
    box-shadow: 0 0 10px var(--sw);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
}

.cs-swatch[b-yre4l3rzwj]::before { display: none; }

.cs-swatch:hover[b-yre4l3rzwj] { transform: scale(1.08); box-shadow: 0 0 16px var(--sw); }
.cs-swatch:active[b-yre4l3rzwj] { transform: scale(0.94); box-shadow: 0 0 8px var(--sw); }
.cs-swatch.on[b-yre4l3rzwj] { border-color: #fff; box-shadow: 0 0 18px var(--sw), 0 0 0 2px var(--sw); }

/* Rainbow / More keep the app's plexiglass buttons, just smaller. */
.cs-chip[b-yre4l3rzwj] {
    flex: none;
    margin: 0;
    padding: 8px 14px;
    font-size: 15px;
    white-space: nowrap;
}

.cs-more[b-yre4l3rzwj] {
    flex-wrap: wrap;
    gap: 8px 20px;
}

.cs-more label[b-yre4l3rzwj] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 160px;
    font-size: 13px;
    color: #8b95b5;
}

.cs-more b[b-yre4l3rzwj] { color: #eef3ff; font-weight: 600; }
.cs-more input[type=range][b-yre4l3rzwj] { width: 100%; accent-color: var(--hue-color); }

/* Phone held sideways: one compact strip so the scene keeps most of the screen. */
@media (orientation: landscape) and (max-height: 500px) {
    .cs-palette[b-yre4l3rzwj] {
        flex-direction: row;
        flex-wrap: wrap;
        padding-top: 6px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
        gap: 4px 12px;
    }
    .cs-spectrum-row[b-yre4l3rzwj] { flex: 1 1 300px; }
    /* Too short for two rows here: the dots scroll sideways inside the strip instead. */
    .cs-swatches[b-yre4l3rzwj] { flex: 1 1 300px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
    .cs-swatch[b-yre4l3rzwj] { width: 32px; height: 32px; }
    .cs-chip[b-yre4l3rzwj] { padding: 5px 10px; font-size: 13px; }
    .cs-hint[b-yre4l3rzwj] { display: none; }
}

/* ---- Desktop layout (the rules above are the mobile layout) ---- */

:root[data-device="desktop"] .cs-palette[b-yre4l3rzwj] {
    padding: 14px 28px 16px;
    gap: 12px;
}

:root[data-device="desktop"] .cs-spectrum-row[b-yre4l3rzwj],
:root[data-device="desktop"] .cs-swatches[b-yre4l3rzwj],
:root[data-device="desktop"] .cs-more[b-yre4l3rzwj] {
    width: min(100%, 1100px);
    margin: 0 auto;
}

:root[data-device="desktop"] .cs-swatches[b-yre4l3rzwj] {
    justify-content: center;
    overflow: visible;
    gap: 12px;
}

:root[data-device="desktop"] .cs-swatch[b-yre4l3rzwj] {
    width: 44px;
    height: 44px;
}

:root[data-device="desktop"] .cs-name[b-yre4l3rzwj] {
    min-width: 110px;
    font-size: 15px;
}

:root[data-device="desktop"] .cs-dot[b-yre4l3rzwj] {
    width: 30px;
    height: 30px;
}

:root[data-device="desktop"] .cs-hint[b-yre4l3rzwj] {
    font-size: 15px;
    top: 12px;
}
/* /Games/FingerFlies/FingerFliesGame.razor.rz.scp.css */
/* FingerFlies: a dark neon night scene with the butterfly color bar at the bottom.
   The rules here are the mobile layout; the desktop layout is at the end. */

.ff-scene[b-e9nw7ro7jz] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #020308;
}

/* The canvas fills the stage; the JS sizes its pixels from this box. */
.ff-stage[b-e9nw7ro7jz] {
    position: relative;
    flex: 1;
    min-height: 0;
}

.ff-canvas[b-e9nw7ro7jz] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #020308;
    touch-action: none;
    cursor: pointer;
}

/* Clock and the two scores, across the top of the night sky. */
.ff-hud[b-e9nw7ro7jz] {
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    pointer-events: none;
    font-family: var(--font-title);
    font-size: 14px;
    color: #eef3ff;
    text-shadow: 0 0 8px var(--hue-color);
}

.ff-clock[b-e9nw7ro7jz] { color: #ffffff; }
.ff-chase[b-e9nw7ro7jz] { color: #ff8a8a; text-shadow: 0 0 8px #ff3b3b; }
.ff-catch[b-e9nw7ro7jz] { color: #8affb8; text-shadow: 0 0 8px #2dff7a; }

/* End of the round: the score card in the middle of the sky. */
.ff-result[b-e9nw7ro7jz] {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(86%, 340px);
    padding: 18px 16px 12px;
    border-radius: 20px;
    background: rgba(10, 13, 28, 0.88);
    border: 2px solid var(--hue-color);
    box-shadow: 0 0 30px -4px var(--hue-color);
    text-align: center;
    color: #eef3ff;
    font-size: 18px;
}

.ff-result-title[b-e9nw7ro7jz] {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--hue-color);
    text-shadow: 0 0 12px var(--hue-color);
}

.ff-result-line[b-e9nw7ro7jz] { margin: 4px 0; }
.ff-result-line b[b-e9nw7ro7jz] { font-family: var(--font-title); }

.ff-result-total[b-e9nw7ro7jz] {
    margin: 10px 0 14px;
    font-family: var(--font-title);
    font-size: 26px;
    color: #ffe27a;
    text-shadow: 0 0 10px #ffb000;
}

/* ---------------------------------------------------------------- palette bar */

.ff-palette[b-e9nw7ro7jz] {
    flex: none;
    background: #0a0d1c;
    border-top: 2px solid var(--hue-color);
    box-shadow: 0 -4px 22px -8px var(--hue-color);
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #eef3ff;
}

.ff-row[b-e9nw7ro7jz] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ff-dot[b-e9nw7ro7jz] {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hue-color);
    box-shadow: 0 0 14px var(--hue-color), 0 0 4px #fff inset;
}

.ff-name[b-e9nw7ro7jz] {
    flex: none;
    min-width: 64px;
    font-family: var(--font-title);
    font-size: 13px;
    color: var(--hue-color);
    text-shadow: 0 0 10px var(--hue-color);
    text-align: right;
}

/* Spectrum slider: rainbow track and a big glowing thumb, sized for small fingers. */
.ff-spectrum[b-e9nw7ro7jz] {
    flex: 1;
    min-width: 0;
    height: 40px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    touch-action: none;
    cursor: pointer;
}

.ff-spectrum[b-e9nw7ro7jz]::-webkit-slider-runnable-track {
    height: 18px;
    border-radius: 9px;
    background: linear-gradient(to right,
        hsl(0 100% 55%), hsl(30 100% 55%), hsl(60 100% 55%), hsl(90 100% 55%), hsl(120 100% 55%),
        hsl(150 100% 55%), hsl(180 100% 55%), hsl(210 100% 55%), hsl(240 100% 60%), hsl(270 100% 60%),
        hsl(300 100% 55%), hsl(330 100% 55%), hsl(359 100% 55%));
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.ff-spectrum[b-e9nw7ro7jz]::-moz-range-track {
    height: 18px;
    border-radius: 9px;
    background: linear-gradient(to right,
        hsl(0 100% 55%), hsl(30 100% 55%), hsl(60 100% 55%), hsl(90 100% 55%), hsl(120 100% 55%),
        hsl(150 100% 55%), hsl(180 100% 55%), hsl(210 100% 55%), hsl(240 100% 60%), hsl(270 100% 60%),
        hsl(300 100% 55%), hsl(330 100% 55%), hsl(359 100% 55%));
}

.ff-spectrum[b-e9nw7ro7jz]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 36px;
    height: 36px;
    margin-top: -9px;
    border-radius: 50%;
    background: var(--hue-color);
    border: 3px solid #fff;
    box-shadow: 0 0 16px var(--hue-color), 0 0 4px #000;
}

.ff-spectrum[b-e9nw7ro7jz]::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hue-color);
    border: 3px solid #fff;
    box-shadow: 0 0 16px var(--hue-color);
}

/* Swatches wrap onto two rows so every dot and button is in view (no hidden sideways scrolling). */
.ff-swatches[b-e9nw7ro7jz] {
    flex-wrap: wrap;
    justify-content: center;
    padding: 2px;
}

.ff-swatches[b-e9nw7ro7jz]::-webkit-scrollbar { display: none; }

/* Round color buttons: switch off the app's plexiglass button look. */
.ff-swatch[b-e9nw7ro7jz] {
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--sw);
    background-image: none;
    box-shadow: 0 0 10px var(--sw);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
}

.ff-swatch[b-e9nw7ro7jz]::before { display: none; }

.ff-swatch:hover[b-e9nw7ro7jz] { transform: scale(1.08); box-shadow: 0 0 16px var(--sw); }
.ff-swatch:active[b-e9nw7ro7jz] { transform: scale(0.94); box-shadow: 0 0 8px var(--sw); }
.ff-swatch.on[b-e9nw7ro7jz] { border-color: #fff; box-shadow: 0 0 18px var(--sw), 0 0 0 2px var(--sw); }

/* Rainbow / More keep the app's plexiglass buttons, just smaller. */
/* Phone held sideways: one compact strip so the scene keeps most of the screen. */
@media (orientation: landscape) and (max-height: 500px) {
    .ff-palette[b-e9nw7ro7jz] {
        flex-direction: row;
        flex-wrap: wrap;
        padding-top: 6px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
        gap: 4px 12px;
    }
    .ff-row[b-e9nw7ro7jz] { flex: 1 1 300px; }
    /* Too short for two rows here: the dots scroll sideways inside the strip instead. */
    .ff-swatches[b-e9nw7ro7jz] { flex: 1 1 300px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
    .ff-swatch[b-e9nw7ro7jz] { width: 32px; height: 32px; }
}

/* ---- Desktop layout (the rules above are the mobile layout) ---- */

:root[data-device="desktop"] .ff-palette[b-e9nw7ro7jz] {
    padding: 14px 28px 16px;
    gap: 12px;
}

:root[data-device="desktop"] .ff-row[b-e9nw7ro7jz],
:root[data-device="desktop"] .ff-swatches[b-e9nw7ro7jz] {
    width: min(100%, 1100px);
    margin: 0 auto;
}

:root[data-device="desktop"] .ff-swatches[b-e9nw7ro7jz] {
    justify-content: center;
    overflow: visible;
    gap: 12px;
}

:root[data-device="desktop"] .ff-swatch[b-e9nw7ro7jz] {
    width: 44px;
    height: 44px;
}

:root[data-device="desktop"] .ff-name[b-e9nw7ro7jz] {
    min-width: 110px;
    font-size: 15px;
}

:root[data-device="desktop"] .ff-dot[b-e9nw7ro7jz] {
    width: 30px;
    height: 30px;
}

:root[data-device="desktop"] .ff-hud[b-e9nw7ro7jz] {
    top: 14px;
    left: 20px;
    font-size: 19px;
    gap: 6px 20px;
}

:root[data-device="desktop"] .ff-result[b-e9nw7ro7jz] {
    width: 400px;
    font-size: 21px;
}

:root[data-device="desktop"] .ff-result-title[b-e9nw7ro7jz] { font-size: 30px; }
:root[data-device="desktop"] .ff-result-total[b-e9nw7ro7jz] { font-size: 32px; }
/* /Games/FingerFlies/FingerFliesPage.razor.rz.scp.css */
/* "Chase You!" / "Catch FireFlies!" label in the top bar, next to the Green color button.
   The rules here are the mobile layout; the desktop layout is at the end. */

.ff-phase[b-otf6t0xkg7] {
    flex: none;
    padding: 6px 12px;
    border-radius: 14px;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #ffffff;
    white-space: nowrap;
    animation: ff-phase-pop-b-otf6t0xkg7 0.9s ease-in-out infinite;
}

/* Fireflies chasing you: hot red-orange. */
.ff-phase-chase[b-otf6t0xkg7] {
    background: linear-gradient(#ff6a3d, #e0002a);
    box-shadow: 0 0 14px #ff3b3b, inset 0 1px 0 #ffffffa0;
}

/* Your turn to catch: bright green. */
.ff-phase-catch[b-otf6t0xkg7] {
    background: linear-gradient(#3dff8a, #00a84a);
    box-shadow: 0 0 14px #2dff7a, inset 0 1px 0 #ffffffa0;
    color: #00290f;
}

@keyframes ff-phase-pop-b-otf6t0xkg7 {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .ff-phase[b-otf6t0xkg7] { animation: none; }
}

/* ---- Desktop layout (the rules above are the mobile layout) ---- */

:root[data-device="desktop"] .ff-phase[b-otf6t0xkg7] {
    font-size: 17px;
    padding: 7px 16px;
}
/* /Games/HandCount/HandCountGame.razor.rz.scp.css */
/* Hand Count styles. Blazor scopes this file to HandCountGame.razor, so these classes only affect this game.
   The hand drawing has its own styles in KidHand.razor.css. Shared look stays in wwwroot/css/app.css. */

.hc[b-nu7pri8pzq] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 16px;
}

/* 1 to 10 in one row. */
.hc-numbers[b-nu7pri8pzq] {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    width: min(100%, 620px);
}

.hc-num[b-nu7pri8pzq] {
    min-width: 0;
    padding: 8px 0;
    font-family: var(--font-title);
    font-size: clamp(15px, 4vw, 24px);
    font-weight: 900;
    border-radius: 10px;
    letter-spacing: 0;
}

/* Numbers already counted. */
.hc-num.hc-counted[b-nu7pri8pzq] {
    --btn-fill: color-mix(in srgb, var(--good) 20%, var(--glass-fill));
    color: var(--good);
}

/* The number being counted: solid color, lifted and glowing. */
.hc-num.hc-current[b-nu7pri8pzq],
.hc-num.hc-current:hover[b-nu7pri8pzq] {
    --btn-edge: var(--accent-border);
    --btn-fill: var(--accent);
    color: #ffffff;
    text-shadow: 0 1px 2px var(--accent-border), 0 0 6px var(--accent-border);
    border: 2px solid #ffffff;
    transform: translateY(-3px) scale(1.15);
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 4px 0 var(--accent-border),
        0 0 0 3px color-mix(in srgb, var(--accent-border) 60%, transparent),
        0 0 22px var(--accent);
    z-index: 1;
}

/* It flashes three times when its turn comes. */
.hc-num.hc-flash[b-nu7pri8pzq] {
    animation: hc-flash-b-nu7pri8pzq 0.3s ease-in-out 3;
}

@keyframes hc-flash-b-nu7pri8pzq {
    0%, 100% { filter: brightness(1); transform: translateY(-3px) scale(1.15); }
    50% { filter: brightness(1.6) saturate(1.4); transform: translateY(-5px) scale(1.35); }
}

/* The pairs of hands, stacked. For Count to 20 the new pair slides in on top and pushes the first pair down. */
.hc-pairs[b-nu7pri8pzq] {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hc-slot[b-nu7pri8pzq] {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 8px;
}

.hc-slot-enter[b-nu7pri8pzq] {
    overflow: hidden;
    animation: hc-slide-in-b-nu7pri8pzq 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hc-slide-in-b-nu7pri8pzq {
    from { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; transform: translateY(-40px) scale(0.85); }
    60% { opacity: 1; }
    to { max-height: 420px; opacity: 1; transform: none; }
}

/* The number and its word, popping in each time. */
.hc-say[b-nu7pri8pzq] {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 14px;
    min-height: 64px;
    animation: hc-pop-b-nu7pri8pzq 0.45s cubic-bezier(0.34, 1.7, 0.6, 1);
}

@keyframes hc-pop-b-nu7pri8pzq {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.hc-big[b-nu7pri8pzq] {
    font-family: var(--font-title);
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    color: var(--ink);
    text-shadow: 0 2px 0 #ffffff, 0 0 18px var(--glow);
}

.hc-word[b-nu7pri8pzq] {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 #ffffff, 0 0 12px #ffffff, 0 0 18px var(--glow);
}

.hc-done[b-nu7pri8pzq] {
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.hc-tools[b-nu7pri8pzq] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* With two pairs the number row is 1 to 20, in two rows of ten. */
.hc-twenty .hc-numbers[b-nu7pri8pzq] {
    row-gap: 8px;
}

.hc-twenty .hc-say[b-nu7pri8pzq] {
    min-height: 48px;
}

.hc-twenty .hc-big[b-nu7pri8pzq] {
    font-size: 44px;
}

.hc-twenty .hc-word[b-nu7pri8pzq] {
    font-size: 30px;
}

@media (prefers-reduced-motion: reduce) {
    .hc-num.hc-flash[b-nu7pri8pzq], .hc-say[b-nu7pri8pzq], .hc-slot-enter[b-nu7pri8pzq] { animation: none; }
}

/* ---- Desktop layout (the rules above are the mobile layout) ---- */

:root[data-device="desktop"] .hc-numbers[b-nu7pri8pzq] {
    width: min(100%, 720px);
}

/* Counting to 20: all twenty numbers in one row. */
:root[data-device="desktop"] .hc-twenty .hc-numbers[b-nu7pri8pzq] {
    grid-template-columns: repeat(20, 1fr);
    width: min(100%, 1180px);
}

:root[data-device="desktop"] .hc-big[b-nu7pri8pzq] {
    font-size: 68px;
}

:root[data-device="desktop"] .hc-word[b-nu7pri8pzq] {
    font-size: 42px;
}
/* /Games/HandCount/HandPairView.razor.rz.scp.css */
/* One pair of hands on a glass tray. Scoped to HandPairView.razor. */

/* The two hands side by side on a glass tray. */
.hc-hands[b-w7ewm38p26] {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(8px, 4vw, 36px);
    width: min(100%, 520px);
    padding: 18px 14px 10px;
    border-radius: 22px;
    background-color: color-mix(in srgb, var(--board) 45%, transparent);
    background-image: linear-gradient(160deg, #ffffff70 0%, #ffffff10 40%, #ffffff00 60%, #ffffff30 100%);
    outline: 2px solid #ffffffd0;
    backdrop-filter: blur(14px) saturate(1.6);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    box-shadow:
        0 0 0 7px color-mix(in srgb, #ffffff 35%, transparent),
        0 0 0 8px color-mix(in srgb, var(--edge) 50%, transparent),
        0 16px 34px #0003,
        0 0 36px var(--glow);
}

.hc-hand-box[b-w7ewm38p26] {
    flex: 0 1 auto;
    width: min(40vw, 210px, calc(40dvh * 0.68));
    display: flex;
    justify-content: center;
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Two pairs on the screen: smaller hands so both fit. */
.hc-twenty .hc-hand-box[b-w7ewm38p26] {
    width: min(34vw, 140px, calc(20dvh * 0.68));
}

.hc-twenty .hc-hands[b-w7ewm38p26] {
    padding: 12px 14px 8px;
}

.hc-hands[b-w7ewm38p26] {
    transition: padding 0.9s ease, width 0.9s ease;
}

/* The number between a pair's hands once they are all up: 10 on the first pair, 20 on the second. */
.hc-ten[b-w7ewm38p26] {
    align-self: center;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 50%;
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 1px 2px var(--accent-border);
    background: radial-gradient(circle at 35% 30%, #ffffffa0, transparent 55%), var(--accent);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 0 var(--accent-border), 0 0 22px var(--accent);
    animation: hc-ten-pop-b-w7ewm38p26 0.6s cubic-bezier(0.34, 1.7, 0.6, 1);
}

@keyframes hc-ten-pop-b-w7ewm38p26 {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hc-hand-box[b-w7ewm38p26], .hc-hands[b-w7ewm38p26] { transition: none; }
    .hc-ten[b-w7ewm38p26] { animation: none; }
}

/* ---- Desktop layout (the rules above are the mobile layout) ---- */

:root[data-device="desktop"] .hc-hands[b-w7ewm38p26] {
    width: min(100%, 680px);
}

:root[data-device="desktop"] .hc-hand-box[b-w7ewm38p26] {
    width: min(30vw, 260px, calc(44dvh * 0.68));
}

:root[data-device="desktop"] .hc-twenty .hc-hand-box[b-w7ewm38p26] {
    width: min(24vw, 175px, calc(25dvh * 0.68));
}

:root[data-device="desktop"] .hc-ten[b-w7ewm38p26] {
    width: 80px;
    height: 80px;
    font-size: 34px;
}
/* /Games/HandCount/KidHand.razor.rz.scp.css */
/* The hand drawing. Fingers fold down over the palm for a fist and spring up when counted. */

.hc-hand[b-213f809sjk] {
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 8px 10px #0003);
}

.hc-mirror[b-213f809sjk] {
    transform: scaleX(-1);
}

.hc-finger[b-213f809sjk], .hc-thumb[b-213f809sjk] {
    transform-box: fill-box;
    transition: transform 0.55s cubic-bezier(0.34, 1.7, 0.6, 1);
}

/* Curled: the finger flips down so its tip rests on the palm, like a fist seen from the palm side. */
.hc-finger[b-213f809sjk] {
    transform: scaleY(-0.42);
}

.hc-finger.hc-up[b-213f809sjk] {
    transform: scaleY(1);
}

/* Fist: the thumb lies across the curled fingers. Counted: it sticks out to the side. */
.hc-thumb[b-213f809sjk] {
    transform: rotate(66deg) scale(0.92);
}

.hc-thumb.hc-up[b-213f809sjk] {
    transform: rotate(-44deg);
}

@media (prefers-reduced-motion: reduce) {
    .hc-finger[b-213f809sjk], .hc-thumb[b-213f809sjk] { transition: none; }
}
/* /Games/KidPuzzel/KidPuzzelGame.razor.rz.scp.css */
/* KidPuzzel styles. Blazor scopes this file to KidPuzzelGame.razor, so these classes only affect the puzzle.
   Shared look (colors, fonts, buttons, top bar) stays in wwwroot/css/app.css. */

.kp[b-ahs9qtwzqn] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.kp-levels[b-ahs9qtwzqn], .kp-won[b-ahs9qtwzqn] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* The three level buttons always share one row, each tall with the level on top and its size below. */
.kp-levels[b-ahs9qtwzqn] {
    flex-wrap: nowrap;
    width: min(100%, 460px);
}

.kp-level[b-ahs9qtwzqn] {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 72px;
    padding: 10px 6px;
}

.kp-level-name[b-ahs9qtwzqn] {
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
}

.kp-level-size[b-ahs9qtwzqn] {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.85;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .kp-level-name[b-ahs9qtwzqn] { font-size: 14px; letter-spacing: 0.5px; }
    .kp-level-size[b-ahs9qtwzqn] { font-size: 12px; }
}

.kp-message[b-ahs9qtwzqn] {
    min-height: 1.4em;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 0 1px 0 #ffffff, 0 0 12px #ffffff, 0 0 18px var(--glow);
}

/* The clock sits in its own glass capsule with digital-style numbers. */
.kp-timer[b-ahs9qtwzqn] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 6px 18px;
    border-radius: 14px;
    background-color: var(--glass-fill);
    background-image: var(--shine);
    border: 1.5px solid #ffffffd0;
    backdrop-filter: blur(10px) saturate(1.7);
    -webkit-backdrop-filter: blur(10px) saturate(1.7);
    box-shadow: inset 0 1px 0 #fff, inset 0 -4px 10px color-mix(in srgb, var(--edge) 25%, transparent),
                0 6px 14px #0002, 0 0 16px var(--glow);
}

.kp-clock[b-ahs9qtwzqn] {
    min-width: 5.6em;
    text-align: center;
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 0 #ffffffc0, 0 0 10px var(--glow);
}

.kp-timer-done .kp-clock[b-ahs9qtwzqn] {
    color: var(--good);
    text-shadow: 0 1px 0 #ffffffc0, 0 0 14px var(--accent);
}

.kp-best[b-ahs9qtwzqn] {
    font-size: 15px;
    font-weight: 700;
    opacity: 0.85;
}

.kp-newbest[b-ahs9qtwzqn] {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 10px;
    background-color: color-mix(in srgb, var(--accent) 70%, transparent);
    background-image: var(--shine);
    border: 1.5px solid #ffffff;
    color: var(--panel-ink);
    box-shadow: 0 0 16px var(--accent);
    animation: kp-pulse-b-ahs9qtwzqn 1.2s ease-in-out infinite;
}

@keyframes kp-pulse-b-ahs9qtwzqn {
    0%, 100% { box-shadow: 0 0 10px var(--accent); }
    50% { box-shadow: 0 0 24px var(--accent); }
}

/* The board is a plexiglass tray: tinted acrylic, a white rim, a glow, and a sheen over the pieces. */
.kp-board[b-ahs9qtwzqn] {
    --kp-aspect: 0.75;
    position: relative;
    width: min(92vw, calc(64dvh * var(--kp-aspect)), 420px);
    aspect-ratio: var(--kp-aspect);
    border-radius: 18px;
    background-color: color-mix(in srgb, var(--board) 50%, transparent);
    background-image: linear-gradient(160deg, #ffffff70 0%, #ffffff10 40%, #ffffff00 60%, #ffffff30 100%);
    outline: 2px solid #ffffffd0;
    outline-offset: 0;
    backdrop-filter: blur(14px) saturate(1.6);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    box-shadow:
        0 0 0 7px color-mix(in srgb, #ffffff 35%, transparent),
        0 0 0 8px color-mix(in srgb, var(--edge) 50%, transparent),
        0 16px 34px #0003,
        0 0 36px var(--glow);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.kp-board[b-ahs9qtwzqn]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    border-radius: inherit;
    background: linear-gradient(135deg, #ffffff45 0%, #ffffff10 30%, #ffffff00 45%),
                linear-gradient(315deg, #ffffff25 0%, #ffffff00 20%);
    box-shadow: inset 0 1px 0 #ffffff, inset 0 0 0 1px #ffffff60;
    pointer-events: none;
}

/* The animal's video replaces the finished picture, under the board's glass sheen. */
.kp-video[b-ahs9qtwzqn] {
    position: absolute;
    inset: 0;
    z-index: 15;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    background: #000;
    cursor: pointer;
    /* Hidden (but loading) while the puzzle is played. */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.kp-video.kp-video-show[b-ahs9qtwzqn] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.4s ease;
}

/* Shown over the win video only when the browser started it without sound. */
.kp-sound-btn[b-ahs9qtwzqn] {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 16;
    margin: 0;
    font-size: 22px;
    padding: 14px 24px;
    white-space: nowrap;
    animation: kp-sound-pulse-b-ahs9qtwzqn 1.2s ease-in-out infinite;
}

@keyframes kp-sound-pulse-b-ahs9qtwzqn {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .kp-sound-btn[b-ahs9qtwzqn] { animation: none; }
}

.kp-empty[b-ahs9qtwzqn] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    color: var(--ink);
    opacity: 0.6;
}

.kp-piece[b-ahs9qtwzqn] {
    position: absolute;
    transition: left 0.6s ease, top 0.6s ease;
}

.kp-piece.kp-dragging[b-ahs9qtwzqn] {
    transition: none;
    z-index: 10;
    cursor: grabbing;
    filter: drop-shadow(0 10px 14px #0006) drop-shadow(0 0 12px var(--accent));
}

.kp-piece.kp-grab[b-ahs9qtwzqn] {
    cursor: grab;
}

.kp-inner[b-ahs9qtwzqn] {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-repeat: no-repeat;
    transition: inset 0.5s ease, border-radius 0.5s ease, box-shadow 0.5s ease;
}

/* Each loose piece is its own little acrylic tile with a reflection across the top. */
.kp-split .kp-inner[b-ahs9qtwzqn] {
    inset: 4px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1.5px #ffffffc0, 0 3px 8px #0004, 0 0 8px var(--glow);
}

.kp-split .kp-inner[b-ahs9qtwzqn]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #ffffff60 0%, #ffffff15 40%, #ffffff00 50%);
    pointer-events: none;
}

.kp-locked .kp-inner[b-ahs9qtwzqn] {
    inset: 0;
    border-radius: 0;
    box-shadow: none;
}

.kp-locked .kp-inner[b-ahs9qtwzqn]::before {
    content: none;
}

.kp-locked .kp-inner[b-ahs9qtwzqn]::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 3px var(--good), inset 0 0 14px var(--accent);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .kp-newbest[b-ahs9qtwzqn] { animation: none; }
}

/* ---- Desktop layout (the rules above are the mobile layout) ---- */

:root[data-device="desktop"] .kp[b-ahs9qtwzqn] {
    gap: 16px;
    padding: 18px 24px;
}

:root[data-device="desktop"] .kp-levels[b-ahs9qtwzqn] {
    width: min(100%, 620px);
}

:root[data-device="desktop"] .kp-message[b-ahs9qtwzqn] {
    font-size: 24px;
}

/* A bigger board that still fits the window height. */
:root[data-device="desktop"] .kp-board[b-ahs9qtwzqn] {
    width: min(92vw, calc(70dvh * var(--kp-aspect)), 600px);
}

:root[data-device="desktop"] .kp-sound-btn[b-ahs9qtwzqn] {
    font-size: 26px;
    bottom: 24px;
}
