/* ===== FONT FACES ===== */
@font-face {
    font-display: swap;
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 100;
    src: url('JetBrainsMono-ThinItalic.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Game';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/Jersey10-Regular.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Pixelmax Outline';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/Pixelmax-Outline.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Pixelmax';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/Pixelmax-Regular.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Retro Byte';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/RetroByte.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Jacquard12';
    font-style: normal;
    font-weight: 400;
    src: url('Jacquard12-Regular.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Comic';
    font-style: normal;
    font-weight: 400;
    src: url('Comic Sans MS.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Joystix Proportional';
    font-style: normal;
    font-weight: normal;
    src: url('fonts/JoystixProportional-Regular.eot');
    src: local('fonts/Joystix Proportional'), local('JoystixProportional-Regular'),
        url('fonts/JoystixProportional-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/JoystixProportional-Regular.woff2') format('woff2'),
        url('fonts/JoystixProportional-Regular.woff') format('woff'),
        url('fonts/JoystixProportional-Regular.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Goldman Sans Black';
    font-style: normal;
    font-weight: 900;
    src: url('fonts/GoldmanSans_Blk.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Impact';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/impact.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Mespix';
    font-style: normal;
    font-weight: normal;
    src: url('fonts/Mespix.eot');
    src: local('Mespix'),
        url('fonts/Mespix.eot?#iefix') format('embedded-opentype'),
        url('fonts/Mespix.woff2') format('woff2'),
        url('fonts/Mespix.woff') format('woff'),
        url('fonts/Mespix.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Press Start 2P';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/PressStart2P-Regular.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'Silkscreen';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/Silkscreen-Regular.ttf') format('truetype');
}
@font-face {
    font-display: swap;
    font-family: 'VCR OSD Mono';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/VCR_OSD_MONO_1.001.ttf') format('truetype');
}

/* ===== GLOBAL STYLES & VARIABLES ===== */
:root {
    --accent-color: #3d000d;
    --font-size-base: clamp(11px, 2.5vw, 12.7px);
    --font-size-large: clamp(32px, 8vw, 44px);
    --font-size-small: clamp(10px, 2vw, 12.22px);
    --font-size-xlarge: clamp(38px, 9vw, 52px);
    --green-accent: #2fdd3e;
    --primary-bg: #09060a;
    --purple-accent: #661161;
    --red-accent: #741110;
    --secondary-bg: #000;
    --spacing-lg: 40px;
    --spacing-md: 20px;
    --spacing-sm: 10px;
    --spacing-xl: 60px;
    --spacing-xs: 5px;
    --text-primary: white;
    --text-secondary: rgba(174,174,174,0.69);
    --cyan-glow: #00ffff;
    --matrix-green: #0b4a0b;
}
* {
    -ms-overflow-style: none !important;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    scrollbar-width: none !important;
}
*::-webkit-scrollbar {
    display: none !important;
}
html {
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    background-color: var(--primary-bg);
    cursor: url('https://swag.fail/time.cur') 0 0, auto;
    font-size: 16px;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}
html, body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    position: relative;
    touch-action: auto; 
    width: 100%;
}
body {
    -webkit-overflow-scrolling: none !important;
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    font-family: Verdana, arial, sans-serif;
    margin: 0;
    padding: 0;
}
body, html, button, input, select, textarea, a {
    -ms-touch-action: none !important;
    -ms-user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation !important;
    user-select: none;
}
body::after {
    content: "";
    display: block;
    height: 1px;
}

/* ===== ANIMATIONS ===== */
@keyframes continuous-flash-green {
    0%, 100% { color: var(--ticker-text-color); }
    50% { color: var(--positive-color); }
}
@keyframes continuous-flash-red {
    0%, 100% { color: var(--ticker-text-color); }
    50% { color: var(--negative-color); }
}
@keyframes full-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes background-fade-reveal { 0% { opacity: 0 } 100% { opacity: 1 } }
@keyframes video-fade-reveal {
    0% { opacity: 0; }
    80% { opacity: 0.05; }
    100% { opacity: 0.471; }
}
@keyframes cosmic-breathe {
    0%,100% { opacity: 0.471; }
    50%     { opacity: 0.741; }
}
@keyframes cosmic-float-1 {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    25%     { transform: translate3d(1px,-1px,0) scale(1.002); }
    50%     { transform: translate3d(-1px,1px,0) scale(0.998); }
    75%     { transform: translate3d(1px,1px,0) scale(1.001); }
}
@keyframes cosmic-float-2 {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    20%     { transform: translate3d(-1px,1px,0) scale(1.001); }
    60%     { transform: translate3d(2px,-1px,0) scale(0.999); }
    80%     { transform: translate3d(-1px,-1px,0) scale(1.002); }
}
@keyframes cosmic-float-3 {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    30%     { transform: translate3d(1px,2px,0) scale(0.998); }
    55%     { transform: translate3d(-2px,-1px,0) scale(1.001); }
    85%     { transform: translate3d(1px,-1px,0) scale(1.002); }
}
@keyframes cosmic-float-4 {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    35%     { transform: translate3d(-1px,-2px,0) scale(1.002); }
    65%     { transform: translate3d(2px,1px,0) scale(0.998); }
    90%     { transform: translate3d(-1px,1px,0) scale(1.001); }
}
@keyframes cascade-unfold { from { opacity:0; transform:translateY(-10px) } to { opacity:1; transform:translateY(0) } }
@keyframes objective-fade-in { from { opacity:0 } to { opacity:0.22 } }
@keyframes pulse-and-fall {
    0%, 100% { opacity: 0.22; transform: translateY(0); }
    69% { opacity: 0; transform: translateY(7.41px); }
}
@keyframes aura-pulse {
    0%,100% { box-shadow: -1px 1px 13px 1px #30003d, inset 0 0 10px 7px #30003d; }
    50%     { box-shadow: -1px 1px 19px 3px #30003d, inset 0 0 13px 8px #30003d; }
}
@keyframes hacker-pulse {
    0%, 100% {
        box-shadow: 
            0 -2px 3px -2px rgba(6, 32, 12, 0.2),
            0 0 1px 1px rgba(10, 50, 20, 0.33), 
            inset 0 0 14px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 
            0 -2px 3px -2px rgba(6, 32, 12, 0),
            0 0 1px 2px rgba(10, 50, 20, 0.22),
            inset 0 0 17px rgba(0, 0, 0, 0.6);
    }
}
@keyframes hacker-pulse-red {
    0%, 100% { box-shadow: 0 0 6px 0px rgba(116, 17, 16, 0.5), inset 0 0 4px 0px rgba(116, 17, 16, 0.2); }
    50% { box-shadow: 0 0 10px 1px rgba(116, 17, 16, 0.7), inset 0 0 6px 1px rgba(116, 17, 16, 0.3); }
}
@keyframes text-flicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 0px #1c7c2c; }
    50% { opacity: 0.9; text-shadow: 2px 0 0px #1c7c2c; }
}
@keyframes scanline-move {
    from { background-position: 0 0; }
    to { background-position: 0 -4px; }
}
@keyframes crt-flicker-anim {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.85; transform: translateY(0.5px); }
}
@keyframes icon-bounce {
    0%, 100% { transform: translateY(-50%); }
    50%      { transform: translateY(calc(-50% - 2px)); }
}
@keyframes anti-gravity-drift {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-3px) rotate(-0.15deg); }
    100% { transform: translateY(0) rotate(0deg); }
}
@keyframes simple-fade-in-filter {
    from { opacity: 0; filter: brightness(0.6); }
    to   { opacity: 1; filter: brightness(0.85); }
}
@keyframes word-wave-movement {
    0%, 100% { transform: translateY(0) scale(1); }
    25%  { transform: translateY(-1.1px) scale(1.02); }
    50%  { transform: translateY(0) scale(1); }
    75%  { transform: translateY(0.6px) scale(0.99); }
}
@keyframes letter-shimmer-wave {
    0%   { transform: translateY(0) scale(1); filter: brightness(1); opacity: 1; }
    25%  { transform: translateY(-1.1px) scale(1.02); filter: brightness(1.3); opacity: 0.96; }
    50%  { transform: translateY(0) scale(1); filter: brightness(1.1); opacity: 1; }
    75%  { transform: translateY(0.6px) scale(0.99); filter: brightness(1.2); opacity: 0.98; }
    100% { transform: translateY(0) scale(1); filter: brightness(1); opacity: 1; }
}
@keyframes flash-green {
    0%, 100% { color: var(--ticker-text-color); }
    50% { color: var(--positive-color); }
}
@keyframes flash-red {
    0%, 100% { color: var(--ticker-text-color); }
    50% { color: var(--negative-color); }
}
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}
@keyframes tooltip-icon-fade {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes tooltip-icon-alternate-fade {
    0%, 45% { opacity: 0; }
    50%, 95% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes fade-in-saturation {
    from { filter: saturate(0); }
    to   { filter: saturate(1); }
}
@keyframes green-aura-pulse {
    0%, 100% {
        box-shadow: 0 0 10px 2px rgba(47, 221, 62, 0.471), 
                    inset 0 0 5px rgba(47, 221, 62, 0.1);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(47, 221, 62, 0.741), 
                    inset 0 0 10px rgba(47, 221, 62, 0.2);
    }
}
@keyframes matrix-green-aura-pulse {
    0%, 100% {
        box-shadow: 
            0 0 8px 2px rgba(27, 100, 36, 0.471),
            inset 0 0 5px 2px rgba(27, 100, 36, 0.2);
    }
    50% {
        box-shadow: 
            0 0 14px 3px rgba(11, 74, 11, 0.65), 
            inset 0 0 9px 3px rgba(47, 222, 69, 0.35);
    }
}
@keyframes dark-purple-aura-pulse {
    0%, 100% {
        box-shadow: 
            0 0 6px 1px rgba(48, 0, 61, 0.471),
            inset 0 0 3px 1px rgba(48, 0, 61, 0.2); 
    }
    50% {
        box-shadow: 
            0 0 11px 2px rgba(48, 0, 61, 0.741),  
            inset 0 0 7px 2px rgba(48, 0, 61, 0.3); 
    }
}
@keyframes hologram-flicker {
    0%, 100% { 
        opacity: 0.85;
        transform: skew(0deg);
        filter: contrast(1);
    }
    45% {
        opacity: 0.85;
        transform: skew(0deg);
    }
    46% {
        opacity: 0.6;
        transform: skew(0.5deg);
        filter: contrast(1.1);
    }
    47% {
        opacity: 0.85;
        transform: skew(0deg);
        filter: contrast(1);
    }
    90% {
        opacity: 0.85;
        transform: skew(0deg);
    }
    91% {
        opacity: 0.7;
        transform: skew(-0.5deg);
    }
    92% {
        opacity: 0.85;
        transform: skew(0deg);
    }
}
@keyframes hologram-flicker-green {
    0%, 100% { 
        opacity: 0.9;
        box-shadow: 
            inset 0 0 120px 25px rgba(47, 221, 62, 0.15),
            inset 0 0 60px 15px rgba(11, 74, 11, 0.1);
    }
    50% { 
        opacity: 1;
        box-shadow: 
            inset 0 0 140px 30px rgba(47, 221, 62, 0.2),
            inset 0 0 70px 20px rgba(11, 74, 11, 0.15);
    }
}
@keyframes crt-organic-drift {
    0%, 100% { 
        transform: translateZ(5px) translateX(0) translateY(0) scale(1);
        filter: contrast(1.05) brightness(0.98);
    }
    25% { 
        transform: translateZ(5px) translateX(0.3px) translateY(-0.2px) scale(1.001);
        filter: contrast(1.06) brightness(0.97);
    }
    50% { 
        transform: translateZ(5px) translateX(-0.2px) translateY(0.3px) scale(0.999);
        filter: contrast(1.04) brightness(0.99);
    }
    75% { 
        transform: translateZ(5px) translateX(0.2px) translateY(0.1px) scale(1.0005);
        filter: contrast(1.055) brightness(0.975);
    }
}
@keyframes crt-flicker {
    0%, 100% { opacity: 0.90; }
    2% { opacity: 0.82; }
    4% { opacity: 0.88; }
    50% { opacity: 0.85; }
}
@keyframes ambient-skew-glitch {
    0% { transform: translateZ(0) skew(0deg); filter: blur(0); }
    5% { transform: translateZ(0) skew(0.5deg); filter: blur(0.5px); }
    10% { transform: translateZ(0) skew(-0.5deg); filter: blur(0); }
    15% { transform: translateZ(0) skew(0deg); }
    100% { transform: translateZ(0) skew(0deg); }
}

/* ===== NEW HOLOGRAPHIC ANIMATIONS ===== */
@keyframes hologram-scan {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(200%); opacity: 0; }
}

@keyframes rgb-split {
    0%, 100% { 
        filter: drop-shadow(1px 0 0 rgba(255, 0, 100, 0.4)) 
                drop-shadow(-1px 0 0 rgba(0, 255, 255, 0.4)); 
    }
    25% {
        filter: drop-shadow(2px 0 0 rgba(255, 0, 100, 0.6)) 
                drop-shadow(-2px 0 0 rgba(0, 255, 255, 0.6)); 
    }
    50% { 
        filter: drop-shadow(3px 0 0 rgba(255, 0, 100, 0.8)) 
                drop-shadow(-3px 0 0 rgba(0, 255, 255, 0.8)); 
    }
    75% {
        filter: drop-shadow(2px 0 0 rgba(255, 0, 100, 0.6)) 
                drop-shadow(-2px 0 0 rgba(0, 255, 255, 0.6)); 
    }
}

@keyframes bracket-pulse {
    0%, 100% { 
        opacity: 0.6; 
        filter: drop-shadow(0 0 4px var(--cyan-glow));
    }
    50% { 
        opacity: 1; 
        filter: drop-shadow(0 0 10px var(--cyan-glow));
    }
}

@keyframes hologram-float {
    0%, 100% { 
        transform: perspective(1200px) rotateX(1deg) rotateY(-0.5deg) translateZ(0); 
    }
    25% {
        transform: perspective(1200px) rotateX(-0.5deg) rotateY(0.5deg) translateZ(5px);
    }
    50% { 
        transform: perspective(1200px) rotateX(0.5deg) rotateY(1deg) translateZ(8px); 
    }
    75% {
        transform: perspective(1200px) rotateX(-1deg) rotateY(-0.5deg) translateZ(3px);
    }
}

@keyframes depth-pulse {
    0%, 100% { 
        transform: translateZ(-20px) scale(1); 
        opacity: 0.2; 
    }
    50% { 
        transform: translateZ(-10px) scale(1.015); 
        opacity: 0.5; 
    }
}

@keyframes noise-flicker {
    0% { opacity: 0.03; transform: translate(0, 0); }
    10% { opacity: 0.08; transform: translate(-2%, 1%); }
    20% { opacity: 0.05; transform: translate(1%, -1%); }
    30% { opacity: 0.12; transform: translate(-1%, 2%); }
    40% { opacity: 0.04; transform: translate(2%, -2%); }
    50% { opacity: 0.09; transform: translate(-2%, 1%); }
    60% { opacity: 0.06; transform: translate(1%, -1%); }
    70% { opacity: 0.10; transform: translate(-1%, 2%); }
    80% { opacity: 0.05; transform: translate(2%, -1%); }
    90% { opacity: 0.07; transform: translate(-2%, 1%); }
    100% { opacity: 0.03; transform: translate(0, 0); }
}

@keyframes grid-scroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

@keyframes energy-ripple {
    0% {
        box-shadow: 
            inset 0 0 20px rgba(0, 255, 255, 0.2),
            0 0 20px rgba(0, 255, 255, 0.3),
            0 0 40px rgba(0, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            inset 0 0 40px rgba(0, 255, 255, 0.4),
            0 0 40px rgba(0, 255, 255, 0.6),
            0 0 80px rgba(0, 255, 255, 0.2);
    }
    100% {
        box-shadow: 
            inset 0 0 20px rgba(0, 255, 255, 0.2),
            0 0 20px rgba(0, 255, 255, 0.3),
            0 0 40px rgba(0, 255, 255, 0.1);
    }
}

@keyframes beam-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes particle-float {
    0% { 
        bottom: -20px; 
        opacity: 0; 
        transform: translateX(0) rotate(0deg); 
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.2; }
    100% { 
        bottom: 120%; 
        opacity: 0; 
        transform: translateX(30px) rotate(180deg); 
    }
}

@keyframes scan-line-vertical {
    0% { top: -5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 105%; opacity: 0; }
}

/* ===== UTILITY CLASSES ===== */
.shift-right {
    display: inline-block;
    transform: translateX(0.36em);
    transition: transform 140ms ease;
    will-change: transform;
}
.shift-left-micro {
    display: inline-block;
    transform: translateX(-0.06em);
    transition: transform 140ms ease;
    will-change: transform;
}
.tight-uppercase {
    letter-spacing: -0.06em;
    transition: letter-spacing 140ms ease;
}
.anti-gravity {
    animation: anti-gravity-drift 8s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform;
}
.crt-flicker {
    animation: crt-flicker-anim 0.15s infinite;
}
.mobile-break {
    display: none;
}
.word-container > span {
    display: inline-block;
}

/* ===== LAYOUT & CORE COMPONENTS ===== */
#background-overlay {
    animation: background-fade-reveal 12.2s ease-in 4.0s forwards,
               fade-in-saturation 14.7s ease-in 6.49s forwards;
    background-attachment: fixed;
    background-attachment: fixed;
    background-blend-mode: lighten;
    background-image: url('741.png');
    background-position: 16% 99%;
    background-repeat: no-repeat;
    background-size: cover;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
    filter: saturate(0);
}
#background-video,
mux-player#background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    pointer-events: none;
    --media-object-fit: cover;
    --media-object-position: 16% 99%;
    --airplay-button: none;
    --captions-button: none;
    --cast-button: none;
    --live-button: none;
    --media-play-button: none;
    --center-play-button: none;
    --mute-button: none;
    --pip-button: none;
    --playback-rate-button: none;
    --rendition-menu-button: none;
    --seek-backward-button: none;
    --seek-forward-button: none;
    --time-display: none;
    --time-range: none;
    --volume-range: none;
    opacity: 0;
    animation:
        video-fade-reveal 17.4s ease-in 4.0s forwards,
        cosmic-breathe 24s ease-in-out 9.6s infinite,
        cosmic-float 60s ease-in-out 9.6s infinite alternate;
    will-change: opacity, transform;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    mix-blend-mode: luminosity;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    mix-blend-mode: normal;
    opacity: 0;
    pointer-events: none;
    background-color: #000000;
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#matrix-canvas.active {
    opacity: 1;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#header, #main, #footer {
    position: relative;
    z-index: 2;
}
#header, #footer {
    animation: full-fade-in 7.41s ease-in 12.88s forwards;
    left: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}
#header { 
    top: calc(env(safe-area-inset-top) / 0.7);
}
/* ===== CONTINUATION FROM PART 1 ===== */

#footer { 
    bottom: calc(env(safe-area-inset-bottom) / 0.7);
}
#main {
    align-items: center;
    left: 50%;
    max-width: 670px;
    padding: var(--spacing-md);
    position: absolute;
    top: 48%;
    transform: translate(-50%, -50%);
    transition: top 5.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}
#main.slide-up {
    top: 48%;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-family: "Game", "Trebuchet MS", sans-serif;
    font-size: var(--font-size-large);
    letter-spacing: 1.47px;
    line-height: 1.2;
    margin-bottom: -1.47px;
    padding-top: var(--spacing-sm);
    text-align: center;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px  1px 0 #000,
        1px  1px 0 #000,
        4px 4px var(--secondary-bg);
    user-select: none;
    white-space: nowrap;
    word-break: keep-all;
}
h1 > span {
    transform: translateZ(0);
    vertical-align: baseline;
    will-change: transform;
}
#word-you, #word-just, #word-lost {
    animation-duration: 2.0s, 3.6s;
    animation-fill-mode: forwards, none;
    animation-iteration-count: 1, infinite;
    animation-name: simple-fade-in-filter, word-wave-movement;
    animation-timing-function: ease-out, ease-in-out;
    opacity: 0;
}
#word-you { animation-delay: 0s, 1.5s; }
#word-just { animation-delay: 1.0s, 2.7s; }
#word-lost { animation-delay: 2.0s, 3.6s; }
#title-part-2 {
    color: var(--accent-color);
    display: inline-block;
    font-family: 'Pixelmax Outline';
    font-size: var(--font-size-xlarge);
    letter-spacing: 1.47px;
    margin-left: -0.69px;
    opacity: 1;
    text-align: center;
    text-shadow: 4px 4px var(--secondary-bg), 0 0 5px rgba(116, 17, 16, 0.147); 
    transition: opacity 0.1s ease-in, color 0.2s ease-in-out, font-family 0.1s linear;
}
#title-part-2 span {
    display: inline-block;
    opacity: 0;
    transform: translateZ(0);
    transition: color 0.2s ease-in-out;
    will-change: transform;
}
#title-part-2.activated span {
    animation: letter-shimmer-wave 3.6s ease-in-out infinite !important;
    animation-fill-mode: none !important;
    font-family: inherit !important;
}
#title-part-2.activated span:nth-child(1) { animation-delay: 0s !important; }
#title-part-2.activated span:nth-child(2) { animation-delay: 0.08s !important; }
#title-part-2.activated span:nth-child(3) { animation-delay: 0.16s !important; }
#title-part-2.activated span:nth-child(4) { animation-delay: 0.24s !important; }
#title-part-2.activated span:nth-child(5) { animation-delay: 0.32s !important; }
#title-part-2.activated span:nth-child(6) { animation-delay: 0.40s !important; }
#title-part-2.activated span:nth-child(7) { animation-delay: 0.48s !important; }
#title-part-2.activated span:nth-child(8) { animation-delay: 0.56s !important; }
#title-part-2.activated span:nth-child(9) { animation-delay: 0.64s !important; }
.sign-blink-off {
    opacity: 0.1 !important;
    transition: opacity 0.05s ease-in !important;
}
.letter-off {
    filter: brightness(0.2) !important;
    opacity: 0.15 !important;
    transition: opacity 0.08s ease-out, filter 0.08s ease-out;
}
#text-wrapper {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: center;
    margin-bottom: 0;
    min-height: 280px;
    padding: 0;
    width: 100%;
}

/* ===== 4D CRT MONITOR RULES WINDOW ===== */
.rules-window {
    animation: full-fade-in 4.88s ease-in 8.0s forwards;
    background-color: #020402;
    border: 1px solid #131d13;
    box-shadow: 
        0 0 0 2px #000,
        0 0 0 5px #070c07,
        4px 4px 0px #080d08,
        8px 8px 0px #050805,
        20px 20px 40px rgba(0,0,0,0.9);
    image-rendering: pixelated;
    margin: 20px auto 0;
    max-width: 486px;
    opacity: 0;
    position: relative;
    transform: perspective(1200px) translateZ(0);
    width: 100%;
}

.window-header {
    background-color: #0b0e0b; 
    border-bottom: 3px solid #000;
    color: #000000;
    display: flex;
    font-family: 'VCR OSD Mono', monospace;
    align-items: center;
    padding: 3px 6px;
    height: 26px;
    position: relative;
    text-shadow: none;
    z-index: 10;
}

.window-title {
    color: rgba(222, 222, 222, 0.444);
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: 147;
    letter-spacing: 3.33px;
    margin: 0;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.74);
}

.window-controls {
    display: flex;
    margin-left: auto;
}
.window-title .rsgme-step {
    font-weight: 600;
    transition: all 0.45s ease-in-out;
    will-change: color, text-shadow, filter;
}
.window-title .rsgme-step-0 {
    color: rgba(88, 8, 74, 0.41);
    filter: brightness(0.8) saturate(0.8);
    text-shadow: 1px 1px 0px rgba(74, 1, 69, 0.44);
}
.window-title .rsgme-step-1,
.window-title .rsgme-step-2,
.window-title .rsgme-step-3 {
    color: #6e0f6a;
    filter: brightness(1) saturate(1);
    text-shadow:
        0 0 5px rgba(123, 20, 110, 0.7),
        0 0 8px rgba(147, 22, 124, 0.4);
}

.window-controls {
    display: flex;
}
.window-button {
    align-items: center;
    background: #0a0a0a;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px;
    border: 1px solid #1a1a1a;
    cursor: url('https://swag.fail/quest.cur') 0 0, pointer;
    display: flex;
    font-size: 0;
    height: 20px;
    justify-content: center;
    margin-left: 3px;
    min-height: 20px;
    min-width: 20px;
    padding: 0;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    user-select: none;
    width: 20px;
}
.window-button.minimize { background-image: url('logos/minimize.png'); opacity: 0.741; }
.window-button.maximize { background-image: url('logos/maximize.png'); opacity: 0.741; }
.window-button.close { background-image: url('logos/close.png'); opacity: 0.741; }
.window-button:hover {
    opacity: 0.95;
    transform: scale(1.1);
    z-index: 50;
}
.window-button.minimize:hover { 
    background-color: rgba(139, 112, 0, 0.15);
    border-color: #2b2200; 
}
.window-button.maximize:hover { 
    background-color: rgba(0, 100, 0, 0.15);
    border-color: #001a00; 
}
.window-button.close:hover { 
    background-color: rgba(116, 17, 16, 0.15);
    border-color: #240505;
}
.window-button:active {
    background: var(--secondary-bg);
    border-color: var(--red-accent);
}

.rules-window p {
    background-color: #000000;
    border: 2px solid #080f08;
    border-radius: 20px;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,1), 
        inset 0 0 5px rgba(20, 50, 20, 0.5);
    color: #2fdd3e;
    font-family: 'VCR OSD Mono', 'IBM Plex Mono', monospace;
    font-size: 12.22px;
    line-height: 2.69;
    margin: 6px;
    overflow: hidden;
    padding: 20px;
    padding-block: 0.6em;
    padding-inline: 0.4em;
    position: relative;
    text-align: center;
    text-shadow: 0 0 4px rgba(47, 221, 62, 0.8);
    white-space: nowrap;
}
.rules-window p::before {
    animation: scanline-move 10s linear infinite;
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.4) 50%
    );
    background-size: 100% 4px;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.9);
    bottom: 0;
    content: " ";
    display: block;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 5;
}
.rules-window p::after {
    background: linear-gradient(
        180deg, 
        rgba(255,255,255,0.02) 0%, 
        transparent 100%
    );
    border-radius: 20px 20px 0 0;
    content: " ";
    height: 30%;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 6;
}

.rules-window p .rule b,
.rules-window p .colon {
    animation: text-flicker 3s infinite;
    color: var(--green-accent) !important;
    font-family: inherit !important;
    font-style: normal;
    font-weight: 400 !important;
    letter-spacing: 1.5px;
    text-shadow: 2px 0 0px var(--green-accent);
}
.rules-window p a {
    animation: none !important;
    color: var(--text-primary) !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-shadow: none !important;
}
.rules-window p a:hover,
.rules-window p a:active {
    background-color: transparent;
    color: #39ff14 !important;
    font-weight: 400 !important;
    text-shadow: 1px 1px 0px #39ff14 !important;
}
.window-button .error-desc {
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-shadow: none;
}
.rule {
    opacity: 0;
}
#rule-1 { 
    animation: cascade-unfold 4.44s ease-out forwards; 
    animation-delay: 8.8s; 
}
#rule-2 { 
    animation: cascade-unfold 4.71s ease-out forwards; 
    animation-delay: 14.71s; 
}
#rule-3 { 
    animation: cascade-unfold 7.41s ease-out forwards;  
    animation-delay: 17.41s; 
}

/* ===== HOLOGRAPHIC VIDEO CONTAINER ===== */
.video-container {
    animation: dark-purple-aura-pulse 4s ease-in-out infinite;
    background-color: rgba(48, 0, 61, 0.4);
    border-color: rgba(48, 0, 61, 0.6);
    border-radius: 10px;
    border-style: solid;
    border-width: 7.41px;
    box-shadow: 0 0 10px 1px rgba(48, 0, 61, 0.741), inset 0 0 6px 1px rgba(48, 0, 61, 0.3);
    margin-top: 30px;
    max-height: 3px;
    max-width: 670px;
    opacity: 0;
    overflow: hidden;
    position: relative;
    transform: perspective(1200px) translateZ(0);
    transform-style: preserve-3d;
    transition: max-height 10.1s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 2s ease-out, 
                border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s ease-out;
    width: 100%;
    will-change: transform;
    z-index: 2;
}

/* Holographic base effects - always present */
.video-container::before {
    animation: hologram-flicker 4s ease-in-out infinite;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(60, 40, 70, 0.15) 0px,
            rgba(60, 40, 70, 0.25) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(60, 40, 70, 0.15) 0px,
            rgba(60, 40, 70, 0.25) 1px,
            transparent 1px,
            transparent 4px
        );
    border-radius: 8px;
    box-shadow: 
        inset 0 0 100px 20px rgba(66, 11, 60, 0.12),
        inset 0 0 50px 10px rgba(30, 0, 30, 0.08);
    content: '';
    height: 100%;
    left: 0;
    mix-blend-mode: overlay;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    transition: opacity 1.47s ease, background 0.8s ease;
    width: 100%;
    z-index: 10;
}

/* Holographic scan line */
.video-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(102, 17, 97, 0.8),
        transparent
    );
    box-shadow: 0 0 15px 3px rgba(102, 17, 97, 0.6);
    animation: scan-line-vertical 4s linear infinite;
    pointer-events: none;
    z-index: 11;
    mix-blend-mode: screen;
}

/* Corner brackets - depth layer */
.video-container .holo-brackets {
    position: absolute;
    inset: -12px;
    pointer-events: none;
    z-index: 12;
}

.video-container .holo-brackets::before,
.video-container .holo-brackets::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border-style: solid;
    border-width: 2px;
    border-color: rgba(102, 17, 97, 0.5);
    transition: border-color 0.8s ease, filter 0.8s ease;
    filter: drop-shadow(0 0 6px rgba(102, 17, 97, 0.4));
    animation: bracket-pulse 3s ease-in-out infinite;
}

.video-container .holo-brackets::before {
    top: 0;
    left: 0;
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.video-container .holo-brackets::after {
    bottom: 0;
    right: 0;
    border-left-color: transparent;
    border-top-color: transparent;
}

/* RGB chromatic aberration overlay */
.video-container .rgb-split-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 13;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Noise/static overlay */
.video-container .noise-layer {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.08"/></svg>');
    animation: noise-flicker 0.15s steps(8) infinite;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 14;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Minor glitch state */
.video-container.minor-glitch, 
.rules-window.minor-glitch {
    animation: ambient-skew-glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
    border-color: rgba(100, 100, 100, 0.5) !important;
}

/* MATRIX MODE - Full holographic transformation */
.video-container.matrix-glitch-border {
    animation: 
        energy-ripple 2.4s ease-in-out infinite,
        hologram-float 6s ease-in-out infinite;
    border-color: #020e03;
}

.video-container.matrix-glitch-border::before {
    animation: hologram-flicker-green 2s ease-in-out infinite;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(47, 221, 62, 0.05) 0px,
            rgba(47, 221, 62, 0.05) 2px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(47, 221, 62, 0.04) 0px,
            rgba(47, 221, 62, 0.04) 2px,
            transparent 2px,
            transparent 4px
        );
    box-shadow: 
        inset 0 0 120px 25px rgba(47, 221, 62, 0.15),
        inset 0 0 60px 15px rgba(11, 74, 11, 0.1);
    opacity: 1;
}

.video-container.matrix-glitch-border::after {
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 255, 100, 0.9),
        transparent
    );
    box-shadow: 0 0 20px 4px rgba(0, 255, 100, 0.7);
}

.video-container.matrix-glitch-border .holo-brackets::before,
.video-container.matrix-glitch-border .holo-brackets::after {
    border-color: rgba(0, 255, 100, 0.7);
    filter: drop-shadow(0 0 10px rgba(0, 255, 100, 0.8));
}

.video-container.matrix-glitch-border .rgb-split-layer {
    opacity: 0.6;
    animation: rgb-split 0.8s ease-in-out infinite;
}

.video-container.matrix-glitch-border .noise-layer {
    opacity: 0.12;
}

/* Expand state */
.video-container.expand {
    aspect-ratio: 16 / 9;
    max-height: 1000px;
    opacity: 1;
}

.video-container.expand::before {
    opacity: 1;
}

/* MUX Player styling */
.video-container mux-player {
    --airplay-button: none;
    --captions-button: none;
    --cast-button: none;
    --live-button: none;
    --media-object-fit: cover;
    --media-play-button-opacity: 0.5;
    --mute-button: none;
    --pip-button: none;
    --playback-rate-button: none;
    --rendition-menu-button: none;
    --seek-backward-button: none;
    --seek-forward-button: none;
    --time-display: none;
    --time-range: none;
    --volume-range: none;
    border-radius: 8px;
    height: 100%;
    left: 0;
    opacity: 0;
    overflow: hidden;
    perspective: 1000px;
    position: absolute;
    top: 0;
    transform: scale(1.005) translateZ(0);
    transform-style: preserve-3d;
    transition: opacity 1.47s ease, visibility 0s 0.8s;
    visibility: hidden;
    width: 100%;
    will-change: transform;
}

.video-container mux-player:hover {
    --media-play-button-opacity: 0.8;
}

.video-container.expand mux-player {
    opacity: 1;
    transition-delay: 1.47s;
    visibility: visible;
}

.video-container video {
    height: 100%;
    left: 0;
    object-fit: fill;
    position: absolute;
    top: 0;
    width: 100%;
}

mux-player::part(center play button) {
    background: rgba(20, 20, 20, 0.33) !important;
    height: clamp(60px, 15vw, 88px) !important;
    left: 50% !important;
    position: absolute !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: clamp(60px, 15vw, 88px) !important;
}

.video-container mux-player::part(center play button):hover {
    background: rgba(143, 24, 106, 0.471) !important;
}

/* ===== OBJECTIVE TEXT & LINKS ===== */
p2 {
    animation: objective-fade-in 4.2s ease-in 19.6s forwards, pulse-and-fall 7s ease-in-out 23.44s infinite;
    color: rgba(174,174,174,0.69);
    display: block !important;
    font-family: 'IBM Plex Mono', serif;
    font-size: 12.7px;
    font-weight: 100;
    letter-spacing: .77px;
    line-height: 24px;
    margin-top: 7.41px;
    opacity: 0;
    padding: 0 3px;
    pointer-events: auto;
    position: relative;
    text-align: center;
    text-shadow: 3px 2px var(--purple-accent);
    transition: opacity 0.5s ease-in, text-shadow 2s ease-in-out, color 2s ease-in-out;
    z-index: 100;
}
p2.green-mode {
    color: #aaddaa !important;
    font-family: 'VCR OSD Mono', monospace !important;
    text-shadow: 3px 2px #104410 !important;
}
p2 i {
    display: inline;
    font-style: italic;
}
p2 i a {
    color: rgba(174,174,174,0.69);
    display: inline;
    text-decoration: none;
}
a:link,
a:visited {
    background-color: transparent;
    color: var(--text-primary);
    text-decoration: none;
}
a:hover,
a:active {
    background-color: transparent;
    color: darkmagenta;
    font-weight: bold;
    text-decoration: none;
}
a:hover,
button:hover,
.video-container:hover,
mux-player::part(center play button):hover,
mux-player::part(play button):hover,
mux-player::part(fullscreen button):hover {
    cursor: url('https://swag.fail/quest.cur') 0 0, pointer;
}

/* ===== FINANCIAL TICKER ===== */
:root {
    --animation-duration: 30s;
    --divider-color: rgba(17, 0, 44, 0.0147);
    --font-weight-price: 333;
    --font-weight-symbol: 471;
    --negative-color: #741110;
    --neutral-color: #8c8c8c;
    --positive-color: #0b741d;
    --ticker-bg: hsla(0, 0%, 0%, 0.471);
    --ticker-font-family: 'Joystix Proportional', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --ticker-font-size: clamp(10px, 2.5vw, 12px);
    --ticker-letter-spacing: clamp(1px, 0.5vw, 3px);
    --ticker-text-color: #d1d4dc;
}
.financial-ticker-container {
    -webkit-backdrop-filter: blur(10px);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    -webkit-transform: translateZ(0);
    backdrop-filter: drop-shadow(8px 8px 10px rgba(0, 0, 0, 1));
    background-color: var(--ticker-bg);
    backface-visibility: hidden;
    border-bottom: 1px solid var(--divider-color);
    border-top: 1px solid var(--divider-color);
    overflow: hidden;
    padding: var(--spacing-sm) 0;
    perspective: 1000;
    white-space: nowrap;
    width: 100%;
}
.financial-ticker-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    transform: translateZ(0); 
    width: max-content;
    will-change: transform;
    z-index: 100;
}
header .financial-ticker-list {
    animation: scroll-left var(--animation-duration) linear infinite;
}
footer .financial-ticker-list {
    animation: scroll-right var(--animation-duration) linear infinite;
}
.ticker-item {
    align-items: center;
    color: var(--ticker-text-color);
    display: flex;
    flex-shrink: 0;
    font-family: var(--ticker-font-family);
    font-size: var(--ticker-font-size);
    justify-content: center;
    max-width: 340px;
    min-width: 340px;
    padding: 0 clamp(60px, 12vw, 110px);
    position: relative;
    text-shadow: 0 0 8px rgba(90, 30, 100, 0.3);
    transform: translateZ(0);
    user-select: none;
    width: 340px;
    will-change: transform;
}
.ticker-item .logo {
    flex-shrink: 0;
    height: clamp(14px, 4vw, 18px);
    margin-right: 8px;
    width: clamp(14px, 4vw, 18px);
}
.ticker-item .symbol {
    display: inline-block;
    font-weight: var(--font-weight-symbol);
    margin-right: 12px;
    min-width: 90px;
    text-align: center;
    white-space: nowrap;
}
.ticker-item .price {
    font-weight: var(--font-weight-price);
    margin-right: 8px;
    white-space: nowrap;
}
/* ===== CONTINUATION - TICKER & REMAINING STYLES ===== */

.ticker-item .change {
    font-size: clamp(9px, 2vw, 10.5px);
    font-weight: var(--font-weight-price);
    white-space: nowrap;
}
.ticker-item .change.positive { color: var(--positive-color); }
.ticker-item .change.negative { color: var(--negative-color); }
.ticker-item .change.neutral { color: var(--neutral-color); }
.ticker-item::after {
    background-color: var(--divider-color);
    content: '';
    height: 60%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
}
.price.flash-positive { animation: flash-green 0.96s ease-out; }
.price.flash-negative { animation: flash-red 0.96s ease-out; }
.glitch-flash-green { animation: continuous-flash-green 0.5s infinite !important; }
.glitch-flash-red { animation: continuous-flash-red 0.5s infinite !important; }

header .financial-ticker-list.reversed {
    animation: scroll-right var(--animation-duration) linear infinite;
}
footer .financial-ticker-list.reversed {
    animation: scroll-left var(--animation-duration) linear infinite;
}
.financial-ticker-list.transitioning {
    animation-play-state: paused;
    transition: transform 0.1s ease-out;
}
@supports (animation-play-state: running) {
    .financial-ticker-list {
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }
}

/* ===== TOOLTIP STYLES ===== */
.custom-tooltip {
    animation: crt-flicker-anim 0.15s infinite, hacker-pulse-red 5s ease-in-out infinite;
    background-color: var(--secondary-bg);
    border: 1px solid var(--red-accent);
    border-radius: 0;
    bottom: 140%;
    box-shadow: 0 0 8px rgba(116, 17, 16, 0.4);
    color: var(--text-primary);
    font-family: 'VCR OSD Mono', monospace;
    font-size: clamp(11px, 3vw, 14px);
    left: 50%;
    opacity: 0;
    overflow: hidden;
    padding: 8px 12px 8px 32px;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
    visibility: hidden;
    white-space: nowrap;
    will-change: opacity, transform;
    z-index: 100;
}
.custom-tooltip::after {
    animation: scanline-move 1.5s linear infinite;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0px, rgba(0, 0, 0, 0.4) 1px, transparent 1px, transparent 3px);
    content: '';
    height: 100%;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
}
.window-button:hover .custom-tooltip {
    opacity: 1;
    visibility: visible;
}
.window-button:hover .custom-tooltip::before {
    animation: icon-bounce 1.2s ease-in-out infinite, tooltip-icon-fade 4s ease-in-out infinite;
    background-image: url("logos/game.png");
    background-repeat: no-repeat;
    background-size: contain;
    content: '';
    height: 16px;
    left: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
}
.window-button:hover .custom-tooltip::after {
    animation: tooltip-icon-alternate-fade 4s ease-in-out infinite;
    background-repeat: no-repeat;
    background-size: contain;
    content: '';
    height: 16px;
    left: 10px;
    opacity: 0.47;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    z-index: 1;
}
.window-button.minimize:hover .custom-tooltip::after { background-image: url("logos/minimize1.png"); }
.window-button.maximize:hover .custom-tooltip::after { background-image: url("logos/maximize1.png"); }
.window-button.close:hover .custom-tooltip::after { background-image: url("logos/close1.png"); }
.window-button .error-text {
    color: #b32d2d;
    font-family: inherit;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-shadow: 0 0 5px rgba(50, 0, 0, 0.7);
}
.window-button:hover::after {
    display: none;
}
    
/* ===== RESPONSIVE BREAKPOINTS ===== */
@media screen and (max-width: 820px) {
    .mobile-break {
        display: block;
    }
    #background-overlay {
        background-position: 16% 147%;
    }
    #background-video,
    mux-player#background-video {
        --media-object-position: 16% 147%;
    }
}
@media screen and (max-width: 374px) {
    :root {
        --font-size-large: clamp(24px, 7vw, 32px);
        --font-size-xlarge: clamp(28px, 8vw, 38px);
        --spacing-md: 10px;
    }
    h1 { letter-spacing: 0.5px; }
    #title-part-2 { font-size: clamp(28px, 8vw, 38px); }
    .rules-window p { font-size: 10px; line-height: 2.2; }
    .ticker-item { min-width: 120px; padding: 0 20px; }
    p2 { font-size: 11px; }
}
@media screen and (max-width: 667px) {
    #main { padding: 10px; }
    #text-wrapper { margin-bottom: 15px; min-height: auto; }
    .rules-window { margin-top: 15px; width: 95vw; }
    h1 { margin-bottom: 4.2px; }
    #title-part-2 { font-size: clamp(32px, 9vw, 44px); }
    .video-container { margin-top: 20px; }
    p2 { font-size: 12px; margin-top: 1.47px; padding: 0 4px; }
}
@media screen and (max-width: 820px) {
    #main { top: 48.8%; width: 90vw; }
    #main.slide-up { top: 44.8%; }
    #text-wrapper { margin-bottom: 15px; min-height: auto; }
    h1 { font-size: clamp(28px, 7vw, 38px); margin-bottom: 4.2px; white-space: nowrap; }
    #title-part-2 { font-size: clamp(32px, 8vw, 44px); }
    .rules-window { margin-top: 20px; width: 80vw; }
    .rules-window p {
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
    }
    .rules-window p::-webkit-scrollbar { display: none; }
    .rule { font-size: 2vw; }
    .rule b, .rule .colon { font-size: 1.74vw; }
    .video-container { margin-top: 44px; min-width: 0; width: 100%; }
    p2 { font-size: 12px; margin-top: -4px; }
    mux-player::part(center play button) {
        left: 50% !important;
        margin: 0 !important;
        position: absolute !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    @media (hover: none) and (pointer: coarse) {
        .window-button:hover { box-shadow: none; transform: none; }
        .custom-tooltip { display: none; }
    }
}
@media screen and (min-width: 821px) and (max-width: 1024px) {
    :root {
        --font-size-large: 40px;
        --font-size-xlarge: 48px;
    }
    #main { max-width: 750px; }
    .video-container { max-width: 750px; }
}
@media screen and (max-height: 500px) and (orientation: landscape) {
    #main { min-height: auto; padding-bottom: 20px; padding-top: 20px; }
    #text-wrapper { padding: 10px 0; }
    h1 { font-size: clamp(20px, 5vh, 32px); margin-bottom: 5px; }
    #title-part-2 { font-size: clamp(24px, 6vh, 38px); }
    .rules-window { margin-top: 5px; }
    .video-container { margin-top: 10px; }
    p2 { font-size: 11px; margin-top: 4px; }
    .anti-gravity { animation: none; }
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .anti-gravity { animation: none !important; }
    html { scroll-behavior: auto; }
}
@media print {
    #header, #footer, .financial-ticker-container { display: none; }
    #background-overlay { opacity: 0.3; }
    body { background: white; color: black; }
}

/* ===== PLATFORM FIXES ===== */
@supports (-webkit-touch-callout: none) {
    input, select, textarea { font-size: 16px; }
    body { -webkit-text-size-adjust: 100%; }
}
@media (hover: none) {
    a:hover, .window-button:hover { -webkit-tap-highlight-color: transparent; }
}

/* ===== MOBILE/TOUCH DEVICE FIX ===== */
@media (hover: none) and (pointer: coarse) {
    #background-overlay,
    #background-video,
    mux-player#background-video,
    #header, #footer,
    #main {
        position: fixed;
    }
    #header { 
        top: calc(env(safe-area-inset-top) / 0.7); 
        bottom: auto; 
    }
    #footer { 
        bottom: calc(env(safe-area-inset-bottom) / 0.7); 
        top: auto; 
    }
    #main {
        top: 48%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    #background-overlay,
    #background-video,
    mux-player#background-video {
        inset: 0;
        width: 100%;
        height: 100%;
    }
}