/* ===========================================================
   mujun.xyz v2 — dopamine dashboard, duotone purple/gold
   palette: signal purple, electric gold, dopamine magenta,
   bubble aqua, cream, deep violet, retro orange
   =========================================================== */

:root {
    --signal-purple: #6B2FA0;
    --electric-gold: #F0C830;
    --dopamine-magenta: #E83880;
    --bubble-aqua: #40D8E8;
    --cream: #FAF5E0;
    --deep-violet: #1A0830;
    --retro-orange: #E87830;

    --grid-gap: 12px;
    --pad-widget: 24px;
    --radius-widget: 14px;

    --font-display: 'Commissioner', 'Inter', system-ui, sans-serif;
    --font-mono: 'Share Tech Mono', 'Courier New', monospace;
}

@property --width-axis {
    syntax: '<number>';
    initial-value: 75;
    inherits: false;
}

@property --gauge-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--deep-violet);
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

body {
    background:
        radial-gradient(ellipse at top left, rgba(107, 47, 160, 0.35), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(232, 56, 128, 0.18), transparent 50%),
        var(--deep-violet);
    background-attachment: fixed;
}

/* ===== Ambient bubble field (global) ===== */
.bubble-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(64, 216, 232, 0.6) 30%,
        rgba(64, 216, 232, 0.15) 70%,
        rgba(64, 216, 232, 0) 100%);
    box-shadow: 0 0 12px rgba(64, 216, 232, 0.35);
    will-change: transform, opacity;
    pointer-events: none;
    transition: transform 0.4s ease;
}

.bubble::before {
    content: '';
    position: absolute;
    top: 18%;
    left: 22%;
    width: 22%;
    height: 22%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    filter: blur(0.5px);
}

.bubble--text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--cream);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
}

@keyframes bubble-rise {
    0%   { transform: translate3d(0, 0, 0) scale(0.85); opacity: 0; }
    8%   { opacity: 0.95; }
    50%  { transform: translate3d(var(--osc, 18px), -50vh, 0) scale(1); }
    92%  { opacity: 0.9; }
    100% { transform: translate3d(calc(var(--osc, 18px) * -1), -110vh, 0) scale(1.05); opacity: 0; }
}

/* ===== Confetti layer ===== */
.confetti-layer {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 14px;
    will-change: transform, opacity;
}

.confetti--circle { border-radius: 50%; width: 10px; height: 10px; }

@keyframes confetti-burst {
    0%   { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; }
    100% { transform: translate3d(var(--cx, 0), var(--cy, 0), 0) rotate(var(--cr, 720deg)); opacity: 0; }
}

/* ===== Section base ===== */
section {
    position: relative;
    z-index: 2;
    padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 56px);
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--electric-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-variation-settings: 'wdth' 125;
    font-size: clamp(22px, 2.6vw, 36px);
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--cream);
    text-transform: uppercase;
}

.section-readout {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--bubble-aqua);
    letter-spacing: 0.08em;
    margin-left: auto;
    text-transform: uppercase;
}

/* ===========================================================
   COMMAND CENTER (100vh)
   =========================================================== */
.command-center {
    min-height: 100vh;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.command-header { width: 100%; }

.status-strip {
    display: flex;
    gap: 12px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cream);
    padding: 10px 18px;
    background: linear-gradient(90deg,
        rgba(107, 47, 160, 0.4),
        rgba(26, 8, 48, 0.6));
    border: 1px solid rgba(240, 200, 48, 0.35);
    border-radius: 8px;
    flex-wrap: wrap;
}

.status-light {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bubble-aqua);
    box-shadow: 0 0 12px var(--bubble-aqua);
    animation: pulse-light 2s ease-in-out infinite;
}

.status-light--green { background: var(--bubble-aqua); box-shadow: 0 0 12px var(--bubble-aqua); }
.status-light--gold  { background: var(--electric-gold); box-shadow: 0 0 12px var(--electric-gold); }

@keyframes pulse-light {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.85); }
}

.status-divider { color: rgba(250, 245, 224, 0.4); }
.status-meter   { color: var(--electric-gold); }
.status-readout { color: var(--dopamine-magenta); margin-left: auto; }

/* Domain title */
.domain-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(48px, 11vw, 168px);
    line-height: 0.95;
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--cream);
    text-shadow:
        0 0 24px rgba(232, 56, 128, 0.45),
        0 0 60px rgba(107, 47, 160, 0.55);
    text-align: left;
}

.domain-letter {
    display: inline-block;
    font-variation-settings: 'wdth' var(--width-axis, 75);
    transition: --width-axis 100ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.domain-letter.is-typed {
    --width-axis: 125;
}

.domain-letter:hover {
    color: var(--electric-gold);
    text-shadow: 0 0 24px var(--electric-gold);
    cursor: default;
}

.domain-dot {
    display: inline-block;
    color: var(--dopamine-magenta);
    transform: translateY(-0.05em);
}

.tagline {
    font-family: var(--font-mono);
    font-size: clamp(14px, 1.2vw, 18px);
    margin: 0;
    color: var(--bubble-aqua);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    gap: 14px;
    align-items: baseline;
}

.tagline-cn {
    font-family: var(--font-display);
    font-size: 1.5em;
    color: var(--electric-gold);
    font-weight: 700;
}

.tagline-en { color: var(--cream); }

/* Instrument panel */
.instrument-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--grid-gap);
    margin-top: auto;
}

/* Shared widget surface (used in command center too) */
.gauge-cell, .status-cell, .meter-cell {
    background: linear-gradient(135deg,
        rgba(107, 47, 160, 0.4),
        rgba(26, 8, 48, 0.7));
    border: 1px solid rgba(240, 200, 48, 0.3);
    border-radius: var(--radius-widget);
    padding: var(--pad-widget);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gauge-cell:hover, .status-cell:hover, .meter-cell:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 40px rgba(232, 56, 128, 0.25),
                0 0 0 1px rgba(240, 200, 48, 0.6);
}

/* Retro patterns as CSS backgrounds (10% opacity) */
[data-pattern="zigzag"]::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(135deg, var(--electric-gold) 25%, transparent 25%),
        linear-gradient(225deg, var(--electric-gold) 25%, transparent 25%),
        linear-gradient(45deg,  var(--electric-gold) 25%, transparent 25%),
        linear-gradient(315deg, var(--electric-gold) 25%, transparent 25%);
    background-position: 0 0, 0 0, 10px 0, 10px 0;
    background-size: 20px 20px;
    background-repeat: repeat;
    opacity: 0.10;
    transition: opacity 0.3s ease;
}

[data-pattern="dots"]::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--electric-gold) 1.6px, transparent 2px);
    background-size: 18px 18px;
    opacity: 0.10;
    transition: opacity 0.3s ease;
}

[data-pattern="chevron"]::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(45deg, var(--electric-gold) 25%, transparent 25%, transparent 50%,
                        var(--electric-gold) 50%, var(--electric-gold) 75%, transparent 75%);
    background-size: 22px 22px;
    opacity: 0.10;
    transition: opacity 0.3s ease;
}

[data-pattern="memphis"]::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 20%, var(--electric-gold) 2.5px, transparent 3px),
        radial-gradient(circle at 70% 60%, var(--dopamine-magenta) 2px, transparent 2.5px),
        linear-gradient(45deg, transparent 45%, var(--bubble-aqua) 45%, var(--bubble-aqua) 55%, transparent 55%);
    background-size: 28px 28px, 36px 36px, 18px 18px;
    opacity: 0.12;
    transition: opacity 0.3s ease;
}

[data-pattern]:hover::before { opacity: 0.20; }

/* Gauges */
.gauge-cell {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 14px;
    min-height: 220px;
}

.gauge-dial {
    --gauge-angle: 0deg;
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border-radius: 50%;
    background:
        conic-gradient(from 135deg,
            var(--electric-gold) 0deg,
            var(--dopamine-magenta) var(--gauge-angle, 0deg),
            rgba(250, 245, 224, 0.08) var(--gauge-angle, 0deg),
            rgba(250, 245, 224, 0.08) 270deg,
            transparent 270deg);
    transition: --gauge-angle 1000ms cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.gauge-arc {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: var(--deep-violet);
    box-shadow: inset 0 0 24px rgba(107, 47, 160, 0.5);
}

.gauge-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 56px;
    background: linear-gradient(to top, var(--electric-gold), var(--dopamine-magenta));
    border-radius: 2px;
    transform-origin: 50% 100%;
    transform: translate(-50%, -100%) rotate(-135deg);
    transition: transform 1000ms cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 12px rgba(240, 200, 48, 0.7);
}

.gauge-needle::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--electric-gold);
    box-shadow: 0 0 8px var(--electric-gold);
}

.gauge-cell:hover .gauge-needle {
    animation: gauge-wobble 0.6s ease-in-out infinite;
}

@keyframes gauge-wobble {
    0%, 100% { transform: translate(-50%, -100%) rotate(calc(-135deg + var(--needle-rot, 0deg))); }
    50%      { transform: translate(-50%, -100%) rotate(calc(-135deg + var(--needle-rot, 0deg) + 3deg)); }
}

.gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--cream);
    box-shadow: 0 0 12px var(--electric-gold);
    z-index: 2;
}

.gauge-readout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.gauge-label { color: var(--bubble-aqua); }
.gauge-value { color: var(--electric-gold); font-size: 18px; }

/* Status cell */
.status-cell {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 160px;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.status-cell__label {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--bubble-aqua);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-lights { display: flex; gap: 14px; position: relative; z-index: 2; }

.dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-shadow: 0 0 16px currentColor;
    animation: pulse-light 1.6s ease-in-out infinite;
}
.dot--gold    { background: var(--electric-gold); color: var(--electric-gold); animation-delay: 0s; }
.dot--magenta { background: var(--dopamine-magenta); color: var(--dopamine-magenta); animation-delay: 0.4s; }
.dot--aqua    { background: var(--bubble-aqua); color: var(--bubble-aqua); animation-delay: 0.8s; }
.dot--orange  { background: var(--retro-orange); color: var(--retro-orange); animation-delay: 1.2s; }

.status-cell__readout {
    font-family: var(--font-mono);
    color: var(--electric-gold);
    font-size: 16px;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 2;
}

/* Meter cell */
.meter-cell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 80px;
    position: relative;
    z-index: 1;
}

.meter-label, .meter-value {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}
.meter-label { color: var(--bubble-aqua); }
.meter-value { color: var(--electric-gold); font-size: 18px; }

.meter-bar {
    height: 14px;
    background: rgba(250, 245, 224, 0.08);
    border: 1px solid rgba(240, 200, 48, 0.3);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.meter-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--electric-gold), var(--dopamine-magenta));
    border-radius: 8px;
    box-shadow: 0 0 12px var(--electric-gold);
    animation: meter-grow 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes meter-grow {
    from { width: 0; }
    to   { width: var(--fill, 50%); }
}

/* ===========================================================
   CONTRADICTION DASHBOARD (bento grid)
   =========================================================== */
.contradiction-dashboard { padding-top: 80px; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: var(--grid-gap);
}

.widget {
    background: linear-gradient(135deg,
        rgba(107, 47, 160, 0.45),
        rgba(26, 8, 48, 0.7));
    border: 1px solid rgba(240, 200, 48, 0.3);
    border-radius: var(--radius-widget);
    padding: var(--pad-widget);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.92);
}

.widget.is-revealed {
    animation: widget-bounce-in 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes widget-bounce-in {
    0%   { opacity: 0; transform: translateY(20px) scale(0.85); }
    60%  { opacity: 1; transform: translateY(-4px) scale(1.04); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.widget:hover {
    transform: translateY(0) scale(1.03);
    box-shadow:
        0 18px 50px rgba(232, 56, 128, 0.3),
        0 0 0 1px rgba(240, 200, 48, 0.55);
    z-index: 5;
}

.widget--2x1 { grid-column: span 2; }
.widget--1x2 { grid-row: span 2; }

.widget-label {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bubble-aqua);
    display: block;
    position: relative;
    z-index: 2;
}

.widget-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-variation-settings: 'wdth' 110;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.15;
    margin: 12px 0;
    color: var(--cream);
    position: relative;
    z-index: 2;
}

.widget-headline-sm {
    font-family: var(--font-display);
    font-weight: 700;
    font-variation-settings: 'wdth' 100;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.2;
    margin: 8px 0;
    color: var(--cream);
    position: relative;
    z-index: 2;
}

.widget-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--electric-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    z-index: 2;
}

.widget-body {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cream);
    margin: 8px 0 0;
    position: relative;
    z-index: 2;
}

.widget-body-sm {
    font-family: var(--font-display);
    font-size: 12px;
    line-height: 1.5;
    color: var(--cream);
    margin: 6px 0 0;
    position: relative;
    z-index: 2;
}

.widget-readout {
    font-family: var(--font-mono);
    font-size: 32px;
    color: var(--electric-gold);
    letter-spacing: 0.04em;
    display: block;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}

.widget-caption {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--bubble-aqua);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 12px 0 0;
    position: relative;
    z-index: 2;
}

/* Flip widget specifics */
.widget--flip { cursor: pointer; padding: 0; }

.widget-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotateY(180deg); /* pre-loaded, will flip to 0 on reveal */
}

.widget--flip.is-revealed .widget-inner {
    transform: rotateY(0);
}

.widget--flip.is-flipped .widget-inner {
    transform: rotateY(180deg);
}

.widget-face {
    position: absolute;
    inset: 0;
    padding: var(--pad-widget);
    backface-visibility: hidden;
    border-radius: var(--radius-widget);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.widget-face--front {
    background: linear-gradient(135deg, var(--signal-purple), rgba(107, 47, 160, 0.6));
    color: var(--electric-gold);
}

.widget-face--front .widget-headline,
.widget-face--front .widget-headline-sm { color: var(--electric-gold); }

.widget-face--back {
    background: linear-gradient(135deg, var(--electric-gold), var(--retro-orange));
    color: var(--signal-purple);
    transform: rotateY(180deg);
}

.widget-face--back .widget-label { color: var(--signal-purple); opacity: 0.8; }
.widget-face--back .widget-body,
.widget-face--back .widget-body-sm { color: var(--deep-violet); }

/* Mini gauge in widget */
.widget--gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mini-gauge {
    --gauge-angle: 0deg;
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background:
        conic-gradient(from 135deg,
            var(--electric-gold) 0deg,
            var(--dopamine-magenta) var(--gauge-angle, 0deg),
            rgba(250, 245, 224, 0.08) var(--gauge-angle, 0deg),
            rgba(250, 245, 224, 0.08) 270deg,
            transparent 270deg);
    transition: --gauge-angle 1000ms cubic-bezier(0.34, 1.56, 0.64, 1);
    flex: 0 0 auto;
}

.mini-gauge__arc {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--deep-violet);
}

.mini-gauge__needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 38px;
    background: linear-gradient(to top, var(--electric-gold), var(--dopamine-magenta));
    border-radius: 2px;
    transform-origin: 50% 100%;
    transform: translate(-50%, -100%) rotate(-135deg);
    transition: transform 1000ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mini-gauge__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cream);
    box-shadow: 0 0 8px var(--electric-gold);
    z-index: 2;
}

/* Bubble-stream panel */
.widget--bubble-panel {
    display: flex;
    flex-direction: column;
}

.local-bubble-field {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin: 14px 0;
    border-radius: 8px;
    background: rgba(26, 8, 48, 0.5);
    border: 1px solid rgba(64, 216, 232, 0.25);
}

/* Data widget */
.widget--data {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    position: relative;
    z-index: 2;
}

.data-bars {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 90px;
    margin: 10px 0;
    position: relative;
    z-index: 2;
}

.data-bar {
    flex: 1;
    height: var(--h, 50%);
    background: linear-gradient(to top, var(--signal-purple), var(--dopamine-magenta), var(--electric-gold));
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 8px rgba(232, 56, 128, 0.4);
    transition: transform 0.3s ease;
}

.widget--data:hover .data-bar { transform: scaleY(1.05); transform-origin: bottom; }

/* ===========================================================
   FLIP ARCHIVE (horizontal band)
   =========================================================== */
.flip-archive { padding-top: 80px; padding-bottom: 80px; }

.archive-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--grid-gap);
    perspective: 1200px;
}

.flip-card {
    height: 240px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
}

.flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flip-card.is-flipped .flip-card__inner { transform: rotateY(180deg); }

.flip-card__face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    padding: var(--pad-widget);
    border-radius: var(--radius-widget);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(240, 200, 48, 0.3);
}

.flip-card__face--front {
    background: linear-gradient(135deg, var(--signal-purple), rgba(107, 47, 160, 0.6));
    color: var(--electric-gold);
}

.flip-card__face--back {
    background: linear-gradient(135deg, var(--electric-gold), var(--retro-orange));
    color: var(--signal-purple);
    transform: rotateY(180deg);
}

.flip-card__label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.flip-card__face--front .flip-card__label { color: var(--bubble-aqua); }
.flip-card__face--back .flip-card__label { color: var(--deep-violet); opacity: 0.8; }

.flip-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-variation-settings: 'wdth' 115;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.15;
    margin: 0;
    position: relative;
    z-index: 2;
}

.flip-card__face--front .flip-card__title { color: var(--electric-gold); }
.flip-card__face--back .flip-card__title { color: var(--deep-violet); }

.flip-card__hint {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dopamine-magenta);
    position: relative;
    z-index: 2;
}

.flip-card__body {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    color: var(--deep-violet);
    position: relative;
    z-index: 2;
}

.flip-card:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

.flip-card:hover .flip-card__face--front {
    box-shadow: 0 18px 50px rgba(232, 56, 128, 0.35),
                0 0 0 1px var(--electric-gold);
}

/* ===========================================================
   CELEBRATION FOOTER (100vh)
   =========================================================== */
.celebration {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 24px;
    background:
        radial-gradient(ellipse at center, rgba(107, 47, 160, 0.5), transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(232, 56, 128, 0.25), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(64, 216, 232, 0.2), transparent 50%);
}

.celebration-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.celebration-core {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.celebration-tag {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--bubble-aqua);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.celebration-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(48px, 10vw, 144px);
    line-height: 0.92;
    margin: 24px 0;
    letter-spacing: -0.02em;
}

.celebration-line {
    display: block;
    color: var(--cream);
    font-variation-settings: 'wdth' 125;
    text-shadow:
        0 0 32px rgba(232, 56, 128, 0.6),
        0 0 80px rgba(107, 47, 160, 0.7);
}

.celebration-line--accent {
    color: var(--electric-gold);
    text-shadow:
        0 0 28px rgba(240, 200, 48, 0.7),
        0 0 60px rgba(232, 56, 128, 0.5);
}

.celebration-sub {
    font-family: var(--font-mono);
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--bubble-aqua);
    letter-spacing: 0.16em;
    margin: 16px 0 36px;
    text-transform: uppercase;
}

.celebration-cta {
    background: linear-gradient(135deg, var(--electric-gold), var(--retro-orange));
    color: var(--deep-violet);
    border: none;
    border-radius: 999px;
    padding: 18px 40px;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 18px 40px rgba(240, 200, 48, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.celebration-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 24px 60px rgba(232, 56, 128, 0.6);
}

.celebration-cta:active {
    transform: scale(0.96);
}

.celebration-cta__glyph {
    display: inline-block;
    font-size: 18px;
    transition: transform 0.5s ease;
}

.celebration-cta:hover .celebration-cta__glyph {
    transform: rotate(180deg);
}

/* Footer strip */
.footer-strip {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cream);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-readout { color: var(--bubble-aqua); }
.footer-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--electric-gold);
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    .widget--2x1 { grid-column: span 2; }
    .widget--1x2 { grid-row: span 1; grid-column: span 2; }
}

@media (max-width: 560px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 160px;
    }
    .widget--2x1 { grid-column: span 1; }
    .widget--1x2 { grid-column: span 1; }
    .domain-title { font-size: clamp(40px, 16vw, 90px); }
    .footer-strip { position: static; padding: 24px; }
    .celebration { padding-bottom: 24px; }
}
