/* ==========================================================================
   FRAVE Dedicated Page Styles
   - Aesthetic: Dark Aero / Minimal Cyber-Industrial
   - Palette: Pure Dark #060609, Neon Cyan #00F0FF, Cyber Gold #FFB800, Hot Pink #FF007A, Crimson #FF334B
   - Typography: 'Saira', 'Noto Sans TC', 'IBM Plex Mono'
   - Complete Viewport & Zoom Scaling Resilience (80% ~ 200%)
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

#frave-page,
#frave-credit-page {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #060609;
    color: #d8d8e6;
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    position: absolute;
    top: 0;
    left: 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
}

/* Custom Sleek Scrollbar */
#frave-page::-webkit-scrollbar,
#frave-credit-page::-webkit-scrollbar {
    width: 6px;
}

#frave-page::-webkit-scrollbar-track,
#frave-credit-page::-webkit-scrollbar-track {
    background: transparent;
}

#frave-page::-webkit-scrollbar-thumb,
#frave-credit-page::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

#frave-page::-webkit-scrollbar-thumb:hover,
#frave-credit-page::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.5);
}

/* Fluid Page Container (Resilient to 80%~200% Zoom) */
.frave-container {
    width: min(100% - 48px, 1200px);
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: clamp(100px, 14vh, 160px);
    min-width: 0;
    position: relative;
    z-index: 2;
    touch-action: pan-y;
}

@media (min-width: 1101px) {
    .frave-container {
        width: min(100% - 280px, 1180px);
    }
}

/* ==========================================================================
   FRAVE Side-Column Minimal Navigation (齊平 01 標題由下而上出現，黏性停駐於左上標題下方)
   ========================================================================== */

.frave-section-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    height: clamp(52px, 8vh, 88px);
    width: 100%;
}

.frave-nav-sticky-wrap {
    position: sticky;
    top: 140px;
    height: 0;
    overflow: visible;
    z-index: 95;
    margin-left: calc(-50vw + 50% + 42px);
    width: max-content;
}

.frave-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.frave-nav-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.74rem;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #666666;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.frave-nav-link:hover {
    color: #aaaaaa;
}

.frave-nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .frave-nav-sticky-wrap {
        display: none !important;
    }
}

/* ==========================================================================
   Base Typography & Hierarchical Contrast
   ========================================================================== */

.frave-container h1:not(.frave-hero-title), 
.frave-container h2, 
.frave-container h3, 
.frave-container h4 {
    font-family: 'IBM Plex Mono', 'Noto Sans TC', sans-serif;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.frave-container p:not(.hero-tagline) {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(0.9rem, 1.15vw, 1rem);
    line-height: 1.85;
    color: #9494a8;
    margin: 0 0 1rem 0;
    font-weight: 400;
    word-break: break-word;
}

.frave-container p.lead-text {
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
    line-height: 1.8;
    color: #f2f2fa;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.frave-container p.body-desc {
    color: #8c8c9e;
    margin-bottom: 0;
}

/* Section Header Typography */
.section-header {
    margin-bottom: clamp(24px, 3.5vw, 36px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.section-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.72rem, 0.9vw, 0.82rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #00F0FF;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.45rem);
    letter-spacing: -0.01em;
    font-weight: 700;
    color: #ffffff;
}

/* Section Structure */
.frave-section {
    position: relative;
    padding-top: clamp(52px, 8vh, 88px);
    padding-bottom: clamp(52px, 8vh, 88px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.frave-section:first-child,
#section-attractions {
    border-top: none;
    padding-top: 0;
}

/* ==========================================================================
   00. Hero Section & Background Video Teaser
   ========================================================================== */

.frave-hero-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(70px, 10vh, 120px);
    padding-bottom: clamp(60px, 8vh, 100px);
    box-sizing: border-box;
    overflow: hidden;
    background: #060609;
}

/* ==========================================================================
   Hero Progressive Media (Instant 149KB WebP Poster -> 60fps Loop Seamless Crossfade)
   ========================================================================== */
.frave-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-bg-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-bg-video.is-loaded {
    opacity: 1;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: 
        /* 水平漸層：左側維持深色保護文字，右側 (52%~100%) 完全通透，100% 釋放立繪與右上霓虹光芒 */
        linear-gradient(to right, 
            rgba(6, 6, 9, 0.94) 0%, 
            rgba(6, 6, 9, 0.78) 24%, 
            rgba(6, 6, 9, 0.22) 42%, 
            transparent 54%, 
            transparent 100%),
        /* 垂直漸層：頂部與右上側完全不壓暗，僅在底部分隔線邊界極微幅漸隱過渡 */
        linear-gradient(to bottom, 
            transparent 0%, 
            transparent 82%, 
            rgba(6, 6, 9, 0.75) 96%, 
            #060609 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-team-logo {
    height: clamp(26px, 3vw, 38px);
    width: auto;
    object-fit: contain;
    margin-left: 0;
    margin-right: auto;
    opacity: 0.9;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.hero-team-logo:hover {
    opacity: 1;
    transform: scale(1.03);
    filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.45));
}

.hero-inner-container {
    width: min(100% - 48px, 1200px);
    margin: 0 auto;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.frave-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.72rem, 1vw, 0.82rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    color: #00F0FF;
    margin-bottom: clamp(32px, 4.8vh, 48px);
    line-height: 1.5;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.meta-divider {
    color: rgba(0, 240, 255, 0.45);
    margin: 0 4px;
}

.frave-container .frave-hero-title,
.frave-hero-title {
    margin: 0 0 clamp(28px, 4vh, 40px) 0 !important;
    line-height: 1;
    display: flex;
    align-items: center;
}

.frave-hero-logo {
    width: clamp(220px, 32vw, 440px);
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.25));
}

.frave-container .hero-tagline,
.hero-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(0.85rem, 1.25vw, 1.05rem);
    letter-spacing: 0.16em;
    color: #a8a8be;
    text-transform: uppercase;
    margin-top: 0 !important;
    margin-bottom: clamp(32px, 4.5vh, 44px) !important;
    max-width: 840px;
    line-height: 1.65;
    text-shadow: none;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: clamp(36px, 5vh, 52px);
}

.frave-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn-primary {
    background: #00F0FF;
    color: #060609;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
    background: #73f7ff;
    box-shadow: 0 0 36px rgba(0, 240, 255, 0.65);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #00F0FF;
    color: #00F0FF;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #9898aa;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-outline:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero Specs Ticker & Attribution */
.hero-specs-ticker {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: clamp(16px, 2.5vw, 36px);
    padding-top: clamp(18px, 2.4vh, 24px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
}

.ticker-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.85rem, 1.35vw, 1.05rem);
    color: #a8a8be;
    letter-spacing: 0.16em;
    line-height: 1.65;
    white-space: nowrap;
}

.ticker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #00F0FF;
    box-shadow: 0 0 8px #00F0FF;
    flex-shrink: 0;
}

/* ==========================================================================
   01. Core Attractions (3 Disruption Cards)
   ========================================================================== */

.attraction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: clamp(20px, 2.5vw, 32px);
    margin-top: clamp(28px, 4vh, 44px);
}

.attraction-card {
    background: rgba(14, 15, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
}

.attraction-img-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #09090e;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.attraction-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attraction-body {
    padding: clamp(22px, 2.8vw, 30px);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.attraction-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #00F0FF;
    margin-bottom: 10px;
}

.attraction-title {
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.attraction-desc {
    font-size: 0.92rem;
    color: #8c8c9e;
    line-height: 1.75;
    margin-bottom: 0;
}

/* ==========================================================================
   Gameplay Demo Video Showcase
   ========================================================================== */
.frave-demo-showcase {
    margin-top: clamp(32px, 4.5vh, 48px);
    width: 100%;
    background: rgba(12, 12, 18, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 32px rgba(0, 240, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.frave-demo-showcase:hover {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.85), 0 0 42px rgba(0, 240, 255, 0.16);
}

.demo-player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.demo-player-box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.demo-player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(14px, 1.8vh, 18px) clamp(18px, 2.4vw, 28px);
    background: rgba(6, 6, 9, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 16px;
    flex-wrap: wrap;
}

.demo-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.demo-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.12);
    color: #00F0FF;
    border: 1px solid rgba(0, 240, 255, 0.32);
}

.demo-title {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(0.88rem, 1.2vw, 1rem);
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.demo-yt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    color: #a8a8be;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
}

.demo-yt-link:hover {
    color: #00F0FF;
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.08);
    transform: translateY(-1px);
}

.demo-yt-link .link-arrow {
    transition: transform 0.25s ease;
}

.demo-yt-link:hover .link-arrow {
    transform: translate(2px, -2px);
}

/* ==========================================================================
   02. Spatial Mechanics (5 Notes Cards, Highlight Wave & Frame)
   ========================================================================== */

.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: clamp(18px, 2.5vw, 28px);
    margin-top: clamp(28px, 4vh, 44px);
}

.note-card {
    background: rgba(13, 14, 22, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: clamp(22px, 2.8vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.35s ease;
    touch-action: pan-y;
}

.note-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.note-card.highlight-tap {
    border-color: rgba(0, 240, 255, 0.35);
    background: linear-gradient(160deg, rgba(0, 240, 255, 0.06) 0%, rgba(13, 14, 22, 0.9) 100%);
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.1);
}

.note-card.highlight-tap:hover {
    border-color: #00F0FF;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 36px rgba(0, 240, 255, 0.3);
}

.note-card.highlight-hold {
    border-color: rgba(255, 184, 0, 0.35);
    background: linear-gradient(160deg, rgba(255, 184, 0, 0.06) 0%, rgba(13, 14, 22, 0.9) 100%);
    box-shadow: 0 0 28px rgba(255, 184, 0, 0.1);
}

.note-card.highlight-hold:hover {
    border-color: #FFB800;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 36px rgba(255, 184, 0, 0.3);
}

.note-card.highlight-touch {
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(13, 14, 22, 0.9) 100%);
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.08);
}

.note-card.highlight-touch:hover {
    border-color: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 36px rgba(255, 255, 255, 0.25);
}

.note-card.highlight-frame {
    border-color: rgba(255, 51, 75, 0.35);
    background: linear-gradient(160deg, rgba(255, 51, 75, 0.06) 0%, rgba(13, 14, 22, 0.9) 100%);
    box-shadow: 0 0 28px rgba(255, 51, 75, 0.1);
}

.note-card.highlight-frame:hover {
    border-color: #FF334B;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 36px rgba(255, 51, 75, 0.3);
}

.note-card.highlight-wave {
    border-color: rgba(255, 117, 172, 0.35);
    background: linear-gradient(160deg, rgba(255, 117, 172, 0.06) 0%, rgba(13, 14, 22, 0.9) 100%);
    box-shadow: 0 0 28px rgba(255, 117, 172, 0.1);
}

.note-card.highlight-wave:hover {
    border-color: #FF75AC;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 36px rgba(255, 117, 172, 0.3);
}

/* ==========================================================================
   KEI-KO 2.0 Interactive Rigged Mascot (45-Part Modular State Machine)
   ========================================================================== */
.frave-mascot-stage {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 280px;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.mascot-rig.keiko-rig {
    --kx: 0;
    --ky: 0;
    position: relative;
    width: min(100%, 440px);
    aspect-ratio: 1880 / 1260;
    margin-bottom: -6%;
    cursor: pointer;
    transform-origin: 36.3% 80%;
    transform: rotate(calc(var(--kx, 0) * 3.2deg)) translate(calc(var(--kx, 0) * 6px), calc(var(--ky, 0) * 4px));
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(0, 240, 255, 0.18));
    transition: transform 0.18s ease-out, filter 0.35s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

.mascot-rig.keiko-rig:hover {
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 26px rgba(0, 240, 255, 0.36));
}

.mascot-rig.keiko-rig.is-charging {
    filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 28px rgba(0, 240, 255, 0.55)) drop-shadow(0 0 16px rgba(255, 117, 172, 0.45));
}

.mascot-rig.keiko-rig.act-pat {
    filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 26px rgba(255, 117, 172, 0.48));
}

.mascot-rig.keiko-rig.act-zl {
    animation: keikoZlChromatic 2.6s steps(1, end) forwards;
}

.keiko-zl-glitch {
    position: absolute;
    inset: -18%;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle at 44% 55%, rgba(0, 240, 255, 0.24) 0%, rgba(124, 58, 237, 0.22) 32%, rgba(255, 35, 140, 0.14) 50%, transparent 68%),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 7px,
            rgba(0, 240, 255, 0.14) 7px,
            rgba(0, 240, 255, 0.14) 9px,
            transparent 9px,
            transparent 16px,
            rgba(255, 35, 140, 0.14) 16px,
            rgba(255, 35, 140, 0.14) 18px
        );
    -webkit-mask-image: radial-gradient(ellipse 46% 44% at 46% 54%, #000 0%, rgba(0, 0, 0, 0.72) 44%, transparent 78%);
    mask-image: radial-gradient(ellipse 46% 44% at 46% 54%, #000 0%, rgba(0, 0, 0, 0.72) 44%, transparent 78%);
    mix-blend-mode: screen;
}

.keiko-rig.act-zl .keiko-zl-glitch {
    animation: keikoZlAuraGlitch 2.6s linear forwards;
}

.keiko-pat-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 6;
}

.keiko-pat-heart {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    transform-origin: 64.3% 25.8%;
    animation: keikoPatHeartFloat 1.05s ease-out forwards;
}

@keyframes keikoPatHeartFloat {
    0% {
        opacity: 0;
        transform: translate(var(--ox, -28%), calc(var(--oy, -6%) + 8px)) scale(calc(0.7 * var(--hs, 0.5))) rotate(var(--hr, 0deg));
    }
    22% {
        opacity: 1;
        transform: translate(calc(var(--ox, -28%) + var(--hx, 0px) * 0.35), calc(var(--oy, -6%) - 8px)) scale(calc(1.12 * var(--hs, 0.5))) rotate(var(--hr, 0deg));
    }
    70% {
        opacity: 0.92;
        transform: translate(calc(var(--ox, -28%) + var(--hx, 0px) * 0.8), calc(var(--oy, -6%) - 28px)) scale(var(--hs, 0.5)) rotate(var(--hr, 0deg));
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--ox, -28%) + var(--hx, 0px)), calc(var(--oy, -6%) - 44px)) scale(calc(0.86 * var(--hs, 0.5))) rotate(var(--hr, 0deg));
    }
}

@keyframes keikoZlChromatic {
    0%, 100% {
        filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(0, 240, 255, 0.18));
    }
    4%, 38%, 68% {
        filter: drop-shadow(-6px 1px 0 rgba(0, 240, 255, 0.92)) drop-shadow(6px -1px 0 rgba(255, 35, 140, 0.92)) drop-shadow(0 0 28px rgba(124, 58, 237, 0.85));
    }
    10%, 41%, 71% {
        filter: drop-shadow(-3px -1px 0 rgba(0, 240, 255, 0.78)) drop-shadow(4px 1px 0 rgba(255, 35, 140, 0.78)) drop-shadow(0 0 24px rgba(90, 90, 255, 0.72));
    }
    16%, 86% {
        filter: drop-shadow(-4px 0 0 rgba(0, 240, 255, 0.82)) drop-shadow(4px 0 0 rgba(255, 35, 140, 0.82)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.78));
    }
}

@keyframes keikoZlAuraGlitch {
    0%, 100% {
        opacity: 0;
        transform: scale(0.86);
    }
    6% {
        opacity: 0.95;
        transform: scale(1.06) skewX(-5deg);
    }
    14% {
        opacity: 0.65;
        transform: scale(1) skewX(3deg);
    }
    36%, 66% {
        opacity: 0.88;
        transform: scale(1.04) translateX(-4px) skewX(-4deg);
    }
    42%, 72% {
        opacity: 0.68;
        transform: scale(1.01) translateX(3px) skewX(2deg);
    }
    88% {
        opacity: 0.4;
        transform: scale(0.96);
    }
}

.mascot-bone,
.mascot-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.keiko-bone-body,
.keiko-bone-tail,
.keiko-bone-ear-l,
.keiko-bone-ear-r,
.keiko-part-wave-l,
.keiko-part-wave-r {
    will-change: transform;
}

.mascot-layer {
    object-fit: contain;
    display: block;
}

/* 1. 精準解剖關節錨點 (依 1880x1260 裁切座標計算) */
.keiko-bone-body {
    transform-origin: 36.3% 78.0%;
    animation: keikoIdleBreath 3.6s ease-in-out infinite;
}

.keiko-ears-clip {
    -webkit-mask-image: radial-gradient(
        ellipse 18.47% 24.45% at 36.20% 65.33%,
        transparent 0%,
        transparent 93%,
        #000 100%
    );
    mask-image: radial-gradient(
        ellipse 18.47% 24.45% at 36.20% 65.33%,
        transparent 0%,
        transparent 93%,
        #000 100%
    );
}

.keiko-bone-ear-l {
    transform-origin: 27.5% 45.5%;
    animation: keikoIdleEarL 3.6s ease-in-out infinite;
}

.keiko-bone-ear-r {
    transform-origin: 47.5% 47.5%;
    animation: keikoIdleEarR 3.6s ease-in-out infinite;
}

.keiko-bone-ear-ornament {
    transform-origin: 27.5% 45.5%;
    animation: keikoIdleEarOrnament 3.6s ease-in-out infinite;
}

.keiko-bone-tail {
    transform-origin: 46.5% 84.0%;
    animation: keikoIdleTail 3.6s ease-in-out infinite;
}

/* 三段箭頭：由尾根向尾尖依序點亮的霓虹跑馬燈 */
.keiko-tail-arrow {
    transform-origin: 72.0% 73.7%;
    animation: keikoArrowChase 1.8s ease-in-out infinite;
}
.keiko-tail-arrow.arrow-1 {
    transform-origin: 72.0% 73.7%;
    animation-delay: 0s;
}
.keiko-tail-arrow.arrow-2 {
    transform-origin: 80.1% 64.4%;
    animation-delay: 0.28s;
}
.keiko-tail-arrow.arrow-3 {
    transform-origin: 88.8% 54.0%;
    animation-delay: 0.56s;
}

.keiko-part-tail-ornament {
    transform-origin: 79.8% 64.3%;
    animation: keikoIdleTailOrnament 3.6s ease-in-out infinite;
}

.keiko-bone-face {
    transform-origin: 35.5% 58.0%;
    transform: translate(calc(var(--kx, 0) * 8.5px), calc(var(--ky, 0) * 6px));
    transition: transform 0.14s ease-out;
}

.keiko-part-tear,
.keiko-emote {
    opacity: 0;
    transition: opacity 0.18s ease;
}

.keiko-part-tear.is-visible,
.keiko-emote.is-visible {
    opacity: 1;
}

.keiko-part-whisker-l {
    transform-origin: 26.5% 64.5%;
    animation: keikoIdleWhiskerL 3.6s ease-in-out infinite;
}

.keiko-part-whisker-r {
    transform-origin: 46.5% 64.5%;
    animation: keikoIdleWhiskerR 3.6s ease-in-out infinite;
}

.keiko-part-hand-l {
    transform-origin: 32.3% 79.0%;
    animation: keikoIdleHandL 3.6s ease-in-out infinite;
}

.keiko-part-hand-r {
    transform-origin: 38.2% 79.5%;
    animation: keikoIdleHandR 3.6s ease-in-out infinite;
}

.keiko-part-wave-l {
    transform-origin: 9.3% 52.1%;
    animation: keikoIdleWaveL 4.2s ease-in-out infinite;
}

.keiko-part-wave-r {
    transform-origin: 63.2% 52.1%;
    animation: keikoIdleWaveR 4.2s ease-in-out infinite;
}

.keiko-emote-wrap {
    transform-origin: 63.5% 30.0%;
}

/* 2. 常態待機呼吸與 5 段尾巴節奏跑馬燈 */
@keyframes keikoIdleBreath {
    0%, 100% { transform: translateY(0) scale(1, 1) rotate(0deg); }
    50% { transform: translateY(-5px) scale(1.01, 0.99) rotate(-0.8deg); }
}

@keyframes keikoIdleEarL {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-2.2deg); }
}

@keyframes keikoIdleEarR {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2.2deg); }
}

@keyframes keikoIdleEarOrnament {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(-3.5deg); }
}

@keyframes keikoIdleTail {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(4.5deg); }
}

@keyframes keikoIdleTailOrnament {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(6.5deg) scale(1.03); }
}

@keyframes keikoArrowChase {
    0%, 100% { transform: scale(1); filter: brightness(1); opacity: 0.88; }
    35% { transform: scale(1.045); filter: brightness(1.45) drop-shadow(0 0 8px rgba(0, 240, 255, 0.7)); opacity: 1; }
    70% { transform: scale(1); filter: brightness(1); opacity: 0.9; }
}

@keyframes keikoIdleWhiskerL {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
}

@keyframes keikoIdleWhiskerR {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-3deg); }
}

@keyframes keikoIdleHandL {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-2px); }
}

@keyframes keikoIdleHandR {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-2px); }
}

@keyframes keikoIdleWaveL {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-9px) rotate(5deg); }
}

@keyframes keikoIdleWaveR {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(8px) rotate(-5deg); }
}

/* 微動作：單耳隨機抖動 */
.keiko-rig.ear-twitch-l .keiko-bone-ear-l,
.keiko-rig.ear-twitch-l .keiko-bone-ear-ornament {
    animation: keikoEarTwitchL 0.42s ease-in-out forwards;
}
.keiko-rig.ear-twitch-r .keiko-bone-ear-r {
    animation: keikoEarTwitchR 0.42s ease-in-out forwards;
}

@keyframes keikoEarTwitchL {
    0%, 100% { transform: rotate(0deg); }
    30% { transform: rotate(-11deg); }
    60% { transform: rotate(5deg); }
}

@keyframes keikoEarTwitchR {
    0%, 100% { transform: rotate(0deg); }
    30% { transform: rotate(11deg); }
    60% { transform: rotate(-5deg); }
}

/* 3. 發呆打瞌睡彩蛋 (is-sleeping) */
.keiko-sleep-zs {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.keiko-rig.is-sleeping .keiko-sleep-zs {
    opacity: 1;
}

.keiko-sleep-z {
    transform-origin: 63.9% 30.8%;
    opacity: 0;
}

.keiko-rig.is-sleeping .keiko-sleep-z.z-1 {
    animation: keikoSleepFloatZ 2.6s ease-in-out infinite;
}

.keiko-rig.is-sleeping .keiko-sleep-z.z-2 {
    animation: keikoSleepFloatZ 2.6s ease-in-out infinite 1.3s;
}

@keyframes keikoSleepFloatZ {
    0% { opacity: 0; transform: translate(0px, 12px) scale(0.75) rotate(-6deg); }
    25% { opacity: 0.95; }
    80% { opacity: 0.7; }
    100% { opacity: 0; transform: translate(22px, -32px) scale(1.12) rotate(8deg); }
}

.keiko-rig.is-sleeping .keiko-bone-body {
    animation: keikoSleepBreath 5.4s ease-in-out infinite;
}
.keiko-rig.is-sleeping .keiko-bone-ear-l,
.keiko-rig.is-sleeping .keiko-bone-ear-ornament {
    animation: keikoSleepEarL 5.4s ease-in-out infinite;
}
.keiko-rig.is-sleeping .keiko-bone-ear-r {
    animation: keikoSleepEarR 5.4s ease-in-out infinite;
}
.keiko-rig.is-sleeping .keiko-bone-tail {
    animation: keikoSleepTail 5.4s ease-in-out infinite;
}
.keiko-rig.is-sleeping .keiko-tail-arrow {
    animation-duration: 3.4s;
    opacity: 0.55;
}

@keyframes keikoSleepBreath {
    0%, 100% { transform: translateY(3px) scale(1.01, 0.99); }
    50% { transform: translateY(7px) scale(1.02, 0.98); }
}
@keyframes keikoSleepEarL {
    0%, 100% { transform: rotate(-10deg) translate(1.5px, 3px); }
    50% { transform: rotate(-13deg) translate(2px, 4px); }
}
@keyframes keikoSleepEarR {
    0%, 100% { transform: rotate(10deg) translate(-1.5px, 3px); }
    50% { transform: rotate(13deg) translate(-2px, 4px); }
}
@keyframes keikoSleepTail {
    0%, 100% { transform: rotate(6deg); }
    50% { transform: rotate(9deg); }
}

/* 4. 蓄力準備狀態 (Hold Pre-Charge for Volition ZL) */
.keiko-rig.is-charging .keiko-bone-body {
    animation: keikoChargeSquash 0.35s ease-in-out infinite;
}
.keiko-rig.is-charging .keiko-part-wave-l,
.keiko-rig.is-charging .keiko-part-wave-r {
    animation: keikoTrembleFast 0.16s linear infinite;
}
.keiko-rig.is-charging .keiko-tail-arrow {
    animation-duration: 0.45s;
}

@keyframes keikoChargeSquash {
    0%, 100% { transform: translateY(4px) scale(1.04, 0.95); }
    50% { transform: translateY(7px) scale(1.06, 0.93) rotate(-1.5deg); }
}

@keyframes keikoTrembleFast {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-3px, 2px) rotate(-4deg); }
    75% { transform: translate(3px, -2px) rotate(4deg); }
}

/* 5. 點擊互動動作群組 (全面對稱 (0px, 0deg) 收尾 + forwards，杜絕回歸瞬移) */

/* A. 開心音符跳躍 (act-happy, 900ms) */
.keiko-rig.act-happy .keiko-bone-body { animation: keikoActJumpBody 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.keiko-rig.act-happy .keiko-bone-ear-l,
.keiko-rig.act-happy .keiko-bone-ear-ornament { animation: keikoActEarPerkyL 0.9s ease-in-out forwards; }
.keiko-rig.act-happy .keiko-bone-ear-r { animation: keikoActEarPerkyR 0.9s ease-in-out forwards; }
.keiko-rig.act-happy .keiko-bone-tail { animation: keikoActWagTail 0.9s ease-in-out forwards; }
.keiko-rig.act-happy .keiko-tail-arrow { animation-duration: 0.55s; }
.keiko-rig.act-happy .keiko-part-tail-ornament { animation: keikoActTailTipPop 0.9s ease-in-out forwards; }
.keiko-rig.act-happy .keiko-part-hand-l { animation: keikoActHandUpL 0.9s ease-in-out forwards; }
.keiko-rig.act-happy .keiko-part-hand-r { animation: keikoActHandUpR 0.9s ease-in-out forwards; }
.keiko-rig.act-happy .keiko-part-wave-l,
.keiko-rig.act-happy .keiko-part-wave-r { animation: keikoActWavePop 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.keiko-rig.act-happy .keiko-emote-wrap { animation: keikoEmotePop 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* B. 撒嬌愛心 (act-love, 950ms) */
.keiko-rig.act-love .keiko-bone-body { animation: keikoActSwayBody 0.95s ease-in-out forwards; }
.keiko-rig.act-love .keiko-bone-ear-l,
.keiko-rig.act-love .keiko-bone-ear-ornament { animation: keikoActEarPerkyL 0.95s ease-in-out forwards; }
.keiko-rig.act-love .keiko-bone-ear-r { animation: keikoActEarPerkyR 0.95s ease-in-out forwards; }
.keiko-rig.act-love .keiko-bone-tail { animation: keikoActWagTail 0.95s ease-in-out forwards; }
.keiko-rig.act-love .keiko-part-hand-l { animation: keikoActHandUpL 0.95s ease-in-out forwards; }
.keiko-rig.act-love .keiko-part-hand-r { animation: keikoActHandUpR 0.95s ease-in-out forwards; }
.keiko-rig.act-love .keiko-emote-wrap { animation: keikoEmoteFloat 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* C. 閃亮自信 Wink (act-sparkle, 900ms) */
.keiko-rig.act-sparkle .keiko-bone-body { animation: keikoActSwayBody 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.keiko-rig.act-sparkle .keiko-bone-tail { animation: keikoActWagTail 0.9s ease-in-out forwards; }
.keiko-rig.act-sparkle .keiko-tail-arrow { animation-duration: 0.55s; }
.keiko-rig.act-sparkle .keiko-part-wave-l { animation: keikoActWaveSpinL 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.keiko-rig.act-sparkle .keiko-part-wave-r { animation: keikoActWaveSpinR 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.keiko-rig.act-sparkle .keiko-emote-wrap { animation: keikoEmotePop 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* D. 嚇一跳 / 驚醒 (act-surprise 850ms & act-wake 900ms) */
.keiko-rig.act-surprise .keiko-bone-body,
.keiko-rig.act-wake .keiko-bone-body { animation: keikoActStartleBody 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.keiko-rig.act-surprise .keiko-bone-ear-l,
.keiko-rig.act-surprise .keiko-bone-ear-ornament,
.keiko-rig.act-wake .keiko-bone-ear-l,
.keiko-rig.act-wake .keiko-bone-ear-ornament { animation: keikoActEarPerkyL 0.85s ease-in-out forwards; }
.keiko-rig.act-surprise .keiko-bone-ear-r,
.keiko-rig.act-wake .keiko-bone-ear-r { animation: keikoActEarPerkyR 0.85s ease-in-out forwards; }
.keiko-rig.act-surprise .keiko-part-tail-ornament,
.keiko-rig.act-wake .keiko-part-tail-ornament { animation: keikoActTailTipPop 0.85s ease-in-out forwards; }
.keiko-rig.act-surprise .keiko-emote-wrap,
.keiko-rig.act-wake .keiko-emote-wrap { animation: keikoEmotePop 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* E. 好奇歪頭 (act-curious, 900ms) */
.keiko-rig.act-curious .keiko-bone-body { animation: keikoActTiltBody 0.9s ease-in-out forwards; }
.keiko-rig.act-curious .keiko-bone-ear-l,
.keiko-rig.act-curious .keiko-bone-ear-ornament { animation: keikoEarTwitchL 0.9s ease-in-out forwards; }
.keiko-rig.act-curious .keiko-emote-wrap { animation: keikoEmoteFloat 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* F. 連戳委屈快哭 (act-pout, 1150ms) */
.keiko-rig.act-pout .keiko-bone-body { animation: keikoActDroopBody 1.15s ease-in-out forwards; }
.keiko-rig.act-pout .keiko-bone-ear-l,
.keiko-rig.act-pout .keiko-bone-ear-ornament { animation: keikoActEarDroopL 1.15s ease-in-out forwards; }
.keiko-rig.act-pout .keiko-bone-ear-r { animation: keikoActEarDroopR 1.15s ease-in-out forwards; }
.keiko-rig.act-pout .keiko-bone-tail { animation: keikoActTailDroop 1.15s ease-in-out forwards; }
.keiko-rig.act-pout .keiko-emote-wrap { animation: keikoEmoteFloat 1.15s ease-in-out forwards; }

/* G. 無語翻白眼 (act-blank, 1250ms) */
.keiko-rig.act-blank .keiko-bone-body { animation: keikoActSighBody 1.25s ease-in-out forwards; }
.keiko-rig.act-blank .keiko-bone-ear-l,
.keiko-rig.act-blank .keiko-bone-ear-ornament { animation: keikoActEarDroopL 1.25s ease-in-out forwards; }
.keiko-rig.act-blank .keiko-bone-ear-r { animation: keikoActEarDroopR 1.25s ease-in-out forwards; }
.keiko-rig.act-blank .keiko-bone-tail { animation: keikoActTailDroop 1.25s ease-in-out forwards; }
.keiko-rig.act-blank .keiko-emote-wrap { animation: keikoEmoteFloat 1.25s ease-in-out forwards; }

/* H. 連戳暴怒炸毛 (act-angry, 1400ms) */
.keiko-rig.act-angry .keiko-bone-body { animation: keikoActAngryBody 1.4s ease-in-out forwards; }
.keiko-rig.act-angry .keiko-bone-ear-l,
.keiko-rig.act-angry .keiko-bone-ear-ornament { animation: keikoActEarDroopL 1.4s ease-in-out forwards; }
.keiko-rig.act-angry .keiko-bone-ear-r { animation: keikoActEarDroopR 1.4s ease-in-out forwards; }
.keiko-rig.act-angry .keiko-part-hand-l { animation: keikoActHandUpL 0.45s ease-in-out 3 forwards; }
.keiko-rig.act-angry .keiko-part-hand-r { animation: keikoActHandUpR 0.45s ease-in-out 3 forwards; }
.keiko-rig.act-angry .keiko-part-wave-l,
.keiko-rig.act-angry .keiko-part-wave-r { animation: keikoTrembleFast 0.16s linear 8 forwards; }
.keiko-rig.act-angry .keiko-emote-wrap { animation: keikoEmoteAngryPulse 0.35s ease-in-out 4 forwards; }

/* I. 摸摸頭愛心撒嬌 (act-pat) */
.keiko-rig.act-pat .keiko-bone-body { animation: keikoActPatBody 0.72s ease-in-out infinite; }
.keiko-rig.act-pat .keiko-bone-ear-l,
.keiko-rig.act-pat .keiko-bone-ear-ornament { animation: keikoActPatEarL 0.72s ease-in-out infinite; }
.keiko-rig.act-pat .keiko-bone-ear-r { animation: keikoActPatEarR 0.72s ease-in-out infinite; }
.keiko-rig.act-pat .keiko-bone-tail { animation: keikoActWagTail 0.72s ease-in-out infinite; }
.keiko-rig.act-pat .keiko-part-hand-l { animation: keikoActHandUpL 0.72s ease-in-out infinite; }
.keiko-rig.act-pat .keiko-part-hand-r { animation: keikoActHandUpR 0.72s ease-in-out infinite; }
.keiko-rig.act-pat .keiko-emote-wrap { animation: keikoEmoteFloat 0.9s ease-in-out infinite; }

/* J. 隱藏款 Volition ZL 數位故障覺醒 (act-zl, 2600ms - 參考 Volition 曲繪) */
.keiko-rig.act-zl .keiko-bone-body { animation: keikoActZLBody 2.6s linear forwards; }
.keiko-rig.act-zl .keiko-bone-ear-l,
.keiko-rig.act-zl .keiko-bone-ear-ornament { animation: keikoActZLEarL 2.6s linear forwards; }
.keiko-rig.act-zl .keiko-bone-ear-r { animation: keikoActZLEarR 2.6s linear forwards; }
.keiko-rig.act-zl .keiko-bone-tail { animation: keikoActWagTail 0.65s ease-in-out 4 forwards; }
.keiko-rig.act-zl .keiko-tail-arrow { animation-duration: 0.24s; }
.keiko-rig.act-zl .keiko-part-tail-ornament { animation: keikoActTailTipPop 0.65s ease-in-out 4 forwards; }
.keiko-rig.act-zl .keiko-part-hand-l { animation: keikoActHandUpL 0.85s ease-in-out 3 forwards; }
.keiko-rig.act-zl .keiko-part-hand-r { animation: keikoActHandUpR 0.85s ease-in-out 3 forwards; }
.keiko-rig.act-zl .keiko-part-wave-l { animation: keikoActZLWaveL 2.6s linear forwards; }
.keiko-rig.act-zl .keiko-part-wave-r { animation: keikoActZLWaveR 2.6s linear forwards; }
.keiko-rig.act-zl .keiko-emote-wrap { animation: keikoActZLEmote 2.6s linear forwards; }

@keyframes keikoActJumpBody {
    0%, 100% { transform: translateY(0) scale(1, 1) rotate(0deg); }
    18% { transform: translateY(7px) scale(1.06, 0.93) rotate(2deg); }
    46% { transform: translateY(-20px) scale(0.96, 1.05) rotate(-4deg); }
    74% { transform: translateY(3px) scale(1.03, 0.97) rotate(1deg); }
}

@keyframes keikoActSwayBody {
    0%, 100% { transform: translateY(0) scale(1, 1) rotate(0deg); }
    28% { transform: translateY(-8px) scale(1.02, 0.99) rotate(-5.5deg); }
    64% { transform: translateY(-5px) scale(1.01, 1) rotate(4.5deg); }
}

@keyframes keikoActTiltBody {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    35%, 68% { transform: translateY(-4px) rotate(-7deg); }
}

@keyframes keikoActStartleBody {
    0%, 100% { transform: translateY(0) scale(1, 1) rotate(0deg); }
    22% { transform: translateY(-18px) scale(0.96, 1.07) rotate(-2deg); }
    52% { transform: translateY(3px) scale(1.03, 0.96) rotate(1deg); }
}

@keyframes keikoActDroopBody {
    0%, 100% { transform: translateY(0) scale(1, 1) rotate(0deg); }
    25%, 70% { transform: translateY(7px) scale(1.03, 0.96) rotate(-2deg); }
    40% { transform: translateY(8px) scale(1.04, 0.95) rotate(-3deg); }
    55% { transform: translateY(7px) scale(1.03, 0.96) rotate(-1deg); }
}

@keyframes keikoActSighBody {
    0%, 100% { transform: translateY(0) scale(1, 1); }
    30%, 72% { transform: translateY(8px) scale(1.03, 0.96); }
}

@keyframes keikoActAngryBody {
    0%, 100% { transform: translate(0, 0) scale(1, 1) rotate(0deg); }
    15% { transform: translate(-4px, -6px) scale(1.04, 0.97) rotate(-3deg); }
    30% { transform: translate(4px, -4px) scale(1.03, 0.98) rotate(3deg); }
    45% { transform: translate(-4px, -7px) scale(1.04, 0.97) rotate(-2.5deg); }
    60% { transform: translate(3px, -5px) scale(1.03, 0.98) rotate(2.5deg); }
    78% { transform: translate(-2px, -3px) scale(1.02, 0.99) rotate(-1.5deg); }
}

@keyframes keikoActPatBody {
    0%, 100% { transform: translateY(4px) scale(1.045, 0.945) rotate(-2.8deg); }
    50% { transform: translateY(6px) scale(1.05, 0.94) rotate(2.8deg); }
}

@keyframes keikoActPatEarL {
    0%, 100% { transform: rotate(-7deg) translate(1.5px, 2px); }
    50% { transform: rotate(-2deg) translate(1px, 1px); }
}

@keyframes keikoActPatEarR {
    0%, 100% { transform: rotate(2deg) translate(-1px, 1px); }
    50% { transform: rotate(7deg) translate(-1.5px, 2px); }
}

@keyframes keikoActZLBody {
    0%, 100% { transform: translate(0, 0) scale(1, 1) rotate(0deg) skewX(0deg); }
    4% { transform: translate(-6px, -12px) scale(0.98, 1.05) rotate(-2deg) skewX(-6deg); }
    8% { transform: translate(6px, -10px) scale(1.03, 0.98) rotate(2deg) skewX(5deg); }
    12% { transform: translate(-3px, -14px) scale(1.02, 1.01) rotate(-1deg) skewX(-2deg); }
    16%, 35% { transform: translate(0, -13px) scale(1.035, 1.035) rotate(0deg) skewX(0deg); }
    36% { transform: translate(-7px, -15px) scale(1.04, 1.01) rotate(-2deg) skewX(-7deg); }
    38% { transform: translate(5px, -11px) scale(1.02, 1.05) rotate(1.5deg) skewX(5deg); }
    40%, 65% { transform: translate(0, -14px) scale(1.035, 1.035) rotate(0deg) skewX(0deg); }
    66% { transform: translate(6px, -15px) scale(1.03, 1.02) rotate(2deg) skewX(6deg); }
    68% { transform: translate(-6px, -11px) scale(1.04, 1.01) rotate(-2deg) skewX(-6deg); }
    70%, 86% { transform: translate(0, -12px) scale(1.03, 1.03) rotate(0deg) skewX(0deg); }
    94% { transform: translate(0, -4px) scale(1.01, 1.01) rotate(0deg) skewX(0deg); }
}

@keyframes keikoActZLEarL {
    0%, 100% { transform: rotate(0deg) translate(0, 0); }
    6%, 38%, 68% { transform: rotate(-11deg) translate(-2px, -2px); }
    16%, 60%, 84% { transform: rotate(-5deg) scale(1.04); }
}

@keyframes keikoActZLEarR {
    0%, 100% { transform: rotate(0deg) translate(0, 0); }
    6%, 38%, 68% { transform: rotate(11deg) translate(2px, -2px); }
    16%, 60%, 84% { transform: rotate(5deg) scale(1.04); }
}

@keyframes keikoActZLWaveL {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    10% { transform: translate(-14px, -6px) rotate(-24deg) scale(1.12); }
    38% { transform: translate(-18px, -10px) rotate(150deg) scale(1.15); }
    68% { transform: translate(-14px, -8px) rotate(330deg) scale(1.12); }
    88% { transform: translate(-6px, -2px) rotate(355deg) scale(1.04); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

@keyframes keikoActZLWaveR {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    10% { transform: translate(14px, -6px) rotate(24deg) scale(1.12); }
    38% { transform: translate(18px, -10px) rotate(-150deg) scale(1.15); }
    68% { transform: translate(14px, -8px) rotate(-330deg) scale(1.12); }
    88% { transform: translate(6px, -2px) rotate(-355deg) scale(1.04); }
    100% { transform: translate(0, 0) rotate(-360deg) scale(1); }
}

@keyframes keikoActZLEmote {
    0%, 100% { transform: translate(0, 0) scale(1) skewX(0deg); }
    8% { transform: translate(-4px, -12px) scale(1.2) skewX(-6deg); }
    18%, 64% { transform: translate(0, -10px) scale(1.12) skewX(0deg); }
    38%, 68% { transform: translate(4px, -13px) scale(1.18) skewX(6deg); }
    86% { transform: translate(0, -5px) scale(1.05) skewX(0deg); }
}

@keyframes keikoActEarPerkyL {
    0%, 100% { transform: rotate(0deg) scale(1); }
    30%, 60% { transform: rotate(-10deg) scale(1.05); }
}

@keyframes keikoActEarPerkyR {
    0%, 100% { transform: rotate(0deg) scale(1); }
    30%, 60% { transform: rotate(10deg) scale(1.05); }
}

@keyframes keikoActEarDroopL {
    0%, 100% { transform: rotate(0deg) translate(0, 0); }
    25%, 75% { transform: rotate(-14deg) translate(2px, 4px); }
}

@keyframes keikoActEarDroopR {
    0%, 100% { transform: rotate(0deg) translate(0, 0); }
    25%, 75% { transform: rotate(14deg) translate(-2px, 4px); }
}

@keyframes keikoActWagTail {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(13deg); }
    55% { transform: rotate(-10deg); }
    80% { transform: rotate(7deg); }
}

@keyframes keikoActTailDroop {
    0%, 100% { transform: rotate(0deg); }
    35%, 70% { transform: rotate(10deg) translateY(4px); }
}

@keyframes keikoActTailTipPop {
    0%, 100% { transform: rotate(0deg) scale(1); }
    35% { transform: rotate(16deg) scale(1.08); }
    68% { transform: rotate(-10deg) scale(1.03); }
}

@keyframes keikoActHandUpL {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    35% { transform: rotate(22deg) translateY(-6px); }
    68% { transform: rotate(-10deg) translateY(-2px); }
}

@keyframes keikoActHandUpR {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    35% { transform: rotate(-22deg) translateY(-6px); }
    68% { transform: rotate(10deg) translateY(-2px); }
}

@keyframes keikoActWavePop {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    40% { transform: translateY(-18px) scale(1.12) rotate(10deg); }
}

@keyframes keikoActWaveSpinL {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    45% { transform: translateY(-14px) translateX(6px) rotate(180deg) scale(1.1); }
}

@keyframes keikoActWaveSpinR {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    45% { transform: translateY(-14px) translateX(-6px) rotate(-180deg) scale(1.1); }
}

@keyframes keikoEmotePop {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    25% { transform: translateY(-10px) scale(1.14) rotate(6deg); }
    55% { transform: translateY(-4px) scale(1.04) rotate(-3deg); }
}

@keyframes keikoEmoteFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-9px) scale(1.06); }
}

@keyframes keikoEmoteAngryPulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3px, -5px) scale(1.14) rotate(5deg); }
}

/* 點擊 / Volition ZL 覺醒音符波紋光環 */
.mascot-hit-ring {
    position: absolute;
    left: 36%;
    top: 56%;
    width: 112px;
    height: 112px;
    margin-left: -56px;
    margin-top: -56px;
    border-radius: 50%;
    border: 2px solid #00F0FF;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.7), inset 0 0 12px rgba(0, 240, 255, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.2);
}

.mascot-hit-ring.ring-zl {
    border-color: #D946EF;
    box-shadow: 0 0 26px rgba(217, 70, 239, 0.9), 0 0 42px rgba(0, 240, 255, 0.55), inset 0 0 16px rgba(255, 42, 133, 0.5);
}

.mascot-hit-ring.is-bursting {
    animation: keikoHitRipple 0.68s cubic-bezier(0.16, 1, 0.3, 1);
}

.mascot-hit-ring.ring-zl.is-bursting {
    animation: keikoHitRipple 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

.keiko-rig.act-love .mascot-hit-ring:not(.ring-zl),
.keiko-rig.act-angry .mascot-hit-ring:not(.ring-zl) {
    border-color: #FF75AC;
    box-shadow: 0 0 18px rgba(255, 117, 172, 0.75), inset 0 0 12px rgba(255, 117, 172, 0.4);
}

.keiko-rig.act-sparkle .mascot-hit-ring:not(.ring-zl),
.keiko-rig.act-surprise .mascot-hit-ring:not(.ring-zl) {
    border-color: #FFB800;
    box-shadow: 0 0 18px rgba(255, 184, 0, 0.75), inset 0 0 12px rgba(255, 184, 0, 0.4);
}

@keyframes keikoHitRipple {
    0% {
        opacity: 0.95;
        transform: scale(0.35);
    }
    100% {
        opacity: 0;
        transform: scale(2.2);
    }
}

.note-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.note-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.1em;
}

.note-dim-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    color: #00F0FF;
}

.tag-tap {
    background: rgba(0, 240, 255, 0.15);
    color: #00F0FF;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.tag-hold {
    background: rgba(255, 184, 0, 0.15);
    color: #FFB800;
    border: 1px solid rgba(255, 184, 0, 0.3);
}

.tag-touch {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.tag-frame {
    background: rgba(255, 51, 75, 0.15);
    color: #FF334B;
    border: 1px solid rgba(255, 51, 75, 0.3);
}

.tag-air {
    background: rgba(255, 117, 172, 0.15);
    color: #FF75AC;
    border: 1px solid rgba(255, 117, 172, 0.3);
}

.tag-mascot {
    background: rgba(0, 240, 255, 0.15);
    color: #00F0FF;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.note-icon-wrap {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    align-self: center;
    margin: 4px 0;
}

.note-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.note-title-row h3 {
    font-size: 1.25rem;
    color: #ffffff;
}

.note-signature-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    background: #FF75AC;
    color: #ffffff;
    letter-spacing: 0.1em;
}

.note-card p {
    font-size: 0.9rem;
    color: #9292a4;
    line-height: 1.75;
    margin-bottom: 0;
}

.note-media-preview {
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 6px;
    overflow: hidden;
    margin: 4px 0 6px 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: #08080d;
}

.note-media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.note-card:hover .note-media-preview img {
    transform: scale(1.03);
}

/* Rating (X+) & Special Badges (ZL / MB) Showcase Strip */
.rating-showcase-wrap {
    margin-top: clamp(32px, 4.5vh, 48px);
    padding-top: clamp(24px, 3.5vh, 36px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    touch-action: pan-y;
}

.rating-sub-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

.rating-sub-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #00F0FF;
}

.rating-sub-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

.rating-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(16px, 2vw, 24px);
    touch-action: pan-y;
}

.rating-badge-card {
    background: rgba(13, 14, 22, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, transform 0.3s ease;
    touch-action: pan-y;
}

.rating-badge-card:hover {
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.rating-badge-card.card-xplus {
    border-color: rgba(0, 240, 255, 0.28);
}

.rating-badge-card.card-zl {
    border-color: rgba(255, 236, 0, 0.28);
}

.rating-badge-card.card-mb {
    border-color: rgba(255, 176, 0, 0.32);
}

.rating-icon-box {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px;
}

.rating-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.rating-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rating-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.rating-info h4 {
    font-family: 'IBM Plex Mono', 'Noto Sans TC', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.rating-info p {
    font-size: 0.85rem;
    color: #9292a4;
    line-height: 1.55;
    margin: 2px 0 0 0;
}

/* ==========================================================================
   03. Featured Tracklist (YouTube Links)
   ========================================================================== */

.track-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(18px, 2.5vw, 26px);
    margin-top: clamp(20px, 3vh, 32px);
}

.track-item,
a.track-item {
    background: rgba(13, 14, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    color: inherit;
    font-weight: 400;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.track-item:hover,
a.track-item:hover {
    color: inherit;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}

.track-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    background-color: #101018;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.track-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.track-item:hover .track-cover-wrap img {
    transform: scale(1.04);
}

.track-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(6, 6, 9, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.25s ease;
    opacity: 0.78;
    z-index: 3;
    pointer-events: none;
}

.track-item:hover .track-play-btn {
    opacity: 1;
    background: #ffffff;
    border-color: #ffffff;
    color: #060609;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.06);
}

.track-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.track-title {
    font-family: 'IBM Plex Mono', 'Noto Sans TC', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.track-composer {
    font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
    font-size: 0.78rem;
    color: #00F0FF;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.track-lv {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9494a8;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   04. Physical Experience & Proven Traction (YODEX Exhibition)
   ========================================================================== */

.traction-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: clamp(32px, 5vh, 48px);
}

.traction-stat-card {
    background: rgba(14, 15, 24, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(10px);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 700;
    color: #00F0FF;
}

.stat-badge-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.stat-desc {
    font-size: 0.84rem;
    color: #8c8c9e;
    line-height: 1.55;
}

/* Main Cabinet & Exhibition Gallery */
.cabinet-feature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 3.5vw, 40px);
    align-items: start;
    margin-bottom: clamp(28px, 4vh, 40px);
}

.cabinet-main-view {
    background: rgba(14, 15, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.cabinet-main-view img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.cabinet-specs-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-bullet {
    display: flex;
    gap: 12px;
    font-size: 0.88rem;
    color: #b0b0c4;
    line-height: 1.6;
}

.spec-bullet-num {
    font-family: 'IBM Plex Mono', monospace;
    color: #00F0FF;
    font-weight: 600;
    flex-shrink: 0;
}

.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(16px, 2.2vw, 24px);
}

.exhibition-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.exhibition-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    transition: transform 0.35s ease, border-color 0.3s ease;
    background-color: #0d0d14;
}

.exhibition-card:hover img {
    transform: scale(1.02);
}

.card-caption {
    font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
    font-size: 0.75rem;
    color: #727284;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

/* ==========================================================================
   05. System & Authoring Toolchain Ecosystem
   ========================================================================== */

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: clamp(24px, 3.5vw, 36px);
    margin-top: clamp(28px, 4vh, 44px);
}

.system-card {
    background: rgba(14, 15, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
}

.system-card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #09090e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.system-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.system-card-body {
    padding: clamp(22px, 2.8vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #00F0FF;
}

.system-card-body h3 {
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    color: #ffffff;
}

.system-card-body p {
    font-size: 0.92rem;
    color: #8c8c9e;
    line-height: 1.75;
    margin-bottom: 0;
}

/* ==========================================================================
   06. Partnership & Business Inquiry
   ========================================================================== */

.partnership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(20px, 2.5vw, 28px);
    margin-top: clamp(28px, 4vh, 44px);
    margin-bottom: clamp(32px, 5vh, 48px);
}

@media (min-width: 760px) {
    .partnership-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.exhibition-upcoming-banner {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(14, 15, 24, 0.85) 55%, rgba(255, 117, 172, 0.06) 100%);
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: 8px;
    padding: clamp(22px, 3vw, 32px);
    margin-top: clamp(20px, 3vh, 28px);
    margin-bottom: clamp(24px, 3.5vh, 36px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.upcoming-banner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.upcoming-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #00F0FF;
    text-transform: uppercase;
}

.upcoming-booth-pill {
    font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #060609;
    background: #00F0FF;
    padding: 4px 12px;
    border-radius: 3px;
}

.exhibition-upcoming-banner h3 {
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    color: #ffffff;
    margin: 0;
}

.exhibition-upcoming-banner .upcoming-lead {
    font-size: 0.94rem;
    color: #c8cde0;
    line-height: 1.75;
    margin: 0;
}

.upcoming-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.upcoming-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #b4b9cc;
    line-height: 1.65;
}

.upcoming-highlight-dot {
    font-family: 'IBM Plex Mono', monospace;
    color: #FF75AC;
    font-weight: 700;
    flex-shrink: 0;
}

.partner-card {
    background: rgba(14, 15, 24, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: clamp(22px, 2.8vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.partner-index {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #00F0FF;
    letter-spacing: 0.15em;
}

.partner-card h3 {
    font-size: 1.15rem;
    color: #ffffff;
}

.partner-card p {
    font-size: 0.9rem;
    color: #8c8c9e;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ==========================================================================
   07. Creator Profile Card & Team Frave Footer
   ========================================================================== */

.creator-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 2.8vw, 28px);
    margin-top: clamp(24px, 3.5vh, 36px);
}

.creator-profile-card {
    background: linear-gradient(135deg, rgba(14, 15, 24, 0.82) 0%, rgba(20, 22, 36, 0.62) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: clamp(24px, 3.2vw, 34px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.creator-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 52px;
}

.creator-profile-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.creator-role-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #00F0FF;
    letter-spacing: 0.14em;
}

.creator-profile-head h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0;
}

.creator-inline-logo {
    height: 30px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.92;
    flex-shrink: 0;
}

/* 可點擊進入 Credit 頁面之 Team Frave 團隊卡片 */
a.creator-team-card {
    text-decoration: none;
    color: inherit;
    font-weight: inherit;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

a.creator-team-card:hover {
    color: inherit;
    border-color: rgba(0, 240, 255, 0.45);
    background: linear-gradient(135deg, rgba(16, 20, 34, 0.9) 0%, rgba(0, 240, 255, 0.08) 100%);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48), 0 0 24px rgba(0, 240, 255, 0.12);
}

.creator-card-cta {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #00F0FF;
}

.creator-card-cta .link-arrow {
    font-size: 1rem;
    transition: transform 0.25s ease;
}

a.creator-team-card:hover .creator-card-cta .link-arrow {
    transform: translate(3px, -3px);
}

@media (max-width: 820px) {
    .creator-split-grid {
        grid-template-columns: 1fr;
    }
}

.creator-card {
    background: linear-gradient(135deg, rgba(14, 15, 24, 0.8) 0%, rgba(20, 22, 36, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: clamp(24px, 3.5vw, 36px);
    margin-top: clamp(24px, 3.5vh, 36px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: clamp(24px, 3.5vw, 40px);
}

.creator-logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: clamp(24px, 3vw, 36px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.creator-team-logo {
    width: clamp(160px, 16vw, 215px);
    height: auto;
    display: block;
    object-fit: contain;
    opacity: 0.94;
}

.creator-desc {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: #d1d5e5;
    line-height: 1.85;
    margin: 0 !important;
    font-weight: 400;
    letter-spacing: 0.02em;
    min-width: 0;
}

.frave-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: clamp(28px, 4vh, 40px);
    margin-top: clamp(8px, 1.5vh, 20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.frave-footer-logo {
    height: 26px;
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 0.72;
}

.frave-footer-copy {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #666678;
}

@media (max-width: 720px) {
    .creator-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .creator-logo-wrap {
        padding-right: 0;
        padding-bottom: 18px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        justify-content: flex-start;
    }
}

.contact-action-banner {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(13, 14, 22, 0.9) 100%);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 8px;
    padding: clamp(28px, 4vw, 44px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.contact-info h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    color: #ffffff;
    margin-bottom: 8px;
}

.contact-info p {
    font-size: 0.92rem;
    color: #9da0b8;
    margin-bottom: 0;
}

.contact-btn-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-simple-footer {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.88rem;
    color: #8c8c9e;
}

.contact-simple-footer a {
    color: #00F0FF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-simple-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   Direct Landing Optimization (直接連結載入零白屏與全域控件配合)
   ========================================================================== */

html.is-frave-landing,
html.is-frave-landing body {
    background-color: #060609 !important;
}

html.is-frave-landing:not(.is-frave-credit-landing) #frave-page {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

html.is-frave-credit-landing #frave-credit-page {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

html.is-frave-landing #entry-screen {
    display: none !important;
}

/* 在 Frave 深色背景下強制反白全域導覽標題、下方選單與返回按鈕，實現無縫接軌 */
body.state-frave .global-title,
html.is-frave-landing .global-title {
    color: #ffffff !important;
}

body.state-frave .global-title::after,
html.is-frave-landing .global-title::after {
    color: #000000 !important;
    background-color: #ffffff !important;
}

body.state-frave #entry-links .entry-link,
html.is-frave-landing #entry-links .entry-link {
    color: #666666 !important;
}

body.state-frave #entry-links #entry-project,
html.is-frave-landing #entry-links #entry-project {
    color: #ffffff !important;
}

body.state-frave #entry-links .entry-link::after,
html.is-frave-landing #entry-links .entry-link::after {
    background-color: #ffffff !important;
    color: #000000 !important;
}

body.state-frave .bottom-gradient-mask,
html.is-frave-landing .bottom-gradient-mask {
    opacity: 1 !important;
    visibility: visible !important;
    background: linear-gradient(to top, rgba(6, 6, 9, 1) 0%, rgba(6, 6, 9, 0.5) 50%, rgba(6, 6, 9, 0) 100%) !important;
}

body.state-frave .global-back-btn,
html.is-frave-landing .global-back-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(0) !important;
}

body.state-frave .global-back-btn:hover,
html.is-frave-landing .global-back-btn:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* ==========================================================================
   Scroll Animation Classes (由上而下階梯串流滑入)
   ========================================================================== */

.frave-anim-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.frave-anim-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 確保卡片在顯示後 Hover 能正常運作 */
.attraction-card.is-visible:hover,
.note-card.is-visible:hover,
.track-item.is-visible:hover,
.exhibition-card.is-visible:hover,
.system-card.is-visible:hover,
.partner-card.is-visible:hover {
    transform: translateY(-3px);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }

/* ==========================================================================
   Smooth Image Rendering (配合全域預載與 GPU 解碼池即時呈現)
   ========================================================================== */

.frave-container img {
    image-rendering: auto;
}

/* ==========================================================================
   Responsive Breakpoints & Zoom Adaptations (80% ~ 200% Zoom)
   ========================================================================== */

@media (max-width: 960px) {
    .cabinet-feature-layout {
        grid-template-columns: 1fr;
    }
    .system-grid {
        grid-template-columns: 1fr;
    }
    .track-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .frave-container {
        width: min(100% - 32px, 1200px);
        padding-top: 0;
        padding-bottom: 100px;
    }
    .frave-hero-wrapper {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-top: 80px;
        padding-bottom: clamp(92px, 13vh, 120px);
    }
    .hero-bg-poster,
    .hero-bg-video {
        object-position: 69% center;
    }
    .hero-bg-overlay {
        background:
            /* 手機版垂直漸層：上半部完全通透突顯角色臉部與上半身，下半部文字區柔和加深保護閱讀對比 */
            linear-gradient(to bottom,
                rgba(6, 6, 9, 0.18) 0%,
                transparent 14%,
                transparent 36%,
                rgba(6, 6, 9, 0.54) 52%,
                rgba(6, 6, 9, 0.82) 68%,
                rgba(6, 6, 9, 0.92) 86%,
                #060609 100%),
            /* 手機版水平漸層：延伸左側與中段暗部保護範圍，避免標語與角色腿部亮面撞色 */
            linear-gradient(to right,
                rgba(6, 6, 9, 0.84) 0%,
                rgba(6, 6, 9, 0.56) 56%,
                rgba(6, 6, 9, 0.24) 84%,
                transparent 100%);
    }
    .frave-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: clamp(18px, 3vh, 26px) !important;
        text-shadow: 0 2px 10px rgba(6, 6, 9, 0.95), 0 0 18px rgba(6, 6, 9, 0.88);
    }
    .meta-divider {
        display: none;
    }
    .frave-hero-title {
        width: 100%;
        margin-bottom: clamp(22px, 3.5vh, 30px) !important;
    }
    .frave-container .hero-tagline,
    .hero-tagline {
        color: #eef0f8;
        font-size: clamp(0.76rem, 3.2vw, 0.9rem);
        letter-spacing: 0.13em;
        line-height: 1.75;
        max-width: 320px;
        margin-bottom: clamp(20px, 3vh, 28px) !important;
        text-shadow:
            0 2px 8px rgba(6, 6, 9, 0.98),
            0 0 18px rgba(6, 6, 9, 0.95),
            0 0 32px rgba(6, 6, 9, 0.9);
    }
    .frave-hero-logo {
        width: min(82vw, 310px);
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .frave-cta-btn {
        width: 100%;
    }
    .track-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .contact-action-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-btn-group {
        width: 100%;
        flex-direction: column;
    }
    .frave-demo-showcase {
        margin-top: 24px;
        border-radius: 10px;
    }
    .demo-player-bar {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .demo-yt-link {
        width: 100%;
        justify-content: center;
        padding: 8px 14px;
    }

    /* Mobile WebView & Threads In-App Browser Smooth Scrolling Optimizations */
    .note-card,
    .rating-badge-card,
    .exhibition-upcoming-banner,
    .creator-profile-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        touch-action: pan-y;
    }

    .note-card,
    .rating-badge-card {
        background: rgba(13, 14, 22, 0.94) !important;
    }

    .frave-mascot-stage {
        min-height: 240px;
        margin-bottom: 8px;
        touch-action: pan-y;
    }

    .mascot-rig {
        margin-bottom: 0 !important;
        touch-action: pan-y;
    }
}

@media (max-width: 500px) {
    .frave-container,
    .frave-credit-container {
        width: calc(100% - var(--mobile-gutter, 16px) * 2);
    }
    .track-gallery {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

/* ==========================================================================
   FRAVE Credits Page Styles (frave-credit.html & #frave-credit-page)
   ========================================================================== */

.frave-credit-container {
    width: min(100% - 48px, 1140px);
    margin: 0 auto;
    padding-top: clamp(32px, 5vh, 56px);
    padding-bottom: clamp(100px, 14vh, 150px);
    min-width: 0;
    position: relative;
    z-index: 2;
    touch-action: pan-y;
}

#frave-credit-page .frave-credit-container {
    padding-top: clamp(118px, 14vh, 148px);
    padding-bottom: clamp(120px, 15vh, 160px);
}

body .frave-credit-container a,
.frave-credit-container a {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.frave-credit-container a:hover {
    color: inherit;
}

/* Top Bar */
.credit-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: clamp(28px, 4.5vh, 48px);
}

.credit-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #e2e8f0 !important;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.credit-back-link .back-arrow {
    transition: transform 0.25s ease;
}

.credit-back-link:hover {
    border-color: #00F0FF;
    color: #00F0FF !important;
    background: rgba(0, 240, 255, 0.08);
}

.credit-back-link:hover .back-arrow {
    transform: translateX(-3px);
}

.credit-header-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
    opacity: 0.86;
}

/* Credit Hero Header */
.credit-hero {
    margin-bottom: clamp(36px, 5.5vh, 56px);
}

.credit-eyebrow {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #00F0FF;
    margin-bottom: 10px;
}

.credit-main-title {
    font-family: 'Saira', 'Noto Sans TC', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ffffff;
    line-height: 1.05;
    margin: 0 0 10px 0;
    text-shadow: 0 0 28px rgba(0, 240, 255, 0.22);
}

.credit-subtitle {
    font-size: clamp(0.95rem, 1.3vw, 1.08rem);
    color: #9da0b8;
    margin: 0;
    letter-spacing: 0.06em;
}

/* Credit Sections */
.credit-section {
    margin-bottom: clamp(44px, 6.5vh, 72px);
}

.credit-role-tag {
    display: inline-block;
    font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #00F0FF;
    text-transform: uppercase;
}

.credit-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding-bottom: 14px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.credit-section-title-block h2 {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    color: #ffffff;
    margin: 6px 0 0 0;
}

/* Banner Cards (Producer & Charter) */
.credit-banner-card {
    background: linear-gradient(135deg, rgba(14, 16, 28, 0.86) 0%, rgba(20, 24, 42, 0.64) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #00F0FF;
    border-radius: 8px;
    padding: clamp(22px, 3vw, 32px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    touch-action: pan-y;
}

.credit-banner-card.is-charter {
    border-left-color: #FFB800;
}

.credit-banner-card.is-charter .credit-role-tag {
    color: #FFB800;
}

.credit-role-desc {
    margin: 8px 0 0 0;
    font-size: 0.92rem;
    color: #9da0b8;
    line-height: 1.6;
}

.credit-banner-name {
    font-family: 'Saira', 'IBM Plex Mono', monospace;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.credit-banner-name .name-amp {
    color: #FFB800;
    margin: 0 4px;
}

/* Character & Mascot Split Cards */
.credit-character-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 28px);
}

.credit-character-card {
    background: rgba(13, 14, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    touch-action: pan-y;
}

.credit-character-card:hover {
    border-color: rgba(0, 240, 255, 0.36);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.credit-character-card.is-keiko:hover {
    border-color: rgba(255, 117, 172, 0.42);
}

.credit-character-stage {
    position: relative;
    width: 100%;
    height: clamp(280px, 34vw, 390px);
    background: radial-gradient(circle at 50% 45%, rgba(0, 240, 255, 0.11) 0%, #07070b 72%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credit-character-stage.stage-waku {
    background: #060609;
}

.credit-character-stage.stage-waku img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
    display: block;
    transition: transform 0.5s ease;
}

.credit-character-card:hover .credit-character-stage.stage-waku img {
    transform: scale(1.03);
}

.credit-character-stage.stage-keiko {
    background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.12) 0%, rgba(255, 117, 172, 0.06) 40%, #060609 75%);
    padding: 28px;
}

.credit-character-stage.stage-keiko img {
    max-width: 82%;
    max-height: 82%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 22px rgba(0, 240, 255, 0.25));
    transition: transform 0.5s ease;
}

.credit-character-card:hover .credit-character-stage.stage-keiko img {
    transform: scale(1.05);
}

.credit-character-meta {
    padding: clamp(20px, 2.5vw, 26px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.credit-character-role {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.45;
    margin: 0;
}

.credit-character-role span {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    font-weight: 500;
    color: #8c91a8;
    margin-top: 2px;
}

.credit-person-badge {
    align-self: flex-start;
    margin-top: 4px;
    padding: 5px 14px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

/* Artist Link Pill (Pack Artist) */
.credit-artist-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.32);
    font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
    font-size: 0.9rem;
    color: #ffffff !important;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.credit-artist-link .artist-prefix {
    font-size: 0.72rem;
    color: #00F0FF;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.credit-artist-link .artist-name {
    font-weight: 700;
    color: #ffffff;
}

.credit-artist-link .link-arrow {
    color: #00F0FF;
    transition: transform 0.25s ease;
}

.credit-artist-link:hover {
    background: rgba(0, 240, 255, 0.16);
    border-color: #00F0FF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.18);
}

.credit-artist-link:hover .link-arrow {
    transform: translate(2px, -2px);
}

/* Pack Arts Horizontal Grid */
.credit-pack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
}

.credit-pack-card {
    background: rgba(13, 14, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    touch-action: pan-y;
}

.credit-art-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #08080e;
    overflow: hidden;
}

.credit-art-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.credit-pack-card:hover .credit-art-frame img,
.credit-song-card:hover .credit-art-frame img {
    transform: scale(1.05);
}

.credit-pack-caption {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pack-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #9da0b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: 3px;
}

.pack-name {
    font-family: 'Saira', 'Noto Sans TC', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.credit-pack-card.pack-shironeri:hover {
    border-color: rgba(235, 240, 255, 0.55);
    box-shadow: 0 10px 26px rgba(235, 240, 255, 0.14);
}
.credit-pack-card.pack-usubeni:hover {
    border-color: rgba(255, 117, 172, 0.6);
    box-shadow: 0 10px 26px rgba(255, 117, 172, 0.2);
}
.credit-pack-card.pack-usubeni .pack-code { color: #FF75AC; background: rgba(255, 117, 172, 0.12); }

.credit-pack-card.pack-ruri:hover {
    border-color: rgba(0, 175, 255, 0.65);
    box-shadow: 0 10px 26px rgba(0, 175, 255, 0.2);
}
.credit-pack-card.pack-ruri .pack-code { color: #38bdf8; background: rgba(56, 189, 248, 0.12); }

.credit-pack-card.pack-entan:hover {
    border-color: rgba(255, 51, 75, 0.65);
    box-shadow: 0 10px 26px rgba(255, 51, 75, 0.2);
}
.credit-pack-card.pack-entan .pack-code { color: #FF4D64; background: rgba(255, 51, 75, 0.12); }

/* Song Artists Layout */
.credit-song-artists-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.88fr) minmax(0, 1.88fr) minmax(0, 1fr);
    gap: clamp(18px, 2.2vw, 24px);
}

.credit-song-artist-block {
    background: rgba(13, 14, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: clamp(18px, 2.4vw, 24px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    touch-action: pan-y;
}

.credit-song-artist-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.credit-song-artist-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.artist-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF75AC;
    box-shadow: 0 0 10px rgba(255, 117, 172, 0.7);
}

.artist-dot.dot-cyan {
    background: #00F0FF;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.artist-dot.dot-violet {
    background: #A855F7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.78);
}

.credit-song-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.credit-song-row.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.credit-song-card {
    background: rgba(8, 9, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease;
    touch-action: pan-y;
}

.credit-song-card:hover {
    border-color: rgba(0, 240, 255, 0.38);
    transform: translateY(-2px);
}

.credit-song-title {
    padding: 10px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Special Thanks: Hardes + Members + PYKAMIA */
.credit-thanks-panel {
    background: rgba(13, 14, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: clamp(20px, 3vw, 30px);
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    touch-action: pan-y;
}

.credit-thanks-head-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px 14px;
    margin: -10px -14px 16px -14px;
    border-radius: 8px;
    transition: background 0.25s ease;
}

.credit-thanks-head-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.credit-thanks-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.credit-group-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
    background: #0d0e16;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.credit-thanks-head-link:hover .credit-group-avatar,
.credit-thanks-single:hover .credit-group-avatar {
    border-color: #00F0FF;
    transform: scale(1.04);
}

.credit-group-info {
    min-width: 0;
}

.credit-group-info h3 {
    font-family: 'Saira', 'Noto Sans TC', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.credit-group-sub {
    display: block;
    font-size: 0.86rem;
    color: #9da0b8;
    line-height: 1.45;
}

.credit-yt-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 4px;
    background: rgba(255, 51, 75, 0.14);
    border: 1px solid rgba(255, 51, 75, 0.42);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ff6b7d;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.credit-thanks-head-link:hover .credit-yt-pill,
.credit-thanks-single:hover .credit-yt-pill {
    background: #FF334B;
    border-color: #FF334B;
    color: #ffffff;
}

.credit-member-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.credit-member-divider span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #7c8299;
    white-space: nowrap;
}

.credit-member-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Hardes 5-Member Horizontal Row */
.credit-member-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 20px);
}

.credit-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    touch-action: pan-y;
}

.credit-member-card:hover {
    transform: translateY(-3px);
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.credit-member-avatar-ring {
    width: clamp(72px, 8vw, 96px);
    height: clamp(72px, 8vw, 96px);
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    margin-bottom: 12px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.credit-member-card:hover .credit-member-avatar-ring {
    background: linear-gradient(135deg, #00F0FF, #FF75AC);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
}

.credit-member-avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #0b0c12;
}

.credit-member-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 4px;
    word-break: break-word;
}

.credit-member-handle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #7c8299;
    transition: color 0.25s ease;
    word-break: break-all;
}

.credit-member-card:hover .credit-member-handle {
    color: #00F0FF;
}

/* PYKAMIA Card */
.credit-thanks-single {
    background: rgba(13, 14, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: clamp(18px, 2.6vw, 26px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    touch-action: pan-y;
}

.credit-thanks-single:hover {
    border-color: rgba(0, 240, 255, 0.38);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.credit-footer-back {
    font-family: 'IBM Plex Mono', 'Noto Sans TC', monospace;
    font-size: 0.8rem;
    color: #9da0b8 !important;
    transition: color 0.25s ease;
}

.credit-footer-back:hover {
    color: #00F0FF !important;
}

/* Credits Responsive Breakpoints */
@media (max-width: 1000px) {
    #frave-credit-page .frave-credit-container {
        padding-top: calc(74px + env(safe-area-inset-top, 0px));
    }
}

@media (max-width: 960px) {
    .credit-song-artists-grid {
        grid-template-columns: 1fr;
    }
    .credit-song-row.is-single {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .credit-member-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .frave-credit-container {
        width: min(100% - 32px, 1140px);
    }
    .credit-character-grid {
        grid-template-columns: 1fr;
    }
    .credit-pack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .credit-member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .credit-banner-card,
    .credit-character-card,
    .credit-song-artist-block,
    .credit-thanks-panel,
    .credit-thanks-single {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(13, 14, 22, 0.94) !important;
        touch-action: pan-y;
    }
}

@media (max-width: 480px) {
    .credit-topbar {
        margin-bottom: 24px;
    }
    .credit-song-row {
        gap: 10px;
    }
    .credit-song-title {
        font-size: 0.78rem;
        white-space: normal;
        line-height: 1.35;
        padding: 9px 8px;
    }
    .credit-member-avatar-ring {
        width: 68px;
        height: 68px;
    }
}
