/* =========================================================
   judge.quest — Y2K-Futurism Tribunal Aquarium
   Palette (named roles):
     #0e2933 deep tide      #2a4f5e slate marble
     #5b8a9a aqua mid       #aac9d1 coastal mist
     #e8e1d2 warm marble    #d8c4a3 sun-bleached sand
     #c44a3c verdict crimson (used exactly 3 times)
     #f7f3ea vellum (page background)
     #d8e7e3 aqua light highlight
   Fonts: Cormorant Garamond, Inter, Space Mono, VT323, Cinzel
   ========================================================= */

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

html { scroll-behavior: smooth; scroll-snap-type: y proximity; }

body {
    background: #f7f3ea;
    color: #0e2933;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    overflow-x: hidden;
    /* faint vellum texture as gradient */
    background-image:
      radial-gradient(circle at 20% 12%, rgba(216,196,163,0.12) 0%, transparent 50%),
      radial-gradient(circle at 85% 80%, rgba(170,201,209,0.10) 0%, transparent 55%);
}

/* =========================================================
   Typography role-as-voice
   ========================================================= */
.wordmark {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(2.6rem, 5.6vw, 4.4rem);
    letter-spacing: -0.012em;
    color: #0e2933;
    text-shadow: 1px 1px 0 #d8e7e3;
    line-height: 1;
}
.wordmark em { font-style: italic; font-weight: 500; color: #2a4f5e; }
.wordmark span { font-style: normal; }
.wordmark-sub {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #2a4f5e;
    margin-top: 12px;
}

.boot-banner {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #2a4f5e;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.plinth-label,
.toc-eyebrow,
.eyebrow-pill,
.comp-mode {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: #2a4f5e;
}

/* =========================================================
   Page layout: three boards
   ========================================================= */
.board {
    width: 100%;
    min-height: 100vh;
    padding: 48px;
    scroll-snap-align: start;
    position: relative;
}
.board-i  { background: linear-gradient(180deg, #f7f3ea 0%, #efe8d8 100%); }
.board-ii { background: linear-gradient(180deg, #efe8d8 0%, #d8e7e3 50%, #aac9d1 100%); }
.board-iii { background: linear-gradient(180deg, #2a4f5e 0%, #0e2933 100%); color: #d8e7e3; }

.board-divider {
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 24px;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}
.board-divider svg { width: 100%; height: 100%; animation: ripple 6s ease-in-out infinite; }
@keyframes ripple {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-12px); }
}

.board-eyebrow {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 22px;
}
.eyebrow-pill {
    background: #e8e1d2;
    color: #2a4f5e;
    padding: 6px 12px;
    border: 1px solid #2a4f5e;
    border-radius: 20px;
    font-size: 10px;
}
.eyebrow-pill.dark {
    background: transparent;
    color: #d8e7e3;
    border-color: #5b8a9a;
}
.eyebrow-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 22px;
    color: #2a4f5e;
}
.vault-eyebrow .eyebrow-title { color: #d8e7e3; }

/* =========================================================
   Bento grids
   ========================================================= */
.bento {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

/* BOARD I: 4 columns, 4 rows. Areas:
   hero hero word    word
   hero hero begin   counter
   hero hero begin   counter
   toc  toc  toc     toc
   status status status status
*/
.bento-i {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 200px 100px 80px 1fr 56px;
    grid-template-areas:
        "hero hero word     word"
        "hero hero begin    counter"
        "hero hero begin    counter"
        "toc  toc  toc      toc"
        "status status status status";
    min-height: calc(100vh - 96px);
}

.cell-hero      { grid-area: hero; }
.cell-wordmark  { grid-area: word; }
.cell-begin     { grid-area: begin; }
.cell-counter   { grid-area: counter; }
.cell-toc       { grid-area: toc; }
.cell-status    { grid-area: status; }

/* BOARD II: 5 cols, 4 rows */
.bento-ii {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, minmax(170px, 1fr));
    grid-template-areas:
        "spec1 ws1   ws2    spec2  ws3"
        "ws4   comp  comp   spec3  mentor"
        "spec3-x comp comp ws5    ws6"
        "ws7   ws7   spec4  spec4  mentor2";
    /* fallback: if some cells absent, grid auto-places */
}
/* We have 12 cells: spec1 ws1 ws2 spec2 ws3 ws4 comp spec3 mentor ws5 ws6 ws7 = 12; layout simpler: */
.bento-ii {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 180px 200px 180px 180px;
    grid-template-areas:
        "spec1 ws1   ws2    spec2  ws3"
        "ws4   comp  comp   comp   mentor"
        "spec3 comp  comp   comp   ws5"
        "ws6   ws6   ws7    ws7    mentor";
}

[data-cell="spec1"]      { grid-area: spec1; }
[data-cell="ws1"]        { grid-area: ws1; }
[data-cell="ws2"]        { grid-area: ws2; }
[data-cell="spec2"]      { grid-area: spec2; }
[data-cell="ws3"]        { grid-area: ws3; }
[data-cell="ws4"]        { grid-area: ws4; }
[data-cell="compositor"] { grid-area: comp; }
[data-cell="mentor"]     { grid-area: mentor; }
[data-cell="spec3"]      { grid-area: spec3; }
[data-cell="ws5"]        { grid-area: ws5; }
[data-cell="ws6"]        { grid-area: ws6; }
[data-cell="ws7"]        { grid-area: ws7; }

/* BOARD III: 3x3 plinths + footer */
.bento-iii {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 200px);
}

/* =========================================================
   Cells & PMMA bezel
   ========================================================= */
.cell {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #e8e1d2;
}
.cell-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}
.pmma-bezel {
    box-shadow:
        inset 0 0 0 1px #2a4f5e,
        inset 2px 2px 0 #f7f3ea,
        inset -2px -2px 0 rgba(91,138,154,0.25);
    transition: box-shadow 280ms ease-out;
}
.pmma-bezel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(216,231,227,0.35) 0%, rgba(91,138,154,0.18) 100%);
    opacity: 0.30;
    pointer-events: none;
    transition: opacity 280ms ease-out;
    z-index: 1;
}
.pmma-bezel::after {
    content: "";
    position: absolute;
    top: 4px; left: 6px; right: 32%; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.65), rgba(255,255,255,0));
    pointer-events: none;
    z-index: 2;
}
.pmma-bezel:hover { box-shadow:
        inset 0 0 0 1px #2a4f5e,
        inset 2px 2px 0 #ffffff,
        inset -2px -2px 0 rgba(91,138,154,0.35);
}
.pmma-bezel:hover::before { opacity: 0.38; }

/* dark cells (Board III) */
.board-iii .cell {
    background: #0e2933;
    color: #d8e7e3;
}
.board-iii .pmma-bezel {
    box-shadow:
        inset 0 0 0 1px #5b8a9a,
        inset 2px 2px 0 rgba(216,231,227,0.10),
        inset -2px -2px 0 rgba(14,41,51,0.6);
}
.board-iii .pmma-bezel::before {
    background: linear-gradient(135deg, rgba(170,201,209,0.18) 0%, rgba(14,41,51,0.4) 100%);
}

/* =========================================================
   Board I cells
   ========================================================= */
.cell-hero { background: linear-gradient(180deg, #aac9d1 0%, #5b8a9a 100%); }
.cell-hero .cell-inner { padding: 0; align-items: center; justify-content: center; }
.plinth-tank {
    position: relative;
    width: 100%; height: 100%;
    overflow: hidden;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 12px;
}
.iustitia { width: 70%; max-width: 320px; height: auto; filter: drop-shadow(0 2px 6px rgba(14,41,51,0.18)); }
.water-surface {
    position: absolute;
    top: 18%; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #d8e7e3, transparent);
    opacity: 0.45;
    animation: waterline 5s ease-in-out infinite;
}
@keyframes waterline {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-4px); }
}
.plinth-bubbles {
    position: absolute; inset: 0; pointer-events: none;
}

.cell-wordmark .cell-inner { justify-content: center; gap: 4px; }
.pediment { width: 60%; max-width: 280px; opacity: 0.85; margin-bottom: 6px; }

.cell-begin .cell-inner { justify-content: space-between; }
.step-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2a4f5e;
}
.cell-prose-tiny {
    font-size: 12px;
    line-height: 1.5;
    color: #2a4f5e;
    font-style: italic;
}

.cell-counter .counter-title {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #2a4f5e;
}
.counter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    margin-top: 6px;
}
.counter-grid div {
    border-top: 1px dotted #2a4f5e;
    padding-top: 4px;
}
.counter-grid dt {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.10em;
    color: #5b8a9a;
    text-transform: uppercase;
}
.counter-grid dd {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: #0e2933;
    margin-top: 2px;
    letter-spacing: 0.06em;
}

/* TOC */
.cell-toc { background: #f7f3ea; }
.toc-heading { display: flex; align-items: baseline; gap: 18px; margin-bottom: 8px; }
.toc-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 18px;
    color: #2a4f5e;
}
.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 8px;
    flex: 1;
}
.toc-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 6px;
    background: #e8e1d2;
    border: 1px solid #2a4f5e;
    border-top: 4px solid #d8c4a3;
    border-radius: 2px;
    position: relative;
    transition: transform 180ms ease, box-shadow 180ms ease;
    cursor: default;
}
.toc-item:hover { transform: translateY(-2px); box-shadow: 0 4px 0 -1px rgba(42,79,94,0.2); }
.toc-icon { width: 22px; height: 22px; }
.toc-name {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2a4f5e;
    text-align: center;
    line-height: 1.2;
}

/* Status strip */
.cell-status { background: #0e2933; color: #d8e7e3; }
.cell-status .pmma-bezel,
.cell-status.pmma-bezel {
    box-shadow:
        inset 0 0 0 1px #5b8a9a,
        inset 2px 2px 0 rgba(216,231,227,0.10),
        inset -2px -2px 0 rgba(0,0,0,0.4);
}
.cell-status .cell-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 0 22px;
}
.cell-status .boot-banner { color: #d8e7e3; flex-shrink: 0; }
.status-ticker {
    flex: 1;
    overflow: hidden;
    border-left: 1px solid #5b8a9a;
    padding-left: 18px;
}
.ticker-track {
    display: inline-flex;
    gap: 28px;
    white-space: nowrap;
    animation: ticker 36s linear infinite;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.10em;
    color: #aac9d1;
}
.ticker-track span::after { content: " — "; color: #5b8a9a; margin-left: 28px; }
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================================
   Board II — Workshop
   ========================================================= */
.cell-specimen { background: #aac9d1; }
.cell-specimen .specimen-svg {
    width: 100%; max-height: 60%;
    flex: 1;
    margin-top: 6px;
}
.specimen-cap {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 13px;
    color: #2a4f5e;
    margin-top: auto;
}

.cell-worksheet { background: #0e2933; color: #d8e7e3; }
.cell-worksheet.pmma-bezel {
    box-shadow:
        inset 0 0 0 1px #5b8a9a,
        inset 2px 2px 0 rgba(216,231,227,0.08),
        inset -2px -2px 0 rgba(0,0,0,0.4);
}
.cell-worksheet.pmma-bezel::before {
    background: linear-gradient(135deg, rgba(170,201,209,0.18) 0%, rgba(14,41,51,0.5) 100%);
}
.ws-step {
    font-family: 'Space Mono', monospace;
    font-size: 36px;
    font-weight: 700;
    color: #d8c4a3;
    line-height: 1;
    letter-spacing: 0.04em;
}
.ws-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 22px;
    color: #d8e7e3;
    text-shadow: 1px 1px 0 rgba(14,41,51,0.6);
    line-height: 1.1;
}
.ws-prose {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #aac9d1;
    line-height: 1.5;
    flex: 1;
}
.ws-prose em { color: #d8e7e3; font-style: italic; }
.cell-worksheet .aqua-lozenge { align-self: flex-start; margin-top: auto; }

/* Compositor */
.cell-compositor {
    background: #e8e1d2;
    border-top: 4px solid #d8c4a3;
}
.comp-eyebrow { display: flex; justify-content: space-between; align-items: baseline; }
.comp-mode {
    color: #5b8a9a;
    font-size: 9px;
}
.comp-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 24px;
    color: #2a4f5e;
    line-height: 1.15;
    margin-bottom: 8px;
}
.slider-row {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px dotted #2a4f5e;
}
.slider-row label {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #2a4f5e;
}
.slider-val {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: #0e2933;
    text-align: right;
    letter-spacing: 0.06em;
}
.aqua-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 14px;
    background: linear-gradient(180deg, #d8e7e3 0%, #5b8a9a 80%, #2a4f5e 100%);
    border: 1px solid #2a4f5e;
    border-radius: 7px;
    outline: none;
    cursor: pointer;
}
.aqua-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #f7f3ea 0%, #d8e7e3 30%, #5b8a9a 80%);
    border: 1px solid #2a4f5e;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(14,41,51,0.4);
}
.aqua-slider::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #f7f3ea 0%, #d8e7e3 30%, #5b8a9a 80%);
    border: 1px solid #2a4f5e;
    cursor: pointer;
}

.comp-readout {
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px dotted #2a4f5e;
    background: #f7f3ea;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #2a4f5e;
}
#verdictTendency { color: #0e2933; font-weight: 700; }
.comp-actions { display: flex; gap: 10px; margin-top: 10px; }
.comp-error {
    margin-top: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: transparent;
    min-height: 18px;
    transition: color 200ms;
}
.comp-error.active {
    color: #c44a3c; /* USE 1 of 3 — error message uses crimson */
}

/* Mentor card */
.cell-mentor { background: #f7f3ea; }
.cell-mentor .cell-inner { flex-direction: row; align-items: center; gap: 14px; }
.mentor-bust { width: 40%; max-width: 110px; height: auto; flex-shrink: 0; }
.mentor-block { display: flex; flex-direction: column; gap: 6px; }
.mentor-name {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #2a4f5e;
}
.mentor-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 16px;
    color: #0e2933;
    line-height: 1.3;
}

/* =========================================================
   Board III — Vault
   ========================================================= */
.cell-vault {
    background: #0e2933;
    position: relative;
    overflow: hidden;
}
.cell-vault .cell-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    gap: 10px;
}
.plinth-svg { width: 100%; max-width: 240px; height: auto; }
.vault-summary {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 13px;
    color: #aac9d1;
    text-align: center;
    line-height: 1.35;
}
.vault-bubble-col {
    position: absolute;
    bottom: 0;
    right: 14px;
    width: 30px;
    height: 100%;
    pointer-events: none;
}

.archive-footer {
    max-width: 1480px;
    margin: 28px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding-top: 18px;
    border-top: 1px solid #5b8a9a;
}
.archive-actions { flex-shrink: 0; }
.colophon {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 12px;
    line-height: 1.6;
    color: #aac9d1;
    max-width: 640px;
}
.colophon em {
    color: #c44a3c; /* USE 2 of 3 — disclaimer's word "judgment" */
    font-style: italic;
    font-weight: 500;
}

/* =========================================================
   Aqua-Lozenge buttons
   ========================================================= */
.aqua-lozenge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #2a4f5e;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(216,231,227,0.85) 0%, rgba(91,138,154,0.85) 50%, rgba(42,79,94,0.85) 100%);
    color: #0e2933;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.55);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 120ms ease, box-shadow 220ms ease, filter 220ms ease;
    box-shadow: 0 2px 0 -1px rgba(42,79,94,0.4), inset 0 1px 0 rgba(255,255,255,0.55);
}
.aqua-lozenge::before {
    content: "";
    position: absolute;
    top: 1px; left: 4px; right: 4px; height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
    border-radius: 999px;
    pointer-events: none;
    transition: opacity 200ms;
    opacity: 0.50;
}
.aqua-lozenge:hover::before { opacity: 0.65; }
.aqua-lozenge:active { transform: translateY(1px); }
.aqua-lozenge:active::before { opacity: 0.85; }

.aqua-small  { padding: 0 16px; height: 28px; font-size: 11px; }
.aqua-medium { padding: 0 22px; height: 38px; font-size: 12px; }
.aqua-large  { padding: 0 28px; height: 52px; font-size: 14px; }
.aqua-large .lozenge-arrow { font-size: 12px; }

.aqua-lozenge.active {
    border-color: #c44a3c; /* USE 3 of 3 — Begin Tutorial active state crimson border */
    box-shadow:
        0 2px 0 -1px rgba(196,74,60,0.5),
        inset 0 1px 0 rgba(255,255,255,0.6),
        0 0 0 1px rgba(196,74,60,0.25);
}

.aqua-lozenge:disabled,
.aqua-lozenge.disabled {
    filter: saturate(0.4);
    cursor: not-allowed;
}

/* =========================================================
   Bubbles
   ========================================================= */
.liminal-bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.bubble-svg {
    position: absolute;
    pointer-events: auto;
    will-change: transform;
}
.bubble-svg .bubble-citation {
    opacity: 0;
    transition: opacity 200ms;
    font-family: 'Space Mono', monospace;
    font-size: 7px;
    fill: #2a4f5e;
}
.bubble-svg:hover .bubble-citation { opacity: 1; }

/* =========================================================
   Shake-error pattern
   ========================================================= */
.shake {
    animation: shakeX 320ms ease-in-out;
    position: relative;
}
.shake::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 2px rgba(196,74,60,0.18);
    pointer-events: none;
    animation: crimsonDecay 600ms ease-out;
}
@keyframes shakeX {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-6px); }
    50%  { transform: translateX(6px); }
    75%  { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}
@keyframes crimsonDecay {
    from { box-shadow: inset 0 0 0 2px rgba(196,74,60,0.18); }
    to   { box-shadow: inset 0 0 0 2px rgba(196,74,60,0); }
}

/* =========================================================
   Cell-by-cell scroll reveal (no stagger group)
   ========================================================= */
.cell {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 480ms ease, transform 480ms ease;
}
.cell.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
    .bento-ii {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(6, minmax(170px, 1fr));
        grid-template-areas:
            "spec1 ws1   ws2"
            "spec2 ws3   ws4"
            "comp  comp  spec3"
            "comp  comp  ws5"
            "ws6   ws7   mentor"
            "ws6   ws7   mentor";
    }
}

@media (max-width: 880px) {
    .board { padding: 24px; }
    .bento-i {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 100px 90px 90px auto 60px;
        grid-template-areas:
            "hero hero"
            "word word"
            "begin counter"
            "begin counter"
            "toc toc"
            "status status";
    }
    .toc-list { grid-template-columns: repeat(4, 1fr); }
    .bento-ii {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(8, minmax(160px, auto));
        grid-template-areas:
            "spec1 ws1"
            "ws2 spec2"
            "ws3 ws4"
            "comp comp"
            "comp comp"
            "spec3 ws5"
            "ws6 ws7"
            "mentor mentor";
    }
    .bento-iii {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(5, 180px);
    }
    .archive-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .board { padding: 14px; }
    .bento-i {
        grid-template-columns: 1fr;
        grid-template-rows: 220px 100px 90px 80px auto 60px;
        grid-template-areas:
            "hero"
            "word"
            "begin"
            "counter"
            "toc"
            "status";
    }
    .toc-list { grid-template-columns: repeat(2, 1fr); }
    .bento-ii {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(12, minmax(150px, auto));
        grid-template-areas:
            "spec1" "ws1" "ws2" "spec2" "ws3"
            "ws4" "comp" "spec3" "ws5"
            "ws6" "ws7" "mentor";
    }
    .bento-iii { grid-template-columns: 1fr; grid-template-rows: repeat(9, 160px); }
    .cell-status .cell-inner { flex-direction: column; gap: 4px; padding: 10px; }
    .ticker-track { animation-duration: 28s; }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    .water-surface { animation: none; }
    .board-divider svg { animation: none; }
    .cell { opacity: 1; transform: none; transition: none; }
}
