/* ===========================================
   TRIGUN — Vash the Stampede Theme
   Desert gold, peace and pain
   =========================================== */

.trigun-theme {
    --panel-accent: #ff6600;
}

.trigun-theme .manga-show-content {
    background: radial-gradient(ellipse at top, rgba(255,102,0,0.06) 0%, transparent 60%);
}

.trigun-theme .dedication-card {
    border-color: #ff6600;
    box-shadow:
            0 0 40px rgba(255,102,0,0.3),
            0 0 80px rgba(255,180,0,0.06),
            inset 0 1px 0 rgba(255,255,255,0.05);
}

.trigun-theme .dedication-card::before {
    background: linear-gradient(90deg, transparent, #cc5500, #ff6600, #ffaa00, #ff6600, #cc5500, transparent);
}

.trigun-theme .dedication-tagline {
    color: #ffe0b0;
    text-shadow: 0 0 15px rgba(255,102,0,0.7), 0 0 40px rgba(255,102,0,0.3);
    font-style: normal;
    letter-spacing: 0.04em;
}

.trigun-theme .dedication-icon i {
    color: #ff6600;
    text-shadow: 0 0 20px rgba(255,102,0,0.9);
    animation: vashSpiral 6s ease-in-out infinite;
}

/* Love and peace spin */
@keyframes vashSpiral {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.1) rotate(360deg); opacity: 1;
        text-shadow: 0 0 40px rgba(255,102,0,1), 0 0 80px rgba(255,180,0,0.4); }
}

.trigun-theme .manga-hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(60,25,0,0.55) 60%, rgba(180,70,0,0.8) 100%);
}

.trigun-theme .panel-glow-bar {
    background: linear-gradient(90deg, transparent, #cc5500, #ff6600, #cc5500, transparent);
}

.trigun-theme .manga-panel-frame {
    border-color: rgba(255,102,0,0.25);
}

.trigun-theme .manga-panel-frame:hover {
    border-color: #ff6600;
    box-shadow: 0 0 30px rgba(255,102,0,0.6);
}

.trigun-theme .section-title {
    background: linear-gradient(45deg, #cc5500, #ff6600, #ffcc00, #ffe0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trigun-theme .section-line {
    background: linear-gradient(90deg, #cc5500, #ff6600, #cc5500);
    box-shadow: 0 0 20px rgba(255,102,0,0.5);
}

.trigun-theme .cyber-button.secondary {
    border-color: #ff6600;
    color: #ffe0b0;
}

.trigun-theme .cyber-button.secondary:hover {
    background: rgba(255,102,0,0.15);
    box-shadow: 0 0 30px rgba(255,102,0,0.6);
    color: #ffffff;
}

.recording-mode .trigun-theme .dedication-icon i {
    animation: none !important;
    transform: none !important;
}




/* =================================================================
   TRIGUN — Vash the Stampede
   trigun.css · Requires manga.css for base rules
   ================================================================= */

/* ── Page ambient background ─────────────────────────────────────── */

.trigun-theme .manga-show-content {
    background:
            radial-gradient(ellipse at 20% 0%,   rgba(255, 102,   0, 0.10) 0%, transparent 55%),
            radial-gradient(ellipse at 80% 30%,  rgba(255, 180,   0, 0.05) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 100%, rgba(200,  70,   0, 0.08) 0%, transparent 60%),
            linear-gradient(180deg, #0d0800 0%, #080400 40%, #0a0600 100%);
    position: relative;
}

/* ── Ambient sand canvas ─────────────────────────────────────────── */

.trigun-ambient-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

/* ── Portrait Field ──────────────────────────────────────────────── */

.trigun-portrait-field {
    position: relative;
    width: 100%;
    min-height: 900px;
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 7rem;
    background:
            radial-gradient(ellipse at 50% 40%, rgba(255, 120, 0, 0.12) 0%, transparent 60%),
            radial-gradient(ellipse at 50% 100%, rgba(200, 70, 0, 0.06) 0%, transparent 50%),
            linear-gradient(180deg, rgba(14, 8, 0, 0.97) 0%, rgba(8, 4, 0, 0.99) 100%);
    border: 1px solid rgba(255, 102, 0, 0.2);
    box-shadow: inset 0 0 80px rgba(255, 102, 0, 0.04), 0 0 60px rgba(200, 80, 0, 0.08);
}

.trigun-portrait-field::before {
    content: 'VASH';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-ghost);
    font-size: clamp(5rem, 18vw, 13rem);
    font-weight: 900;
    color: rgba(255, 102, 0, 0.025);
    letter-spacing: 0.5em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    text-transform: uppercase;
    animation: trigunWatermark 10s ease-in-out infinite;
}

@keyframes trigunWatermark {
    0%, 100% { opacity: 0.6; letter-spacing: 0.5em;  }
    50%       { opacity: 1.0; letter-spacing: 0.58em; }
}

.trigun-sand-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ── Portrait Arena ──────────────────────────────────────────────── */

.trigun-portrait-arena {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 3;
}

.trigun-stats-col {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    flex: 1;
    max-width: 288px;
}

.trigun-stats-left  { align-items: flex-end;   text-align: right; }
.trigun-stats-right { align-items: flex-start; text-align: left;  }

.trigun-gate-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    background: rgba(14, 8, 0, 0.88);
    border: 1px solid rgba(255, 102, 0, 0.22);
    border-radius: 6px;
    padding: 0.75rem 1.1rem;
    backdrop-filter: blur(6px);
    width: 100%;
    position: relative;
}

.trigun-gate-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.7), transparent);
}

.trigun-stats-left .trigun-gate-stat {
    border-right: 2px solid rgba(255, 102, 0, 0.45);
    transform: translateX(-10px);
}

.trigun-stats-right .trigun-gate-stat {
    border-left: 2px solid rgba(255, 102, 0, 0.85);
    transform: translateX(10px);
}

.trigun-gate-stat.active {
    opacity: 1;
    transform: none;
}

.trigun-stat-key {
    font-family: var(--font-ghost);
    font-size: 0.67rem;
    letter-spacing: 0.38em;
    color: rgba(255, 0, 59, 0.92);
    text-transform: uppercase;
}

.trigun-stat-val {
    font-family: var(--font-ghost);
    font-size: 0.95rem;
    color: rgba(255, 220, 160, 0.92);
    letter-spacing: 0.04em;
    line-height: 1.5;
}

/* ── Centre portrait ─────────────────────────────────────────────── */

.trigun-portrait-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 384px;
}

.trigun-wanted-frame {
    position: relative;
    width: 335px;
    padding: 1rem 1rem 3rem;
    background: linear-gradient(180deg, #1a0e00, #0f0800);
    border: 3px solid rgba(255, 140, 0, 0.5);
    border-radius: 4px;
    box-shadow:
            0 0 30px rgba(255, 102, 0, 0.2),
            inset 0 0 20px rgba(0, 0, 0, 0.6),
            0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.trigun-wanted-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(255, 180, 80, 0.015) 3px,
            rgba(255, 180, 80, 0.015) 4px
    );
    border-radius: 2px;
    pointer-events: none;
    z-index: 0;
}

.trigun-wanted-header {
    font-family: var(--font-ghost);
    font-size: 0.65rem;
    letter-spacing: 0.55em;
    color: rgba(255, 180, 80, 0.85);
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 140, 0, 0.3);
    padding-bottom: 0.6rem;
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
}

.trigun-portrait-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: block;
    position: relative;
    z-index: 1;
    filter: saturate(0) brightness(0.7) sepia(0.3);
    opacity: 0;
    transition: filter 2.5s ease, opacity 0.5s ease;
}

.trigun-portrait-field.portrait-visible .trigun-portrait-img { opacity: 1; }

.trigun-portrait-field.revealed .trigun-portrait-img {
    filter: saturate(0.5) brightness(0.9) sepia(0.2) contrast(1.1);
}

.trigun-wanted-footer {
    position: absolute;
    bottom: 0.7rem;
    left: 0; right: 0;
    text-align: center;
    font-family: var(--font-ghost);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: rgba(255, 200, 100, 0.8);
    z-index: 1;
}

.trigun-wanted-footer span {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: rgba(255, 140, 0, 0.73);
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

/* ── Bullet holes ────────────────────────────────────────────────── */

.trigun-bullet-holes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.trigun-bullet-hole {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, #000 30%, rgba(0,0,0,0.6) 60%, transparent 100%);
    box-shadow: 0 0 4px rgba(0,0,0,0.8), inset 0 0 2px rgba(255,100,0,0.2);
}

/* ── Reveal canvas (sand burst overlay on wanted poster) ─────────── */

#trigunRevealCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    border-radius: 2px;
}

/* ── Reveal progress bar ─────────────────────────────────────────── */

.trigun-reveal-bar-wrap {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 6;
    transition: opacity 0.6s ease;
    white-space: nowrap;
}

.trigun-portrait-field.revealed .trigun-reveal-bar-wrap {
    opacity: 0;
    pointer-events: none;
}

.trigun-reveal-label {
    font-family: var(--font-ghost);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: rgba(255, 102, 0, 0.7);
    text-transform: uppercase;
}

.trigun-reveal-track {
    width: 200px;
    height: 3px;
    background: rgba(255, 102, 0, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.trigun-reveal-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: linear-gradient(to right, rgba(200, 70, 0, 0.8), #ff6600);
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.8);
    transition: width 0.4s ease;
}

.trigun-reveal-pct {
    font-family: var(--font-ghost);
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    color: rgba(255, 180, 80, 0.85);
    min-width: 2.5rem;
}

/* ── ID tag ──────────────────────────────────────────────────────── */

.trigun-id-tag-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1.4rem;
    z-index: 6;
    position: relative;
}

.trigun-id-tag-name {
    font-family: var(--font-ghost);
    font-size: 0.95rem;
    letter-spacing: 0.35em;
    color: rgba(255, 89, 0, 0.92);
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(255, 102, 0, 0.6);
    opacity: 0;
    transition: opacity 1s ease;
}

.trigun-id-tag-sub {
    font-family: var(--font-ghost);
    font-size: 0.67rem;
    letter-spacing: 0.25em;
    color: rgba(255, 160, 60, 0.62);
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.trigun-portrait-field.revealed .trigun-id-tag-name,
.trigun-portrait-field.revealed .trigun-id-tag-sub { opacity: 1; }

/* ── Bottom quote ────────────────────────────────────────────────── */

.trigun-field-quote {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    text-align: center;
    z-index: 6;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
    pointer-events: none;
}

.trigun-portrait-field.revealed .trigun-field-quote { opacity: 1; }

.trigun-field-quote p {
    font-style: italic;
    font-size: 0.88rem;
    color: rgba(255, 180, 80, 0.55);
    line-height: 1.9;
    border-top: 1px solid rgba(255, 102, 0, 0.15);
    padding-top: 0.8rem;
}


/* ── Plant Chamber ───────────────────────────────────────────────── */

.plant-chamber-segment {
    position: relative;
    width: 100%;
    height: 580px;
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    background:
            radial-gradient(ellipse at 40% 30%, rgba(80, 200, 120, 0.08) 0%, transparent 50%),
            radial-gradient(ellipse at 60% 70%, rgba(40, 180, 80, 0.06) 0%, transparent 60%),
            linear-gradient(180deg, rgba(2, 8, 4, 0.97) 0%, rgba(0, 4, 2, 0.99) 100%);
    border: 1px solid rgba(80, 200, 120, 0.2);
    box-shadow: inset 0 0 80px rgba(80, 200, 120, 0.02), 0 0 60px rgba(40, 160, 80, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.plant-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* HUD — pointer-events none, automation-only */
.plant-hud {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 4;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.6s ease;
    white-space: nowrap;
}

.plant-resonant .plant-hud { opacity: 0; }

.plant-freq-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.plant-freq-value {
    font-family: var(--font-ghost);
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    color: rgba(120, 255, 160, 0.9);
    text-shadow: 0 0 12px rgba(80, 200, 120, 0.6);
}

.plant-freq-label {
    font-family: var(--font-ghost);
    font-size: 0.5rem;
    letter-spacing: 0.45em;
    color: rgba(80, 200, 120, 0.5);
    text-transform: uppercase;
}

/* Tuner — display only, no interaction */
.plant-tuner-wrap {
    width: 300px;
    height: 36px;
    pointer-events: none;       /* automation-only, no drag */
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
}

.plant-tuner-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(80, 200, 120, 0.15);
    border-radius: 4px;
    border: 1px solid rgba(120, 255, 160, 0.3);
}

.plant-tuner-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;                  /* JS drives this — starts at freqPos 0.10 */
    background: linear-gradient(90deg, rgba(80, 220, 120, 0.8), rgba(120, 255, 160, 1));
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(120, 255, 160, 0.6);
    pointer-events: none;
    transition: width 0.1s ease;
}

.plant-tuner-knob {
    position: absolute;
    top: 50%;
    left: 0%;                   /* JS drives this */
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(120,255,160,0.8));
    border-radius: 50%;
    border: 2px solid rgba(80, 200, 120, 0.8);
    box-shadow: 0 0 16px rgba(120, 255, 160, 0.8), inset 0 0 4px rgba(255,255,255,0.6);
    cursor: default;            /* not draggable */
    z-index: 5;
    transition: left 0.1s ease, box-shadow 0.3s ease;
}

.plant-status {
    font-family: var(--font-ghost);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 80, 80, 0.8);
    text-shadow: 0 0 10px rgba(255, 60, 60, 0.4);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.plant-status.resonant {
    color: rgba(120, 255, 160, 0.9);
    text-shadow: 0 0 14px rgba(80, 220, 120, 0.7);
}

/* Resonance overlay — hidden until .plant-resonant */
.plant-resonance-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 1s ease;
}

.plant-resonant .plant-resonance-overlay { opacity: 1; }

.plant-wings {
    position: relative;
    width: 280px;
    height: 180px;
    margin-bottom: 1rem;
}

.plant-wings::before,
.plant-wings::after {
    content: '';
    position: absolute;
    top: 20%;
    width: 120px;
    height: 140px;
    background: linear-gradient(
            45deg,
            transparent 30%,
            rgba(120, 255, 160, 0.4) 50%,
            rgba(80, 220, 120, 0.6) 70%,
            transparent 90%
    );
    border-radius: 140px 60px 100px 80px;
    filter: blur(2px);
}

.plant-wings::before {
    left: 0;
    transform: rotate(-20deg) skew(10deg);
    animation: wingGlowL 3s ease-in-out infinite;
}

.plant-wings::after {
    right: 0;
    transform: rotate(20deg) skew(-10deg);
    animation: wingGlowR 3s ease-in-out infinite;
    animation-delay: -1.5s;
}

@keyframes wingGlowL {
    0%, 100% { opacity: 0.4; transform: rotate(-20deg) skew(10deg)  scale(1);    }
    50%       { opacity: 0.9; transform: rotate(-20deg) skew(10deg)  scale(1.05); }
}

@keyframes wingGlowR {
    0%, 100% { opacity: 0.4; transform: rotate(20deg)  skew(-10deg) scale(1);    }
    50%       { opacity: 0.9; transform: rotate(20deg)  skew(-10deg) scale(1.05); }
}

.plant-resonance-text {
    font-family: var(--font-ghost);
    font-size: 1.8rem;
    letter-spacing: 0.3em;
    color: rgba(120, 255, 160, 0.95);
    text-shadow:
            0 0 20px rgba(80, 220, 120, 0.8),
            0 0 40px rgba(120, 255, 160, 0.4);
    text-transform: uppercase;
    animation: resonancePulse 2s ease-in-out infinite;
}

@keyframes resonancePulse {
    0%, 100% { opacity: 0.8; transform: scale(1);    }
    50%       { opacity: 1;   transform: scale(1.02); }
}

/* ── Donut Morph ─────────────────────────────────────────────────── */

.donut-morph-segment {
    position: relative;
    width: 100%;
    height: 580px;
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;           /* back to overflow:hidden — no HTML overlay div */
    background:
            radial-gradient(circle at 50% 40%, rgba(255, 100, 0, 0.08) 0%, transparent 50%),
            linear-gradient(180deg, #1a0a00 0%, #080300 100%);
    border: 1px solid rgba(255, 120, 0, 0.2);
}

.donut-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.donut-hud {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    z-index: 4;
    pointer-events: none;
    white-space: nowrap;
}

.donut-power-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.donut-power-label {
    font-family: var(--font-ghost);
    font-size: 0.55rem;
    letter-spacing: 0.5em;
    color: rgba(255, 140, 0, 0.6);
    text-transform: uppercase;
}

.donut-power-value {
    font-family: var(--font-ghost);
    font-size: 1.6rem;
    letter-spacing: 0.2em;
    color: rgba(255, 200, 80, 0.95);
    text-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
}

/* Slider wrapper — tall hit area, pointer-events re-enabled here only */
.donut-slider-wrap {
    width: 320px;
    height: 44px;
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
}

/* Track — inset by half knob-width so knob never clips at edges */
.donut-slider {
    position: relative;
    width: calc(100% - 32px);   /* 16px each side for 32px knob */
    margin: 0 16px;
    height: 12px;
    background: rgba(255, 120, 0, 0.15);
    border-radius: 6px;
    border: 2px solid rgba(255, 200, 80, 0.3);
    cursor: pointer;
}

.donut-slider-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6600, #ffaa00);
    border-radius: 4px;
    box-shadow: 0 0 16px rgba(255, 140, 0, 0.8);
    pointer-events: none;
    transition: width 0.1s ease;
}

.donut-slider-knob {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,200,80,0.8) 70%);
    border-radius: 50%;
    border: 3px solid rgba(255,140,0,0.9);
    box-shadow: 0 0 24px rgba(255,140,0,0.9), inset 0 0 8px rgba(255,255,255,0.7);
    cursor: grab;
    z-index: 5;
}

.donut-slider-knob:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.15);
}

.donut-casualty-count {
    font-family: var(--font-ghost);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: rgba(255, 80, 80, 0.85);
    text-shadow: 0 0 12px rgba(255, 60, 60, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.donut-morphing .donut-casualty-count { opacity: 1; }

/* Crater stats — HTML overlay, fades in at max power */
.donut-crater-stats {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 1.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.donut-max-power .donut-crater-stats { opacity: 1; }

.donut-crater-title
{
    font-family: var(--font-ghost);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 0 20px rgba(255, 100, 0, 0.9), 0 0 50px rgba(255, 60, 0, 0.5);
    text-transform: uppercase;
}

.donut-crater-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.donut-crater-lines span {
    font-family: var(--font-ghost);
    font-size: clamp(0.75rem, 1.8vw, 1rem);
    letter-spacing: 0.2em;
    color: rgba(255, 180, 80, 0.88);
    text-shadow: 0 0 12px rgba(255, 120, 0, 0.6);
}


/* ── Rem's Coin ──────────────────────────────────────────────────── */

.rem-coin-segment {
    position: relative;
    width: 100%;
    height: 520px;
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%,   rgba(255, 120, 0, 0.06) 0%, transparent 55%), radial-gradient(ellipse at 20% 100%,  rgba(200,  70, 0, 0.04) 0%, transparent 50%), linear-gradient(180deg, rgba(10, 5, 0, 0.98) 0%, rgba(5, 2, 0, 0.99) 100%);
    border: 1px solid rgba(255, 140, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rem-coin-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.rem-quote-wrap {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 85%);
    text-align: center;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    min-height: 100px;
    pointer-events: none;
}

.rem-quote-side {
    font-family: var(--font-ghost);
    font-size: 0.5rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rem-quote-side.heads { color: rgba(255, 200, 80, 0.7); }
.rem-quote-side.tails { color: rgba(180, 220, 255, 0.7); }

.rem-quote-text {
    font-family: var(--font-ghost);
    font-size: 1.0rem;
    line-height: 1.75;
    color: rgba(255, 230, 180, 0.0);
    letter-spacing: 0.03em;
    font-style: italic;
    transition: color 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}

.rem-quote-text.showing {
    color: rgba(255, 230, 180, 0.92);
    opacity: 1;
}

.rem-quote-source {
    font-family: var(--font-ghost);
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.rem-quote-source.showing  { opacity: 1; }
.rem-quote-source.heads    { color: rgba(255, 180, 60, 0.5); }
.rem-quote-source.tails    { color: rgba(140, 200, 255, 0.5); }

.rem-coin-instruction {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-ghost);
    font-size: 0.62rem;
    letter-spacing: 0.45em;
    color: rgba(255, 140, 0, 0.35);
    text-transform: uppercase;
    z-index: 4;
    pointer-events: none;
    white-space: nowrap;
    animation: remInstructionPulse 3s ease-in-out infinite;
}

@keyframes remInstructionPulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1;   }
}

.rem-coin-instruction.hidden {
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: none;
}

.rem-flip-count {
    position: absolute;
    top: 1.8rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.rem-flip-count.showing { opacity: 1; }

.rem-flip-label {
    font-family: var(--font-ghost);
    font-size: 0.45rem;
    letter-spacing: 0.4em;
    color: rgba(255, 140, 0, 0.4);
    text-transform: uppercase;
}

.rem-flip-number {
    font-family: var(--font-ghost);
    font-size: 1.4rem;
    color: rgba(255, 180, 80, 0.6);
    letter-spacing: 0.05em;
    line-height: 1;
}



/* ── Recording mode ──────────────────────────────────────────────── */

.recording-mode .trigun-ambient-canvas,
.recording-mode .trigun-sand-canvas             { display: none !important; }
.recording-mode .trigun-portrait-field::before  { animation: none !important; }
.recording-mode .trigun-id-tag-name,
.recording-mode .trigun-id-tag-sub              { opacity: 1 !important; transition: none !important; }
.recording-mode .trigun-gate-stat               { opacity: 1 !important; transform: none !important; transition: none !important; }
.recording-mode .trigun-portrait-img            { opacity: 1 !important; filter: saturate(0.5) brightness(0.9) sepia(0.2) contrast(1.1) !important; transition: none !important; }
.recording-mode .angel-arm-canvas              { display: none !important; }
.recording-mode .plant-canvas                  { display: none !important; }
.recording-mode .donut-canvas                  { display: none !important; }
.recording-mode .rem-coin-canvas               { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .trigun-portrait-arena { max-width: 100%; gap: 1.8rem; }
    .trigun-stats-col      { max-width: 240px; }
    .trigun-portrait-wrap  { width: 320px; }
    .trigun-wanted-frame   { width: 280px; }
}

@media (max-width: 860px) {
    .trigun-portrait-arena  { flex-direction: column; gap: 1.5rem; }
    .trigun-stats-col       { flex-direction: row; max-width: 100%; width: 100%; justify-content: center; flex-wrap: wrap; gap: 0.8rem; }
    .trigun-stats-left,
    .trigun-stats-right     { align-items: stretch; text-align: left; }
    .trigun-gate-stat       { min-width: 160px; flex: 1; }
    .trigun-stats-left  .trigun-gate-stat { border-right: none; border-left: 2px solid rgba(255,102,0,0.45); transform: translateY(8px); }
    .trigun-stats-right .trigun-gate-stat { transform: translateY(8px); }
    .trigun-portrait-field  { min-height: 600px; padding: 2rem 1rem 6rem; }
    .trigun-portrait-wrap   { width: 280px; }
    .trigun-wanted-frame    { width: 240px; }
    .trigun-field-quote     { width: 82%; }
    .radio-container        { width: 90%; }
    .plant-tuner-wrap       { width: 260px; }
    .donut-slider-wrap      { width: 280px; }
}

@media (max-width: 600px) {
    .angel-arm-segment      { height: 460px; }
    .plant-chamber-segment  { height: 520px; }
    .plant-freq-value       { font-size: 1.2rem; }
    .plant-resonance-text   { font-size: 1.4rem; }
    .donut-morph-segment    { height: 520px; }
    .donut-power-value      { font-size: 1.4rem; }
    .rem-coin-segment       { height: 480px; }
    .rem-quote-text         { font-size: 0.9rem; }
    .radio-container        { width: 95%; }
    .radio-body             { padding: 16px; }
    .radio-freq             { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .trigun-wanted-frame  { width: 200px; }
    .trigun-gate-stat     { min-width: 130px; }
    .trigun-field-quote   { width: 90%; }
    .plant-tuner-wrap     { width: 220px; }
    .donut-slider-wrap    { width: 240px; }
}
