:root {
    --ef-yellow: #fffa00;
    --ef-yellow-hover: #ffe600;
    --ef-yellow-dim: rgba(255, 250, 0, 0.15);
    
    --bg-page: #080a0e;
    --bg-card: #10131a;
    --bg-card-hover: #161a24;
    --bg-sidebar: #0a0c12;
    
    --border-light: #1c2230;
    --border-dark: #2a3347;
    --border-yellow: #fffa00;
    
    --text-main: #f0f3f8;
    --text-muted: #78859e;
    --text-light: #ffffff;
    --text-yellow: #fffa00;
    
    --tier-s: #ff2442;
    --tier-a: #ff7700;
    --tier-b: #fffa00;
    --tier-c: #00d668;
    --tier-d: #00c0f0;
    --tier-f: #8b5cf6;

    --font-display: 'Unbounded', 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-mono: 'JetBrains Mono', 'Chakra Petch', monospace;
    
    --sidebar-collapsed-w: 68px;
    --sidebar-expanded-w: 240px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: thin;
    scrollbar-color: var(--ef-yellow) #10131a;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    position: relative;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

/* ================= 0. DRUNK VISUAL EFFECTS & 360 BARREL ROLL ================= */
body.drunk-stage-1 {
    filter: saturate(1.2) contrast(1.05);
}

body.drunk-stage-2 {
    filter: saturate(1.35) contrast(1.1) hue-rotate(10deg);
    animation: gentleWobble 6s infinite ease-in-out;
}

@keyframes gentleWobble {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(0.4deg) scale(1.002); }
    50% { transform: rotate(-0.4deg) scale(1); }
    75% { transform: rotate(0.2deg) scale(0.998); }
}

body.screen-barrel-roll {
    animation: barrelRoll360 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes barrelRoll360 {
    0% { transform: rotate(0deg) scale(1); filter: hue-rotate(0deg) blur(0px); }
    30% { transform: rotate(120deg) scale(0.92); filter: hue-rotate(90deg) blur(1.5px); }
    60% { transform: rotate(240deg) scale(0.95); filter: hue-rotate(180deg) blur(1px); }
    100% { transform: rotate(360deg) scale(1); filter: hue-rotate(0deg) blur(0px); }
}

/* Background Animated Canvas */
#bgTacticalCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

/* ================= 3D JÄGERMEISTER SUIT-UP VIEWPORT ================= */
.jager-3d-card {
    position: relative !important;
    width: 100% !important;
    max-width: 440px !important;
    height: 520px !important;
    background: rgba(16, 20, 28, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 16px !important;
    z-index: 5 !important;
    overflow: hidden !important;
}

.jager-3d-card-footer {
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, rgba(16, 20, 28, 0) 0%, rgba(16, 20, 28, 0.95) 30%);
    padding-top: 10px;
}

#jager3DCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
}

#jager3DCanvas:active {
    cursor: grabbing;
}

.jager-3d-hud {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.jager-hud-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--ef-yellow);
    background: rgba(8, 10, 14, 0.85);
    border: 1px solid rgba(255, 250, 0, 0.3);
    padding: 4px 10px;
    letter-spacing: 0.5px;
}

.jager-hud-rot {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #8c97ab;
    background: rgba(8, 10, 14, 0.75);
    padding: 3px 8px;
    border: 1px solid var(--border-light);
}

.jager-3d-controls {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.jager-slider-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jager-slider-group label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    color: #8c97ab;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* ================= TELEMETRY HUD OVERLAY ================= */
.cyber-hud-telemetry {
    position: fixed;
    top: 54px;
    right: 24px;
    background: rgba(13, 16, 23, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 999;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    pointer-events: none;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hud-lbl {
    color: #78859e;
    font-weight: 700;
}

.hud-val {
    color: var(--ef-yellow);
    font-weight: 800;
}

.hud-val.live {
    color: #00e676;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hud-val.live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 6px #00e676;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ================= 1. EXPANDABLE DRAWER SIDEBAR ================= */
.endfield-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-collapsed-w);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 10px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    white-space: nowrap;
}

.endfield-sidebar:hover,
.endfield-sidebar.is-expanded {
    width: var(--sidebar-expanded-w);
    box-shadow: 8px 0 36px rgba(0, 0, 0, 0.7);
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    min-height: 40px;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.endfield-sidebar:hover .sidebar-brand,
.endfield-sidebar.is-expanded .sidebar-brand {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.brand-logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    line-height: 1;
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 800;
    color: var(--ef-yellow);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 3px;
}

.sidebar-toggle-btn {
    width: 38px;
    height: 38px;
    background: #141822;
    border: 1px solid var(--border-light);
    color: var(--ef-yellow);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: var(--ef-yellow);
    color: #000000;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    color: #8c97ab;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.15s ease;
    position: relative;
}

.sidebar-nav-item .nav-icon {
    font-size: 1.05rem;
    opacity: 0.85;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-item .nav-text {
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s ease;
}

.endfield-sidebar:hover .sidebar-nav-item .nav-text,
.endfield-sidebar.is-expanded .sidebar-nav-item .nav-text {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-nav-item:hover {
    background: #151924;
    color: #ffffff;
}

.sidebar-nav-item.active {
    background: var(--ef-yellow);
    color: #000000;
    font-weight: 900;
}

.sidebar-nav-item.active .nav-icon {
    opacity: 1;
    color: #000000;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    color: #78859e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 10px;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s ease;
    width: 100%;
}

.sidebar-action-btn .btn-text {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.endfield-sidebar:hover .sidebar-action-btn .btn-text,
.endfield-sidebar.is-expanded .sidebar-action-btn .btn-text {
    opacity: 1;
}

.sidebar-action-btn:hover {
    color: var(--ef-yellow);
}

.sidebar-play-btn {
    background: var(--ef-yellow);
    color: #000000;
    border: none;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: all 0.15s ease;
    text-decoration: none;
}

.sidebar-play-btn span.btn-label {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.endfield-sidebar:hover .sidebar-play-btn span.btn-label,
.endfield-sidebar.is-expanded .sidebar-play-btn span.btn-label {
    opacity: 1;
}

.sidebar-play-btn span.arrow {
    background: #000000;
    color: var(--ef-yellow);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
    flex-shrink: 0;
}

.sidebar-play-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

/* ================= 2. TOP AUDIO PLAYER (РАДИО БУТЫРКА & SFX SWITCH) ================= */
.top-audio-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0d1017;
    border-bottom: 1px solid var(--border-light);
    padding: 10px 32px;
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
    gap: 10px;
}

.radio-info-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.radio-logo-badge {
    background: var(--ef-yellow);
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: 1px;
}

.radio-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.eq-bar {
    width: 3px;
    height: 100%;
    background: var(--ef-yellow);
    border-radius: 1px;
    animation: eqPulse 1.2s infinite ease-in-out;
}
.eq-bar:nth-child(1) { animation-delay: 0.1s; height: 40%; }
.eq-bar:nth-child(2) { animation-delay: 0.3s; height: 85%; }
.eq-bar:nth-child(3) { animation-delay: 0.15s; height: 60%; }
.eq-bar:nth-child(4) { animation-delay: 0.4s; height: 100%; }

.top-audio-bar.paused .eq-bar {
    animation-play-state: paused;
    height: 25% !important;
}

@keyframes eqPulse {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

.radio-track-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-controls-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-btn {
    background: #161a24;
    border: 1px solid var(--border-light);
    color: #fff;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.15s ease;
}

.radio-btn:hover {
    background: var(--ef-yellow);
    color: #000;
    border-color: var(--ef-yellow);
}

.sfx-toggle-btn {
    background: #161a24;
    border: 1px solid var(--border-light);
    color: var(--ef-yellow);
    padding: 6px 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.15s ease;
}

.sfx-toggle-btn:hover {
    border-color: var(--ef-yellow);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: #1c2230;
    outline: none;
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--ef-yellow);
    cursor: pointer;
    border-radius: 50%;
}

/* ================= 3. MAIN CONTENT AREA ================= */
.endfield-main-content {
    margin-left: var(--sidebar-collapsed-w);
    width: calc(100% - var(--sidebar-collapsed-w));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ef-section {
    padding: 64px 48px;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* ================= 4. SECTION 01: HERO TERMINAL WITH 120 FPS HORIZON GRID ================= */
#sec-hero {
    background: #090c12;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 48px;
    position: relative;
    overflow: hidden;
}

.hero-shader-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 65% 45%, rgba(8,10,14,0.3) 0%, rgba(8,10,14,0.92) 85%);
    pointer-events: none;
    z-index: 1;
}

.hero-top-badge {
    position: absolute;
    top: 36px;
    right: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: -0.5px;
    z-index: 2;
}

.hero-top-badge .badge-num {
    font-size: 2.2rem;
    color: var(--ef-yellow);
    font-family: var(--font-display);
    font-weight: 900;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 2;
}

.hero-title-main {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.hero-red-tag {
    display: inline-block;
    background: #ff2442;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: fit-content;
}

.hero-sub-bracket {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 900;
    color: var(--ef-yellow);
}

.hero-tagline {
    font-size: 0.95rem;
    color: #8c97ab;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-download-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #11141c;
    border: 1px solid var(--border-light);
    padding: 16px 20px;
    margin-top: 10px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.download-lbl {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--ef-yellow);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.download-lbl::before {
    content: '⚡';
    background: var(--ef-yellow);
    color: #000;
    padding: 1px 4px;
    font-size: 0.65rem;
}

.platform-badges-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-chip {
    background: #1a1f2b;
    border: 1px solid var(--border-light);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.platform-chip:hover {
    background: var(--ef-yellow);
    color: #000;
    border-color: var(--ef-yellow);
}

.hero-right-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.hero-art-backdrop {
    position: absolute;
    width: 92%;
    height: 92%;
    background: linear-gradient(135deg, rgba(255, 250, 0, 0.15) 0%, rgba(255, 36, 66, 0.05) 100%);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    z-index: 1;
}

.hero-art-content {
    position: relative;
    z-index: 2;
    background: rgba(17, 20, 28, 0.9);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-light);
    padding: 26px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    width: 100%;
    max-width: 440px;
}

/* ================= 5. SECTION 02: OPERATORS SHOWCASE & DYNAMIC BACKDROP ================= */
#sec-operators {
    background: #080a0e;
    padding: 64px 48px;
    position: relative;
    overflow: visible;
}

.operator-showcase-container {
    display: grid;
    grid-template-columns: 80px 1fr 1.3fr;
    gap: 36px;
    align-items: center;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.operator-carousel-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.op-arrow-btn {
    background: #141722;
    border: 1px solid var(--border-light);
    color: #fff;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.op-arrow-btn:hover {
    background: var(--ef-yellow);
    color: #000;
}

.op-avatar-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.op-avatar-chip {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #141722;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.op-avatar-chip img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.op-avatar-chip:hover {
    transform: scale(1.08);
}

.op-avatar-chip.active {
    border-color: var(--ef-yellow);
    box-shadow: 0 0 14px rgba(255, 250, 0, 0.5);
    transform: scale(1.12);
}

.operator-details-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

.op-watermark {
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: var(--font-display);
    font-size: 6.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    pointer-events: none;
    letter-spacing: -4px;
}

.op-rec-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--ef-yellow);
    letter-spacing: 1px;
}

.op-rarity-stars {
    display: flex;
    gap: 4px;
    color: var(--ef-yellow);
    font-size: 1.1rem;
}

.op-name-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    z-index: 1;
}

.op-faction-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 1;
}

.op-tag-box {
    background: #1a1f2b;
    border: 1px solid var(--border-light);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
}

.op-tag-box.light {
    background: #11141c;
    color: var(--ef-yellow);
    border: 1px solid var(--border-light);
}

.op-voice-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ef-yellow);
    color: #000;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    width: fit-content;
}

.op-quote {
    font-size: 0.88rem;
    font-style: italic;
    color: #dbe2ef;
    line-height: 1.5;
    border-left: 2px solid var(--ef-yellow);
    padding-left: 12px;
    z-index: 1;
}

.op-desc {
    font-size: 0.82rem;
    color: #8c97ab;
    line-height: 1.6;
    z-index: 1;
}

/* Operator Dynamic Visual Column */
.operator-art-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 480px;
    width: 100%;
    overflow: visible;
}

.op-atmosphere-container {
    position: absolute;
    width: 750px;
    height: 750px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.op-backdrop-img {
    position: absolute;
    width: 440px;
    height: 440px;
    object-fit: contain;
    opacity: 0.22;
    filter: blur(10px) drop-shadow(0 0 35px rgba(255,250,0,0.35));
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

#opAtmosphereCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Holographic Pedestal */
.op-holo-pedestal {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 28px;
    background: radial-gradient(ellipse at center, rgba(255, 250, 0, 0.45) 0%, rgba(255, 250, 0, 0.1) 45%, rgba(0,0,0,0) 75%);
    border-radius: 50%;
    filter: blur(5px);
    z-index: 1;
    animation: pedestalPulse 3.5s infinite ease-in-out;
}

@keyframes pedestalPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
    50% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

.op-art-card {
    position: relative;
    z-index: 2;
    background: rgba(17, 20, 28, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, border-color 0.3s ease;
}

.op-art-card:hover {
    border-color: var(--ef-yellow);
}

.op-art-img {
    width: 155px;
    height: 155px;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(0,0,0,0.85));
    animation: floatBottle 4.5s ease-in-out infinite;
    transition: opacity 0.25s ease;
}

@keyframes floatBottle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1.5deg); }
}

/* ================= 6. SECTION 03: TIER MATRIX ================= */
#sec-tierlist {
    background: #0b0d13;
    padding: 64px 48px;
}

.sec-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.sec-title-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
}

.workspace {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}

.board-card, .pool-card {
    background: #11141c;
    border: 1px solid var(--border-light);
    padding: 22px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.tier-rows-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tier-row {
    display: flex;
    min-height: 88px;
    background: #161a24;
    border: 1px solid var(--border-light);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: all 0.15s ease;
}

.tier-row.drop-active {
    border-color: var(--ef-yellow) !important;
    background: rgba(255, 250, 0, 0.1) !important;
}

.tier-row-label {
    width: 95px;
    min-width: 95px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.9rem;
    color: #ffffff;
    user-select: none;
}

.tier-row-label span {
    font-size: 0.52rem;
    font-family: var(--font-mono);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-row-label.tier-s { background: var(--tier-s); }
.tier-row-label.tier-a { background: var(--tier-a); }
.tier-row-label.tier-b { background: var(--tier-b); color: #000; }
.tier-row-label.tier-b span { color: #000; }
.tier-row-label.tier-c { background: var(--tier-c); color: #000; }
.tier-row-label.tier-c span { color: #000; }
.tier-row-label.tier-d { background: var(--tier-d); color: #000; }
.tier-row-label.tier-d span { color: #000; }
.tier-row-label.tier-f { background: var(--tier-f); }

.tier-row-dropzone {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    padding: 10px;
    min-height: 88px;
}

.drink-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 220px;
    padding: 10px;
    border: 1px dashed var(--border-light);
    background: #0b0d13;
    align-content: flex-start;
}

.drink-pool.drop-active {
    border-color: var(--ef-yellow);
    background: rgba(255, 250, 0, 0.08);
}

/* Drink Cards */
.drink-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #161a24;
    border: 1px solid var(--border-light);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    cursor: grab;
    touch-action: none;
    user-select: none;
    position: relative;
    transition: all 0.15s ease;
}

.drink-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 5px;
    background: var(--border-light);
}

.drink-card:hover {
    border-color: var(--ef-yellow);
    background: #1c212e;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 250, 0, 0.2);
}

.drink-card:hover::after {
    background: var(--ef-yellow);
}

.drink-thumb {
    width: 26px;
    height: 26px;
    object-fit: contain;
    pointer-events: none;
}

.drink-emoji {
    font-size: 1.2rem;
    pointer-events: none;
}

.drink-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    pointer-events: none;
}

.drink-card.dragging {
    opacity: 0.25 !important;
    pointer-events: none;
}

.drink-card.drag-floating {
    position: fixed !important;
    pointer-events: none !important;
    z-index: 999999 !important;
    background: #1e2330 !important;
    border: 1.5px solid var(--ef-yellow) !important;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
    cursor: grabbing !important;
    will-change: transform !important;
}

/* ================= 7. SECTION 04: GAMEPLAY & TERMINALS WITH LIVE VIEWPORT ================= */
#sec-gameplay {
    background: #080a0e;
    padding: 64px 48px;
    position: relative;
    overflow: hidden;
}

.endfield-huge-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 0.9;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.gameplay-sub-tag {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ef-yellow);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.gameplay-sub-tag::before {
    content: '↘';
    background: var(--ef-yellow);
    color: #000;
    padding: 2px 6px;
}

/* Gameplay Showcase Split Container */
.gameplay-showcase-box {
    display: grid;
    grid-template-columns: 1fr 340px 50px;
    background: #000000;
    color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    min-height: 520px;
}

.gameplay-content-panel {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #0e1118;
    border-right: 1px solid var(--border-light);
}

.gameplay-motion-viewport {
    position: relative;
    background: #06080d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#gpViewportCanvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gameplay-yellow-spine {
    background: var(--ef-yellow);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 4px;
    padding: 20px 0;
    text-transform: uppercase;
}

.gameplay-carousel-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.gp-nav-btn {
    width: 38px;
    height: 38px;
    background: #1c212e;
    color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gp-nav-btn:hover {
    background: var(--ef-yellow);
    color: #000;
}

.gp-counter {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--ef-yellow);
}

/* ================= 8. SECTION 05: PHOTO & MEDIA GALLERY (BENTO GRID) ================= */
#sec-gallery {
    background: #090c12;
    padding: 64px 48px;
    position: relative;
}

.gallery-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    background: #131722;
    border: 1px solid var(--border-light);
    color: #8c97ab;
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.15s ease;
}

.gallery-filter-btn:hover {
    background: #1c2232;
    color: #ffffff;
    border-color: var(--ef-yellow);
}

.gallery-filter-btn.active {
    background: var(--ef-yellow);
    color: #000000;
    border-color: var(--ef-yellow);
}

.gallery-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.gallery-bento-card {
    position: relative;
    background: #11141c;
    border: 1px solid var(--border-light);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    min-height: 220px;
}

.gallery-bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--ef-yellow);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.gallery-card-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.gallery-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-bento-card:hover .gallery-card-img-wrap img {
    transform: scale(1.06);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(8,10,14,0.92) 100%);
}

.gallery-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--border-light);
    color: var(--ef-yellow);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 7px;
    backdrop-filter: blur(8px);
}

.gallery-card-info {
    padding: 12px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffffff;
}

.gallery-card-desc {
    font-size: 0.75rem;
    color: #8c97ab;
    line-height: 1.4;
}

/* ================= 9. SECTION 06: BAR & STATS ================= */
#sec-bar {
    background: #0b0d13;
    padding: 64px 48px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.dashboard-grid > div {
    background: #11141c;
    border: 1px solid var(--border-light);
    padding: 24px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.dashboard-grid h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dashboard-grid p {
    font-size: 0.8rem;
    color: #8c97ab;
    line-height: 1.4;
    margin-bottom: 12px;
}

.input-text, select.select-input {
    width: 100%;
    background: #161a24;
    border: 1px solid var(--border-light);
    color: #fff;
    padding: 9px 12px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    outline: none;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.input-text:focus, select.select-input:focus {
    border-color: var(--ef-yellow);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--ef-yellow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn {
    background: #1a1f2b;
    border: 1px solid var(--border-light);
    color: #ffffff;
    padding: 9px 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn:hover {
    background: #232733;
    border-color: var(--ef-yellow);
}

.btn-primary {
    background: var(--ef-yellow);
    color: #000000;
    border-color: var(--ef-yellow);
    font-weight: 900;
}

.btn-primary:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn-danger {
    background: rgba(255, 36, 66, 0.15);
    color: #ff2442;
    border-color: #ff2442;
}

.btn-danger:hover {
    background: #ff2442;
    color: #fff;
}

/* Modals */
.modal-overlay, .qr-modal, .trailer-modal, .lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay.open, .qr-modal.open, .trailer-modal.open, .lightbox-modal.open {
    display: flex;
}

.modal-content, .qr-modal-card, .trailer-modal-card, .lightbox-modal-card {
    background: #11141c;
    border: 1px solid var(--border-light);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    padding: 28px;
    max-width: 540px;
    width: 100%;
    position: relative;
    color: #fff;
}

.trailer-modal-card, .lightbox-modal-card {
    max-width: 860px;
    padding: 20px;
}

.modal-close, .qr-close, .trailer-close, .lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #8c97ab;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover, .qr-close:hover, .trailer-close:hover, .lightbox-close:hover {
    color: var(--ef-yellow);
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #11141c;
    border: 1px solid var(--ef-yellow);
    color: var(--ef-yellow);
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 99999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: #8c97ab;
    font-family: var(--font-mono);
}

.stat-row strong {
    color: var(--ef-yellow);
}

/* ================= 10. MOBILE BOTTOM NAVIGATION BAR ================= */
.mobile-bottom-bar {
    display: none;
}

@media (max-width: 1024px) {
    .gameplay-showcase-box {
        grid-template-columns: 1fr 50px;
    }
    .gameplay-motion-viewport {
        display: none;
    }
    .cyber-hud-telemetry {
        display: none;
    }
}

@media (max-width: 768px) {
    .endfield-sidebar {
        display: none !important;
    }
    
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(56px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(10, 12, 18, 0.95);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-light);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #78859e;
        text-decoration: none;
        font-size: 0.65rem;
        font-family: var(--font-mono);
        font-weight: 700;
        padding: 6px 10px;
        flex: 1;
        transition: color 0.15s ease;
    }

    .mobile-tab-item .tab-icon {
        font-size: 1.15rem;
    }

    .mobile-tab-item.active {
        color: var(--ef-yellow);
    }

    .endfield-main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-bottom: 70px;
    }
    
    .top-audio-bar {
        padding: 8px 14px;
    }
    
    .radio-track-title {
        max-width: 130px;
        font-size: 0.72rem;
    }
    
    .volume-container {
        display: none;
    }
    
    .ef-section, #sec-hero {
        padding: 36px 16px;
    }
    
    .hero-content-grid, .operator-showcase-container, .workspace {
        grid-template-columns: 1fr;
    }

    .hero-top-badge {
        top: 16px;
        right: 16px;
    }
    
    .operator-art-column {
        min-height: 380px;
    }
    
    .op-atmosphere-container {
        width: 460px;
        height: 460px;
    }

    .op-backdrop-img {
        width: 260px;
        height: 260px;
    }

    .gallery-bento-grid {
        grid-template-columns: 1fr;
    }

    .gameplay-showcase-box {
        grid-template-columns: 1fr;
    }

    .gameplay-yellow-spine {
        display: none;
    }
}
