/* ---------------------------------------------------------------------
   Theme tokens
--------------------------------------------------------------------- */
:root {
    --bg: #f3ecd8;
    --bg-vignette: radial-gradient(ellipse at top, #fbf6e8 0%, #f3ecd8 55%, #ece2c5 100%);
    --surface: #fffcf3;
    --surface-2: #f1e8cd;
    --border: #ddccA0;
    --border-soft: #e6d9b3;
    --text: #2b2a20;
    --text-muted: #77705d;
    --accent-navy: #263654;
    --accent-navy-text: #ffffff;
    --accent-gold: #a97a1e;
    --accent-gold-soft: #f1dfa9;
    --correct-bg: #3f7a56;
    --correct-text: #ffffff;
    --incorrect-bg: #ded2ac;
    --incorrect-text: #504a37;
    --hint-bg: #c9862c;
    --hint-text: #fffaf0;
    --shadow: rgba(64, 47, 9, 0.16);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #141922;
    --bg-vignette: radial-gradient(ellipse at top, #1c2331 0%, #141922 55%, #10141c 100%);
    --surface: #1c2331;
    --surface-2: #242c3c;
    --border: #384258;
    --border-soft: #2c3444;
    --text: #ede6d3;
    --text-muted: #99a1b3;
    --accent-navy: #a9c0ec;
    --accent-navy-text: #182238;
    --accent-gold: #e2b955;
    --accent-gold-soft: #3a3320;
    --correct-bg: #3e9464;
    --correct-text: #08130d;
    --incorrect-bg: #2c3242;
    --incorrect-text: #b7bdcb;
    --hint-bg: #d59a3d;
    --hint-text: #1d1300;
    --shadow: rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #141922;
        --bg-vignette: radial-gradient(ellipse at top, #1c2331 0%, #141922 55%, #10141c 100%);
        --surface: #1c2331;
        --surface-2: #242c3c;
        --border: #384258;
        --border-soft: #2c3444;
        --text: #ede6d3;
        --text-muted: #99a1b3;
        --accent-navy: #a9c0ec;
        --accent-navy-text: #182238;
        --accent-gold: #e2b955;
        --accent-gold-soft: #3a3320;
        --correct-bg: #3e9464;
        --correct-text: #08130d;
        --incorrect-bg: #2c3242;
        --incorrect-text: #b7bdcb;
        --hint-bg: #d59a3d;
        --hint-text: #1d1300;
        --shadow: rgba(0, 0, 0, 0.45);
        color-scheme: dark;
    }
}

/* ---------------------------------------------------------------------
   Base
--------------------------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-vignette);
    color: var(--text);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.app {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 18px 48px;
}

/* ---------------------------------------------------------------------
   Header
--------------------------------------------------------------------- */
.app-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 20px;
}

.title-block {
    flex: 1;
    text-align: center;
}

.title-block h1 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.5rem, 5vw, 2.1rem);
    color: var(--accent-navy);
    margin: 2px 0 4px;
    letter-spacing: 0.2px;
}

.title-icon { display: inline-block; transform: translateY(2px); }

.subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.puzzle-number {
    font-weight: 600;
    color: var(--accent-gold);
}

.header-actions {
    display: flex;
    gap: 6px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent-navy);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

.icon-btn svg { width: 19px; height: 19px; }

.icon-btn:hover { transform: translateY(-1px); background: var(--surface-2); }
.icon-btn:active { transform: translateY(0); }

.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: block; }
    :root:not([data-theme="light"]) .icon-moon { display: none; }
}

/* ---------------------------------------------------------------------
   Mystery key-phrase card
--------------------------------------------------------------------- */
.mystery-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px var(--shadow);
}

.mystery-label {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.mystery-text {
    margin: 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.05rem, 3.4vw, 1.35rem);
    line-height: 1.5;
    color: var(--text);
    user-select: none;
}

.mystery-word {
    display: inline-block;
    filter: blur(8px);
    transition: filter 0.5s ease;
}

.mystery-word.revealed {
    filter: blur(0);
}

/* ---------------------------------------------------------------------
   Difficulty toggle
--------------------------------------------------------------------- */
.difficulty-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.difficulty-btn {
    flex: 0 1 110px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.difficulty-btn:hover { transform: translateY(-1px); }

.difficulty-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.difficulty-btn:disabled:hover { transform: none; }

.difficulty-btn.active {
    background: var(--accent-navy);
    border-color: var(--accent-navy);
    color: var(--accent-navy-text);
}

.difficulty-caption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.76rem;
    margin: 0 0 18px;
    min-height: 1em;
}

/* ---------------------------------------------------------------------
   Grid
--------------------------------------------------------------------- */
.grid-labels {
    display: grid;
    grid-template-columns: 0.75fr 1fr 1.05fr 0.55fr 1.35fr;
    gap: 6px;
    padding: 0 2px;
    margin-bottom: 6px;
}

.label {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.game-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 22px;
}

.grid-row {
    display: grid;
    grid-template-columns: 0.75fr 1fr 1.05fr 0.55fr 1.35fr;
    gap: 6px;
}

.grid-row.active .grid-cell {
    border-color: var(--accent-gold);
}

.grid-cell {
    position: relative;
    min-height: 52px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 4px;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.15;
    word-break: break-word;
    color: var(--text);
    gap: 4px;
}

.cell-clear-btn {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    background: var(--accent-navy);
    color: var(--accent-navy-text);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell-clear-btn:hover { transform: scale(1.1); }

/* Active-row cells still waiting for a pick */
.grid-cell.pickable {
    cursor: pointer;
    border-style: dashed;
    background: var(--surface-2);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.grid-cell.pickable:hover,
.grid-cell.pickable:focus-visible {
    border-color: var(--accent-gold);
    background: var(--accent-gold-soft);
    transform: translateY(-1px);
    outline: none;
}

.cell-placeholder {
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--accent-gold);
    opacity: 0.7;
}

/* Freshly picked this row, not yet submitted */
.grid-cell.filled {
    border-color: var(--accent-gold);
    background: var(--accent-gold-soft);
    border-style: solid;
}

/* Locked in from an earlier correct guess -- auto-filled, no longer clickable */
.grid-cell.locked {
    cursor: default;
}

/* Positioned out of the text's flow entirely (rather than sitting inline next
   to it) so a long word like "Commandments" gets the cell's full width to
   size against, instead of competing with the icon for horizontal space. */
.lock-icon {
    position: absolute;
    top: 3px;
    left: 5px;
    font-size: 0.65em;
    opacity: 0.85;
    line-height: 1;
}

.grid-cell.long-text { font-size: 0.68rem; }
.grid-cell.tiny-text { font-size: 0.58rem; }

.grid-cell.correct {
    background: var(--correct-bg);
    color: var(--correct-text);
    border-color: var(--correct-bg);
}

.grid-cell.incorrect {
    background: var(--incorrect-bg);
    color: var(--incorrect-text);
    border-color: var(--incorrect-bg);
}

.grid-cell.hint {
    background: var(--hint-bg);
    color: var(--hint-text);
    border-color: var(--hint-bg);
    font-weight: 700;
}

.grid-cell.flip-in {
    animation: flip-in 0.45s ease both;
}

@keyframes flip-in {
    0% { transform: scaleY(1); }
    45% { transform: scaleY(0.15); }
    100% { transform: scaleY(1); }
}

/* ---------------------------------------------------------------------
   Guess panel (submit button only now -- picking happens in the grid)
--------------------------------------------------------------------- */
.guess-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* ---------------------------------------------------------------------
   Attribute picker modal + shared option-list styling
--------------------------------------------------------------------- */
.picker-search {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    margin: 2px 0 12px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.picker-search:focus { border-color: var(--accent-gold); }

.picker-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 48vh;
    overflow-y: auto;
}

.autocomplete-option {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.autocomplete-option:hover,
.autocomplete-option.active {
    background: var(--accent-gold-soft);
}

.opt-ref { font-weight: 600; font-size: 0.9rem; }
.opt-meta { font-size: 0.76rem; color: var(--text-muted); white-space: nowrap; }

.autocomplete-empty {
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.submit-btn {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 48px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent-navy);
    color: var(--accent-navy-text);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.submit-btn:hover:not(:disabled) { transform: translateY(-1px); }

.submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.guesses-remaining {
    width: 100%;
    text-align: center;
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------
   Game over
--------------------------------------------------------------------- */
.game-over {
    text-align: center;
    padding: 26px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    background: var(--surface);
    box-shadow: 0 4px 16px var(--shadow);
}

.game-over h2 {
    font-family: var(--font-serif);
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.game-over.won h2 { color: var(--correct-bg); }
.game-over.lost h2 { color: var(--accent-gold); }

.answer-reference {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 6px 0;
    color: var(--accent-navy);
}

.answer-phrase {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text);
    margin: 10px auto;
    max-width: 46ch;
    line-height: 1.5;
}

.answer-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 6px;
}

.tag {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.76rem;
    font-weight: 600;
}

.game-over-actions {
    margin: 18px 0 4px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.share-btn,
.new-round-btn {
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 26px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.share-btn {
    background: var(--correct-bg);
    color: var(--correct-text);
}

.new-round-btn {
    background: var(--accent-navy);
    color: var(--accent-navy-text);
}

.share-btn:hover,
.new-round-btn:hover { transform: translateY(-1px); }

.countdown {
    margin: 14px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

#countdown-timer {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--accent-navy);
}

/* ---------------------------------------------------------------------
   Mode banner (Practice / Archive context line under the header)
--------------------------------------------------------------------- */
.mode-banner {
    text-align: center;
    background: var(--accent-gold-soft);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    margin: -6px 0 20px;
    font-size: 0.8rem;
}

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.app-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.mode-nav {
    margin-top: 10px;
    font-size: 0.85rem;
}

.mode-nav a {
    color: var(--accent-navy);
    font-weight: 600;
    text-decoration: none;
}

.mode-nav a:hover { text-decoration: underline; }

.footer-about {
    max-width: 46ch;
    margin: 0 auto 10px;
    line-height: 1.5;
}

.footer-legal {
    margin-top: 10px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: underline;
}

.footer-legal a:hover { color: var(--accent-navy); }

.kofi-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* ---------------------------------------------------------------------
   Error pages (404 / 500)
--------------------------------------------------------------------- */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-code {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--accent-navy);
    margin: 4px 0 10px;
}

.error-message {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.error-home-link {
    display: inline-block;
    text-decoration: none;
    width: auto;
}

/* ---------------------------------------------------------------------
   Terms & Privacy page
--------------------------------------------------------------------- */
.legal-page {
    padding: 10px 4px 40px;
    line-height: 1.6;
}

.legal-page h2 {
    font-family: var(--font-serif);
    color: var(--accent-navy);
    margin: 28px 0 8px;
}

.legal-page h2:first-of-type { margin-top: 18px; }

.legal-page ul {
    margin: 0 0 14px;
    padding-left: 22px;
}

.legal-page li { margin-bottom: 8px; }

.legal-page a {
    color: var(--accent-navy);
}

.legal-page .error-home-link {
    display: inline-block;
    margin-top: 20px;
}

/* ---------------------------------------------------------------------
   Archive list (inside the archive modal)
--------------------------------------------------------------------- */
.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 50vh;
    overflow-y: auto;
}

.archive-list li + li { margin-top: 6px; }

.archive-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    background: var(--surface-2);
    transition: background 0.15s ease;
}

.archive-list a:hover { background: var(--accent-gold-soft); }

.archive-num {
    font-weight: 700;
    color: var(--accent-navy);
    flex: 0 0 auto;
}

.archive-date {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.archive-check {
    flex: 0 0 auto;
    color: var(--correct-bg);
    font-weight: 700;
}

.archive-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 16px 0;
    list-style: none;
}

/* ---------------------------------------------------------------------
   Modals
--------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 6, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.modal-overlay[hidden] { display: none; }
.modal-overlay.show { opacity: 1; }

.modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.15s ease;
}

.modal-overlay.show .modal { transform: translateY(0) scale(1); }

.modal h2 {
    font-family: var(--font-serif);
    margin: 0 0 14px;
    color: var(--accent-navy);
}

.modal p { line-height: 1.55; }

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    background: var(--surface-2);
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}

.help-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    font-size: 0.92rem;
}

.swatch {
    flex: 0 0 auto;
    width: 30px;
    height: 26px;
    border-radius: 6px;
    background: var(--correct-bg);
    color: var(--correct-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 2px;
}

.swatch.hint {
    background: var(--hint-bg);
    color: var(--hint-text);
    font-size: 0.62rem;
}

.swatch.lock {
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 0.85rem;
}

.example-row {
    display: grid;
    grid-template-columns: 0.75fr 1fr 1.05fr 0.55fr 1.35fr;
    gap: 5px;
    margin-top: 10px;
}

.example-row .grid-cell { min-height: 40px; font-size: 0.68rem; }

.example-caption {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Stats modal */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.stat { text-align: center; }

.stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-navy);
}

.stat-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.dist-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.stats-copy-btn {
    display: block;
    margin: 20px auto 0;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.dist-index {
    width: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dist-bar-track {
    flex: 1;
    background: var(--surface-2);
    border-radius: 5px;
    overflow: hidden;
}

.dist-bar {
    background: var(--incorrect-bg);
    color: var(--incorrect-text);
    min-width: 26px;
    text-align: right;
    padding: 3px 8px;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 5px;
    transition: width 0.4s ease;
}

.dist-bar.current {
    background: var(--correct-bg);
    color: var(--correct-text);
}

/* ---------------------------------------------------------------------
   Toast
--------------------------------------------------------------------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 12px);
    background: var(--accent-navy);
    color: var(--accent-navy-text);
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 200;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------- */
@media (max-width: 560px) {
    .app { padding: 14px 10px 36px; }
    .icon-btn { width: 34px; height: 34px; }
    .icon-btn svg { width: 17px; height: 17px; }
    .mystery-card { padding: 18px 16px; }
    .difficulty-btn { flex-basis: 90px; padding: 7px 8px; font-size: 0.74rem; }
    .difficulty-caption { font-size: 0.7rem; }
    .grid-cell { min-height: 46px; font-size: 0.7rem; padding: 4px 3px; }
    .grid-cell.long-text { font-size: 0.6rem; }
    .grid-cell.tiny-text { font-size: 0.52rem; }
    .label { font-size: 0.58rem; }
    .submit-btn { width: 100%; padding: 0; }
    .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
}

@media (max-width: 380px) {
    .grid-labels, .grid-row, .example-row {
        grid-template-columns: 0.7fr 0.95fr 1fr 0.5fr 1.2fr;
    }
}
