/* ══════════════════════════════════════════
   Cuvantul — Objet Editorial / Papier Premium
   Direction artistique : journal d'art, livre
   ══════════════════════════════════════════ */

:root {
    /* Papier de creation */
    --bg: #F9F7F2;
    --bg-secondary: #F4F1EA;
    --text: #1A1A1A;
    --text-secondary: #5A5750;
    --text-muted: #9E9A90;
    --surface: #FDFCF9;
    --surface-warm: #F4F1EA;
    --border: #B8B3A6;

    /* Accent / Gold — alignes Footix */
    --accent: #4A6741;
    --accent-dim: rgba(74, 103, 65, 0.12);
    --gold: #C2A371;

    /* Couleurs de statut — sobres, mats */
    --corect: #4A6741;
    --prezent: #C2A371;
    --absent-bg: #B8B3A8;
    --absent-text: #F9F7F2;
    --cream: #F9F7F2;

    /* Layout */
    --tile-size: 54px;
    --tile-gap: 5px;
    --key-height: 52px;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 48px;
    --space-xxl: 72px;

    /* Rayon : 2px pour les cases de jeu, 8px pour les surfaces UI */
    --radius: 2px;
    --radius-sm: 2px;
    --radius-ui: 8px;
    --radius-lg: 12px;

    /* Ombres et transitions — alignes Footix */
    --shadow:    0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
    --transition: 0.25s ease;

    /* Typo */
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Russo One', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

[data-theme="dark"] {
    /* Palette La Ludora — alignée Footix */
    --bg: #0d1117;
    --bg-secondary: #161b22;
    --text: #e6edf3;
    --text-secondary: #8d96a0;
    --text-muted: #7d8590;
    --surface: #161b22;
    --surface-warm: #21262d;
    --border: #30363d;
    /* Couleurs de statut jeu — identité Cuvântul préservée */
    --corect: #5A7A50;
    --prezent: #D4B580;
    --absent-bg: #30363d;
    --absent-text: #7d8590;
    --cream: #161b22;
    /* Accent UI — aligné Footix vert */
    --accent: #4ade80;
    --accent-dim: rgba(74, 222, 128, 0.15);
    --gold: #D4B580;
    --shadow:    0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Texture papier ── */
body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    /* Grain de papier : micro-lignes diagonales a 2% d'opacite */
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.012) 2px,
            rgba(0, 0, 0, 0.012) 3px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.008) 3px,
            rgba(0, 0, 0, 0.008) 4px
        );
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    transition: background-color 0.5s ease, color 0.5s ease;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] body {
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.008) 2px,
            rgba(255, 255, 255, 0.008) 3px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.005) 3px,
            rgba(255, 255, 255, 0.005) 4px
        );
}

#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

/* ══════════════════════════════════════════
   HEADER — comme un en-tete de magazine
   ══════════════════════════════════════════ */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    padding: var(--space-lg) var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--border);
}

/* Bouton retour portail */
.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition);
    flex-shrink: 0;
}
.btn-back:hover { border-color: var(--corect); color: var(--corect); background: var(--accent-dim); }

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--text);
    color: var(--bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 800;
    font-optical-sizing: auto;
    animation: ink-absorb 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ink-absorb {
    0%   { opacity: 0; filter: blur(3px); transform: scale(0.96); }
    50%  { opacity: 0.7; filter: blur(1px); }
    100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

.logo {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 900;
    font-optical-sizing: auto;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1;
    animation: ink-absorb 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logo-tagline {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 4px;
}

.header-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Boutons icone — alignes Footix */
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-ui);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 400;
    font-family: var(--font-sans);
    transition: all var(--transition);
}

.icon-btn:hover {
    color: var(--text);
    border-color: var(--text-muted);
    background: var(--surface-warm);
}

.icon-btn.active {
    border-color: var(--corect);
    background: var(--accent-dim);
    color: var(--corect);
}

/* ══════════════════════════════════════════
   GAME INFO — ligne editoriale "Ziua #01"
   ══════════════════════════════════════════ */
.game-info {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 14px var(--space-lg);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.game-info strong {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-sep {
    margin: 0 10px;
    opacity: 0.3;
}

.prima-litera {
    color: var(--text);
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

/* ══════════════════════════════════════════
   GRID — cases fines sur papier
   ══════════════════════════════════════════ */
.grid-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-lg) var(--space-md) var(--space-md);
}

.grid {
    display: grid;
    grid-template-rows: repeat(6, var(--tile-size));
    gap: var(--tile-gap);
}

.row {
    display: grid;
    grid-template-columns: repeat(6, var(--tile-size));
    gap: var(--tile-gap);
}

/* Case : pas de fond, juste un trait fin */
.tile {
    width: var(--tile-size);
    height: var(--tile-size);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 600;
    font-optical-sizing: auto;
    text-transform: uppercase;
    color: var(--text);
    background: transparent;
    user-select: none;
    transition: color 0.3s ease;
}

/* Frappe de lettre — micro impulsion */
.tile.filled {
    animation: type-press 0.1s ease-out;
}

/* Statuts — couleurs mates, texte creme */
.tile.corect {
    background: var(--corect);
    border-color: var(--corect);
    color: var(--cream);
}

.tile.prezent {
    background: var(--prezent);
    border-color: var(--prezent);
    color: var(--cream);
}

.tile.absent {
    background: var(--absent-bg);
    border-color: var(--absent-bg);
    color: var(--absent-text);
}

/* Premiere lettre donnee */
.tile.first-letter {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

/* Reveal : fondu + glissement doux */
.tile.reveal {
    animation: fade-slide 0.5s ease forwards;
}

/* ── Animations papier ── */
@keyframes type-press {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fade-slide {
    0%   { opacity: 1; transform: translateY(0); }
    35%  { opacity: 0.15; transform: translateY(-2px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%  { transform: translateX(-3px); }
    40%  { transform: translateX(3px); }
    60%  { transform: translateX(-2px); }
    80%  { transform: translateX(2px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    30%  { transform: translateY(-12px); }
    50%  { transform: translateY(-6px); }
    70%  { transform: translateY(-3px); }
}

.row.shake {
    animation: shake 0.35s ease;
}

.tile.bounce {
    animation: bounce 0.6s ease;
}

/* ══════════════════════════════════════════
   MESSAGE
   ══════════════════════════════════════════ */
.message {
    text-align: center;
    padding: 8px var(--space-md);
    margin: 0 auto;
    max-width: 400px;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius);
    transition: opacity 0.4s ease;
}

.message.hidden { display: none; }

.message.error {
    background: rgba(180, 60, 50, 0.06);
    color: #8B3A30;
}

.message.success {
    background: rgba(74, 103, 65, 0.06);
    color: var(--corect);
}

.message.info {
    background: transparent;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════
   KEYBOARD — lettres posees sur le papier
   Pas de boites, pas de contours
   ══════════════════════════════════════════ */
.keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-md) var(--space-sm);
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    width: 100%;
    max-width: 540px;
    margin-top: auto;
}

.keyboard-row {
    display: flex;
    gap: 3px;
    justify-content: center;
}

/* Touches : fond subtil pour meilleure lisibilite */
.key {
    height: var(--key-height);
    min-width: 36px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

/* Hover : fondu quasi invisible */
.key:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .key:hover {
    background: rgba(255, 255, 255, 0.03);
}

.key:active {
    opacity: 0.6;
}

.key.wide {
    min-width: 56px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.key.wide.enter-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Touches colorees apres revelation */
.key.corect {
    background: var(--corect);
    color: var(--cream);
    border-radius: var(--radius);
}

.key.prezent {
    background: var(--prezent);
    color: var(--cream);
    border-radius: var(--radius);
}

.key.absent {
    background: var(--absent-bg);
    color: var(--absent-text);
    border-radius: var(--radius);
}

/* ══════════════════════════════════════════
   OVERLAY — encart de magazine
   Beaucoup de blanc, bordure fine, serif
   ══════════════════════════════════════════ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(249, 247, 242, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: var(--space-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-theme="dark"] .overlay {
    background: rgba(13, 17, 23, 0.85);
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xxl) var(--space-xl);
    max-width: 400px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.overlay-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 300;
    transition: color 0.2s;
}

.overlay-close:hover {
    color: var(--text);
}

.overlay-content h2 {
    font-family: var(--font-serif);
    margin-bottom: var(--space-lg);
    color: var(--text);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.overlay-content p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    text-align: left;
    font-size: 13px;
    line-height: 1.8;
    font-weight: 300;
}

/* Help : exemples de cases */
.help-examples {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-secondary);
}

.help-tile {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    flex-shrink: 0;
}

.help-tile.corect {
    background: var(--corect);
    color: var(--cream);
}

.help-tile.prezent {
    background: var(--prezent);
    color: var(--cream);
}

.help-tile.absent {
    background: var(--absent-bg);
    color: var(--absent-text);
}

/* ══════════════════════════════════════════
   RESULT — page de magazine
   ══════════════════════════════════════════ */
.result-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.result-content p {
    text-align: center;
    font-size: 13px;
    font-weight: 300;
}

.result-grid {
    font-family: monospace;
    font-size: 1.15rem;
    line-height: 1.9;
    margin: var(--space-lg) 0;
    letter-spacing: 3px;
    white-space: pre;
}

.result-actions {
    margin: var(--space-lg) 0 var(--space-sm);
}

.countdown {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.countdown-label {
    margin-top: var(--space-lg);
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ══════════════════════════════════════════
   COMBO BADGE — discret, pas criard
   ══════════════════════════════════════════ */
.combo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--prezent);
    border-radius: 999px;
    padding: 5px 18px;
    font-weight: 400;
    font-size: 12px;
    color: var(--prezent);
    margin: var(--space-md) auto;
    width: fit-content;
    font-family: var(--font-sans);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════
   DISTRIBUTION BARS
   ══════════════════════════════════════════ */
.distribution {
    margin: var(--space-lg) 0;
    text-align: left;
}

.distribution h3 {
    font-family: var(--font-sans);
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
}

.distrib-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 3px;
    font-size: 11px;
}

.distrib-label {
    width: 12px;
    text-align: right;
    font-weight: 400;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 11px;
}

.distrib-bar {
    height: 16px;
    min-width: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 500;
    color: var(--cream);
    background: var(--absent-bg);
    transition: width 0.6s ease;
    font-family: var(--font-sans);
}

.distrib-bar.current {
    background: var(--corect);
}

/* ══════════════════════════════════════════
   BUTTONS — texte souligne ou bordure fine
   ══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 8px var(--space-lg);
    border-radius: var(--radius-ui);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.btn-primary:hover {
    opacity: 0.8;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

/* Share buttons — discrets, monochromes */
.share-group {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.share-btn {
    padding: 5px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 400;
    cursor: pointer;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    background: transparent;
}

.share-btn:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

/* Coleurs subtiles au survol */
.share-wa:hover { border-color: var(--corect); color: var(--corect); }
.share-tg:hover { border-color: #5A7A8A; color: #5A7A8A; }
.share-fb:hover { border-color: #4A5568; color: #4A5568; }
.copy-btn:hover { border-color: var(--text); }

/* ══════════════════════════════════════════
   FOOTER — colophon
   ══════════════════════════════════════════ */
.site-footer {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: var(--space-xxl) var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-share {
    margin-bottom: var(--space-lg);
}

.footer-share:empty {
    display: none;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-family: var(--font-sans);
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--text);
    border-bottom-color: var(--text-muted);
}

.footer-inspiration {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 300;
}

.footer-inspiration a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    transition: color 0.2s;
}

.footer-inspiration a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-copy a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-copy a:hover {
    color: var(--text);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-height: 750px) {
    :root {
        --tile-size: 46px;
        --tile-gap: 4px;
        --key-height: 44px;
    }
    .tile { font-size: 1.25rem; }
    .grid-container { padding: var(--space-sm) var(--space-sm); }
    .game-info { padding: 8px var(--space-md); }
    .header { padding: var(--space-md) var(--space-md); }
}

@media (max-width: 420px) {
    :root {
        --tile-size: 46px;
        --tile-gap: 4px;
        --key-height: 46px;
    }

    .tile { font-size: 1.3rem; }

    .key {
        min-width: 28px;
        font-size: 14px;
        padding: 0 5px;
    }

    .key.wide {
        min-width: 48px;
        font-size: 10px;
    }

    .header {
        padding: var(--space-md) var(--space-md);
    }

    .logo { font-size: 1.6rem; }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }

    .overlay-content {
        padding: var(--space-xl) var(--space-lg);
    }
}

@media (max-width: 350px) {
    :root {
        --tile-size: 42px;
        --tile-gap: 3px;
    }

    .tile { font-size: 1.15rem; }
}

@media (min-width: 600px) {
    :root {
        --tile-size: 62px;
        --tile-gap: 6px;
        --key-height: 52px;
    }

    .tile { font-size: 1.75rem; }
}

/* ══════════════════════════════════════════
   ANIMATIONS additionnelles — alignees Footix
   ══════════════════════════════════════════ */
@keyframes slideUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn     { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin      { to { transform: rotate(360deg); } }

.overlay-content { animation: slideUp 0.4s ease; }

/* ══════════════════════════════════════════
   SCROLLBAR discrete
   ══════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

/* ══════════════════════════════════════════
   SELECTION
   ══════════════════════════════════════════ */
::selection {
    background: rgba(74, 103, 65, 0.15);
    color: var(--text);
}
