/* ==========================================================
   meltdown.quest -- v2
   Bento-box dashboard. Pixel-art neon. Playfair serif irony.
   ========================================================== */

:root {
    --bg-deep:    #0A0A1E;
    --bg-panel:   #141428;
    --bg-panel-2: #1B1B33;
    --neon-red:   #FF3040;
    --neon-green: #00FF80;
    --neon-cyan:  #00E5FF;
    --neon-orange:#FF8000;
    --grid-dim:   rgba(0, 255, 128, 0.15);
    --circuit:    rgba(0, 229, 255, 0.08);
    --text:       #E8E8F2;
    --text-dim:   #8888AA;
    --pixel-font: 'Press Start 2P', 'Courier New', monospace;
    --serif:      'Playfair Display', Georgia, serif;
    --sans:       'IBM Plex Sans', system-ui, sans-serif;
}

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

html, body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.65;
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
}

/* ----------- Background grid + scanline ----------- */

.grid-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(var(--grid-dim) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-dim) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

.scanline {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        180deg,
        rgba(0,0,0,0) 0px,
        rgba(0,0,0,0) 2px,
        rgba(0,0,0,0.18) 3px,
        rgba(0,0,0,0) 4px
    );
    mix-blend-mode: multiply;
}

/* ----------- Hero ----------- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    z-index: 2;
}

.hero-grid {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-svg { width: 100%; height: 100%; }

.hero-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    text-align: center;
    z-index: 3;
}

.boot-readout {
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--neon-green);
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0,255,128,0.5);
}

.boot-line {
    opacity: 0;
    transform: translateY(4px);
    animation: bootLine 0.4s forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.1s; }
.boot-line:nth-child(2) { animation-delay: 0.4s; }
.boot-line:nth-child(3) { animation-delay: 0.8s; }

@keyframes bootLine {
    to { opacity: 1; transform: translateY(0); }
}

.logotype {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(40px, 8vw, 92px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 18px 0 16px;
    opacity: 0;
    animation: logoFade 1.2s 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    text-shadow:
        0 0 24px rgba(0, 229, 255, 0.18),
        0 0 60px rgba(0, 229, 255, 0.08);
}

.logotype-dot {
    color: var(--neon-red);
    text-shadow: 0 0 14px rgba(255,48,64,0.7);
}

@keyframes logoFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
    font-family: var(--sans);
    font-size: clamp(14px, 1.1vw, 17px);
    color: var(--text-dim);
    max-width: 540px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: logoFade 0.9s 1.4s forwards;
}

/* ----------- Isometric control panel SVG ----------- */

.control-panel {
    width: 100%;
    max-width: 460px;
    margin: 12px auto 32px;
    opacity: 0;
    animation: panelDraw 1.6s 1.2s forwards;
}

.control-panel svg { width: 100%; height: auto; display: block; }

@keyframes panelDraw {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.iso-floor       { fill: var(--bg-panel); stroke: var(--neon-green); stroke-width: 1; }
.iso-floor-2     { fill: var(--bg-panel-2); stroke: var(--neon-cyan); stroke-width: 0.5; opacity: 0.7; }
.iso-tower       { fill: var(--bg-panel-2); stroke: var(--neon-cyan); stroke-width: 1; }
.iso-tower-top   { fill: var(--bg-panel); stroke: var(--neon-cyan); stroke-width: 1; }
.iso-tower-shadow{ fill: rgba(0,0,0,0.4); stroke: var(--neon-cyan); stroke-width: 0.5; }
.iso-core        { fill: var(--bg-panel-2); stroke: var(--neon-red); stroke-width: 1; }
.iso-core-top    { fill: var(--bg-panel); stroke: var(--neon-red); stroke-width: 1; }
.iso-core-shadow { fill: rgba(0,0,0,0.45); stroke: var(--neon-red); stroke-width: 0.5; }
.iso-core-glow {
    fill: var(--neon-red);
    filter: drop-shadow(0 0 6px var(--neon-red));
    animation: corePulse 1.2s ease-in-out infinite;
}
.iso-turbine       { fill: var(--bg-panel-2); stroke: var(--neon-orange); stroke-width: 1; }
.iso-turbine-top   { fill: var(--bg-panel); stroke: var(--neon-orange); stroke-width: 1; }
.iso-turbine-shadow{ fill: rgba(0,0,0,0.45); stroke: var(--neon-orange); stroke-width: 0.5; }
.iso-beam {
    stroke: var(--neon-cyan);
    stroke-width: 1.5;
    stroke-dasharray: 3 3;
    opacity: 0.7;
    animation: beamSlide 1.8s linear infinite;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.25); opacity: 0.7; }
}

@keyframes beamSlide {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -12; }
}

.hero-prompt {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--neon-cyan);
    text-decoration: none;
    letter-spacing: 2px;
    padding: 10px 18px;
    border: 1px solid rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.04);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    opacity: 0;
    animation: logoFade 0.8s 1.8s forwards;
}

.hero-prompt:hover {
    background: rgba(0, 229, 255, 0.12);
    color: var(--text);
    border-color: var(--neon-cyan);
}

.hero-prompt .arrow {
    animation: arrowBounce 1.4s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

/* ----------- Dashboard / Bento ----------- */

.dashboard {
    position: relative;
    z-index: 2;
    padding: 24px 16px 80px;
}

.bento {
    display: grid;
    gap: 4px;
    max-width: 1280px;
    margin: 0 auto;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(110px, auto);
    grid-template-areas:
        "status   status   headline headline headline headline headline headline cooling  cooling  cooling  cooling"
        "warning  warning  warning  history  history  history  history  control  control  control  control  control"
        "turbine  turbine  turbine  quote    quote    quote    quote    quote    grid     grid     grid     grid"
        "mission  mission  mission  mission  mission  keypad   keypad   keypad   keypad   keypad   keypad   keypad"
        "footer   footer   footer   footer   footer   footer   footer   footer   footer   footer   footer   footer";
}

.cell-status   { grid-area: status; }
.cell-headline { grid-area: headline; }
.cell-cooling  { grid-area: cooling; }
.cell-warning  { grid-area: warning; }
.cell-history  { grid-area: history; }
.cell-control  { grid-area: control; }
.cell-turbine  { grid-area: turbine; }
.cell-quote    { grid-area: quote; }
.cell-grid     { grid-area: grid; }
.cell-mission  { grid-area: mission; }
.cell-keypad   { grid-area: keypad; }
.cell-footer   { grid-area: footer; }

@media (max-width: 980px) {
    .bento {
        grid-template-columns: repeat(6, 1fr);
        grid-template-areas:
            "status   status   status   headline headline headline"
            "cooling  cooling  cooling  warning  warning  warning"
            "history  history  history  control  control  control"
            "turbine  turbine  turbine  grid     grid     grid"
            "quote    quote    quote    quote    quote    quote"
            "mission  mission  mission  keypad   keypad   keypad"
            "footer   footer   footer   footer   footer   footer";
    }
}

@media (max-width: 640px) {
    .bento {
        grid-template-columns: 1fr;
        grid-template-areas:
            "status"
            "headline"
            "warning"
            "cooling"
            "control"
            "history"
            "turbine"
            "grid"
            "quote"
            "mission"
            "keypad"
            "footer";
    }
}

/* ----------- Cells ----------- */

.cell {
    position: relative;
    background: var(--bg-panel);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.cell::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: currentColor;
    opacity: 0.55;
}

.cell-green   { color: var(--neon-green); }
.cell-cyan    { color: var(--neon-cyan); }
.cell-orange  { color: var(--neon-orange); }
.cell-red     { color: var(--neon-red); }

.cell-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cell-title {
    font-family: var(--pixel-font);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text);
    flex: 1;
}

.cell-tag {
    font-family: var(--pixel-font);
    font-size: 8px;
    letter-spacing: 1px;
    color: currentColor;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid currentColor;
}

.cell-pretitle {
    font-family: var(--pixel-font);
    font-size: 8px;
    letter-spacing: 2px;
    color: currentColor;
    opacity: 0.85;
    margin-bottom: 8px;
}

.cell-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }

.cell-foot {
    font-family: var(--pixel-font);
    font-size: 8px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255,255,255,0.06);
}

.cell-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.cell-note {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

.hex-val {
    color: currentColor;
    text-shadow: 0 0 4px currentColor;
}

/* ----------- Cell icons (pixel-art) ----------- */

.cell-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: currentColor;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.icon-reactor { clip-path: polygon(50% 0,75% 25%,75% 75%,50% 100%,25% 75%,25% 25%); }
.icon-tower   { clip-path: polygon(30% 0,70% 0,80% 100%,20% 100%); }
.icon-alert   { clip-path: polygon(50% 0,100% 100%,0 100%); }
.icon-disk    { clip-path: polygon(0 0,100% 0,100% 80%,80% 100%,0 100%); }
.icon-rod     { clip-path: polygon(40% 0,60% 0,60% 80%,80% 80%,80% 100%,20% 100%,20% 80%,40% 80%); }
.icon-turbine { clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); }
.icon-grid    { clip-path: polygon(0 0,100% 0,100% 30%,70% 30%,70% 70%,100% 70%,100% 100%,0 100%,0 70%,30% 70%,30% 30%,0 30%); }
.icon-flag    { clip-path: polygon(0 0,100% 0,80% 50%,100% 100%,0 100%); }
.icon-keys    { clip-path: polygon(0 0,40% 0,40% 40%,60% 40%,60% 0,100% 0,100% 100%,60% 100%,60% 60%,40% 60%,40% 100%,0 100%); }

/* ----------- Readouts / counters ----------- */

.readout {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.readout.big .readout-value { font-size: 36px; }

.readout-label {
    font-family: var(--pixel-font);
    font-size: 8px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-right: 4px;
}

.readout-value {
    font-family: var(--pixel-font);
    font-size: 26px;
    color: currentColor;
    letter-spacing: 1px;
    text-shadow: 0 0 8px currentColor;
}

.readout-unit {
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
}

/* ----------- Bars ----------- */

.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pixel-font);
    font-size: 8px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.bar-label { width: 56px; }

.bar {
    flex: 1;
    height: 8px;
    background: var(--bg-deep);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}

.bar-fill {
    display: block;
    height: 100%;
    width: 0;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
    animation: barGrow 1s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bar-fill.bar-green  { color: var(--neon-green); }
.bar-fill.bar-cyan   { color: var(--neon-cyan); }
.bar-fill.bar-orange { color: var(--neon-orange); }
.bar-fill.bar-red    { color: var(--neon-red); }

@keyframes barGrow {
    to { width: var(--w, 50%); }
}

.bar-pct { width: 36px; text-align: right; color: currentColor; }

/* ----------- Headline cell ----------- */

.cell-headline-text {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.18;
    color: var(--text);
    margin-top: 4px;
}

.cell-headline-text em {
    color: var(--neon-cyan);
    font-style: italic;
    text-shadow: 0 0 8px rgba(0,229,255,0.4);
}

.cell-headline-sub {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 10px;
    max-width: 540px;
}

.cell-headline-meta {
    font-family: var(--pixel-font);
    font-size: 8px;
    color: var(--neon-cyan);
    margin-top: auto;
    padding-top: 12px;
    letter-spacing: 1.5px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cell-headline-meta .sep { color: var(--text-dim); }

/* ----------- Gauge ----------- */

.gauge {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.gauge svg { width: 100%; height: auto; display: block; }

.gauge-track {
    fill: none;
    stroke: rgba(255,255,255,0.08);
    stroke-width: 8;
}

.gauge-fill {
    fill: none;
    stroke: var(--neon-cyan);
    stroke-width: 8;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    filter: drop-shadow(0 0 6px var(--neon-cyan));
    animation: gaugeFill 1.4s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes gaugeFill {
    to { stroke-dashoffset: 61; }
}

.gauge-needle {
    stroke: var(--neon-orange);
    stroke-width: 2;
    transform-origin: 60px 60px;
    transform: rotate(-90deg);
    animation: needleSweep 1.6s 0.6s cubic-bezier(0.5, 1.4, 0.4, 1) forwards;
    filter: drop-shadow(0 0 4px var(--neon-orange));
}

@keyframes needleSweep {
    to { transform: rotate(20deg); }
}

.gauge-pin { fill: var(--neon-orange); }

.gauge-value {
    text-align: center;
    margin-top: -6px;
    font-family: var(--pixel-font);
}

.gauge-num {
    font-size: 22px;
    color: var(--neon-cyan);
    text-shadow: 0 0 6px var(--neon-cyan);
}

.gauge-unit {
    font-size: 9px;
    color: var(--text-dim);
    margin-left: 4px;
}

/* ----------- Status dot ----------- */

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.dot-green   { color: var(--neon-green); }
.dot-cyan    { color: var(--neon-cyan); }
.dot-orange  { color: var(--neon-orange); }
.dot-red     { color: var(--neon-red); }

.pulse {
    box-shadow: 0 0 0 0 currentColor;
    animation: dotPulse 1.6s ease-out infinite;
}

@keyframes dotPulse {
    0%   { box-shadow: 0 0 0 0 currentColor; }
    70%  { box-shadow: 0 0 0 8px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* ----------- Log list ----------- */

.log-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    max-height: 180px;
    overflow: hidden;
}

.log-list li {
    display: grid;
    grid-template-columns: 60px 50px 1fr;
    align-items: center;
    gap: 6px;
}

.log-time { color: var(--text-dim); }

.log-tag {
    text-align: center;
    padding: 3px 4px;
    border: 1px solid currentColor;
    font-size: 7px;
    letter-spacing: 1px;
}

.tag-green  { color: var(--neon-green); }
.tag-cyan   { color: var(--neon-cyan); }
.tag-orange { color: var(--neon-orange); }
.tag-red    { color: var(--neon-red); }

.log-msg { color: var(--text); font-family: var(--sans); font-size: 11px; letter-spacing: 0; }

/* ----------- Rods ----------- */

.rods {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    padding: 4px;
    background: var(--bg-deep);
    border: 1px solid rgba(255, 128, 0, 0.18);
}

.rod {
    flex: 1;
    height: var(--h, 50%);
    background: linear-gradient(180deg, var(--neon-orange), rgba(255, 128, 0, 0.4));
    box-shadow: 0 0 4px var(--neon-orange) inset;
    transition: height 0.4s cubic-bezier(0.5, 1.4, 0.4, 1);
}

/* ----------- Turbine spinner ----------- */

.turbine-spin {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 4px auto;
    animation: spin 1.4s linear infinite;
}

.turbine-spin .blade {
    position: absolute;
    width: 28px;
    height: 6px;
    top: 29px;
    left: 18px;
    background: var(--neon-green);
    box-shadow: 0 0 4px var(--neon-green);
    transform-origin: 14px 3px;
}

.turbine-spin .blade:nth-child(1) { transform: rotate(0deg); }
.turbine-spin .blade:nth-child(2) { transform: rotate(45deg); }
.turbine-spin .blade:nth-child(3) { transform: rotate(90deg); }
.turbine-spin .blade:nth-child(4) { transform: rotate(135deg); }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ----------- Quote ----------- */

.cell-quote-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.4;
    color: var(--text);
    margin: 6px 0;
}

.cell-quote-meta {
    font-family: var(--pixel-font);
    font-size: 8px;
    color: var(--neon-red);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

/* ----------- Sparkline ----------- */

.sparkline {
    width: 100%;
    height: 60px;
    background: var(--bg-deep);
    border: 1px solid rgba(0,229,255,0.12);
    padding: 4px;
}

.sparkline svg { width: 100%; height: 100%; }

.spark-line {
    fill: none;
    stroke: var(--neon-cyan);
    stroke-width: 1.5;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    filter: drop-shadow(0 0 3px var(--neon-cyan));
    animation: sparkDraw 2s 0.8s ease-out forwards;
}

.spark-area {
    fill: rgba(0, 229, 255, 0.12);
    stroke: none;
    opacity: 0;
    animation: fadeArea 0.8s 2.4s forwards;
}

@keyframes sparkDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeArea {
    to { opacity: 1; }
}

/* ----------- Mission list ----------- */

.mission-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--text);
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.mission-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mission-list li.done { color: var(--text-dim); text-decoration: line-through; }

.mission-list li.active { color: var(--neon-orange); text-shadow: 0 0 4px rgba(255,128,0,0.4); }

.mission-list .check {
    color: var(--neon-green);
    flex-shrink: 0;
}

.mission-list li.active .check { color: var(--neon-orange); }

.mission-list li:not(.done):not(.active) .check { color: var(--text-dim); }

/* ----------- Keypad ----------- */

.key-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.key {
    font-family: var(--pixel-font);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--neon-cyan);
    background: var(--bg-deep);
    border: 1px solid var(--neon-cyan);
    padding: 14px 6px;
    cursor: pointer;
    text-shadow: 0 0 4px currentColor;
    transition: background 0.15s, transform 0.08s, color 0.15s;
}

.key:hover {
    background: rgba(0, 229, 255, 0.12);
    color: var(--text);
}

.key:active { transform: translateY(1px); }

.key.is-pressed {
    background: var(--neon-cyan);
    color: var(--bg-deep);
    text-shadow: none;
}

.key-red {
    color: var(--neon-red);
    border-color: var(--neon-red);
}

.key-red:hover {
    background: rgba(255, 48, 64, 0.16);
    color: var(--text);
}

.key-red.is-pressed {
    background: var(--neon-red);
    color: var(--bg-deep);
}

.key-readout {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.06);
}

/* ----------- Footer cell ----------- */

.cell-footer {
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-line {
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--text);
    letter-spacing: 1px;
    line-height: 1.5;
}

.footer-credit {
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 16px;
    border-top: 1px dashed rgba(255,255,255,0.08);
    padding-top: 14px;
}

/* ----------- Bento reveal animation (bounce-enter) ----------- */

.reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
}

.reveal.is-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes bounceIn {
    0%   { opacity: 0; transform: translateY(28px) scale(0.96); }
    60%  { opacity: 1; transform: translateY(-8px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Stagger via nth-child on cells */
.bento .cell.is-in:nth-child(1)  { animation-delay: 0.00s; }
.bento .cell.is-in:nth-child(2)  { animation-delay: 0.06s; }
.bento .cell.is-in:nth-child(3)  { animation-delay: 0.12s; }
.bento .cell.is-in:nth-child(4)  { animation-delay: 0.18s; }
.bento .cell.is-in:nth-child(5)  { animation-delay: 0.24s; }
.bento .cell.is-in:nth-child(6)  { animation-delay: 0.30s; }
.bento .cell.is-in:nth-child(7)  { animation-delay: 0.36s; }
.bento .cell.is-in:nth-child(8)  { animation-delay: 0.42s; }
.bento .cell.is-in:nth-child(9)  { animation-delay: 0.48s; }
.bento .cell.is-in:nth-child(10) { animation-delay: 0.54s; }
.bento .cell.is-in:nth-child(11) { animation-delay: 0.60s; }
.bento .cell.is-in:nth-child(12) { animation-delay: 0.66s; }
