/* ============================================================
   diplomacy.boo - Retro-Futuristic Diplomatic Communications Hub
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --void-obsidian: #0A0E14;
    --midnight-slate: #131A24;
    --charcoal-protocol: #1C2636;
    --protocol-cyan: #00FFC8;
    --signal-magenta: #FF2D78;
    --diplomatic-gold: #F0C850;
    --readout-pale: #D0E8E0;
    --dimmed-terminal: #7A9E92;
    --veto-red: #E83838;
    --hex-glow: rgba(0, 255, 200, 0.12);
    --ease-diplomatic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --hex-clip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--void-obsidian);
    color: var(--readout-pale);
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.72;
    overflow-x: hidden;
}

/* --- Typography --- */
.site-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 7vw, 6rem);
    letter-spacing: 0.06em;
    line-height: 1.1;
    color: var(--protocol-cyan);
    text-shadow: 0 0 10px #00FFC8, 0 0 20px rgba(0, 255, 200, 0.5), 0 0 40px rgba(0, 255, 200, 0.25);
}

.section-heading {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-align: center;
}

.heading-cyan {
    color: var(--protocol-cyan);
    text-shadow: 0 0 10px #00FFC8, 0 0 20px rgba(0, 255, 200, 0.5), 0 0 40px rgba(0, 255, 200, 0.25);
}

.heading-magenta {
    color: var(--signal-magenta);
    text-shadow: 0 0 10px #FF2D78, 0 0 20px rgba(255, 45, 120, 0.5), 0 0 40px rgba(255, 45, 120, 0.25);
}

.heading-gold {
    color: var(--diplomatic-gold);
    text-shadow: 0 0 10px #F0C850, 0 0 20px rgba(240, 200, 80, 0.5), 0 0 40px rgba(240, 200, 80, 0.25);
}

.body-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.72;
    color: var(--readout-pale);
}

.mono-text {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: rgba(0, 255, 200, 0.7);
}

.caption-text {
    color: var(--dimmed-terminal);
    font-size: 0.85rem;
}

.veto-text {
    color: var(--veto-red);
}

/* --- Navigation Strip --- */
.hex-nav {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px;
    background: rgba(28, 38, 54, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s var(--ease-diplomatic);
}

.hex-nav:hover,
.hex-nav.visible {
    opacity: 1;
}

.nav-hex {
    width: 36px;
    height: 36px;
    clip-path: var(--hex-clip);
    background: var(--midnight-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s var(--ease-diplomatic);
}

.nav-hex:hover,
.nav-hex.active {
    background: var(--charcoal-protocol);
}

.nav-hex.active .nav-icon {
    color: var(--protocol-cyan);
    text-shadow: 0 0 6px rgba(0, 255, 200, 0.6);
}

.nav-icon {
    font-size: 14px;
    color: var(--dimmed-terminal);
    transition: color 0.3s var(--ease-diplomatic);
}

.nav-hex:hover .nav-icon {
    color: var(--protocol-cyan);
}

/* --- Scenes --- */
.scene {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.scene-hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-briefing {
    min-height: 150vh;
    padding: 10vh 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-treaty {
    min-height: 150vh;
    padding: 10vh 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8vh;
}

.scene-signal {
    min-height: 120vh;
    padding: 10vh 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-closing {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Hero Background --- */
.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* --- Circuit Traces --- */
.circuit-traces {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.circuit-line {
    stroke: var(--protocol-cyan);
    stroke-width: 1.5;
    opacity: 0.4;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s var(--ease-diplomatic);
}

.circuit-line.drawn {
    stroke-dashoffset: 0;
}

.circuit-node {
    fill: var(--protocol-cyan);
    opacity: 0;
    transition: opacity 0.6s var(--ease-diplomatic);
}

.circuit-node.visible {
    opacity: 0.8;
}

/* --- Honeycomb Grid Overlay --- */
.honeycomb-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 1.5s var(--ease-diplomatic);
}

.honeycomb-grid.visible {
    opacity: 1;
}

/* --- Hexagonal Cells --- */
.hex-cell {
    position: relative;
}

.hex-clip {
    clip-path: var(--hex-clip);
    background: var(--midnight-slate);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15%;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.12), inset 0 0 10px rgba(0, 255, 200, 0.06);
}

.hex-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Hero Rosette --- */
.hero-rosette {
    position: relative;
    z-index: 10;
    width: 700px;
    height: 700px;
    max-width: 90vw;
    max-height: 90vh;
}

.hero-center-hex {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 5;
}

.hero-center-hex.visible {
    opacity: 1;
}

.hero-surround {
    position: absolute;
    width: 140px;
    height: 140px;
    opacity: 0;
    transition: opacity 0.8s var(--ease-diplomatic);
}

.hero-surround.visible {
    opacity: 1;
}

/* Hex positions for surrounding hexagons in rosette (honeycomb pattern) */
.hex-surround-0 { top: 5%; left: 50%; transform: translateX(-50%); }
.hex-surround-1 { top: 22%; right: 10%; }
.hex-surround-2 { bottom: 22%; right: 10%; }
.hex-surround-3 { bottom: 5%; left: 50%; transform: translateX(-50%); }
.hex-surround-4 { bottom: 22%; left: 10%; }
.hex-surround-5 { top: 22%; left: 10%; }

.hero-subtitle {
    margin-top: 12px;
    text-align: center;
    font-size: 0.7rem;
}

.hex-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-icon {
    width: 50px;
    height: 50px;
}

/* --- Pulse Ring Animations --- */
.pulse-ring {
    position: absolute;
    inset: -20px;
    clip-path: var(--hex-clip);
    border: 1px solid var(--protocol-cyan);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.pulse-ring.pulse-gold {
    border-color: var(--diplomatic-gold);
}

.pulse-ring-1 {
    animation: pulse-hex-ring 3s ease-out infinite;
}

.pulse-ring-2 {
    animation: pulse-hex-ring 3s ease-out infinite 0.6s;
}

.pulse-ring-3 {
    animation: pulse-hex-ring 3s ease-out infinite 1.2s;
}

@keyframes pulse-hex-ring {
    0% {
        inset: 0;
        opacity: 0.4;
    }
    100% {
        inset: -40px;
        opacity: 0;
    }
}

/* --- Rosette Layout --- */
.rosette {
    position: relative;
    z-index: 10;
    width: 900px;
    height: 900px;
    max-width: 95vw;
    max-height: 95vw;
}

.rosette-center {
    position: absolute;
    width: 260px;
    height: 260px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.rosette-cell {
    position: absolute;
    width: 220px;
    height: 220px;
}

/* Rosette surrounding positions */
.rosette-cell-0 { top: 5%; left: 50%; transform: translateX(-50%); }
.rosette-cell-1 { top: 20%; right: 5%; }
.rosette-cell-2 { bottom: 20%; right: 5%; }
.rosette-cell-3 { bottom: 5%; left: 50%; transform: translateX(-50%); }
.rosette-cell-4 { bottom: 20%; left: 5%; }
.rosette-cell-5 { top: 20%; left: 5%; }

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.8s var(--ease-diplomatic);
}

.scroll-reveal.revealed {
    opacity: 1;
}

/* --- Text Panels --- */
.text-panel {
    padding: 8%;
    text-align: center;
}

.text-scrollable {
    overflow-y: auto;
    max-height: 100%;
}

.text-scrollable::-webkit-scrollbar {
    width: 3px;
}

.text-scrollable::-webkit-scrollbar-track {
    background: var(--void-obsidian);
}

.text-scrollable::-webkit-scrollbar-thumb {
    background: var(--protocol-cyan);
    border-radius: 2px;
}

/* --- Data Readout Panels --- */
.data-readout {
    padding: 8%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

.data-line {
    font-size: 0.7rem;
    white-space: nowrap;
}

/* --- Collage Panels --- */
.collage-panel {
    position: relative;
    overflow: hidden;
}

.collage-shape {
    position: absolute;
}

.shape-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 255, 200, 0.2);
    border: 1px solid rgba(0, 255, 200, 0.4);
    top: 15%;
    left: 20%;
}

.shape-rect {
    width: 80px;
    height: 40px;
    background: rgba(255, 45, 120, 0.15);
    border: 1px solid rgba(255, 45, 120, 0.3);
    bottom: 25%;
    right: 10%;
    transform: rotate(-12deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(240, 200, 80, 0.2);
    top: 10%;
    right: 15%;
}

.shape-hexagon {
    width: 50px;
    height: 50px;
    clip-path: var(--hex-clip);
    background: rgba(0, 255, 200, 0.15);
    border: 1px solid rgba(0, 255, 200, 0.3);
    bottom: 15%;
    left: 15%;
}

.shape-diamond {
    width: 50px;
    height: 50px;
    background: rgba(255, 45, 120, 0.2);
    border: 1px solid rgba(255, 45, 120, 0.3);
    transform: rotate(45deg);
    top: 20%;
    left: 25%;
}

.shape-circle-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(240, 200, 80, 0.2);
    border: 1px solid rgba(240, 200, 80, 0.4);
    bottom: 20%;
    right: 20%;
}

.shape-rect-wide {
    width: 100px;
    height: 30px;
    background: rgba(0, 255, 200, 0.1);
    border: 1px solid rgba(0, 255, 200, 0.2);
    top: 20%;
    left: 10%;
    transform: rotate(-5deg);
}

.shape-circle-lg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 45, 120, 0.1);
    border: 1px solid rgba(255, 45, 120, 0.2);
    bottom: 15%;
    right: 5%;
}

.shape-hexagon-sm {
    width: 35px;
    height: 35px;
    clip-path: var(--hex-clip);
    background: rgba(240, 200, 80, 0.15);
    top: 15%;
    left: 30%;
}

.shape-line-h {
    width: 80px;
    height: 1px;
    background: rgba(0, 255, 200, 0.3);
    top: 50%;
    left: 10%;
}

.shape-line-v {
    width: 1px;
    height: 80px;
    background: rgba(0, 255, 200, 0.3);
    top: 15%;
    right: 30%;
}

.shape-circle-neon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 255, 200, 0.15);
    border: 2px solid rgba(0, 255, 200, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
    top: 20%;
    left: 25%;
}

.shape-lines-cross {
    position: absolute;
    top: 40%;
    right: 20%;
    width: 50px;
    height: 50px;
}

.shape-lines-cross::before,
.shape-lines-cross::after {
    content: '';
    position: absolute;
    background: rgba(255, 45, 120, 0.4);
}

.shape-lines-cross::before {
    width: 100%;
    height: 1px;
    top: 50%;
}

.shape-lines-cross::after {
    width: 1px;
    height: 100%;
    left: 50%;
}

/* --- Collage Halftone Overlay --- */
.collage-halftone {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 255, 200, 0.15) 0.5px, transparent 0.5px);
    background-size: 8px 8px;
    pointer-events: none;
    z-index: 1;
}

.collage-halftone.halftone-magenta {
    background: radial-gradient(circle, rgba(255, 45, 120, 0.15) 0.5px, transparent 0.5px);
    background-size: 8px 8px;
}

.collage-halftone.halftone-muted {
    background: radial-gradient(circle, rgba(255, 45, 120, 0.08) 0.5px, transparent 0.5px);
    background-size: 8px 8px;
}

/* --- Collage Silhouettes --- */
.collage-silhouette {
    position: absolute;
    z-index: 2;
    opacity: 0.3;
}

.silhouette-handshake {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 50px;
    background: var(--dimmed-terminal);
    clip-path: polygon(0% 100%, 10% 60%, 25% 40%, 40% 55%, 50% 30%, 60% 55%, 75% 40%, 90% 60%, 100% 100%);
}

.silhouette-podium {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 70px;
    background: var(--dimmed-terminal);
    clip-path: polygon(30% 0%, 70% 0%, 65% 40%, 80% 40%, 80% 60%, 90% 60%, 90% 100%, 10% 100%, 10% 60%, 20% 60%, 20% 40%, 35% 40%);
}

.silhouette-table {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 50px;
    background: var(--dimmed-terminal);
    clip-path: polygon(10% 0%, 20% 30%, 0% 30%, 0% 50%, 20% 50%, 20% 60%, 30% 60%, 30% 40%, 70% 40%, 70% 60%, 80% 60%, 80% 50%, 100% 50%, 100% 30%, 80% 30%, 90% 0%);
}

.silhouette-signing {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 55px;
    background: var(--dimmed-terminal);
    clip-path: polygon(35% 0%, 65% 0%, 60% 25%, 70% 30%, 70% 50%, 80% 50%, 80% 100%, 20% 100%, 20% 50%, 30% 50%, 30% 30%, 40% 25%);
}

.collage-label {
    position: absolute;
    bottom: 5%;
    right: 5%;
    z-index: 3;
    font-size: 0.6rem;
    opacity: 0.6;
}

/* --- Halftone Background Areas --- */
.halftone-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.halftone-cyan {
    background: radial-gradient(circle, rgba(0, 255, 200, 0.06) 0.5px, transparent 0.5px);
    background-size: 8px 8px;
}

.halftone-magenta {
    background: radial-gradient(circle, rgba(255, 45, 120, 0.06) 0.5px, transparent 0.5px);
    background-size: 8px 8px;
}

/* --- Hexagonal Seal Divider --- */
.hex-seal-divider {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-seal {
    width: 120px;
    height: 120px;
    animation: seal-rotate 60s linear infinite;
}

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

@keyframes seal-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Signal Floor Grid --- */
.signal-floor-grid {
    position: relative;
    z-index: 10;
    width: 1100px;
    max-width: 95vw;
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.signal-hex {
    position: relative;
}

.signal-large {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    width: 320px;
    height: 320px;
}

.signal-large .hex-clip {
    padding: 12%;
}

.signal-large .section-heading {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    margin-bottom: 12px;
}

.signal-body {
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    text-align: center;
}

.signal-medium {
    width: 220px;
    height: 220px;
}

.signal-small {
    width: 100px;
    height: 100px;
}

.signal-small .hex-clip {
    padding: 5%;
}

.signal-data {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--protocol-cyan);
    text-shadow: 0 0 6px rgba(0, 255, 200, 0.4);
}

/* Signal grid placement */
.signal-hex-0 { grid-column: 1 / 3; grid-row: 1 / 3; }
.signal-hex-1 { grid-column: 3; grid-row: 1; }
.signal-hex-2 { grid-column: 4; grid-row: 1; }
.signal-hex-3 { grid-column: 3; grid-row: 2; }
.signal-hex-4 { grid-column: 4; grid-row: 2; }
.signal-hex-5 { grid-column: 1; grid-row: 3; }
.signal-hex-6 { grid-column: 2; grid-row: 3; }
.signal-hex-7 { grid-column: 3; grid-row: 3; }
.signal-hex-8 { grid-column: 4; grid-row: 3; }
.signal-hex-9 { grid-column: 1; grid-row: 4; }
.signal-hex-10 { grid-column: 2 / 4; grid-row: 4; }

/* --- Closing Section --- */
.closing-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
}

.closing-seal {
    width: 50vmin;
    max-width: 400px;
    height: 50vmin;
    max-height: 400px;
    animation: seal-rotate 60s linear infinite;
}

.seal-large {
    width: 100%;
    height: 100%;
}

.closing-heading {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.06em;
    color: var(--diplomatic-gold);
    text-shadow: 0 0 10px #F0C850, 0 0 20px rgba(240, 200, 80, 0.5), 0 0 40px rgba(240, 200, 80, 0.25);
}

.closing-statement {
    max-width: 600px;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* --- Footer --- */
.site-footer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-meta {
    font-size: 0.65rem;
    color: var(--dimmed-terminal);
    opacity: 0.6;
}

/* --- Hero Title Character Animation --- */
.title-char {
    opacity: 0;
    display: inline-block;
    transition: opacity 0.3s var(--ease-diplomatic);
}

.title-char.visible {
    opacity: 1;
}

/* --- Responsive: Wide (>1200px) --- */
@media (min-width: 1201px) {
    .hex-nav {
        opacity: 0.3;
    }
    .hex-nav:hover {
        opacity: 1;
    }
}

/* --- Responsive: Medium (768-1200px) --- */
@media (max-width: 1200px) {
    .hero-rosette {
        width: 550px;
        height: 550px;
    }

    .hero-center-hex {
        width: 220px;
        height: 220px;
    }

    .hero-surround {
        width: 110px;
        height: 110px;
    }

    .rosette {
        width: 700px;
        height: 700px;
    }

    .rosette-center {
        width: 200px;
        height: 200px;
    }

    .rosette-cell {
        width: 170px;
        height: 170px;
    }

    .signal-floor-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .signal-large {
        grid-column: 1 / 3;
        width: 280px;
        height: 280px;
    }

    .signal-hex-0 { grid-column: 1 / 3; grid-row: 1 / 3; }
    .signal-hex-1 { grid-column: 3; grid-row: 1; }
    .signal-hex-2 { grid-column: 3; grid-row: 2; }
    .signal-hex-3 { grid-column: 1; grid-row: 3; }
    .signal-hex-4 { grid-column: 2; grid-row: 3; }
    .signal-hex-5 { grid-column: 3; grid-row: 3; }
    .signal-hex-6 { grid-column: 1; grid-row: 4; }
    .signal-hex-7 { grid-column: 2; grid-row: 4; }
    .signal-hex-8 { grid-column: 3; grid-row: 4; }
    .signal-hex-9 { grid-column: 1; grid-row: 5; }
    .signal-hex-10 { grid-column: 2 / 4; grid-row: 5; }
}

/* --- Responsive: Narrow (<768px) --- */
@media (max-width: 767px) {
    .hex-nav {
        left: auto;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        flex-direction: row;
        padding: 8px 12px;
        width: 100%;
        justify-content: center;
        background: rgba(10, 14, 20, 0.9);
        opacity: 1;
    }

    .nav-hex {
        width: 32px;
        height: 32px;
    }

    .hero-rosette {
        width: 340px;
        height: 500px;
    }

    .hero-center-hex {
        width: 180px;
        height: 180px;
        top: 35%;
    }

    .hero-surround {
        width: 80px;
        height: 80px;
    }

    .hex-surround-0 { top: 0%; }
    .hex-surround-1 { top: 15%; right: 0; }
    .hex-surround-2 { top: 55%; right: 0; }
    .hex-surround-3 { bottom: 0%; }
    .hex-surround-4 { top: 55%; left: 0; }
    .hex-surround-5 { top: 15%; left: 0; }

    .site-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    /* Stack rosette cells vertically */
    .rosette {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .rosette-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 250px;
        height: 250px;
    }

    .rosette-cell {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 280px;
        height: 220px;
    }

    .scene-briefing,
    .scene-treaty,
    .scene-signal {
        min-height: auto;
        padding: 8vh 4vw;
    }

    .signal-floor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .signal-large {
        grid-column: 1 / 3;
        grid-row: auto;
        width: 260px;
        height: 260px;
    }

    .signal-medium {
        width: 160px;
        height: 160px;
    }

    .signal-small {
        width: 80px;
        height: 80px;
    }

    .signal-hex-0 { grid-column: 1 / 3; }
    .signal-hex-1 { grid-column: 1; }
    .signal-hex-2 { grid-column: 2; }
    .signal-hex-3 { grid-column: 1; }
    .signal-hex-4 { grid-column: 2; }
    .signal-hex-5 { grid-column: 1; }
    .signal-hex-6 { grid-column: 2; }
    .signal-hex-7 { grid-column: 1; }
    .signal-hex-8 { grid-column: 2; }
    .signal-hex-9 { grid-column: 1; }
    .signal-hex-10 { grid-column: 1 / 3; }

    .closing-seal {
        width: 60vmin;
        max-width: 280px;
        height: 60vmin;
        max-height: 280px;
    }

    .hex-seal-divider {
        margin: 4vh 0;
    }

    .body-text {
        font-size: 0.9rem;
    }
}

/* --- Elevated Hex Glow --- */
.hex-cell.elevated .hex-clip {
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.15);
}

.hex-cell.recessed .hex-clip {
    background: var(--void-obsidian);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}

/* --- Hex Wireframe Grid Between Cells (Ambient) --- */
.scene::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* --- Live Timestamp Blink --- */
.live-timestamp {
    animation: data-blink 1.5s steps(1) infinite;
}

@keyframes data-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.4; }
}
