/* ==========================================================================
   DESIGN SYSTEM - OBSIDIAN PITCH & NEON STAKES
   ========================================================================== */

:root {
    /* Colors */
    --color-bg-raw: 11, 12, 16;
    --color-bg: rgb(var(--color-bg-raw));
    --color-bg-alt: #12141c;
    --color-card-bg: rgba(20, 22, 30, 0.6);
    
    --color-neon-green: #00ff66;
    --color-neon-green-dim: rgba(0, 255, 102, 0.15);
    --color-neon-green-glow: rgba(0, 255, 102, 0.4);
    
    --color-gold: #d4af37;
    --color-gold-dim: rgba(212, 175, 55, 0.15);
    --color-gold-glow: rgba(212, 175, 55, 0.4);
    
    --color-text: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-border: rgba(255, 255, 255, 0.08);

    /* Fonts */
    --font-headers: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Screenplay Terminal Component Variables */
    --terminal-bg: rgba(9, 11, 16, 0.96);
    --terminal-border: rgba(212, 175, 55, 0.35);
    --terminal-glow: rgba(212, 175, 55, 0.18);
    --terminal-header-bg: rgba(16, 18, 26, 0.98);
    --text-color-primary: #e2e8f0;
    --text-color-character: #d4af37;
    --text-color-dialogue: #ffffff;
    --text-color-heading: #ef4444;
    --accent-color: #d4af37;
    --font-script: 'Courier Prime', 'Courier New', Courier, monospace;
    --font-ui: 'Inter', system-ui, -apple-system, sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: #232736;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Global Background Canvas */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -100;
    pointer-events: none;
    opacity: 0.35;
}

/* Floating Gradient Blobs */
body::before, body::after {
    content: '';
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.04;
    pointer-events: none;
    z-index: -90;
}

body::before {
    top: 10%;
    left: -10%;
    background: var(--color-neon-green);
}

body::after {
    bottom: 10%;
    right: -10%;
    background: var(--color-gold);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 7rem 0;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.gold-text {
    color: var(--color-gold);
}

.green-text {
    color: var(--color-neon-green);
}

.italic {
    font-style: italic;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headers);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ffffff 30%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 4rem auto;
    font-weight: 300;
}

/* Glassmorphic Panel Base */
.glass-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    z-index: 1000;
    background: rgba(11, 12, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    height: 60px;
    background: rgba(11, 12, 16, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar .logo {
    font-family: var(--font-headers);
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-neon-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar .nav-links {
    display: flex;
    gap: 2.5rem;
}

.navbar .nav-link {
    text-decoration: none;
    color: var(--color-text-muted);
    font-family: var(--font-headers);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.navbar .nav-link:hover {
    color: var(--color-text);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-neon-green));
    transition: var(--transition-fast);
}

.navbar .nav-link:hover::after {
    width: 100%;
}

.navbar .chip-btn-sm {
    text-decoration: none;
    color: var(--color-gold);
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--color-gold);
    border-radius: 4px;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar .chip-btn-sm:hover {
    background: var(--color-gold);
    color: var(--color-bg);
    box-shadow: 0 0 15px var(--color-gold-glow);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -3;
    opacity: 0.45;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.08); }
}

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(11,12,16,0.2) 20%, rgba(11,12,16,0.95) 90%),
                linear-gradient(to top, rgba(11,12,16,1) 0%, rgba(11,12,16,0) 25%);
    z-index: -2;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    z-index: 10;
}

.hero-subtitle {
    font-family: var(--font-headers);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.hero-title {
    font-size: 9.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px var(--color-gold);
    filter: drop-shadow(0 0 20px rgba(212,175,55,0.15));
    animation: titleFloat 6s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-tagline {
    font-family: var(--font-headers);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--color-neon-green);
    text-shadow: 0 0 20px var(--color-neon-green-glow);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.8;
}

/* Casino Chip Button Design */
.casino-chip-btn {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    perspective: 1000px;
}

.casino-chip-btn .chip-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #11131a;
    border: 3px dashed var(--color-gold);
    border-radius: 50px;
    padding: 1.2rem 3rem;
    box-shadow: 0 0 0 6px #11131a, 
                0 0 30px rgba(212, 175, 55, 0.4), 
                inset 0 0 20px rgba(212, 175, 55, 0.2);
    transition: var(--transition-smooth);
}

.casino-chip-btn .chip-edge-stripes {
    position: absolute;
    top: -9px;
    left: -9px;
    right: -9px;
    bottom: -9px;
    border-radius: 50px;
    border: 3px dotted rgba(212,175,55,0.6);
    pointer-events: none;
    animation: rotateDotted 20s linear infinite;
}

@keyframes rotateDotted {
    100% { transform: rotate(360deg); }
}

.casino-chip-btn .chip-text {
    font-family: var(--font-headers);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--color-gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: var(--transition-fast);
}

.casino-chip-btn:hover .chip-inner {
    background: var(--color-gold);
    border-color: #11131a;
    box-shadow: 0 0 0 6px var(--color-gold), 
                0 0 45px rgba(212, 175, 55, 0.7);
    transform: scale(1.03) translateZ(10px);
}

.casino-chip-btn:hover .chip-text {
    color: #11131a;
    text-shadow: none;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-family: var(--font-headers);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    opacity: 0.6;
    animation: pulseScroll 2s infinite;
}

@keyframes pulseScroll {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(5px); }
}

.scroll-indicator .arrow-down {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
}

/* ==========================================================================
   KTO? CO? JAK? SECTION
   ========================================================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.info-card {
    position: relative;
    padding: 3rem 2.5rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.info-card .card-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-neon-green));
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.info-card:hover .card-accent-line {
    height: 6px;
    opacity: 1;
}

.info-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.info-card .card-num {
    font-family: var(--font-headers);
    font-weight: 900;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.info-card:hover .card-num {
    color: var(--color-neon-green-dim);
}

.info-card h3 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.info-card .highlight-text {
    font-family: var(--font-headers);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.info-card .card-body p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 
                inset 0 0 20px rgba(212, 175, 55, 0.05);
}

#card-kto:hover { border-color: rgba(0, 255, 102, 0.25); }
#card-co:hover { border-color: rgba(212, 175, 55, 0.25); }
#card-jak:hover { border-color: rgba(0, 255, 102, 0.25); }

/* ==========================================================================
   INTERACTIVE GAME: OSTATNI TANIEC
   ========================================================================== */

.game-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 3rem;
    background: radial-gradient(circle at top right, rgba(0, 255, 102, 0.03), transparent),
                radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.03), transparent),
                var(--color-card-bg);
}

.game-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.roulette-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* ==========================================================================
   ROULETTE 2.0 CANVAS & LUXURY CASINO CONTROLS
   ========================================================================== */
.roulette-wheel-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 25px rgba(212, 175, 55, 0.15));
}

.roulette-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    user-select: none;
    touch-action: manipulation;
}

/* Luxury Monte Carlo Casino Spin Button */
.casino-spin-btn-gold {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 2.8rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #110603;
    background: linear-gradient(135deg, #fff4b8 0%, #ffd700 35%, #d4af37 70%, #aa8410 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(212, 175, 55, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.casino-spin-btn-gold .spin-btn-icon {
    font-size: 1.1rem;
    color: #5a2a18;
    transition: transform 0.4s ease;
}

.casino-spin-btn-gold:hover {
    transform: translateY(-3px) scale(1.03);
    background: linear-gradient(135deg, #ffffff 0%, #ffe082 30%, #ffd700 70%, #b48c20 100%);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.9),
        0 0 35px rgba(255, 215, 0, 0.6),
        inset 0 2px 6px rgba(255, 255, 255, 1);
}

.casino-spin-btn-gold:hover .spin-btn-icon {
    transform: rotate(180deg);
}

.casino-spin-btn-gold:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(212, 175, 55, 0.3);
}

.casino-spin-btn-gold.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(30%);
}

/* Prawa strona: Wiadomość */
.game-message-box {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    background: rgba(15, 17, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.game-status-header {
    background: rgba(25, 28, 38, 0.7);
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.game-status-header .status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-neon-green);
    box-shadow: 0 0 8px var(--color-neon-green);
    animation: indicatorPulse 2s infinite;
}

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

.game-status-header .status-text {
    font-family: var(--font-headers);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.message-content-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.default-game-prompt {
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

.default-game-prompt .casino-title {
    font-family: var(--font-headers);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.default-game-prompt .casino-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.default-game-prompt .casino-decorations {
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.15);
}

.default-game-prompt .decor-diamond, .default-game-prompt .decor-heart {
    color: #df4747;
}

/* Card Reveal Card styles */
.dramatic-reveal-card {
    text-align: center;
    animation: scaleReveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleReveal {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.dramatic-reveal-card .reveal-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ef4444;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.dramatic-reveal-card .reveal-highlight {
    font-family: var(--font-headers);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.dramatic-reveal-card .reveal-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.dramatic-reveal-card .divider-gold {
    height: 1px;
    width: 60px;
    background: var(--color-gold);
    margin: 0 auto 1rem auto;
    opacity: 0.5;
}

.dramatic-reveal-card .reveal-footer {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* ==========================================================================
   TIMELINE SECTION: OŚ FABUŁY
   ========================================================================== */

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0 auto;
    padding: 2rem 0;
}

/* Pioneer Line */
.timeline-progress-bar {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%; /* Zmieniane przez JS */
    background: linear-gradient(to bottom, var(--color-neon-green), var(--color-gold));
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.5);
    border-radius: 2px;
    transition: height 0.1s linear;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 3.5rem;
    margin-bottom: 3rem;
    opacity: 0.3;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Image Container (Opposite side placement) */
.timeline-image-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 3.5rem;
    display: flex;
    z-index: 5;
    pointer-events: none;
}

.timeline-item.left-item .timeline-image-container {
    left: 100%;
    justify-content: flex-start;
}

.timeline-item.right-item .timeline-image-container {
    right: 100%;
    justify-content: flex-end;
}

.timeline-img-wrapper {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: auto;
}

.timeline-item:hover .timeline-img-wrapper {
    transform: scale(1.05);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.timeline-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.5s ease;
}

.timeline-item:hover .timeline-img {
    opacity: 1;
}

.timeline-item.left-item {
    left: 0;
    text-align: right;
}

.timeline-item.right-item {
    left: 50%;
    text-align: left;
}

/* Timeline Badge */
.timeline-badge {
    position: absolute;
    top: 2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #11131a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-smooth);
}

.timeline-item.left-item .timeline-badge {
    right: -18px;
}

.timeline-item.right-item .timeline-badge {
    left: -18px;
}

.timeline-item.active .timeline-badge {
    border-color: var(--color-gold);
    color: var(--color-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    background: var(--color-bg);
}

/* Timeline Card */
.timeline-card {
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
}

.timeline-card-glow {
    position: absolute;
    top: 0;
    width: 100%;
    height: 3px;
    background: var(--color-border);
    transition: var(--transition-smooth);
}

.timeline-item.left-item .timeline-card-glow {
    right: 0;
    background: linear-gradient(270deg, var(--color-gold), transparent);
}

.timeline-item.right-item .timeline-card-glow {
    left: 0;
    background: linear-gradient(90deg, var(--color-neon-green), transparent);
}

.timeline-item.active .timeline-card {
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.timeline-item.left-item.active .timeline-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                inset 5px 0 15px rgba(212, 175, 55, 0.02);
}

.timeline-item.right-item.active .timeline-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                inset -5px 0 15px rgba(0, 255, 102, 0.02);
}

.timeline-place {
    font-family: var(--font-headers);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
    display: block;
}

.timeline-item.active.left-item .timeline-place { color: var(--color-gold); }
.timeline-item.active.right-item .timeline-place { color: var(--color-neon-green); }

.timeline-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.timeline-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.timeline-img-wrapper {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.timeline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.timeline-card:hover .timeline-img {
    transform: scale(1.05);
}

/* ==========================================================================
   QUOTE DIVIDER SECTION
   ========================================================================== */

.quote-divider-section {
    position: relative;
    padding: 6rem 1.5rem;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(5, 6, 8, 1) 75%), #050608;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.quote-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5,6,8,1) 0%, rgba(5,6,8,0) 15%, rgba(5,6,8,0) 85%, rgba(5,6,8,1) 100%);
    pointer-events: none;
    z-index: 2;
}

.cinematic-quote {
    font-family: var(--font-headers);
    font-size: clamp(1.25rem, 2.1vw, 1.85rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.6;
    color: #ffffff;
    max-width: 1050px;
    margin: 0 auto 1.8rem auto;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    z-index: 5;
    position: relative;
}

.quote-author {
    font-family: var(--font-headers);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(212,175,55,0.4);
    z-index: 5;
    position: relative;
    text-transform: uppercase;
}

/* ==========================================================================
   THEMES SECTION (MOTYWY)
   ========================================================================== */

.themes-vertical-layout {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin-top: 4rem;
}

.theme-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.theme-row.reversed {
    grid-template-columns: 0.9fr 1.1fr;
}

.theme-content-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theme-image-col {
    position: relative;
}

.theme-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    padding: 8px;
    transition: var(--transition-smooth);
}

.theme-image-wrapper img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%) contrast(105%);
    transition: var(--transition-smooth);
}

.theme-image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.theme-image-wrapper:hover img {
    filter: grayscale(0%) contrast(110%);
}

@media (max-width: 900px) {
    .themes-vertical-layout {
        gap: 3.5rem;
    }
    .theme-row {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .theme-row.reversed {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* ==========================================================================
   REFERENCES & MOODBOARD SECTION (KLIMAT & STYL)
   ========================================================================== */

.subsection-title {
    font-family: var(--font-headers);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Movie References (3 vertical cards) */
.ref-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1080px;
    margin: 2.5rem auto 5rem auto;
}

.ref-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    cursor: pointer;
}

.ref-poster-wrapper {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ref-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ref-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ref-overlay-text {
    color: var(--color-text);
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: center;
    font-weight: 300;
}

.ref-card-title {
    font-family: var(--font-headers);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-top: 1.2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover effects for references cards */
.ref-card:hover .ref-poster-wrapper {
    border-color: var(--color-gold);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
}

.ref-card:nth-child(2):hover .ref-poster-wrapper {
    border-color: #ef4444;
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.25);
}

.ref-card:nth-child(3):hover .ref-poster-wrapper {
    border-color: var(--color-neon-green);
    box-shadow: 0 8px 30px rgba(0, 255, 102, 0.25);
}

.ref-card:hover .ref-poster-img {
    transform: scale(1.05);
}

.ref-card:hover .ref-overlay {
    bottom: 0;
}

.ref-card:hover .ref-card-title {
    color: var(--color-gold);
}

.ref-card:nth-child(2):hover .ref-card-title {
    color: #ef4444;
}

.ref-card:nth-child(3):hover .ref-card-title {
    color: var(--color-neon-green);
}

/* Bento-style Moodboard */
.moodboard-wrapper-new {
    width: 100%;
    margin-top: 2rem;
}

.moodboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 20px;
    margin-top: 2.5rem;
}

.moodboard-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.moodboard-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Bento sizing */
.card-wide { grid-column: span 2; }
.card-tall { grid-row: span 2; }
.card-big { grid-column: span 2; grid-row: span 2; }

/* Hover effects for moodboard items */
.moodboard-item:hover {
    transform: scale(1.02);
    border-color: var(--color-neon-green);
    box-shadow: 0 8px 30px rgba(0, 255, 102, 0.25);
}

.moodboard-item:nth-child(even):hover {
    border-color: var(--color-gold);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
}

.moodboard-item:hover img {
    transform: scale(1.05);
}

/* Responsive override for Bento Grid */
@media (max-width: 1024px) {
    .moodboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .moodboard-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    .card-wide, .card-tall, .card-big {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* ==========================================================================
   CAST & CREW SECTION: OBSADA I TWÓRCY
   ========================================================================== */

.cast-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.tilt-card-wrapper {
    perspective: 1000px;
}



.tilt-card {
    height: auto;
    min-height: 320px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.tilt-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.15), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tilt-card:hover .tilt-glow {
    opacity: 1;
}

.tilt-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.role-badge {
    display: inline-block;
    font-family: var(--font-headers);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-neon-green);
    border: 1px solid var(--color-neon-green-dim);
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 255, 102, 0.05);
    letter-spacing: 0.08em;
    transform: translateZ(20px);
}

.tilt-body {
    transform: translateZ(30px);
}

.tilt-body h3 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.actor-desc {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
    font-weight: 300;
}

/* ==========================================================================
   SOUNDTRACK SECTION: ŚCIEŻKA DŹWIĘKOWA
   ========================================================================== */

.soundtrack-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
}

.soundtrack-clash-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.visualizer-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(11,12,16,0.6);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
}

.visualizer-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 8px var(--color-gold-glow);
}

.visualizer-dot-pulse.active-pulse-orchestra {
    background: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold-glow);
    animation: indicatorPulse 1s infinite;
}

.visualizer-dot-pulse.active-pulse-techno {
    background: var(--color-neon-green);
    box-shadow: 0 0 10px var(--color-neon-green-glow);
    animation: indicatorPulse 0.5s infinite;
}

#visualizer-status-text {
    font-family: var(--font-headers);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.canvas-wrapper {
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

#soundwave-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Soundtrack buttons grid */
.soundtrack-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.sound-clash-btn {
    background: rgba(18, 20, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    color: var(--color-text);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
}

.sound-clash-btn .sound-btn-title {
    font-family: var(--font-headers);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    z-index: 2;
    transition: var(--transition-fast);
}

.sound-clash-btn .sound-btn-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    z-index: 2;
}

.sound-btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.btn-glow-gold {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 70%);
}

.btn-glow-green {
    background: radial-gradient(circle, rgba(0, 255, 102, 0.08), transparent 70%);
}

/* Hover behaviors */
.sound-clash-btn:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
}

.sound-clash-btn:hover .sound-btn-glow {
    opacity: 1;
}

#sound-btn-orchestra:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
}

#sound-btn-orchestra:hover .sound-btn-title {
    color: var(--color-gold);
}

#sound-btn-techno:hover {
    border-color: rgba(0, 255, 102, 0.4);
    box-shadow: 0 10px 25px rgba(0, 255, 102, 0.1);
}

#sound-btn-techno:hover .sound-btn-title {
    color: var(--color-neon-green);
}

/* Active behaviors toggled in JS */
.sound-clash-btn.active {
    background: #151722;
}

#sound-btn-orchestra.active {
    border-color: var(--color-gold);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25),
                inset 0 0 15px rgba(212, 175, 55, 0.08);
}

#sound-btn-orchestra.active .sound-btn-title {
    color: var(--color-gold);
}

#sound-btn-techno.active {
    border-color: var(--color-neon-green);
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.25),
                inset 0 0 15px rgba(0, 255, 102, 0.08);
}

#sound-btn-techno.active .sound-btn-title {
    color: var(--color-neon-green);
}

/* Custom Music Player Widget styles */
.soundtrack-player-widget {
    background: rgba(18, 20, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr 1fr;
    align-items: center;
    gap: 2rem;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02),
                0 10px 30px rgba(0, 0, 0, 0.4);
}

.player-track-info {
    display: flex;
    flex-direction: column;
}

.player-scene-badge {
    font-family: var(--font-headers);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    margin-bottom: 0.3rem;
}

.player-track-title {
    font-family: var(--font-headers);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.player-control-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.player-control-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.player-play-btn {
    background: var(--color-gold);
    color: #0b0c10;
    width: 44px;
    height: 44px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.player-play-btn:hover {
    background: #ffffff;
    color: #0b0c10;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.player-progress-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.time-display {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: monospace;
    min-width: 32px;
}

.progress-bar-wrapper {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-neon-green) 100%);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.player-volume-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-text-muted);
}

.volume-slider-wrapper {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.volume-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 80%;
    background: #ffffff;
    border-radius: 2px;
}

/* Tracklist styles */
.soundtrack-tracklist {
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
    padding-top: 3rem;
}

.tracklist-title {
    font-family: var(--font-headers);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.tracklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.track-item {
    background: rgba(18, 20, 28, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition-fast);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.track-item:hover {
    background: rgba(18, 20, 28, 0.7);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.track-item.active-track {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.track-item.active-track.playing {
    border-color: var(--color-neon-green);
    background: rgba(0, 255, 102, 0.03);
}

.track-play-indicator {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.track-item:hover .track-play-indicator {
    background: var(--color-gold);
    color: #0b0c10;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.track-item.active-track .track-play-indicator {
    background: var(--color-gold);
    color: #0b0c10;
}

.track-item.active-track.playing .track-play-indicator {
    background: var(--color-neon-green);
    color: #0b0c10;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.track-scene {
    font-family: var(--font-headers);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.3rem;
}

.track-name {
    font-family: var(--font-headers);
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-bottom: 0.5rem;
    padding-right: 2rem;
}

.track-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .soundtrack-player-widget {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .player-progress-container {
        grid-column: span 2;
    }
    .player-volume-container {
        grid-column: span 2;
    }
    .tracklist-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FOOTER & CONTACT SECTION
   ========================================================================== */

.site-footer {
    position: relative;
    background: #090a0e;
    border-top: 1px solid var(--color-border);
    padding: 5rem 0 3rem 0;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), var(--color-neon-green), transparent);
    opacity: 0.5;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-neon-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
}

.footer-tagline {
    font-family: var(--font-headers);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 500px;
    font-weight: 300;
}

.footer-contacts h4 {
    font-family: var(--font-headers);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin-bottom: 1.8rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.contact-item svg {
    color: var(--color-gold);
}

.contact-item a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-item a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.25);
    font-weight: 300;
}

.footer-meta-links {
    font-family: var(--font-headers);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
    .navbar {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 7rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .game-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        display: none; /* Uproszczenie mobilne */
    }
    
    .section-padding {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 4.8rem;
    }
    
    .hero-tagline {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .timeline-container {
        padding-left: 2rem;
    }
    
    .timeline-progress-bar {
        left: 2rem;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    }
    
    .timeline-badge {
        left: 2px !important;
    }
    
    .timeline-item.left-item .timeline-card-glow {
        left: 0;
        background: linear-gradient(90deg, var(--color-gold), transparent);
    }
    
    .timeline-image-container {
        position: static;
        transform: none;
        padding: 1.5rem 0 0 0;
        display: block;
        width: 100%;
    }
    
    .timeline-img-wrapper {
        max-width: 100%;
    }
    
    .timeline-img {
        height: 200px;
    }
    
    .slide-split {
        grid-template-columns: 1fr;
    }
    
    .slide-text {
        padding: 2.5rem;
        background: #0f1015;
    }
    
    .slide-visual {
        display: none;
    }
    
    .deck-slide-viewport {
        height: auto;
        min-height: 400px;
    }
    
    .cast-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }
    
    .soundtrack-buttons-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================================================
   PASSWORD GATE
   ========================================================================== */

.gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(11, 12, 16, 0.95) 0%, rgba(5, 5, 8, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.gate-card {
    max-width: 420px;
    width: 90%;
    padding: 3.5rem 3rem;
    text-align: center;
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8),
                0 0 30px rgba(212, 175, 55, 0.1);
}

.gate-badge {
    display: inline-block;
    font-family: var(--font-headers);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--color-neon-green);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.gate-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    color: #ffffff;
}

.gate-header p {
    font-family: var(--font-headers);
    font-size: 0.9rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    margin-bottom: 2.5rem;
}

.gate-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gate-form .input-wrapper input {
    width: 100%;
    background: rgba(11, 12, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.1rem 1.5rem;
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: center;
    transition: var(--transition-fast);
}

.gate-form .input-wrapper input:focus {
    border-color: var(--color-gold);
    outline: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.gate-error-msg {
    color: #ef4444;
    font-size: 0.82rem;
    display: none;
    margin-top: -0.5rem;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.gate-timeout-msg {
    color: var(--color-neon-green);
    font-size: 0.82rem;
    display: none;
    margin-top: -0.5rem;
    text-shadow: 0 0 10px var(--color-neon-green-glow);
}

.casino-chip-btn-gate {
    background: #11131a;
    border: 3px dashed var(--color-gold);
    border-radius: 50px;
    padding: 0.9rem 2rem;
    cursor: pointer;
    box-shadow: 0 0 0 5px #11131a, 
                0 0 20px rgba(212, 175, 55, 0.3);
    transition: var(--transition-smooth);
}

.casino-chip-btn-gate:hover {
    background: var(--color-gold);
    border-color: #11131a;
    box-shadow: 0 0 0 5px var(--color-gold), 
                0 0 30px rgba(212, 175, 55, 0.5);
}

.casino-chip-btn-gate:hover .chip-text {
    color: #11131a;
}

.casino-chip-btn-gate .chip-text {
    font-family: var(--font-headers);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    transition: var(--transition-fast);
}

/* Floating Music Player Widget */
.floating-player {
    position: fixed;
    top: 50%;
    right: 0;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 1000;
    width: 300px;
    padding: 14px 16px;
    background: rgba(11, 12, 16, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none;
    border-radius: 16px 0 0 16px;
    box-shadow: -5px 5px 30px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(212, 175, 55, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-player:hover {
    border-color: rgba(212, 175, 55, 0.25);
    border-right: none;
    box-shadow: -5px 5px 35px rgba(0, 0, 0, 0.7),
                0 0 25px rgba(212, 175, 55, 0.15);
}

.floating-player-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.float-play-btn {
    background: var(--color-gold);
    color: #0b0c10;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.float-play-btn:hover {
    transform: scale(1.08);
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Mini Equalizer Bars */
.mini-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.eq-bar {
    width: 2px;
    height: 3px;
    background: var(--color-neon-green);
    border-radius: 1px;
    transition: height 0.15s ease;
}

/* EQ animations when playing */
.floating-player.playing .eq-bar {
    animation: eqBounce 0.8s ease infinite alternate;
}
.floating-player.playing .bar-1 { animation-delay: 0.1s; }
.floating-player.playing .bar-2 { animation-delay: 0.3s; }
.floating-player.playing .bar-3 { animation-delay: 0.0s; }
.floating-player.playing .bar-4 { animation-delay: 0.4s; }

@keyframes eqBounce {
    0% { height: 3px; }
    100% { height: 14px; }
}

.float-track-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.float-track-scene {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.float-track-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: 2px;
}

.float-progress-container {
    width: 100%;
    margin-top: 4px;
}

.float-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.5px;
    cursor: pointer;
    overflow: hidden;
}

.float-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--color-neon-green);
    border-radius: 1.5px;
    transition: width 0.1s linear;
}

.float-controls-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.float-control-sub-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.float-control-sub-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

#float-min-svg {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Minimized Floating Player State */
.floating-player.minimized {
    transform: translateY(-50%) translateX(calc(100% - 62px));
    padding: 10px 10px 10px 12px;
    border-radius: 20px 0 0 20px;
    background: rgba(11, 12, 16, 0.96);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: -5px 5px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.2);
    cursor: pointer;
}

.floating-player.minimized:hover {
    transform: translateY(-50%) translateX(calc(100% - 72px));
    border-color: var(--color-gold);
}

.floating-player.minimized .float-track-details,
.floating-player.minimized #float-next-btn,
.floating-player.minimized #float-playlist-btn,
.floating-player.minimized .floating-playlist-panel {
    display: none !important;
}

.floating-player.minimized #float-min-svg {
    transform: rotate(180deg);
}

@media (max-width: 480px) {
    .floating-player.minimized {
        transform: translateY(calc(100% - 46px));
        width: 140px;
        left: auto;
        right: 16px;
        border-radius: 16px 16px 0 0;
    }
}

/* Playlist panel */
.floating-playlist-panel {
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.float-playlist-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.float-playlist-items {
    max-height: 140px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.float-playlist-item {
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.float-playlist-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.float-playlist-item.active {
    background: rgba(212, 175, 55, 0.08);
    border-left: 2px solid var(--color-gold);
}

.float-playlist-item .item-scene {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-gold);
}

.float-playlist-item .item-title {
    font-size: 0.75rem;
    color: #ffffff;
    flex-grow: 1;
    text-align: right;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.float-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--color-text-muted);
}

.float-volume-slider {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.float-volume-fill {
    height: 100%;
    background: var(--color-gold);
    border-radius: 2px;
}

/* Hide or position on small mobile screens */
@media (max-width: 480px) {
    .floating-player {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
        top: auto;
        bottom: 16px;
        transform: none;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
    }
}

/* Language Switcher Styling */
.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: var(--color-gold) !important;
}

/* ==========================================================================
   SERIES BIBLE & PITCH DECK (SCRIPTHOP 1.0) STANDARDS STYLING
   ========================================================================== */
.bible-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.hero-meta-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.meta-pill {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(15, 17, 24, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 30px;
}

.meta-pill strong {
    color: var(--color-gold);
}

/* Full-Width Logline Section (Darker Background, 100% Width, Pure Typography) */
.logline-fullwidth-section {
    width: 100%;
    background-color: #050608;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 5rem 1.5rem;
    position: relative;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.9);
}

.logline-statement {
    font-family: var(--font-headers);
    font-size: clamp(1.2rem, 2.1vw, 1.85rem);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1.55;
    letter-spacing: 0.02em;
    color: #ffffff;
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .logline-fullwidth-section {
        padding: 3.5rem 1.2rem;
    }
    .logline-statement {
        font-size: 1.15rem;
        line-height: 1.5;
    }
}

/* Standalone Descriptive The Hook Section */
.hook-section {
    padding: 3.5rem 1.5rem 4.5rem 1.5rem;
    text-align: center;
    position: relative;
}

.hook-concept-title {
    font-family: var(--font-headers);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hook-statement {
    font-family: var(--font-headers);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 600;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

/* What It Is narrative container */
.what-it-is-container {
    padding: 2.5rem;
    margin-bottom: 3.5rem;
    line-height: 1.8;
}

.what-it-is-container p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.what-it-is-container p:last-child {
    margin-bottom: 0;
}

/* Pace, Style, Tone Grid */
.pace-style-tone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 850px) {
    .pace-style-tone-grid {
        grid-template-columns: 1fr;
    }
}

.pst-card {
    position: relative;
    overflow: hidden;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 20, 29, 0.7);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: default;
    min-height: 280px;
}

.pst-card-content {
    position: relative;
    z-index: 3;
    transition: transform 0.4s ease;
}

.pst-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.6rem;
}

.pst-card h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
    font-family: var(--font-headers);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.pst-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    transition: color 0.3s ease;
}

/* ==========================================================================
   POKER HAND FAN (6 KART - TEMPO, STYL, TON, SZCZECIN, KASYNA, FUTBOL)
   ========================================================================== */
.poker-hand-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 2.5rem auto 1rem;
    padding: 2rem 1rem 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1600px;
}

.poker-fan {
    position: relative;
    width: 640px;
    max-width: 95vw;
    height: 490px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.poker-card {
    position: absolute;
    width: 290px;
    height: 430px;
    border-radius: 18px;
    cursor: pointer;
    transform-origin: 50% 120%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Extended hit-area underneath the card so vertical lift never loses mouse hover */
.poker-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    right: -15px;
    bottom: -80px;
    pointer-events: auto;
    z-index: -1;
}

/* Fan positioning angles (3 cards: Tempo, Styl, Ton) */
.poker-card[data-card-index="0"] {
    transform: translateX(-160px) translateY(14px) rotate(-10deg);
    z-index: 1;
}
.poker-card[data-card-index="1"] {
    transform: translateX(0px) translateY(0) rotate(0deg);
    z-index: 2;
}
.poker-card[data-card-index="2"] {
    transform: translateX(160px) translateY(14px) rotate(10deg);
    z-index: 3;
}

/* Multi-card fan fallback support */
.poker-card[data-card-index="3"] { transform: translateX(80px) translateY(10px) rotate(8deg); z-index: 4; }
.poker-card[data-card-index="4"] { transform: translateX(160px) translateY(20px) rotate(14deg); z-index: 5; }
.poker-card[data-card-index="5"] { transform: translateX(240px) translateY(32px) rotate(20deg); z-index: 6; }

/* HOVER: Card rises cleanly from hand WITHOUT jumping horizontally */
.poker-fan:not(.has-active-card) .poker-card[data-card-index="0"]:hover,
.poker-fan:not(.has-active-card) .poker-card[data-card-index="0"].is-hovered {
    transform: translateX(-160px) translateY(-55px) rotate(-4deg) scale(1.04) !important;
    z-index: 50 !important;
}

.poker-fan:not(.has-active-card) .poker-card[data-card-index="1"]:hover,
.poker-fan:not(.has-active-card) .poker-card[data-card-index="1"].is-hovered {
    transform: translateX(0px) translateY(-65px) rotate(0deg) scale(1.04) !important;
    z-index: 50 !important;
}

.poker-fan:not(.has-active-card) .poker-card[data-card-index="2"]:hover,
.poker-fan:not(.has-active-card) .poker-card[data-card-index="2"].is-hovered {
    transform: translateX(160px) translateY(-55px) rotate(4deg) scale(1.04) !important;
    z-index: 50 !important;
}

.poker-fan:not(.has-active-card) .poker-card:hover .poker-card-inner,
.poker-fan:not(.has-active-card) .poker-card.is-hovered .poker-card-inner {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 175, 55, 0.6);
    border-color: #ffd700;
}

.poker-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 18px;
    border: 2px solid rgba(212, 175, 55, 0.45);
    background: #0d0f16;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.6);
}

.poker-card.is-flipped .poker-card-inner {
    transform: rotateY(180deg);
}

/* Card Faces (Front / Back) */
.poker-card-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

/* FRONT FACE (Photo on top!) */
.poker-card-front {
    background: #0c0e14;
}
.poker-card-front * {
    pointer-events: none;
}

.poker-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.95) contrast(1.05);
    transition: transform 0.6s ease;
}

.poker-front-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 8, 12, 0.96) 0%, rgba(7, 8, 12, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.4rem;
    box-sizing: border-box;
    z-index: 2;
}

.poker-front-title {
    font-family: var(--font-headers);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.3rem 0 0.6rem 0;
    line-height: 1.3;
}

.poker-click-hint {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

/* BACK FACE (Text & Description) */
.poker-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #161922 0%, #0c0e14 100%);
    padding: 2.2rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.poker-back-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.poker-back-title {
    font-family: var(--font-headers);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.8rem 0;
    line-height: 1.35;
}

.poker-back-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 1.2rem 0;
}

.poker-close-btn {
    align-self: flex-start;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    border: 1px solid var(--color-gold);
    background: rgba(212, 175, 55, 0.15);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.poker-close-btn:hover {
    background: var(--color-gold);
    color: #000000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

/* Corners (Rank & Suit) */
.poker-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    font-family: var(--font-headers);
    font-weight: 900;
    z-index: 10;
    pointer-events: none;
}

.poker-corner.top-left { top: 12px; left: 14px; }
.poker-corner.bottom-right { bottom: 12px; right: 14px; transform: rotate(180deg); }

.poker-rank { font-size: 1.15rem; color: var(--color-gold); font-weight: 900; }
.poker-suit { font-size: 0.95rem; color: var(--color-gold); margin-top: 2px; }
.poker-suit.suit-red, .poker-rank.suit-red { color: #f43f5e !important; }

.poker-card-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    align-self: flex-start;
}

/* ==========================================================================
   POKER INSPECT MODAL (Pop-out full card details: Photo, Description & Bullet points)
   ========================================================================== */
.poker-inspect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: rgba(4, 5, 8, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.poker-inspect-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.poker-inspect-card {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: 88vh;
    background: linear-gradient(160deg, #161922 0%, #0d0f16 100%);
    border: 2px solid rgba(212, 175, 55, 0.7);
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.95), 0 0 60px rgba(212, 175, 55, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(24px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.poker-inspect-overlay.is-open .poker-inspect-card {
    transform: scale(1) translateY(0);
}

.poker-inspect-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(13, 15, 22, 0.88);
    border: 1px solid rgba(212, 175, 55, 0.65);
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.25s ease;
}

.poker-inspect-close:hover {
    background: var(--color-gold);
    color: #000;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
}

/* Corner Pips */
.poker-inspect-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    font-family: var(--font-headers);
    font-weight: 900;
    z-index: 25;
    pointer-events: none;
}
.poker-inspect-corner.top-left {
    top: 18px;
    left: 24px;
}
.poker-inspect-corner.bottom-right {
    bottom: 18px;
    right: 24px;
    transform: rotate(180deg);
}
.poker-inspect-rank {
    font-size: 1.8rem;
    color: var(--color-gold);
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.poker-inspect-suit {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-top: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.poker-inspect-suit.suit-red, .poker-inspect-rank.suit-red {
    color: #f43f5e !important;
}

.poker-inspect-scroll {
    overflow-y: auto;
    max-height: 88vh;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) rgba(255, 255, 255, 0.05);
}

.poker-inspect-scroll::-webkit-scrollbar {
    width: 7px;
}
.poker-inspect-scroll::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}

.poker-inspect-header {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #000;
}

.poker-inspect-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.85);
}

.poker-inspect-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #161922 0%, rgba(13, 15, 22, 0.65) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 3rem 1.6rem;
    box-sizing: border-box;
}

.poker-inspect-tag {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.45rem;
}

.poker-inspect-title {
    font-family: var(--font-headers);
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 0.45rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.poker-inspect-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-style: italic;
}

.poker-inspect-body {
    padding: 2.2rem 3rem 2.5rem;
}

.poker-inspect-desc-box {
    background: rgba(255, 255, 255, 0.035);
    border-left: 4px solid var(--color-gold);
    padding: 1.4rem 1.8rem;
    border-radius: 0 10px 10px 0;
    margin-bottom: 2rem;
}

.poker-inspect-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-align: justify;
}

.poker-inspect-bullets-title {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.poker-inspect-bullets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.poker-bullet-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    transition: all 0.25s ease;
}

.poker-bullet-item:hover {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.05);
}

.poker-bullet-header {
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.poker-bullet-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.poker-inspect-footer {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.poker-inspect-fold-btn {
    padding: 0.85rem 2.2rem;
    border-radius: 30px;
    border: 1px solid var(--color-gold);
    background: rgba(212, 175, 55, 0.18);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
}

.poker-inspect-fold-btn:hover {
    background: var(--color-gold);
    color: #000000;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.65);
    transform: translateY(-2px);
}

@media (max-width: 820px) {
    .poker-inspect-card {
        width: 95vw;
        max-height: 92vh;
        border-radius: 20px;
    }
    .poker-inspect-header {
        height: 240px;
    }
    .poker-inspect-photo-overlay {
        padding: 1.4rem 1.8rem 1.2rem;
    }
    .poker-inspect-title {
        font-size: 1.6rem;
    }
    .poker-inspect-subtitle {
        font-size: 0.95rem;
    }
    .poker-inspect-body {
        padding: 1.6rem 1.8rem 2rem;
    }
    .poker-inspect-desc {
        font-size: 0.98rem;
    }
    .poker-inspect-bullets-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
    .poker-inspect-corner.top-left {
        top: 14px;
        left: 18px;
    }
    .poker-inspect-corner.bottom-right {
        bottom: 14px;
        right: 18px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .poker-fan {
        width: 520px;
    }
    .poker-card {
        width: 260px;
        height: 395px;
    }
    .poker-card[data-card-index="0"] { transform: translateX(-120px) translateY(12px) rotate(-9deg); }
    .poker-card[data-card-index="1"] { transform: translateX(0px) translateY(0) rotate(0deg); }
    .poker-card[data-card-index="2"] { transform: translateX(120px) translateY(12px) rotate(9deg); }
    
    .poker-fan:not(.has-active-card) .poker-card[data-card-index="0"]:hover,
    .poker-fan:not(.has-active-card) .poker-card[data-card-index="0"].is-hovered {
        transform: translateX(-120px) translateY(-50px) rotate(-4deg) scale(1.04) !important;
        z-index: 50 !important;
    }
    .poker-fan:not(.has-active-card) .poker-card[data-card-index="1"]:hover,
    .poker-fan:not(.has-active-card) .poker-card[data-card-index="1"].is-hovered {
        transform: translateX(0px) translateY(-55px) rotate(0deg) scale(1.04) !important;
        z-index: 50 !important;
    }
    .poker-fan:not(.has-active-card) .poker-card[data-card-index="2"]:hover,
    .poker-fan:not(.has-active-card) .poker-card[data-card-index="2"].is-hovered {
        transform: translateX(120px) translateY(-50px) rotate(4deg) scale(1.04) !important;
        z-index: 50 !important;
    }
}

@media (max-width: 768px) {
    .poker-hand-wrapper {
        padding-bottom: 3rem;
    }
    .poker-fan {
        width: 320px;
        height: 420px;
    }
    .poker-card {
        width: 230px;
        height: 360px;
    }
    .poker-card[data-card-index="0"] { transform: translateX(-65px) translateY(10px) rotate(-8deg); }
    .poker-card[data-card-index="1"] { transform: translateX(0px) translateY(0) rotate(0deg); }
    .poker-card[data-card-index="2"] { transform: translateX(65px) translateY(10px) rotate(8deg); }
    
    .poker-fan:not(.has-active-card) .poker-card[data-card-index="0"]:hover,
    .poker-fan:not(.has-active-card) .poker-card[data-card-index="0"].is-hovered {
        transform: translateX(-65px) translateY(-35px) rotate(-4deg) scale(1.03) !important;
        z-index: 50 !important;
    }
    .poker-fan:not(.has-active-card) .poker-card[data-card-index="1"]:hover,
    .poker-fan:not(.has-active-card) .poker-card[data-card-index="1"].is-hovered {
        transform: translateX(0px) translateY(-40px) rotate(0deg) scale(1.03) !important;
        z-index: 50 !important;
    }
    .poker-fan:not(.has-active-card) .poker-card[data-card-index="2"]:hover,
    .poker-fan:not(.has-active-card) .poker-card[data-card-index="2"].is-hovered {
        transform: translateX(65px) translateY(-35px) rotate(4deg) scale(1.03) !important;
        z-index: 50 !important;
    }
    .poker-card.is-active-inspect {
        transform: translate(-50%, -50%) rotate(0deg) scale(1.05) !important;
        width: 300px;
        height: 440px;
    }
}

/* ==========================================================================
   BLACK JACK CARDS (Świat Filmu - Dwie Karty Przesunięte po Skosie)
   ========================================================================== */
.blackjack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.8rem 2.8rem;
    max-width: 1200px;
    margin: 2.5rem auto 1rem;
    padding: 1.5rem 0.5rem 2rem;
}

.blackjack-hand {
    position: relative;
    width: 100%;
    max-width: 330px;
    height: 440px;
    margin: 0 auto;
    cursor: pointer;
    perspective: 1200px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Base Card Styles */
.bj-card {
    position: absolute;
    width: 285px;
    height: 400px;
    border-radius: 16px;
    border: 2px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85), 0 0 15px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.35s ease, z-index 0.3s;
    background: #0d0f16;
}

/* Card 1: Photo Card (Default Front) */
.bj-card-photo {
    bottom: 0;
    left: 0;
    z-index: 2;
    transform: translate(0, 0) rotate(0deg);
}

.bj-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.95) contrast(1.05);
    transition: transform 0.5s ease;
}

.bj-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 8, 12, 0.96) 0%, rgba(7, 8, 12, 0.4) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.3rem;
    box-sizing: border-box;
    z-index: 2;
}

.bj-card-tag {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: 0.35rem;
}

.bj-photo-title {
    font-family: var(--font-headers);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.45rem 0;
    line-height: 1.25;
}

.bj-card-hint {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: opacity 0.3s ease;
}

/* Card 2: Description Card (Default shifted diagonally up/right) */
.bj-card-desc {
    bottom: 0;
    left: 0;
    z-index: 1;
    transform: translate(30px, -30px) rotate(6deg);
    background: linear-gradient(145deg, #181b24 0%, #0d0f15 100%);
    padding: 2.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    border-color: rgba(255, 255, 255, 0.18);
}

.bj-desc-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.bj-desc-title {
    font-family: var(--font-headers);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.bj-desc-text {
    font-size: 0.85rem;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    text-align: justify;
}

.bj-swap-btn {
    align-self: flex-start;
    padding: 0.45rem 0.95rem;
    border-radius: 6px;
    border: 1px solid var(--color-gold);
    background: rgba(212, 175, 55, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    margin-top: 0.8rem;
}

.bj-swap-btn:hover {
    background: var(--color-gold);
    color: #000;
}

/* Playing Card Corner Pips */
.bj-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    z-index: 5;
    pointer-events: none;
}
.bj-corner.top-left {
    top: 10px;
    left: 10px;
}
.bj-corner.bottom-right {
    bottom: 10px;
    right: 10px;
    transform: rotate(180deg);
}
.bj-rank {
    font-family: var(--font-headers);
    font-weight: 900;
    font-size: 1.15rem;
    color: #ffffff;
}
.bj-suit {
    font-size: 1.05rem;
    color: #ffffff;
}
.suit-red {
    color: #ef4444 !important;
}

/* HOVER EFFECT ON BLACK JACK HAND */
.blackjack-hand:not(.is-swapped):hover .bj-card-photo {
    transform: translate(-8px, 10px) rotate(-2deg);
    border-color: #ffd700;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.95), 0 0 30px rgba(212, 175, 55, 0.5);
}

.blackjack-hand:not(.is-swapped):hover .bj-card-desc {
    transform: translate(44px, -42px) rotate(8.5deg);
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 175, 55, 0.4);
}

/* SWAPPED STATE (Description Card to Front!) */
.blackjack-hand.is-swapped .bj-card-photo {
    z-index: 1;
    transform: translate(30px, -30px) rotate(6deg);
    border-color: rgba(255, 255, 255, 0.18);
}

.blackjack-hand.is-swapped .bj-card-desc {
    z-index: 3;
    transform: translate(0, 0) rotate(0deg);
    border-color: #ffd700;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 175, 55, 0.5);
}

.blackjack-hand.is-swapped:hover .bj-card-desc {
    transform: translate(-8px, 10px) rotate(-2deg);
}

.blackjack-hand.is-swapped:hover .bj-card-photo {
    transform: translate(44px, -42px) rotate(8.5deg);
}

@media (max-width: 1024px) {
    .blackjack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5rem 2rem;
    }
}

@media (max-width: 680px) {
    .blackjack-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .blackjack-hand {
        max-width: 290px;
        height: 420px;
    }
    .bj-card {
        width: 255px;
        height: 380px;
    }
    .bj-card-desc {
        transform: translate(22px, -22px) rotate(4deg);
    }
    .blackjack-hand.is-swapped .bj-card-photo {
        transform: translate(22px, -22px) rotate(4deg);
    }
}

/* 5-Act Breakdown Grid */
.acts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.act-card {
    padding: 1.8rem;
    border-left: 3px solid rgba(212, 175, 55, 0.6);
    background: rgba(18, 20, 28, 0.7);
}

.act-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.6rem;
}

.act-card h4 {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.act-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

/* Character Deep Dive Interactive Cards */
.char-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.2rem;
    margin-bottom: 4rem;
}

.char-interactive-card {
    padding: 0;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 16px;
    overflow: hidden;
    background: #0d0f17;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.char-interactive-card:hover {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(212, 175, 55, 0.15);
}

.char-poster-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: #090a0f;
}

.char-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.char-interactive-card:hover .char-poster-img {
    transform: scale(1.04);
}

.char-poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.2rem 1.6rem 1.4rem 1.6rem;
    background: linear-gradient(to top, rgba(13, 15, 23, 0.98) 0%, rgba(13, 15, 23, 0.82) 40%, rgba(13, 15, 23, 0.15) 75%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.char-poster-name {
    font-family: var(--font-headers);
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
    letter-spacing: 0.02em;
}

.char-poster-tagline {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.1rem 0;
    line-height: 1.4;
}

.char-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.2rem;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    color: var(--color-gold);
    font-family: var(--font-headers);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.char-toggle-btn:hover {
    background: var(--color-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.char-toggle-btn .btn-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.char-interactive-card.is-open .char-toggle-btn .btn-icon {
    transform: rotate(180deg);
}

.char-body-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    background: rgba(14, 16, 22, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.char-interactive-card.is-open .char-body-drawer {
    max-height: 800px;
    opacity: 1;
}

.char-body-content {
    padding: 1.8rem;
}

.char-close-btn {
    display: block;
    margin: 1.2rem auto 0 auto;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.char-close-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.char-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.char-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.char-tag-lead {
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.35);
}

.char-field {
    margin-bottom: 0.8rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.char-field strong {
    color: var(--color-gold);
}

/* Financials & Comps Table */
.comps-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.comps-table th, .comps-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comps-table th {
    font-weight: 800;
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
}

.comps-table td {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   INTERACTIVE SCREENPLAY TYPEWRITER TERMINAL
   ========================================================================== */
.screenplay-terminal-wrapper {
    max-width: 960px;
    margin: 1.5rem auto 0 auto;
}

.terminal-window {
    background: var(--terminal-bg);
    border: 1px solid var(--terminal-border);
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px var(--terminal-glow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.terminal-window:hover {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 45px rgba(212, 175, 55, 0.3);
}

.terminal-header {
    background: var(--terminal-header-bg);
    padding: 0.85rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 1rem;
}

.terminal-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.term-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.term-dot:hover { opacity: 0.8; }
.dot-close { background: #ff5f56; border: 1px solid #e0443e; }
.dot-min { background: #ffbd2e; border: 1px solid #dea123; }
.dot-max { background: #27c93f; border: 1px solid #1aab29; }

.terminal-title {
    font-family: var(--font-script);
    font-size: 0.82rem;
    color: var(--text-color-primary);
    display: flex;
    align-items: center;
    letter-spacing: 0.05em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.term-status-tag {
    margin-left: 10px;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.08em;
}

.term-file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-file-upload-btn:hover {
    background: rgba(212, 175, 55, 0.18);
    color: var(--color-gold);
    border-color: rgba(212, 175, 55, 0.4);
}

.terminal-body {
    height: 400px;
    overflow-y: auto;
    padding: 2.2rem 2.5rem;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.03) 0%, rgba(6, 8, 12, 0.98) 85%);
    position: relative;
    scroll-behavior: smooth;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}
.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

.terminal-paper {
    font-family: var(--font-script);
    font-size: 0.96rem;
    line-height: 1.8;
    color: var(--text-color-primary);
    max-width: 780px;
    margin: 0 auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Screenplay Token Formatting */
.script-scene-heading {
    color: var(--text-color-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 1.2rem 0 0.8rem 0;
    display: block;
}

.script-character {
    color: var(--text-color-character);
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 1.2rem 0 0.2rem 0;
    display: block;
}

.script-parenthetical {
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    display: block;
    margin-bottom: 0.3rem;
}

.script-dialogue {
    color: var(--text-color-dialogue);
    max-width: 480px;
    margin: 0 auto 1.2rem auto;
    text-align: left;
    display: block;
}

.script-action {
    color: var(--text-color-primary);
    margin-bottom: 1.1rem;
    display: block;
    text-align: justify;
}

/* Typewriter Cursor */
.typewriter-cursor {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 900;
    margin-left: 2px;
    animation: cursorBlink 0.85s infinite ease-in-out;
}

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

/* Toolbar Controls */
.terminal-toolbar {
    background: var(--terminal-header-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-ui);
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.term-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.term-btn.term-btn-primary {
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.term-btn.term-btn-primary:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.speed-toggle-pills {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 2px;
}

.speed-pill {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.speed-pill:hover {
    color: #ffffff;
}

.speed-pill.active {
    background: var(--accent-color);
    color: #000;
}

.term-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    user-select: none;
}

.term-scene-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 0.5rem;
}

.term-nav-btn {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    transition: all 0.2s ease;
}

.term-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.term-nav-btn:not(:disabled):hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.term-scene-counter {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    min-width: 70px;
    text-align: center;
}

@media (max-width: 768px) {
    .terminal-body {
        height: 320px;
        padding: 1.5rem 1.2rem;
    }
    .terminal-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar-group {
        justify-content: space-between;
    }
}

/* ==========================================================================
   CHARACTER ECOSYSTEM & RELATIONSHIP NETWORK (Sieć Powiązań Bez Opisów)
   ========================================================================== */
.ecosystem-network-wrapper {
    margin: 2rem 0 4rem 0;
    padding: 2.5rem 2rem;
    background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.08) 0%, rgba(10, 12, 18, 0.95) 75%);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 20px 45px rgba(0, 0, 0, 0.6);
}

.network-center-hub {
    max-width: 540px;
    margin: 0 auto 2.8rem auto;
    text-align: center;
    padding: 1.6rem 2rem;
    background: linear-gradient(135deg, rgba(26, 29, 41, 0.95) 0%, rgba(13, 15, 23, 0.98) 100%);
    border: 2px solid var(--color-gold);
    border-radius: 16px;
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.35), 0 15px 35px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 5;
}

.hub-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #000;
    background: var(--color-gold);
    padding: 3px 12px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.hub-name {
    font-family: var(--font-headers);
    font-size: 1.65rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.04em;
    margin: 0 0 0.3rem 0;
}

.hub-sub {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(212, 175, 55, 0.95);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.network-nodes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    position: relative;
    z-index: 3;
}

@media (max-width: 1100px) {
    .network-nodes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .network-nodes-grid {
        grid-template-columns: 1fr;
    }
}

.network-node-card {
    background: rgba(16, 18, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.4rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.network-node-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.node-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.node-icon {
    font-size: 1.15rem;
}

.node-rel-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
}

.badge-love { color: #f43f5e; background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.35); }
.badge-gold { color: var(--color-gold); background: rgba(212, 175, 55, 0.15); border: 1px solid rgba(212, 175, 55, 0.35); }
.badge-green { color: #30d158; background: rgba(48, 209, 88, 0.15); border: 1px solid rgba(48, 209, 88, 0.35); }
.badge-cyan { color: #38bdf8; background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.35); }
.badge-purple { color: #a855f7; background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.35); }
.badge-blue { color: #60a5fa; background: rgba(96, 165, 250, 0.15); border: 1px solid rgba(96, 165, 250, 0.35); }
.badge-danger { color: #ef4444; background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.35); }

.node-name {
    font-family: var(--font-headers);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
    letter-spacing: 0.02em;
}

.node-role {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
}

.node-love:hover { border-color: #f43f5e; box-shadow: 0 0 20px rgba(244, 63, 94, 0.25); }
.node-business:hover { border-color: var(--color-gold); box-shadow: 0 0 20px rgba(212, 175, 55, 0.25); }
.node-coach:hover { border-color: #30d158; box-shadow: 0 0 20px rgba(48, 209, 88, 0.25); }
.node-mentor:hover { border-color: #38bdf8; box-shadow: 0 0 20px rgba(56, 189, 248, 0.25); }
.node-rennes:hover { border-color: var(--color-gold); box-shadow: 0 0 20px rgba(212, 175, 55, 0.25); }
.node-rival:hover { border-color: #a855f7; box-shadow: 0 0 20px rgba(168, 85, 247, 0.25); }
.node-crew:hover { border-color: #60a5fa; box-shadow: 0 0 20px rgba(96, 165, 250, 0.25); }
.node-danger:hover { border-color: #ef4444; box-shadow: 0 0 20px rgba(239, 68, 68, 0.25); }


