/* ===========================================
   GINTAMA — Gintoki Sakata Theme
   Silver soul, Odd Jobs blue, white demon
   Tama-white hair, shinigami eyes, hidden grief
   =========================================== */

.gintama-theme {
    --panel-accent: #a8c8e8;   /* Odd Jobs sign blue-grey */
}

.gintama-theme .manga-show-content {
    background:
            radial-gradient(ellipse at top left,
            rgba(168, 200, 232, 0.05) 0%, transparent 50%),
            radial-gradient(ellipse at bottom right,
            rgba(200, 210, 220, 0.04) 0%, transparent 50%);
}

.gintama-theme .dedication-card {
    border-color: #7a9ab8;
    background: linear-gradient(135deg,
    rgba(12, 18, 26, 0.95) 0%,
    rgba(18, 25, 35, 0.9) 100%);
    box-shadow:
            0 0 40px rgba(168, 200, 232, 0.2),
            0 0 80px rgba(140, 170, 200, 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.gintama-theme .dedication-card::before {
    background: linear-gradient(90deg,
    transparent, #4a7aa0, #a8c8e8, #e8f0f8, #a8c8e8, #4a7aa0, transparent);
    background-size: 200% 100%;
    animation: silverStream 5s ease-in-out infinite;
}

/* Silver hair shimmer — slow drift left to right */
@keyframes silverStream {
    0%   { background-position: 200% 50%; opacity: 0.5; }
    50%  { background-position: 0% 50%;   opacity: 1; }
    100% { background-position: -200% 50%; opacity: 0.5; }
}

/* Gintoki speaks plainly — cold white, no warmth */
.gintama-theme .dedication-tagline {
    color: #ddeeff;
    text-shadow:
            0 0 15px rgba(168, 200, 232, 0.6),
            0 0 40px rgba(100, 150, 200, 0.2);
    font-style: normal;
    letter-spacing: 0.04em;
}

/* Lazy float — Gintoki never moves unless he has to,
   then he moves faster than anyone expects */
.gintama-theme .dedication-icon i {
    color: #c8dff0;
    text-shadow:
            0 0 20px rgba(168, 200, 232, 0.8),
            0 0 50px rgba(100, 150, 200, 0.3);
    animation: gintokirousei 6s ease-in-out infinite;
}

@keyframes gintokirousei {
    /* Long idle — he's reading Shounen Jump */
    0%, 55%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.65;
        text-shadow: 0 0 20px rgba(168, 200, 232, 0.5);
    }
    /* Sudden Shiroyasha burst — white demon awakens */
    60% {
        transform: scale(1.25) rotate(-5deg);
        opacity: 1;
        color: #ffffff;
        text-shadow:
                0 0 30px rgba(255, 255, 255, 1),
                0 0 80px rgba(168, 200, 232, 0.7),
                0 0 120px rgba(100, 150, 200, 0.4);
    }
    65% {
        transform: scale(0.92) rotate(2deg);
    }
    75% {
        transform: scale(1.05) rotate(0deg);
        opacity: 0.9;
    }
}

.gintama-theme .manga-hero-banner {
    filter: saturate(0.3) contrast(1.1) brightness(0.9);
}

.gintama-theme .manga-hero-overlay {
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(8, 15, 25, 0.55) 60%,
            rgba(20, 40, 65, 0.85) 100%
    );
}

.gintama-theme .panel-glow-bar {
    background: linear-gradient(90deg,
    transparent, #4a7aa0, #a8c8e8, #e8f0f8, #a8c8e8, #4a7aa0, transparent);
    background-size: 200% 100%;
    animation: silverStream 5s ease-in-out infinite;
}

.gintama-theme .manga-panel-frame {
    border-color: rgba(168, 200, 232, 0.2);
    filter: saturate(0.4) brightness(0.9);
}

.gintama-theme .manga-panel-frame:hover {
    border-color: #a8c8e8;
    box-shadow: 0 0 30px rgba(168, 200, 232, 0.4);
    filter: saturate(0.7) brightness(1);
}

.gintama-theme .section-title {
    background: linear-gradient(45deg, #4a7aa0, #a8c8e8, #e8f0f8, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gintama-theme .section-line {
    background: linear-gradient(90deg, #2a5a80, #a8c8e8, #e8f0f8, #a8c8e8, #2a5a80);
    box-shadow: 0 0 20px rgba(168, 200, 232, 0.4);
}

.gintama-theme .cyber-button.secondary {
    border-color: #7a9ab8;
    color: #ddeeff;
}

.gintama-theme .cyber-button.secondary:hover {
    background: rgba(168, 200, 232, 0.1);
    box-shadow: 0 0 30px rgba(168, 200, 232, 0.4);
    color: #ffffff;
}

/* Recording mode */
.recording-mode .gintama-theme .dedication-icon i {
    animation: none !important;
    transform: none !important;
    color: #a8c8e8 !important;
    text-shadow: 0 0 10px rgba(168, 200, 232, 0.5) !important;
}

.recording-mode .gintama-theme .panel-glow-bar,
.recording-mode .gintama-theme .dedication-card::before {
    animation: none !important;
    background-position: 0% 50% !important;
}



/* ===========================================
   GINTAMA — Shounen Jump Page Section
   =========================================== */

.gintoki-jump-page {
    position: relative;
    width: 100%;
    min-height: 600px;
    margin-bottom: 3rem;
    border-radius: 4px; /* manga pages have sharp corners */
    overflow: hidden;
    border: 3px solid rgba(168, 200, 232, 0.15);
    background: #0a0d12;
}

/* ── Halftone dot pattern overlay ── */
.gintoki-jump-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
            radial-gradient(circle, rgba(168, 200, 232, 0.07) 1px, transparent 1px);
    background-size: 12px 12px;
    z-index: 0;
    pointer-events: none;
}

/* ── Bleed ink vignette ── */
.gintoki-jump-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
            ellipse at center,
            transparent 40%,
            rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ── Page inner layout — comic grid ── */
.jump-page-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 0;
    min-height: 600px;
}

/* ── Panel borders — thick manga gutters ── */
.jump-panel {
    position: relative;
    border: 3px solid rgba(168, 200, 232, 0.12);
    overflow: hidden;
}

/* ── PANEL 1 — Top full-width title banner ── */
.jump-panel-title {
    grid-column: 1 / -1;
    border-bottom: 4px solid rgba(168, 200, 232, 0.2);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(
            90deg,
            rgba(10, 13, 20, 0.9) 0%,
            rgba(18, 25, 38, 0.8) 50%,
            rgba(10, 13, 20, 0.9) 100%
    );
    gap: 1rem;
}

/* Weekly Jump masthead text */
.jump-masthead {
    font-family: var(--font-ghost);
    font-size: clamp(0.55rem, 1.2vw, 0.7rem);
    letter-spacing: 0.4em;
    color: rgba(168, 200, 232, 0.4);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Chapter title — big loud manga energy */
.jump-chapter-title {
    font-family: var(--font-ghost);
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    font-weight: 900;
    color: #ddeeff;
    text-shadow:
            0 0 20px rgba(168, 200, 232, 0.6),
            0 0 40px rgba(168, 200, 232, 0.2),
            3px 3px 0 rgba(0, 0, 0, 0.8);
    letter-spacing: 0.08em;
    text-align: center;
    flex: 1;
}

/* Chapter number tag */
.jump-chapter-num {
    font-family: var(--font-ghost);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: rgba(168, 200, 232, 0.4);
    white-space: nowrap;
    text-align: right;
}

/* ── PANEL 2 — Portrait panel (left, tall) ── */
.jump-panel-portrait {
    grid-column: 1;
    grid-row: 2;
    min-height: 380px;
    position: relative;
    border-right: 4px solid rgba(168, 200, 232, 0.15);
    border-bottom: none;
}

/* Portrait image with desaturated manga feel */
.jump-portrait-img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: saturate(0.2) contrast(1.15) brightness(0.85);
    transition: filter 0.5s ease;
}

.gintoki-jump-page:hover .jump-portrait-img {
    filter: saturate(0.45) contrast(1.1) brightness(0.95);
}

/* Speed lines radiating from portrait on hover */
.jump-speed-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: repeating-conic-gradient(
            from 0deg at 50% 50%,
            rgba(168, 200, 232, 0.04) 0deg,
            transparent 2deg,
            transparent 6deg,
            rgba(168, 200, 232, 0.02) 8deg,
            transparent 10deg
    );
}

.gintoki-jump-page:hover .jump-speed-lines {
    opacity: 1;
}

/* SFX stamp — big Japanese-style sound effect */
.jump-sfx {
    position: absolute;
    font-family: var(--font-ghost);
    font-weight: 900;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.jump-sfx-main {
    bottom: 1rem;
    left: 1rem;
    font-size: clamp(3rem, 7vw, 5rem);
    color: rgba(168, 200, 232, 0.08);
    letter-spacing: -0.02em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Caption box — sits bottom of portrait panel */
.jump-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(168, 200, 232, 0.07);
    border-top: 2px solid rgba(168, 200, 232, 0.15);
    padding: 0.6rem 1rem;
    font-family: var(--font-ghost);
    font-size: 0.72rem;
    color: rgba(200, 220, 240, 0.82);
    font-style: italic;
    line-height: 1.5;
}

.jump-caption strong {
    color: #b0d7ff;
    font-style: normal;
    letter-spacing: 0.08em;
}

/* ── PANEL 3 — Stats panel (right, tall) ── */
.jump-panel-stats {
    grid-column: 2;
    grid-row: 2;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 10, 16, 0.7);
}

/* "Profile" section heading — like a manga info box */
.jump-profile-header {
    font-family: var(--font-ghost);
    font-size: 0.58rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(168, 200, 232, 0.35);
    border-bottom: 1px solid rgba(168, 200, 232, 0.12);
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.jump-profile-header::before {
    content: '◆';
    color: rgba(168, 200, 232, 0.68);
    font-size: 0.5rem;
}

/* Stat row — manga info-table style */
.jump-stat-row {
    display: grid;
    grid-template-columns: 40% 1fr;
    font-family: var(--font-ghost);
    font-size: 0.78rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(168, 200, 232, 0.06);
    transition: background 0.25s ease;
    border-radius: 3px;
    cursor: default;
}

.jump-stat-row:hover {
    background: rgba(168, 200, 232, 0.04);
    padding-left: 0.4rem;
}

.jump-stat-row:last-of-type {
    border-bottom: none;
}

.jump-stat-key {
    color: rgba(205, 253, 255, 0.7);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.jump-stat-key::before {
    content: '–';
    opacity: 0.4;
}

.jump-stat-val {
    color: #c8dff0;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

/* ── Jump ad-break divider — like the mid-chapter ad strip ── */
.jump-ad-break {
    margin: 1.2rem 0;
    border-top: 2px solid rgba(168, 200, 232, 0.1);
    border-bottom: 2px solid rgba(168, 200, 232, 0.1);
    padding: 0.5rem 0;
    text-align: center;
    font-family: var(--font-ghost);
    font-size: 0.58rem;
    letter-spacing: 0.35em;
    color: rgba(161, 207, 255, 0.76);
    text-transform: uppercase;
}

/* ── Lazy Gintoki reading box ── */
.jump-reading-box {
    margin-top: auto;
    padding: 0.8rem;
    border: 1px dashed rgba(168, 200, 232, 0.15);
    border-radius: 6px;
    background: rgba(168, 200, 232, 0.03);
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.jump-reading-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.gintoki-jump-page:hover .jump-reading-icon {
    filter: grayscale(0.3);
    opacity: 0.8;
}

.jump-reading-text {
    font-family: var(--font-ghost);
    font-size: 0.68rem;
    color: rgba(166, 255, 255, 0.73);
    font-style: italic;
    line-height: 1.6;
}

.jump-reading-text strong {
    color: rgba(166, 255, 255, 0.73);
    font-style: normal;
}

/* ── PANEL 4 — Bottom full-width quote strip ── */
.jump-panel-quote {
    grid-column: 1 / -1;
    border-top: 4px solid rgba(168, 200, 232, 0.15);
    padding: 1.4rem 2.5rem;
    background: linear-gradient(
            90deg,
            rgba(8, 12, 20, 0.95) 0%,
            rgba(14, 20, 32, 0.9) 50%,
            rgba(8, 12, 20, 0.95) 100%
    );
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

/* White hair shimmer behind quote */
.jump-panel-quote::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(168, 200, 232, 0.04) 30%,
            rgba(220, 235, 255, 0.06) 50%,
            rgba(168, 200, 232, 0.04) 70%,
            transparent 100%
    );
    background-size: 200% 100%;
    animation: silverStream 6s ease-in-out infinite;
}

.jump-quote-mark {
    font-family: var(--font-ghost);
    font-size: 4rem;
    color: rgba(168, 200, 232, 0.12);
    line-height: 1;
    flex-shrink: 0;
    margin-top: -1rem;
}

.jump-quote-text {
    font-family: var(--font-ghost);
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    color: rgba(166, 255, 255, 0.73);
    font-style: italic;
    line-height: 1.8;
    flex: 1;
    position: relative;
    z-index: 1;
}

.jump-quote-source {
    font-family: var(--font-ghost);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: rgba(166, 255, 255, 0.73);
    text-transform: uppercase;
    flex-shrink: 0;
    text-align: right;
    line-height: 1.5;
}

/* Shiroyasha stamp — watermark behind the whole section */
.jump-shiroyasha-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    font-family: var(--font-ghost);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    color: rgba(168, 200, 232, 0.025);
    letter-spacing: 0.15em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    text-transform: uppercase;
    animation: watermarkBreath 10s ease-in-out infinite;
}

/* ── Responsive ── */
@media (max-width: 720px) {
    .jump-page-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .jump-panel-portrait {
        grid-column: 1;
        grid-row: 2;
        min-height: 280px;
        border-right: none;
        border-bottom: 4px solid rgba(168, 200, 232, 0.15);
    }

    .jump-panel-stats {
        grid-column: 1;
        grid-row: 3;
    }

    .jump-panel-quote {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .jump-quote-mark { display: none; }
    .jump-quote-source { text-align: center; }
}



/* ===========================================
   GINTAMA — Arc Tone Switcher (Section 3)
   =========================================== */

.gintama-tone-switcher {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(168, 200, 232, 0.15);
    transition: border-color 0.8s ease;
}

.gintama-tone-switcher.mode-shiroyasha {
    border-color: rgba(220, 235, 255, 0.3);
}

/* Background — shifts with mode */
.tone-bg {
    position: absolute;
    inset: 0;
    transition: background 1s ease;
    background: radial-gradient(
            ellipse at 50% 50%,
            rgba(30, 45, 65, 0.95) 0%,
            rgba(8, 12, 20, 0.98) 100%
    );
    z-index: 0;
}

.gintama-tone-switcher.mode-shiroyasha .tone-bg {
    background: radial-gradient(
            ellipse at 50% 30%,
            rgba(180, 210, 255, 0.08) 0%,
            rgba(5, 8, 18, 0.99) 60%,
            rgba(2, 4, 10, 1) 100%
    );
}

/* Scanline — appears in Shiroyasha mode */
.tone-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(168, 200, 232, 0.015) 3px,
            rgba(168, 200, 232, 0.015) 4px
    );
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.gintama-tone-switcher.mode-shiroyasha .tone-scanlines {
    opacity: 1;
}

/* Inner layout */
.tone-inner {
    position: relative;
    z-index: 2;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* ── Toggle switch ── */
.tone-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.tone-toggle-label {
    font-family: var(--font-ghost);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    transition: all 0.5s ease;
    white-space: nowrap;
}

.tone-label-comedy {
    color: rgba(220, 180, 80, 0.6);
}

.tone-label-shiroyasha {
    color: rgba(168, 200, 232, 0.35);
}

.gintama-tone-switcher.mode-shiroyasha .tone-label-comedy {
    color: rgba(255, 220, 128, 0.66);
}

.gintama-tone-switcher.mode-shiroyasha .tone-label-shiroyasha {
    color: rgba(166, 255, 255, 0.73);
    text-shadow: 0 0 15px rgba(168, 200, 232, 0.5);
}

/* The physical toggle track */
.tone-toggle {
    width: 72px;
    height: 34px;
    border-radius: 17px;
    background: rgba(180, 140, 30, 0.25);
    border: 1px solid rgba(220, 180, 80, 0.4);
    position: relative;
    cursor: pointer;
    transition: background 0.6s ease, border-color 0.6s ease,
    box-shadow 0.6s ease;
    flex-shrink: 0;
}

.tone-toggle:hover {
    box-shadow: 0 0 20px rgba(220, 180, 80, 0.3);
}

.gintama-tone-switcher.mode-shiroyasha .tone-toggle {
    background: rgba(100, 150, 220, 0.2);
    border-color: rgba(168, 200, 232, 0.5);
    box-shadow: 0 0 20px rgba(168, 200, 232, 0.25);
}

/* Toggle knob */
.tone-toggle-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(220, 180, 80, 0.8);
    box-shadow: 0 0 10px rgba(220, 180, 80, 0.5);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.5s ease,
    box-shadow 0.5s ease;
}

.gintama-tone-switcher.mode-shiroyasha .tone-toggle-knob {
    transform: translateX(38px);
    background: rgba(168, 200, 232, 0.9);
    box-shadow: 0 0 15px rgba(168, 200, 232, 0.7),
    0 0 30px rgba(168, 200, 232, 0.3);
}

/* Meta label below toggle */
.tone-meta-label {
    font-family: var(--font-ghost);
    font-size: 0.52rem;
    letter-spacing: 0.35em;
    color: rgba(148, 202, 255, 0.53);
    text-transform: uppercase;
    text-align: center;
    transition: color 0.5s ease;
}

.gintama-tone-switcher.mode-shiroyasha .tone-meta-label {
    color: rgba(168, 200, 232, 0.35);
}

/* ── Content card — swaps on toggle ── */
.tone-content-card {
    width: 100%;
    max-width: 700px;
    position: relative;
    min-height: 220px;
}

/* Both panels stacked — only active one shows */
.tone-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tone-panel-comedy {
    border: 1px solid rgba(220, 180, 80, 0.2);
    background: rgba(30, 22, 5, 0.6);
    opacity: 1;
    transform: translateY(0);
}

.tone-panel-shiroyasha {
    border: 1px solid rgba(168, 200, 232, 0.18);
    background: rgba(5, 10, 20, 0.7);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.gintama-tone-switcher.mode-shiroyasha .tone-panel-comedy {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

.gintama-tone-switcher.mode-shiroyasha .tone-panel-shiroyasha {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.tone-panel-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.tone-panel-comedy .tone-panel-icon {
    filter: none;
}

.tone-panel-shiroyasha .tone-panel-icon {
    filter: grayscale(1);
    opacity: 0.6;
}

.tone-panel-title {
    font-family: var(--font-ghost);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 0.15em;
    display: block;
}

.tone-panel-comedy .tone-panel-title {
    color: rgba(240, 200, 80, 0.9);
    text-shadow: 0 0 15px rgba(220, 180, 80, 0.4);
}

.tone-panel-shiroyasha .tone-panel-title {
    color: #ddeeff;
    text-shadow: 0 0 20px rgba(168, 200, 232, 0.5);
}

.tone-panel-quote {
    font-family: var(--font-ghost);
    font-size: clamp(0.72rem, 1.5vw, 0.88rem);
    font-style: italic;
    line-height: 1.9;
}

.tone-panel-comedy .tone-panel-quote {
    color: rgba(240, 200, 80, 0.67);
}

.tone-panel-shiroyasha .tone-panel-quote {
    color: rgba(200, 220, 240, 0.75);
}

.tone-panel-attr {
    font-family: var(--font-ghost);
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.tone-panel-comedy .tone-panel-attr {
    color: rgba(255, 216, 120, 0.55);
}

.tone-panel-shiroyasha .tone-panel-attr {
    color: rgba(163, 210, 255, 0.56);
}

/* ===========================================
   GINTAMA — Shinsengumi Wanted Board (Section 4)
   =========================================== */

.gintama-wanted-board {
    position: relative;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border-radius: 12px;
    background:
            radial-gradient(ellipse at 20% 30%,
            rgba(168, 200, 232, 0.04) 0%, transparent 50%),
            rgba(6, 9, 14, 0.97);
    border: 1px solid rgba(168, 200, 232, 0.1);
    overflow: hidden;
}

/* Board heading */
.wanted-board-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wanted-board-title {
    font-family: var(--font-ghost);
    font-size: clamp(0.6rem, 1.5vw, 0.75rem);
    letter-spacing: 0.6em;
    color: rgba(0, 128, 255, 0.98);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.3rem;
}

.wanted-board-subtitle {
    font-family: var(--font-ghost);
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    color: rgba(171, 232, 255, 0.87);
    text-transform: uppercase;
}

/* Poster grid */
.wanted-posters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

/* Individual poster */
.wanted-poster {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    z-index 0s;
}

/* Base tilts */
.wanted-poster:nth-child(1) { transform: rotate(-2deg); }
.wanted-poster:nth-child(2) { transform: rotate(1.5deg); }
.wanted-poster:nth-child(3) { transform: rotate(-1deg); }
.wanted-poster:nth-child(4) { transform: rotate(2.5deg); }
.wanted-poster:nth-child(5) { transform: rotate(-1.5deg); }
.wanted-poster:nth-child(6) { transform: rotate(1deg); }
.wanted-poster:nth-child(7) { transform: rotate(-2.5deg); }
.wanted-poster:nth-child(8) { transform: rotate(2deg); }

.wanted-poster:hover {
    transform: rotate(0deg) scale(1.06) translateY(-4px) !important;
    z-index: 10;
}

/* Paper texture */
.wanted-paper {
    background: linear-gradient(
            160deg,
            rgba(14, 18, 26, 0.97) 0%,
            rgba(10, 14, 22, 0.99) 100%
    );
    border: 1px solid rgba(168, 200, 232, 0.12);
    border-radius: 3px;
    padding: 1rem 0.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wanted-poster:hover .wanted-paper {
    border-color: rgba(168, 200, 232, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(168, 200, 232, 0.08);
}

/* Thumbtack */
.wanted-tack {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(
            circle at 35% 35%,
            rgba(200, 220, 240, 0.8) 0%,
            rgba(120, 160, 200, 0.6) 50%,
            rgba(80, 120, 160, 0.4) 100%
    );
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(168, 200, 232, 0.2);
    z-index: 3;
}

/* Wanted header text */
.wanted-header-text {
    font-family: var(--font-ghost);
    font-size: 0.5rem;
    letter-spacing: 0.5em;
    color: rgba(72, 163, 255, 0.65);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(168, 200, 232, 0.1);
    padding-bottom: 0.4rem;
    width: 100%;
    text-align: center;
}

/* Character icon/silhouette */
.wanted-portrait {
    width: 70px;
    height: 85px;
    border-radius: 2px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: saturate(0.15) contrast(1.2) brightness(0.7);
    border: 1px solid rgba(168, 200, 232, 0.1);
    transition: filter 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.5;
}

.wanted-poster:hover .wanted-portrait {
    filter: saturate(0.35) contrast(1.1) brightness(0.85);
    opacity: 0.75;
}

/* Character name */
.wanted-name {
    font-family: var(--font-ghost);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #c8dff0;
    text-align: center;
    line-height: 1.3;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.wanted-poster:hover .wanted-name {
    color: #ddeeff;
    text-shadow: 0 0 10px rgba(168, 200, 232, 0.5);
}

/* Bounty */
.wanted-bounty {
    font-family: var(--font-ghost);
    font-size: 0.6rem;
    color: rgba(255, 208, 88, 0.77);
    letter-spacing: 0.08em;
    text-align: center;
    transition: color 0.3s ease;
}

.wanted-poster:hover .wanted-bounty {
    color: rgba(240, 200, 80, 0.8);
    text-shadow: 0 0 8px rgba(220, 180, 80, 0.4);
}

/* Crime tag */
.wanted-crime {
    font-family: var(--font-ghost);
    font-size: 0.55rem;
    color: rgba(103, 232, 255, 0.74);
    font-style: italic;
    text-align: center;
    line-height: 1.5;
    padding: 0 0.2rem;
    transition: color 0.3s ease;
}

.wanted-poster:hover .wanted-crime {
    color: rgba(168, 200, 232, 0.55);
}

/* Stamp — reveals on hover */
.wanted-stamp {
    position: absolute;
    bottom: 0.8rem;
    right: 0.5rem;
    font-family: var(--font-ghost);
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
    transform: rotate(-15deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wanted-poster:hover .wanted-stamp {
    opacity: 1;
}

.stamp-dangerous {
    color: rgba(255, 6, 110, 0.7);
    border: 1px solid rgba(255, 100, 100, 0.3);
}

.stamp-harmless {
    color: rgba(2, 255, 2, 0.7);
    border: 1px solid rgba(100, 200, 100, 0.3);
}

.stamp-asleep {
    color: rgba(70, 163, 255, 0.6);
    border: 1px solid rgba(168, 200, 232, 0.25);
}

.stamp-unknown {
    color: rgba(255, 138, 0, 0.78);
    border: 1px solid rgba(200, 184, 112, 0.25);
}

/* ===========================================
   GINTAMA — Joui War Memory Flash (Section 5)
   =========================================== */

.joui-war-section {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    min-height: 480px;

    /* Starts sealed — black */
    background: #020305;
    border: 1px solid rgba(168, 200, 232, 0.08);
}

/* Battlefield background — fades in on trigger */
.joui-war-bg {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse at 20% 50%,
            rgba(168, 200, 232, 0.06) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 30%,
            rgba(200, 210, 230, 0.04) 0%, transparent 40%),
            linear-gradient(
                    160deg,
                    rgba(5, 8, 18, 0.98) 0%,
                    rgba(10, 15, 30, 0.95) 50%,
                    rgba(3, 5, 12, 0.99) 100%
            );
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 0;
}

.joui-war-section.revealed .joui-war-bg {
    opacity: 1;
}

/* Snow/ash particles */
.joui-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease 0.5s;
}

.joui-war-section.revealed .joui-particles {
    opacity: 1;
}

.joui-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(200, 220, 255, 0.4);
    animation: jouiSnow linear infinite;
}

@keyframes jouiSnow {
    0%   { transform: translateY(-10px) translateX(0px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(500px) translateX(var(--drift, 20px)); opacity: 0; }
}

/* Horizontal slash — like a sword mark across the section */
.joui-slash {
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(
            to right,
            transparent 0%,
            rgba(168, 200, 232, 0.15) 30%,
            rgba(220, 235, 255, 0.4) 50%,
            rgba(168, 200, 232, 0.15) 70%,
            transparent 100%
    );
    transform: translateY(-50%);
    z-index: 2;
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s;
    pointer-events: none;
}

.joui-war-section.revealed .joui-slash {
    left: 0%;
}

/* Inner content */
.joui-inner {
    position: relative;
    z-index: 5;
    padding: 4rem 3rem;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
}

/* Pre-reveal state — minimal prompt */
.joui-prompt {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 6;
    transition: opacity 0.5s ease;
}

.joui-war-section.revealed .joui-prompt {
    opacity: 0;
    pointer-events: none;
}

.joui-prompt-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    filter: grayscale(1);
}

.joui-prompt-text {
    font-family: var(--font-ghost);
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    color: rgba(115, 186, 255, 0.82);
    text-transform: uppercase;
}

/* Content items — slide in staggered */
.joui-fact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.joui-war-section.revealed .joui-fact:nth-child(1) {
    opacity: 1; transform: none;
    transition-delay: 0.6s;
}

.joui-war-section.revealed .joui-fact:nth-child(2) {
    opacity: 1; transform: none;
    transition-delay: 1s;
}

.joui-war-section.revealed .joui-fact:nth-child(3) {
    opacity: 1; transform: none;
    transition-delay: 1.4s;
}

.joui-war-section.revealed .joui-fact:nth-child(4) {
    opacity: 1; transform: none;
    transition-delay: 1.8s;
}

.joui-fact-label {
    font-family: var(--font-ghost);
    font-size: 0.55rem;
    letter-spacing: 0.5em;
    color: rgba(241, 248, 255, 0.92);
    text-transform: uppercase;
}

.joui-fact-value {
    font-family: var(--font-ghost);
    font-size: clamp(1rem, 3vw, 1.8rem);
    font-weight: 900;
    color: #ddeeff;
    letter-spacing: 0.1em;
    text-shadow:
            0 0 20px rgba(168, 200, 232, 0.4),
            0 0 40px rgba(168, 200, 232, 0.15);
    line-height: 1.2;
}

.joui-fact-sub {
    font-family: var(--font-ghost);
    font-size: 0.68rem;
    color: rgba(204, 231, 255, 0.9);
    font-style: italic;
    line-height: 1.6;
    max-width: 600px;
}

/* Divider line between facts */
.joui-fact-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(
            to right,
            rgba(168, 200, 232, 0.3),
            transparent
    );
    margin-top: 0.5rem;
}

/* The final quote — large, bottom right */
.joui-closing-quote {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    max-width: 380px;
    text-align: right;
    opacity: 0;
    transition: opacity 0.8s ease 2.4s;
    z-index: 5;
}

.joui-war-section.revealed .joui-closing-quote {
    opacity: 1;
}

.joui-closing-quote p {
    font-family: var(--font-ghost);
    font-size: clamp(0.7rem, 1.4vw, 0.85rem);
    font-style: italic;
    color: rgba(198, 255, 253, 0.89);
    line-height: 1.9;
    margin-bottom: 0.5rem;
}

.joui-closing-quote span {
    font-family: var(--font-ghost);
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    color: rgba(177, 247, 255, 0.83);
    text-transform: uppercase;
}

/* Shiroyasha title — huge watermark that fades in */
.joui-shiroyasha-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-ghost);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    white-space: nowrap;
    color: rgba(158, 238, 255, 0.28);
    pointer-events: none;
    user-select: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease 0.8s;
    text-transform: uppercase;
}

.joui-war-section.revealed .joui-shiroyasha-bg {
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .wanted-posters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wanted-posters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tone-inner { padding: 2rem 1.2rem; }
    .tone-toggle-wrap { gap: 0.8rem; }

    .joui-inner { padding: 3rem 1.5rem; }
    .joui-closing-quote {
        position: relative;
        bottom: auto;
        right: auto;
        text-align: left;
        max-width: 100%;
    }
}


