/* ══════════════════════════════════════
   CRISIS TEAM ZOOM CALL (P2-D4)
   Full-screen overlay. Design adapted from the designer's mock
   (formerly ink/.../zoom_call_overlay_en_2.html); classes are
   zc-prefixed so they never collide with the story's own
   .container / .outerContainer. Tokens come from base.css.
   ══════════════════════════════════════ */

.zc-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    overflow-y: auto;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(245, 168, 0, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(30, 60, 120, 0.25) 0%, transparent 55%),
        linear-gradient(160deg, #0d1520 0%, #0a1228 55%, #060d1a 100%);
    padding: 24px 0 60px;
}

.zc-container {
    max-width: 1200px;
    margin: 36px auto 40px auto;
    padding: 36px 48px;
    background: rgba(8, 14, 26, 0.72);
    border: 1.5px solid var(--border-soft);
    border-radius: 6px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
}

.zc-header { margin: 0 0 24px 4px; }
.zc-header h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-strong);
    text-shadow: 3px 3px 0 var(--shadow-hard);
}
.zc-header .zc-subtitle {
    display: block;
    margin-top: 2px;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Current agenda block — persistent "where am I / what to look for" banner. */
.zc-block-headline {
    margin: 0 0 20px 4px;
    padding: 12px 16px;
    border-left: 3px solid var(--accent);
    background: rgba(245, 168, 0, 0.06);
    border-radius: 0 4px 4px 0;
}
.zc-block-title {
    display: block;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-strong);
    text-shadow: 2px 2px 0 var(--shadow-hard);
}
.zc-block-hint {
    display: block;
    margin-top: 3px;
    font-family: var(--font-main);
    font-size: 10.5pt;
    color: var(--text-muted);
}

/* Adaptive tile grid — reflows for 2 or 8 participants. */
.zc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 260px));
    justify-content: center;
    gap: 20px;
    margin: 0 0 24px 0;
}

.zc-tile {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 4px;
    background: rgba(6, 14, 30, 0.88);
    border: 1.5px solid var(--border-soft);
    border-top: 2.5px solid var(--accent);
    box-shadow: 3px 3px 0 var(--shadow-hard);
    transition: transform .12s ease, box-shadow .12s ease;
}
.zc-tile-inner {
    position: absolute;
    inset: 0;
    border-radius: 0 0 3px 3px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1c2a3e 0%, #101a29 100%);
}
.zc-portrait { width: 100%; height: 100%; object-fit: cover; display: block; }
.zc-portrait-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.zc-bust { width: 48%; opacity: .85; }

.zc-tile.speaking {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--shadow-hard), 0 0 0 3px var(--accent);
}
.zc-tile.speaking .zc-tile-inner {
    outline: 1px solid rgba(245, 168, 0, 0.35);
    outline-offset: -1px;
}

/* Name tab clipped to the bottom edge, carrying name + role. */
.zc-name-tab {
    position: absolute;
    left: 8px;
    bottom: -9px;
    background: #e8ddc8;
    border: 2.5px solid #111;
    border-radius: 2px;
    box-shadow: 2px 2px 0 #111;
    padding: 4px 9px 3px;
    transform: rotate(0.8deg);
    z-index: 2;
    line-height: 1.05;
}
.zc-name-tab strong {
    display: block;
    font-family: var(--font-display);
    font-size: 11pt;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #0d1520;
}
.zc-name-tab small {
    display: block;
    margin-top: 1px;
    font-family: var(--font-mono);
    font-size: 7pt;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b6551;
}

/* "Now speaking" indicator (audio-only: speaker identity, no transcript). */
.zc-nowspeaking {
    font-family: var(--font-main);
    font-size: 12pt;
    color: #d8e8f0;
    background: rgba(8, 14, 28, 0.7);
    border: 1.5px solid var(--border-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 4px 4px 0;
    box-shadow: 3px 3px 0 var(--shadow-hard);
    padding: 14px 18px;
    margin: 28px 0 6px 0;
    line-height: 1.6;
    min-height: 52px;
    display: flex;
    align-items: center;
}
.zc-nowspeaking:not(.placeholder)::before {
    content: "► NOW SPEAKING";
    font-family: var(--font-mono);
    font-size: 8pt;
    letter-spacing: .1em;
    color: var(--accent);
    margin-right: 12px;
    flex-shrink: 0;
}
.zc-nowspeaking.placeholder { color: var(--text-muted); font-style: italic; }

/* Control button — mirrors the story .choice button treatment. */
.zc-controls { display: flex; justify-content: center; margin-top: 8px; }
.zc-btn {
    display: block;
    font-family: var(--font-display);
    font-size: 13pt;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 13px 32px;
    border-radius: 6px;
    color: #f0ebe0;
    background: linear-gradient(160deg, #1c2a3e 0%, #141e2e 60%, #0d1520 100%);
    border: 2px solid #080e18;
    outline: 1px solid rgba(255, 255, 255, 0.07);
    outline-offset: -3px;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.05) inset, 0 -1px 0 rgba(0, 0, 0, 0.4) inset, 3px 3px 0 #060c14;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
    text-decoration: none;
    cursor: pointer;
}
.zc-btn:hover {
    color: #ffffff;
    background: linear-gradient(160deg, #263548 0%, #1c2a3e 60%, #141e2e 100%);
    transform: translate(-2px, -2px);
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.07) inset, 0 -1px 0 rgba(0, 0, 0, 0.4) inset, 5px 5px 0 #060c14;
}
.zc-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 1px 1px 0 #060c14;
}

@media (max-width: 700px) {
    .zc-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .zc-container { padding: 24px 18px; margin: 12px auto; }
}
