/* =============================================================================
   🜂 THE UNBOUND FORMULA · patron-tier UI
   Reuses .lamp-modal / .lamp-modal-shell / .lamp-copy / .lamp-actions /
   .lamp-btn base classes from lamp_widget.css — only the patron-specific
   bits (input, message, reports-grid button/badge) live here.
   ============================================================================= */

/* ── The Gate widget — a header badge, front and centre next to PREDICT ────
   NOTE: the header's <nav> is absolutely-positioned and centred independent
   of the hero-left/hero-right flex layout (see cockpit.css ~line 760) — on
   anything narrower than an ultra-wide monitor, nav already geometrically
   overlaps hero-right (confirmed: -81px "gap" at 1680px viewport even
   BEFORE this widget existed — that's the existing "z-index choreography"
   the predict-btn comments already document, not something new). Since
   .gate-widget is the LEFTMOST hero-right item, it's the one most exposed
   to that overlap — z-index kept BELOW nav's (3) on purpose so nav always
   wins the overlap and Arena stays fully clickable, never the reverse. */
.gate-widget {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 58px; height: 58px;
    padding: 5px; margin: 0;
    -webkit-appearance: none; appearance: none; outline: none;
    border-radius: 50%;
    border: 2px solid rgba(200, 140, 255, 0.65);
    cursor: pointer;
    background: radial-gradient(circle at 50% 42%, #2a1840, #150a24 65%, #0a0514 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 16px 3px rgba(180, 110, 255, 0.35), 0 2px 10px rgba(0, 0, 0, 0.45);
    animation: gateBreathe 3.6s ease-in-out infinite;
    transition: transform 0.15s;
}
.gate-widget img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.gate-widget:hover { transform: scale(1.08); }
.gate-widget:active { transform: scale(0.97); }
.gate-widget.is-active {
    border-color: rgba(255, 216, 107, 0.65);
    animation: gateBreatheGold 3.6s ease-in-out infinite;
}
@keyframes gateBreathe {
    0%, 100% { box-shadow: 0 0 14px 2px rgba(180, 110, 255, 0.30), 0 2px 10px rgba(0, 0, 0, 0.45); }
    50%      { box-shadow: 0 0 26px 7px rgba(200, 140, 255, 0.55), 0 2px 10px rgba(0, 0, 0, 0.45); }
}
@keyframes gateBreatheGold {
    0%, 100% { box-shadow: 0 0 14px 2px rgba(255, 216, 107, 0.30), 0 2px 10px rgba(0, 0, 0, 0.45); }
    50%      { box-shadow: 0 0 26px 7px rgba(255, 216, 107, 0.55), 0 2px 10px rgba(0, 0, 0, 0.45); }
}
@media (prefers-reduced-motion: reduce) { .gate-widget { animation: none; } }
@media print { .gate-widget { display: none !important; } }

/* ── Reports-grid column ─────────────────────────────────────────────────── */
.reports-col-patron .rep-btn-patron {
    border-color: rgba(255, 200, 80, 0.45);
    background: linear-gradient(180deg, rgba(255, 200, 80, 0.10), rgba(120, 70, 10, 0.10));
}
.reports-col-patron .rep-btn-patron.is-active {
    border-color: rgba(120, 255, 170, 0.6);
    background: linear-gradient(180deg, rgba(120, 255, 170, 0.16), rgba(30, 120, 70, 0.12));
    box-shadow: 0 0 14px rgba(120, 255, 170, 0.25);
}
.reports-col-patron #btnWatchThink:disabled {
    opacity: 0.45; cursor: not-allowed;
}

/* ── Spine teaser badge (under the S6/S8 output box) ─────────────────────── */
.rep-spine-badge {
    margin-top: 8px;
    font-size: 11.5px;
    color: #c9c4b1;
    line-height: 1.5;
    min-height: 1.2em;
}
.rep-spine-badge b { color: #ffd66a; }
.rep-spine-badge .spine-depth { color: #8fb8ff; font-style: italic; }
body.patron-unlocked .rep-spine-badge .spine-depth { color: #7dffb0; }

/* ── Unlock modal specifics ──────────────────────────────────────────────── */
.patron-modal-shell { width: min(520px, 95vw); }
.patron-gate-icon { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }

.patron-pitch {
    margin: 16px 0 4px;
    padding: 14px 16px;
    border-radius: 12px;
    background: radial-gradient(ellipse at top, rgba(140, 60, 180, 0.14), rgba(20, 10, 30, 0.3));
    border: 1px solid rgba(200, 140, 255, 0.25);
    text-align: center;
}
.patron-pitch em {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16.5px;
    color: #e8d4ff;
    line-height: 1.5;
    font-style: italic;
}
.patron-pitch p {
    margin: 10px 0 0;
    font-size: 12px;
    color: #b8a9cc;
    line-height: 1.6;
}
.patron-pitch-sign {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #c8a6ff;
}
.patron-story-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 11.5px;
    color: #e8d4ff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(232, 212, 255, 0.45);
    transition: opacity 0.15s;
}
.patron-story-link:hover { opacity: 0.75; }

.patron-path {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.patron-path-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
    color: #b09c70; margin-bottom: 8px;
}
.patron-path-note { font-size: 12.5px; color: #c9c4b1; line-height: 1.6; margin: 0 0 4px; }
.patron-path-new .lamp-btn-primary {
    background: linear-gradient(180deg, rgba(255, 180, 60, 0.30), rgba(180, 100, 20, 0.18));
}
.patron-token-input {
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 200, 80, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #f8f4e6;
    font-size: 13.5px;
    font-family: 'Courier New', monospace;
    outline: none;
    box-sizing: border-box;
}
.patron-token-input:focus { border-color: rgba(255, 200, 80, 0.75); }
.patron-modal-msg {
    min-height: 1.4em;
    margin-top: 10px;
    font-size: 12.5px;
    color: #b09c70;
    text-align: center;
}

/* ── Watch It Think panel ─────────────────────────────────────────────────── */
.wit-modal-shell { width: min(640px, 96vw); }

.wit-tick-row {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 200, 80, 0.06);
    border: 1px solid rgba(255, 200, 80, 0.20);
    text-align: center;
}
.wit-tick-note {
    margin: 0 0 12px;
    font-size: 12px;
    color: #c9c4b1;
    line-height: 1.6;
}
.wit-tick-btn { width: 100%; }
.wit-tick-btn.is-busy { opacity: 0.6; cursor: wait; }
.wit-tick-status {
    min-height: 1.4em;
    margin-top: 10px;
    font-size: 12px;
    color: #b09c70;
}

.wit-row.wit-values {
    display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}
.wit-value-box {
    flex: 1 1 150px;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.wit-value-label { font-size: 10.5px; color: #b09c70; letter-spacing: 0.03em; }
.wit-value-num { font-size: 20px; font-family: 'Courier New', monospace; color: #f8f4e6; margin-top: 4px; }
.wit-value-council { border-color: rgba(140, 180, 255, 0.35); }
.wit-value-council .wit-value-num { color: #8fb8ff; }
.wit-value-blend { border-color: rgba(255, 200, 80, 0.45); }
.wit-value-blend .wit-value-num { color: #ffd66a; }

.wit-blend-bar-wrap { margin-top: 14px; }
.wit-blend-bar-label { font-size: 11px; color: #b09c70; margin-bottom: 4px; }
.wit-blend-bar {
    height: 8px; border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.wit-blend-bar-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #8fb8ff, #ffd66a);
    transition: width 0.4s ease;
}

.wit-unison-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 12px; font-size: 12.5px; color: #c9c4b1;
}
.wit-unison-row b { color: #ffd66a; }
.wit-sigil { color: #ffb347; font-size: 11.5px; }

.wit-section-label {
    margin-top: 18px; margin-bottom: 8px;
    font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
    color: #b09c70;
}
.wit-bars { display: flex; flex-direction: column; gap: 6px; }
.wit-bar-row {
    display: grid; grid-template-columns: 90px 1fr 54px;
    align-items: center; gap: 8px;
    font-size: 11.5px; color: #c9c4b1;
}
.wit-bar-track {
    height: 7px; border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}
.wit-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffb347, #ffd66a);
    transition: width 0.4s ease;
}
.wit-bar-num { text-align: right; font-family: 'Courier New', monospace; color: #f8f4e6; }

.wit-footer {
    margin-top: 18px; padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px; color: #8a836a; text-align: center;
}
