/* ============================================================================
   協力型レイドボス 無音シネマティック演出 (Raid Boss Cinematics v2 - Zero Audio)
   1. 開幕演出 (Intro): 緊急警報HUD → 次元亀裂破壊 → 3D魔方陣＆シルエット急降下
      → 作画インパクトフレーム＆覚醒降臨 → 戦術ブリーフィング
   2. 討伐達成演出 (Victory): ボスHP粉砕・3連黄金斬撃 → 作画インパクトフレーム＆浄化超新星
      → 天界ゴッドレイ＆月桂冠ハロー＆3D金箔紙吹雪 → 戦績＆限定称号授与
   ============================================================================ */

html.rc-scroll-locked,
body.rc-scroll-locked {
    overflow: hidden !important;
}

#raidCinematicRoot {
    --rc-safe-top: clamp(44px, 6.2vh, 58px);
    --rc-safe-bottom: clamp(40px, 5.8vh, 54px);
    position: fixed;
    inset: 0;
    z-index: 11500;
    background: radial-gradient(circle at 50% 42%, #240b36 0%, #0d0618 54%, #030207 100%);
    color: #f8fafc;
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.36s ease, background 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    user-select: none;
    -webkit-user-select: none;
}

#raidCinematicRoot.is-docked {
    --rc-safe-top: 30px;
    --rc-safe-bottom: 28px;
}

#raidCinematicRoot.is-visible {
    opacity: 1;
}

#raidCinematicRoot.is-victory-bg {
    background: radial-gradient(circle at 50% 42%, #200d24 0%, #0c0714 58%, #040308 100%);
}

#raidCinematicRoot.is-victory-bg.is-purified-sky {
    background:
        radial-gradient(ellipse at 50% 24%, rgba(254, 240, 138, 0.28) 0%, rgba(245, 158, 11, 0.14) 28%, transparent 62%),
        radial-gradient(circle at 50% 48%, #261b47 0%, #10142c 52%, #050712 100%);
}

/* ---------------------------------------------------------
   カメラシェイク 3段階（物理的衝撃と減衰）
   --------------------------------------------------------- */
#raidCinematicRoot.is-shake-light {
    animation: rcShakeLight 0.28s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

#raidCinematicRoot.is-shake-heavy {
    animation: rcShakeHeavy 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

#raidCinematicRoot.is-shake-cataclysm {
    animation: rcShakeCataclysm 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rcShakeLight {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    20% {
        transform: translate3d(-5px, 3px, 0) rotate(-0.35deg);
    }

    45% {
        transform: translate3d(5px, -3px, 0) rotate(0.35deg);
    }

    70% {
        transform: translate3d(-3px, 2px, 0) rotate(-0.15deg);
    }
}

@keyframes rcShakeHeavy {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    14% {
        transform: translate3d(-11px, 6px, 0) rotate(-0.7deg);
    }

    28% {
        transform: translate3d(10px, -7px, 0) rotate(0.65deg);
    }

    44% {
        transform: translate3d(-8px, -4px, 0) rotate(-0.45deg);
    }

    62% {
        transform: translate3d(6px, 4px, 0) rotate(0.35deg);
    }

    80% {
        transform: translate3d(-3px, 2px, 0) rotate(-0.15deg);
    }
}

@keyframes rcShakeCataclysm {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }

    10% {
        transform: translate3d(-15px, 9px, 0) scale(1.018) rotate(-1deg);
    }

    22% {
        transform: translate3d(14px, -10px, 0) scale(1.014) rotate(0.95deg);
    }

    36% {
        transform: translate3d(-12px, -6px, 0) scale(1.01) rotate(-0.75deg);
    }

    50% {
        transform: translate3d(9px, 7px, 0) scale(1.006) rotate(0.55deg);
    }

    66% {
        transform: translate3d(-6px, -3px, 0) scale(1.003) rotate(-0.3deg);
    }

    82% {
        transform: translate3d(4px, 2px, 0) scale(1.001) rotate(0.15deg);
    }
}

/* ---------------------------------------------------------
   背景星雲・戦術グリッド・ビネット
   --------------------------------------------------------- */
.rc-bg-nebula {
    position: absolute;
    inset: -12%;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 24% 32%, rgba(220, 38, 38, 0.22), transparent 46%),
        radial-gradient(circle at 76% 62%, rgba(147, 51, 234, 0.24), transparent 48%),
        radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.12), transparent 60%);
    animation: rcNebulaPulse 6.5s ease-in-out infinite alternate;
    transition: opacity 0.9s ease;
}

#raidCinematicRoot.is-purified-sky .rc-bg-nebula {
    background:
        radial-gradient(circle at 30% 25%, rgba(250, 204, 21, 0.22), transparent 48%),
        radial-gradient(circle at 72% 35%, rgba(56, 189, 248, 0.14), transparent 50%),
        radial-gradient(circle at 50% 60%, rgba(245, 158, 11, 0.16), transparent 62%);
}

@keyframes rcNebulaPulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.72;
    }

    100% {
        transform: scale(1.07) rotate(2deg);
        opacity: 1;
    }
}

.rc-bg-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.26;
    background-image:
        linear-gradient(to right, rgba(248, 113, 113, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(192, 132, 252, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.85) 10%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.85) 10%, transparent 78%);
    transition: opacity 0.8s ease;
}

#raidCinematicRoot.is-purified-sky .rc-bg-grid {
    opacity: 0.08;
}

.rc-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 12;
    background: radial-gradient(circle at 50% 45%, transparent 38%, rgba(0, 0, 0, 0.78) 100%);
    transition: opacity 0.8s ease;
}

#raidCinematicRoot.is-purified-sky .rc-vignette {
    background: radial-gradient(circle at 50% 45%, transparent 48%, rgba(3, 5, 16, 0.62) 100%);
}

/* ---------------------------------------------------------
   シネマレターボックス（映画的黑帯）
   --------------------------------------------------------- */
.rc-letterbox-top,
.rc-letterbox-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: clamp(28px, 5.5vh, 52px);
    background: #020205;
    z-index: 32;
    pointer-events: none;
    transform: scaleY(0);
    transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), height 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.rc-letterbox-top {
    top: 0;
    transform-origin: top center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rc-letterbox-bottom {
    bottom: 0;
    transform-origin: bottom center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rc-letterbox-top.is-on,
.rc-letterbox-bottom.is-on {
    transform: scaleY(1);
}

#raidCinematicRoot.is-docked .rc-letterbox-top,
#raidCinematicRoot.is-docked .rc-letterbox-bottom {
    height: 10px;
    opacity: 0.8;
}

/* ---------------------------------------------------------
   右上スキップ / 閉じるボタン
   --------------------------------------------------------- */
.rc-top-controls {
    position: absolute;
    top: 10px;
    right: 16px;
    z-index: 42;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rc-skip-btn {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(10, 14, 28, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f8fafc;
    border-radius: 999px;
    padding: 7px 15px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.rc-skip-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(250, 204, 21, 0.75);
    transform: translateY(-1px);
}

/* ---------------------------------------------------------
   Canvas VFX レイヤー (奥・手前)
   --------------------------------------------------------- */
.rc-vfx-canvas-back,
.rc-vfx-canvas-front {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.rc-vfx-canvas-back {
    z-index: 6;
}

.rc-vfx-canvas-front {
    z-index: 28;
}

/* ---------------------------------------------------------
   警戒ハザードリボン（上下）
   --------------------------------------------------------- */
.rc-warning-ribbon {
    position: absolute;
    left: 0;
    right: 0;
    height: 28px;
    z-index: 33;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        repeating-linear-gradient(-45deg,
            rgba(127, 29, 29, 0.94) 0px 14px,
            rgba(185, 28, 28, 0.94) 14px 28px);
    border-top: 1.5px solid rgba(251, 191, 36, 0.8);
    border-bottom: 1.5px solid rgba(251, 191, 36, 0.8);
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.55);
    opacity: 0;
    transform: scaleX(0.92);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.rc-warning-ribbon.top {
    top: 0;
}

.rc-warning-ribbon.bottom {
    bottom: 0;
}

.rc-warning-ribbon.is-on {
    opacity: 1;
    transform: scaleX(1);
}

#raidCinematicRoot.is-docked .rc-warning-ribbon {
    height: 22px;
    opacity: 0.85;
}

.rc-warning-track {
    white-space: nowrap;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    color: #fef3c7;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
    animation: rcRibbonScroll 14s linear infinite;
}

@keyframes rcRibbonScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------------------------------------------------------
   中央 EMERGENCY 警告スタンプ HUD (Act 1 → 亀裂で左右分裂)
   --------------------------------------------------------- */
.rc-alert-stamp {
    position: absolute;
    inset: 0;
    z-index: 26;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: scale(1.18);
    transition: opacity 0.28s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.rc-alert-stamp.is-on {
    opacity: 1;
    transform: scale(1);
}

.rc-alert-frame {
    position: relative;
    width: min(88vw, 500px);
    padding: 20px 18px;
    background: rgba(20, 4, 12, 0.78);
    border: 1.5px solid rgba(248, 113, 113, 0.75);
    box-shadow:
        0 0 40px rgba(239, 68, 68, 0.4),
        inset 0 0 28px rgba(220, 38, 38, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.rc-alert-stamp.is-split .rc-alert-frame {
    transform: scale(1.24) skewX(-8deg);
    opacity: 0;
    filter: blur(4px);
}

.rc-alert-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: #fde047;
    border-style: solid;
}

.rc-alert-corner.tl {
    top: 5px;
    left: 5px;
    border-width: 2.5px 0 0 2.5px;
}

.rc-alert-corner.tr {
    top: 5px;
    right: 5px;
    border-width: 2.5px 2.5px 0 0;
}

.rc-alert-corner.bl {
    bottom: 5px;
    left: 5px;
    border-width: 0 0 2.5px 2.5px;
}

.rc-alert-corner.br {
    bottom: 5px;
    right: 5px;
    border-width: 0 2.5px 2.5px 0;
}

.rc-alert-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fca5a5, #fef08a, #fca5a5, transparent);
    box-shadow: 0 0 14px #ef4444;
    top: 0;
    animation: rcScanDrop 1.2s linear infinite;
}

@keyframes rcScanDrop {
    0% {
        top: 0%;
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0.2;
    }
}

.rc-alert-code {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.35rem, 4.8vw, 2.15rem);
    font-weight: 900;
    letter-spacing: 0.24em;
    color: #fef08a;
    text-shadow: 0 0 18px rgba(239, 68, 68, 0.9), 0 0 36px rgba(250, 204, 21, 0.55);
    animation: rcAlertBlink 0.36s ease-in-out infinite alternate;
}

@keyframes rcAlertBlink {
    from {
        opacity: 0.78;
        transform: scale(0.995);
    }

    to {
        opacity: 1;
        transform: scale(1.015);
    }
}

.rc-alert-sub {
    margin-top: 6px;
    font-size: clamp(0.76rem, 2.3vw, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #fecaca;
}

/* ---------------------------------------------------------
   3D透視SVG魔方陣・背後ハロー・スポットライト・ゴッドレイ
   --------------------------------------------------------- */
.rc-arcane-backdrop {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

/* 3D床召喚陣 */
.rc-altar-3d {
    position: absolute;
    top: 52%;
    left: 50%;
    width: min(90vw, 560px);
    height: min(90vw, 560px);
    transform: translate(-50%, -34%) perspective(880px) rotateX(65deg) scale(0.35);
    opacity: 0;
    transition:
        opacity 0.7s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        top 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.rc-altar-3d.is-on {
    opacity: 0.9;
    transform: translate(-50%, -34%) perspective(880px) rotateX(65deg) scale(1);
}

#raidCinematicRoot.is-docked .rc-altar-3d.is-on {
    top: 38%;
    opacity: 0.52;
    transform: translate(-50%, -34%) perspective(880px) rotateX(66deg) scale(0.76);
}

.rc-altar-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.65)) drop-shadow(0 0 38px rgba(239, 68, 68, 0.42));
}

#raidCinematicRoot.is-purified-sky .rc-altar-svg {
    filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.7)) drop-shadow(0 0 42px rgba(245, 158, 11, 0.35));
}

.rc-altar-ring-1 {
    transform-origin: 250px 250px;
    animation: rcRotateCW 28s linear infinite;
}

.rc-altar-ring-2 {
    transform-origin: 250px 250px;
    animation: rcRotateCCW 18s linear infinite;
}

.rc-altar-ring-3 {
    transform-origin: 250px 250px;
    animation: rcRotateCW 11s linear infinite;
}

/* ボス背後の垂直ハロー（魔法輪 / 月桂冠ハロー） */
.rc-back-halo {
    position: absolute;
    top: 40%;
    left: 50%;
    width: clamp(270px, 56vw, 440px);
    height: clamp(270px, 56vw, 440px);
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition:
        opacity 0.75s ease,
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        top 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.rc-back-halo.is-on {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(1);
}

#raidCinematicRoot.is-docked .rc-back-halo.is-on {
    top: 23%;
    transform: translate(-50%, -50%) scale(0.66);
    opacity: 0.62;
}

.rc-halo-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: rcRotateCW 34s linear infinite;
}

.rc-halo-inner {
    transform-origin: 200px 200px;
    animation: rcRotateCCW 22s linear infinite;
}

/* 劇場スポットライト光線 & 天界光柱 & 2重ゴッドレイ */
.rc-spotlight-beam {
    position: absolute;
    top: -32%;
    width: 44%;
    height: 155%;
    pointer-events: none;
    opacity: 0;
    transform-origin: top center;
    background: linear-gradient(180deg,
            rgba(254, 240, 138, 0.36) 0%,
            rgba(250, 204, 21, 0.14) 48%,
            rgba(250, 204, 21, 0) 88%);
    filter: blur(20px);
    transition: opacity 0.9s ease;
}

.rc-spotlight-beam.is-left {
    left: -6%;
    transform: rotate(-22deg);
}

.rc-spotlight-beam.is-right {
    right: -6%;
    transform: rotate(22deg);
}

.rc-spotlight-beam.is-on.is-left {
    opacity: 0.78;
    animation: rcBeamLeft 7s ease-in-out infinite;
}

.rc-spotlight-beam.is-on.is-right {
    opacity: 0.78;
    animation: rcBeamRight 7.8s ease-in-out infinite;
}

@keyframes rcBeamLeft {

    0%,
    100% {
        transform: rotate(-23deg);
        opacity: 0.62;
    }

    50% {
        transform: rotate(-16deg);
        opacity: 0.92;
    }
}

@keyframes rcBeamRight {

    0%,
    100% {
        transform: rotate(23deg);
        opacity: 0.62;
    }

    50% {
        transform: rotate(16deg);
        opacity: 0.92;
    }
}

.rc-light-pillar {
    position: absolute;
    top: -10%;
    left: 50%;
    width: clamp(180px, 34vw, 310px);
    height: 120%;
    transform: translateX(-50%) scaleX(0.35);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.42) 0%,
            rgba(254, 240, 138, 0.24) 45%,
            rgba(250, 204, 21, 0.06) 80%,
            transparent 100%);
    filter: blur(18px);
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.rc-light-pillar.is-on {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.rc-godrays,
.rc-godrays-secondary {
    position: absolute;
    top: 38%;
    left: 50%;
    width: min(160vw, 1080px);
    height: min(160vw, 1080px);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    opacity: 0;
    transition: opacity 0.95s ease, transform 1s ease, top 0.75s ease;
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 68%);
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 68%);
}

.rc-godrays {
    background: repeating-conic-gradient(from 0deg,
            rgba(254, 240, 138, 0.24) 0deg 8deg,
            transparent 8deg 24deg);
}

.rc-godrays-secondary {
    background: repeating-conic-gradient(from 12deg,
            rgba(251, 191, 36, 0.16) 0deg 5deg,
            transparent 5deg 19deg);
}

.rc-godrays.is-on {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: rcRaySpinCW 36s linear infinite;
}

.rc-godrays-secondary.is-on {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
    animation: rcRaySpinCCW 26s linear infinite;
}

#raidCinematicRoot.is-docked .rc-godrays.is-on,
#raidCinematicRoot.is-docked .rc-godrays-secondary.is-on {
    top: 24%;
}

@keyframes rcRaySpinCW {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rcRaySpinCCW {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes rcRotateCW {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rcRotateCCW {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* ---------------------------------------------------------
   SVG 次元亀裂 & 浄化スーパーノヴァ & 作画インパクトフレーム
   --------------------------------------------------------- */
.rc-rift-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 22;
    opacity: 0;
}

.rc-rift-svg.is-active {
    opacity: 1;
}

.rc-rift-glow {
    fill: none;
    stroke: #c084fc;
    stroke-width: 14;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 18px #a855f7) drop-shadow(0 0 42px #ef4444);
    stroke-dasharray: 2200;
    stroke-dashoffset: 2200;
    opacity: 0.88;
}

.rc-rift-core {
    fill: none;
    stroke: #ffffff;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px #fde047);
    stroke-dasharray: 2200;
    stroke-dashoffset: 2200;
}

.rc-rift-branch {
    fill: none;
    stroke: #f0abfc;
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px #ef4444);
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
}

.rc-rift-svg.is-active .rc-rift-glow,
.rc-rift-svg.is-active .rc-rift-core {
    animation:
        rcDrawStroke 0.44s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        rcRiftHoldFade 0.65s ease 0.72s forwards;
}

.rc-rift-svg.is-active .rc-rift-branch {
    animation:
        rcDrawStroke 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.14s forwards,
        rcRiftHoldFade 0.55s ease 0.72s forwards;
}

@keyframes rcDrawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes rcRiftHoldFade {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* 浄化フラッシュスーパーノヴァ */
.rc-purify-flash {
    position: absolute;
    inset: 0;
    z-index: 31;
    pointer-events: none;
    background: radial-gradient(circle at 50% 42%, #ffffff 0%, #fef08a 38%, rgba(251, 191, 36, 0.45) 68%, transparent 92%);
    opacity: 0;
}

.rc-purify-flash.is-flashing {
    animation: rcSupernovaFlash 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rcSupernovaFlash {
    0% {
        opacity: 0;
        transform: scale(0.72);
    }

    18% {
        opacity: 1;
        transform: scale(1.12);
    }

    100% {
        opacity: 0;
        transform: scale(1.25);
    }
}

/* 作画インパクトフレーム（45〜65msの瞬間高コントラスト閃光） */
.rc-impact-frame {
    position: absolute;
    inset: 0;
    z-index: 34;
    pointer-events: none;
    opacity: 0;
}

.rc-impact-frame.is-hit-crimson {
    background: radial-gradient(circle at 50% 44%, #ffffff 0%, #fee2e2 35%, #991b1b 78%, #000000 100%);
    mix-blend-mode: screen;
    animation: rcImpactSnap 0.16s steps(2, end) forwards;
}

.rc-impact-frame.is-hit-gold {
    background: radial-gradient(circle at 50% 44%, #ffffff 0%, #fef08a 42%, #f59e0b 82%, #000000 100%);
    mix-blend-mode: screen;
    animation: rcImpactSnap 0.18s steps(2, end) forwards;
}

@keyframes rcImpactSnap {
    0% {
        opacity: 0.96;
    }

    45% {
        opacity: 0.72;
    }

    100% {
        opacity: 0;
    }
}

/* ---------------------------------------------------------
   ボスHPバー粉砕ユニット（Victory Act 1）
   --------------------------------------------------------- */
.rc-boss-hp-hud {
    width: min(88vw, 440px);
    margin: 0 auto 10px;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.rc-boss-hp-hud.is-on {
    opacity: 1;
    transform: translateY(0);
}

.rc-boss-hp-hud.is-collapsed {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, height 0.4s ease, margin 0.4s ease;
}

.rc-hp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fca5a5;
    margin-bottom: 4px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.rc-hp-shell {
    position: relative;
    height: 15px;
    display: flex;
    align-items: stretch;
}

.rc-hp-half-left,
.rc-hp-half-right {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.92);
    border-top: 1.5px solid rgba(251, 191, 36, 0.72);
    border-bottom: 1.5px solid rgba(251, 191, 36, 0.72);
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.rc-hp-half-left {
    border-left: 1.5px solid rgba(251, 191, 36, 0.72);
    border-radius: 999px 0 0 999px;
}

.rc-hp-half-right {
    border-right: 1.5px solid rgba(251, 191, 36, 0.72);
    border-radius: 0 999px 999px 0;
}

.rc-hp-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 10%;
    background: linear-gradient(90deg, #dc2626, #f97316, #fde047);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.85);
    transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.rc-boss-hp-hud.is-shattered .rc-hp-half-left {
    transform: translate(-38px, -14px) rotate(-14deg);
    opacity: 0;
}

.rc-boss-hp-hud.is-shattered .rc-hp-half-right {
    transform: translate(38px, 14px) rotate(16deg);
    opacity: 0;
}

/* ---------------------------------------------------------
   ステージ本体・ヒーロー→ドッキング2段階レイアウト
   --------------------------------------------------------- */
.rc-stage {
    position: relative;
    z-index: 20;
    width: min(95vw, 660px);
    max-height: calc(100dvh - var(--rc-safe-top) - var(--rc-safe-bottom));
    margin-top: var(--rc-safe-top);
    margin-bottom: var(--rc-safe-bottom);
    overflow-y: auto;
    padding: 8px 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(250, 204, 21, 0.35) transparent;
}

.rc-stage::-webkit-scrollbar {
    width: 5px;
}

.rc-stage::-webkit-scrollbar-track {
    background: transparent;
}

.rc-stage::-webkit-scrollbar-thumb {
    background: rgba(250, 204, 21, 0.35);
    border-radius: 999px;
}

/* キッカーラベル */
.rc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(-12px) scale(0.92);
    transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.rc-kicker.is-intro {
    color: #fecaca;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.42), rgba(88, 28, 135, 0.42));
    border: 1px solid rgba(248, 113, 113, 0.65);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.32);
}

.rc-kicker.is-victory {
    color: #fef08a;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.24), rgba(180, 83, 9, 0.28));
    border: 1px solid rgba(250, 204, 21, 0.78);
    box-shadow: 0 0 24px rgba(250, 204, 21, 0.35);
}

.rc-kicker.is-on {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ---------------------------------------------------------
   ボスの主役スプライト舞台（スマート切り抜き対応）
   --------------------------------------------------------- */
.rc-hero-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.rc-sprite-stage {
    position: relative;
    width: clamp(204px, 32vh, 290px);
    height: clamp(204px, 32vh, 290px);
    margin: 4px auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-48px) scale(0.68);
    transition:
        width 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.7s ease,
        opacity 0.45s ease,
        transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
}

#raidCinematicRoot.is-docked .rc-sprite-stage {
    width: clamp(134px, 19vh, 184px);
    height: clamp(134px, 19vh, 184px);
    margin: 2px auto 6px;
}

.rc-sprite-stage.is-on {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.rc-sprite-stage.is-slam-in {
    opacity: 1;
    animation: rcBossDescendSlam 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rcBossDescendSlam {
    0% {
        opacity: 0;
        transform: translateY(-90px) scale(1.42);
    }

    62% {
        opacity: 1;
        transform: translateY(8px) scale(0.95);
    }

    82% {
        transform: translateY(-4px) scale(1.03);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rc-sprite-aura {
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(239, 68, 68, 0.24) 42%, transparent 72%);
    filter: blur(18px);
    z-index: 1;
    pointer-events: none;
    animation: rcAuraBreath 3.2s ease-in-out infinite alternate;
    transition: background 0.8s ease;
}

.rc-sprite-stage.is-purified .rc-sprite-aura {
    background: radial-gradient(circle, rgba(254, 240, 138, 0.65) 0%, rgba(245, 158, 11, 0.32) 45%, transparent 74%);
}

@keyframes rcAuraBreath {
    from {
        transform: scale(0.92);
        opacity: 0.72;
    }

    to {
        transform: scale(1.08);
        opacity: 1;
    }
}

.rc-sprite-shadow {
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 62%;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.78) 0%, transparent 72%);
    z-index: 1;
    pointer-events: none;
}

.rc-portrait-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.65s ease, filter 0.65s ease;
}

/* 切り抜きモード：白背景なし・シルエット密着オーラ */
.rc-sprite-stage.is-cutout .rc-portrait-inner {
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.rc-sprite-stage.is-cutout .rc-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        drop-shadow(0 0 12px rgba(239, 68, 68, 0.48)) drop-shadow(0 0 28px rgba(168, 85, 247, 0.42)) drop-shadow(0 14px 20px rgba(0, 0, 0, 0.75));
    transition: filter 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.rc-sprite-stage.is-cutout.is-purified .rc-portrait-img {
    filter:
        drop-shadow(0 0 16px rgba(254, 240, 138, 0.85)) drop-shadow(0 0 38px rgba(245, 158, 11, 0.52)) drop-shadow(0 12px 22px rgba(0, 0, 0, 0.65));
}

/* フレームモード（非白背景画像・フォールバック） */
.rc-sprite-stage.is-framed .rc-portrait-inner {
    border-radius: 26px;
    overflow: hidden;
    padding: 5px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(168, 85, 247, 0.85), rgba(251, 191, 36, 0.75));
    box-shadow:
        0 0 36px rgba(168, 85, 247, 0.55),
        0 18px 34px rgba(0, 0, 0, 0.75);
}

.rc-sprite-stage.is-framed.is-purified .rc-portrait-inner {
    background: linear-gradient(135deg, #fffbeb, #fde047, #f59e0b, #fef08a);
    box-shadow:
        0 0 46px rgba(250, 204, 21, 0.68),
        0 0 85px rgba(245, 158, 11, 0.35);
}

.rc-sprite-stage.is-framed .rc-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 21px;
    background: #0f172a;
    transition: filter 0.55s ease, transform 0.55s ease;
}

/* 真のシルエット（黒影＋深紅紫リムライト） */
.rc-portrait-img.is-silhouette {
    filter:
        brightness(0) contrast(1.3) drop-shadow(0 0 14px rgba(239, 68, 68, 0.95)) drop-shadow(0 0 36px rgba(168, 85, 247, 0.9)) !important;
    transform: scale(1.06);
}

/* 待機時の威厳ある浮遊 */
.rc-sprite-stage.is-floating .rc-portrait-inner {
    animation: rcBossFloat 3.6s ease-in-out infinite;
}

@keyframes rcBossFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* 被弾・覚醒時の振動＆フラッシュ */
.rc-sprite-stage.is-shuddering .rc-portrait-inner {
    animation: rcBossShudder 0.24s steps(2, end) infinite;
}

@keyframes rcBossShudder {
    0% {
        transform: translate(-4px, 2px);
    }

    33% {
        transform: translate(5px, -2px);
    }

    66% {
        transform: translate(-3px, -2px);
    }

    100% {
        transform: translate(3px, 2px);
    }
}

.rc-sprite-stage.is-hit-flash .rc-portrait-img {
    filter: brightness(2.6) contrast(1.4) drop-shadow(0 0 26px #fef08a) !important;
}

/* RGBクロマティック残像グリッチ */
.rc-sprite-ghost {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
}

.rc-sprite-stage.is-framed .rc-sprite-ghost {
    display: none;
}

.rc-sprite-stage.is-glitching .rc-sprite-ghost.ghost-r {
    opacity: 0.62;
    filter: drop-shadow(-8px 0 0 rgba(239, 68, 68, 0.85)) brightness(1.4);
    animation: rcGhostRed 0.22s steps(2, end) infinite;
}

.rc-sprite-stage.is-glitching .rc-sprite-ghost.ghost-c {
    opacity: 0.56;
    filter: drop-shadow(8px 0 0 rgba(56, 189, 248, 0.85)) brightness(1.4);
    animation: rcGhostCyan 0.2s steps(2, end) infinite;
}

@keyframes rcGhostRed {
    0% {
        transform: translate(-8px, -2px) scale(1.02);
        clip-path: inset(8% 0 42% 0);
    }

    50% {
        transform: translate(7px, 2px) scale(1.01);
        clip-path: inset(48% 0 12% 0);
    }

    100% {
        transform: translate(-6px, 0) scale(1.02);
        clip-path: inset(22% 0 28% 0);
    }
}

@keyframes rcGhostCyan {
    0% {
        transform: translate(9px, 2px) scale(1.01);
        clip-path: inset(52% 0 10% 0);
    }

    50% {
        transform: translate(-7px, -2px) scale(1.02);
        clip-path: inset(12% 0 46% 0);
    }

    100% {
        transform: translate(6px, 0) scale(1.01);
        clip-path: inset(30% 0 24% 0);
    }
}

.rc-portrait-fallback {
    font-size: 4.5rem;
    color: #ef4444;
    filter: drop-shadow(0 0 22px rgba(239, 68, 68, 0.75));
}

.rc-sprite-stage.is-purified .rc-portrait-fallback {
    color: #fde047;
    filter: drop-shadow(0 0 26px rgba(250, 204, 21, 0.9));
}

/* ---------------------------------------------------------
   タイトル・インクブラッシュ帯・金箔オーナメント
   --------------------------------------------------------- */
.rc-title-wrap {
    position: relative;
    width: 100%;
    padding: 4px 12px 2px;
    margin-bottom: 4px;
}

.rc-title-slash-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92vw, 520px);
    height: 44px;
    transform: translate(-50%, -56%) scaleX(0) skewX(-16deg);
    background: linear-gradient(90deg, transparent 0%, rgba(185, 28, 28, 0.88) 18%, rgba(239, 68, 68, 0.72) 50%, rgba(185, 28, 28, 0.88) 82%, transparent 100%);
    border-top: 1px solid rgba(254, 240, 138, 0.55);
    border-bottom: 1px solid rgba(254, 240, 138, 0.55);
    box-shadow: 0 0 32px rgba(220, 38, 38, 0.55);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.rc-title-slash-bg.is-on {
    opacity: 1;
    transform: translate(-50%, -56%) scaleX(1) skewX(-16deg);
}

.rc-victory-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(86vw, 420px);
    margin: 0 auto 4px;
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rc-victory-ornament.is-on {
    opacity: 1;
    transform: scaleX(1);
}

.rc-ornament-line {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #fde047, transparent);
}

.rc-ornament-diamond {
    width: 8px;
    height: 8px;
    background: #fef08a;
    transform: rotate(45deg);
    box-shadow: 0 0 12px #facc15;
}

.rc-boss-title {
    position: relative;
    z-index: 1;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.48rem, 4.8vw, 2.25rem);
    font-weight: 900;
    letter-spacing: 0.28em;
    color: #ffffff;
    text-shadow:
        0 3px 18px rgba(0, 0, 0, 0.95),
        0 0 28px rgba(239, 68, 68, 0.65);
    margin: 0 0 4px;
    opacity: 0;
    transform: translateY(14px) scale(1.16);
    transition:
        opacity 0.42s ease,
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        letter-spacing 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.rc-boss-title.is-on {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0.06em;
}

.rc-boss-title.is-victory {
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    background: linear-gradient(180deg, #ffffff 0%, #fef08a 42%, #f59e0b 84%, #b45309 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 3px 16px rgba(0, 0, 0, 0.92)) drop-shadow(0 0 22px rgba(250, 204, 21, 0.55));
}

.rc-subtitle {
    position: relative;
    z-index: 1;
    font-size: 0.88rem;
    color: #e2e8f0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.45s ease 0.12s, transform 0.45s ease 0.12s;
}

.rc-subtitle.is-on {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------
   セリフ / 討伐メッセージボックス
   --------------------------------------------------------- */
.rc-dialogue-box {
    width: 100%;
    max-width: 540px;
    background: linear-gradient(135deg, rgba(15, 18, 36, 0.88), rgba(26, 16, 40, 0.84));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-left: 4px solid #f59e0b;
    border-radius: 14px;
    padding: 11px 15px;
    margin: 0 auto 10px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #f8fafc;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.42s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        max-height 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.42s ease,
        margin 0.42s ease;
}

.rc-dialogue-box:not(.is-on) {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
    overflow: hidden;
}

.rc-dialogue-box.is-on {
    opacity: 1;
    transform: translateY(0);
    max-height: 260px;
}

.rc-dialogue-speaker {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fbbf24;
    margin-bottom: 3px;
}

.rc-type-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #fde047;
    vertical-align: -2px;
    margin-left: 2px;
    animation: rcCursorBlink 0.7s steps(2, start) infinite;
}

@keyframes rcCursorBlink {
    to {
        opacity: 0;
    }
}

/* ---------------------------------------------------------
   戦術ブリーフィング / 戦績＆称号授与デッキ
   --------------------------------------------------------- */
.rc-panel {
    width: 100%;
    max-width: 560px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition:
        opacity 0.52s ease,
        transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        max-height 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.52s ease;
}

.rc-panel:not(.is-on) {
    max-height: 0;
    margin: 0;
    overflow: hidden;
}

.rc-panel.is-on {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-height: 760px;
}

/* Intro HPゲージ充填バー */
.rc-intro-hp-bar-wrap {
    margin-bottom: 9px;
    text-align: left;
}

.rc-intro-hp-bar-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fca5a5;
    margin-bottom: 4px;
}

.rc-intro-hp-bar-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(248, 113, 113, 0.45);
    overflow: hidden;
}

.rc-intro-hp-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #991b1b, #ef4444, #f97316, #fde047);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
    transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.rc-intro-hp-bar-fill.is-full {
    width: 100%;
}

.rc-brief-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.rc-brief-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(15, 23, 42, 0.65));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    padding: 9px 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.rc-brief-label {
    font-size: 0.69rem;
    color: #cbd5e1;
    margin-bottom: 2px;
}

.rc-brief-val {
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #fde68a;
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.25);
}

/* 称号授与プレート */
.rc-title-award {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(180, 83, 9, 0.22), rgba(30, 41, 59, 0.72));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(250, 204, 21, 0.78);
    border-radius: 15px;
    padding: 13px 16px;
    margin-bottom: 12px;
    box-shadow: 0 0 32px rgba(250, 204, 21, 0.22), inset 0 0 22px rgba(254, 240, 138, 0.1);
}

.rc-title-award::after {
    content: '';
    position: absolute;
    top: -45%;
    left: -65%;
    width: 45%;
    height: 190%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: rotate(22deg);
    animation: rcSheen 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes rcSheen {
    0% {
        left: -65%;
    }

    48%,
    100% {
        left: 135%;
    }
}

.rc-award-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rc-award-icon-orb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef08a, #f59e0b);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.65);
}

/* アクションボタン */
.rc-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.rc-btn-primary {
    background: linear-gradient(135deg, #fde047, #f59e0b, #d97706);
    color: #111827;
    border: 1px solid rgba(254, 249, 195, 0.7);
    border-radius: 999px;
    padding: 10px 24px;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.42);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.rc-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.58);
    filter: brightness(1.06);
    color: #111827;
}

.rc-btn-primary:disabled {
    opacity: 0.78;
    cursor: default;
}

.rc-btn-crimson {
    background: linear-gradient(135deg, #f87171, #dc2626, #991b1b);
    border-color: rgba(254, 202, 202, 0.45);
    color: #ffffff;
    box-shadow: 0 8px 26px rgba(220, 38, 38, 0.48);
}

.rc-btn-crimson:hover:not(:disabled) {
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.65);
}

.rc-btn-ghost {
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 10px 20px;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rc-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    color: #ffffff;
}

/* ---------------------------------------------------------
   レスポンシブ調整（モバイル縦画面・PC低〜中高さ画面対応）
   --------------------------------------------------------- */
@media (max-width: 576px) {
    .rc-stage {
        padding: 10px 12px 14px;
    }

    .rc-brief-grid {
        gap: 6px;
    }

    .rc-brief-card {
        padding: 8px 5px;
    }

    .rc-brief-val {
        font-size: 0.92rem;
    }

    .rc-dialogue-box {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .rc-btn-primary,
    .rc-btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

@media (max-height: 860px) {
    .rc-sprite-stage {
        width: clamp(176px, 28vh, 240px);
        height: clamp(176px, 28vh, 240px);
    }

    #raidCinematicRoot.is-docked .rc-sprite-stage {
        width: clamp(112px, 16vh, 148px);
        height: clamp(112px, 16vh, 148px);
        margin: 2px auto 4px;
    }

    .rc-kicker {
        font-size: 0.7rem;
        padding: 4px 13px;
        margin-bottom: 5px;
    }

    .rc-boss-title {
        font-size: clamp(1.36rem, 3.8vw, 1.95rem);
        margin-bottom: 2px;
    }

    .rc-subtitle {
        font-size: 0.84rem;
        margin-bottom: 7px;
    }

    .rc-dialogue-box.is-on {
        padding: 9px 13px;
        margin-bottom: 8px;
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .rc-brief-grid {
        gap: 7px;
        margin-bottom: 8px;
    }

    .rc-brief-card {
        padding: 7px 6px;
    }

    .rc-brief-val {
        font-size: 0.96rem;
    }

    .rc-title-award {
        padding: 10px 14px;
        margin-bottom: 9px;
    }

    .rc-award-badge-row {
        margin-bottom: 5px;
    }

    .rc-btn-primary,
    .rc-btn-ghost {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

@media (max-height: 700px) {
    .rc-sprite-stage {
        width: clamp(150px, 24vh, 200px);
        height: clamp(150px, 24vh, 200px);
    }

    #raidCinematicRoot.is-docked .rc-sprite-stage {
        width: clamp(92px, 14vh, 124px);
        height: clamp(92px, 14vh, 124px);
        margin: 0 auto 4px;
    }

    .rc-boss-title {
        font-size: clamp(1.2rem, 3.4vw, 1.6rem);
    }

    .rc-title-award .fs-5 {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
}

/* ---------------------------------------------------------
   Reduced Motion (アクセシビリティ配慮)
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    #raidCinematicRoot,
    #raidCinematicRoot *,
    #raidCinematicRoot *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .rc-impact-frame,
    .rc-purify-flash {
        display: none !important;
    }
}