* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 禁用文字和元素選取 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    background-color: #000;
    /* 禁用拖曳選取 */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* VHS 主選單樣式 */
#vhsMenu, #vhsLoading, #settingMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4a4a9e;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 添加顆粒濾鏡 */
    filter: contrast(1.1) brightness(0.95);
    /* 添加邊緣暗角 */
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.5);
}

/* VHS 顆粒效果層 */
#vhsMenu::before, #vhsLoading::before, #settingMenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        );
    pointer-events: none;
    z-index: 5;
}

/* VHS 水平干擾線 */
#vhsMenu::after, #vhsLoading::after, #settingMenu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 8px,
        rgba(0, 0, 0, 0.08) 8px,
        rgba(0, 0, 0, 0.08) 9px
    );
    pointer-events: none;
    z-index: 6;
    animation: interference 0.5s infinite;
}

@keyframes interference {
    0% { transform: translateY(0); }
    100% { transform: translateY(9px); }
}

/* VHS 掃描線效果 */
.vhs-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 10;
    animation: scanline 10s linear infinite;
    opacity: 0.8;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(12px); }
}

/* VHS 雜訊效果 */
.vhs-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="1.5" numOctaves="6" seed="2" /></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.15"/></svg>');
    pointer-events: none;
    z-index: 11;
    animation: noise 0.15s infinite;
    opacity: 0.6;
    mix-blend-mode: overlay;
}

@keyframes noise {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-3%, -2%); }
    20% { transform: translate(-4%, 4%); }
    30% { transform: translate(4%, -2%); }
    40% { transform: translate(-2%, 3%); }
    50% { transform: translate(-3%, -4%); }
    60% { transform: translate(3%, 2%); }
    70% { transform: translate(2%, -3%); }
    80% { transform: translate(-4%, 2%); }
    90% { transform: translate(3%, 3%); }
}

/* VHS 色彩分離效果 */
.menu-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(255, 0, 0, 0.02) 100%),
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: -1;
    animation: colorshift 3s infinite;
}

@keyframes colorshift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(1px, 0); }
    50% { transform: translate(-1px, 0); }
    75% { transform: translate(0, 1px); }
}

/* VHS 色彩分離/色差效果 */
.vhs-chromatic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 12;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 0, 0, 0.03) 25%, 
            transparent 50%, 
            rgba(0, 255, 255, 0.03) 75%, 
            transparent 100%
        );
    animation: chromatic 4s infinite;
}

@keyframes chromatic {
    0%, 100% { 
        transform: translateX(0);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(2px);
        opacity: 0.5;
    }
}

/* VHS 閃爍/跳動效果 */
.vhs-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 13;
    background: rgba(0, 0, 0, 0);
    animation: flicker 0.3s infinite;
}

@keyframes flicker {
    0%, 100% { 
        opacity: 0;
    }
    10% { 
        opacity: 0.05;
        background: rgba(255, 255, 255, 0.02);
    }
    20% { 
        opacity: 0;
    }
    30% { 
        opacity: 0.03;
    }
    40%, 90% { 
        opacity: 0;
    }
    95% { 
        opacity: 0.08;
        background: rgba(0, 0, 0, 0.05);
    }
}

/* 選單容器 */
.menu-container {
    position: relative;
    z-index: 20;
    text-align: center;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* 選單標題 */
.menu-title {
    background: #fff;
    color: #4a4a9e;
    padding: 15px 40px;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 50px;
    border: 3px solid #fff;
    box-shadow: 
        0 4px 0 rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(74, 74, 158, 0.1);
    text-shadow: 
        1px 0 0 rgba(74, 74, 158, 0.3),
        -1px 0 0 rgba(74, 74, 158, 0.3);
    position: relative;
}

/* 添加文字毛邊效果 */
.menu-title::before {
    content: 'MAIN MENU';
    position: absolute;
    top: 15px;
    left: 40px;
    color: rgba(74, 74, 158, 0.15);
    z-index: -1;
    transform: translate(2px, 2px);
}

/* 選單選項 */
.menu-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.menu-item {
    color: #fff;
    font-size: 28px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.5),
        2px 0 3px rgba(255, 255, 255, 0.1);
    letter-spacing: 3px;
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 255, 255, 0.4);
}

.menu-item.active::before {
    content: '▶';
    position: absolute;
    left: -30px;
    animation: blink 1s infinite;
}

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

/* 選單分隔線 */
.menu-divider {
    width: 300%;
    height: 3px;
    background: #fff;
    margin: 30px 0;
    /*  置中 */
    transform: translateX(-33%);
    left: 50%;
}

/* 控制提示 */
.menu-controls {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 16px;
    padding: 0 20px;
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.5),
        0 0 5px rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
}

.control-left, .control-right {
    position: relative;
}

/* 添加文字雜訊效果 */
.control-left::after, .control-right::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(255, 255, 255, 0.1);
    transform: translate(1px, 1px);
}

/* Loading 畫面 */
.loading-container {
    position: relative;
    z-index: 20;
    text-align: center;
    color: #fff;
}

.loading-text {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    animation: pulse 1.5s infinite;
}

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

.loading-bar {
    width: 400px;
    height: 30px;
    border: 3px solid #fff;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.3s ease;
}

.loading-info {
    font-size: 20px;
    margin-bottom: 20px;
}

.vhs-tracking {
    font-size: 16px;
    font-family: monospace;
    letter-spacing: 3px;
}

/* Setting 畫面特殊樣式 */
.setting-item {
    color: #fff;
    font-size: 18px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.setting-item input[type="range"] {
    width: 180px;
}

.setting-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

/* VHS 暫停選單樣式 */
#pauseMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none; /* 初始隱藏，遊戲中按 ESC 才顯示 */
    align-items: center;
    justify-content: center;
    background: rgba(74, 74, 158, 0.7); /* VHS 藍色背景 70% 透明度 */
    /* 添加顆粒濾鏡 */
    filter: contrast(1.1) brightness(0.95);
    /* 添加邊緣暗角 */
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.5);
}

/* VHS 顆粒效果層 */
#pauseMenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        );
    pointer-events: none;
    z-index: 5;
}

/* VHS 水平干擾線 */
#pauseMenu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 8px,
        rgba(0, 0, 0, 0.08) 8px,
        rgba(0, 0, 0, 0.08) 9px
    );
    pointer-events: none;
    z-index: 6;
    animation: interference 0.5s infinite;
}

.pause-overlay {
    /* 移除舊的 overlay，改用 VHS 效果層 */
    display: none;
}

.pause-container {
    position: relative;
    z-index: 20;
    background: rgba(0, 0, 0, 0.85);
    border: 3px solid #fff;
    padding: 20px 40px;
    max-width: 800px;
    width: 90%;
    color: #fff;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.pause-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 8px;
    text-shadow: 
        2px 2px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

/* 雙排佈局 */
.pause-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.pause-controls, .pause-settings {
    margin-bottom: 0;
}

.pause-controls h3, .pause-settings h3 {
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid #fff;
    padding-bottom: 5px;
    letter-spacing: 3px;
}

.pause-controls p {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.pause-settings .setting-item {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.pause-hint {
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #fff;
    letter-spacing: 2px;
    animation: blink 1.5s infinite;
}

/* 遊戲內 VHS 濾鏡 */
#gameVHSFilter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    display: none; /* 由 JavaScript 根據設定控制顯示 */
    /* 整體色彩偏移和對比度調降至 75% */
    filter: contrast(1.11) brightness(0.94) saturate(1.23) hue-rotate(-3.v5deg);
}

.game-vhs-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.11),
        rgba(0, 0, 0, 0.11) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    animation: scanline 6s linear infinite;
    opacity: 0.43;
}

.game-vhs-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="1.5" numOctaves="6" seed="3" /></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.13"/></svg>');
    pointer-events: none;
    animation: noise 0.15s infinite;
    opacity: 0.35;
    mix-blend-mode: overlay;
}

.game-vhs-chromatic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 0, 0, 0.04) 25%, 
            transparent 50%, 
            rgba(0, 255, 255, 0.04) 75%, 
            transparent 100%
        );
    animation: chromatic 2.5s infinite;
    opacity: 0.45;
}

.game-vhs-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.43), inset 0 0 100px rgba(0, 0, 0, 0.25);
    border-radius: 0;
}

.game-vhs-distortion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.25) 100%);
    animation: distortion 3s ease-in-out infinite;
}

@keyframes distortion {
    0%, 100% { 
        transform: scale(1);
        border-radius: 0;
    }
    50% { 
        transform: scale(1.003);
        border-radius: 0;
    }
}

/* VHS 追蹤線效果 */
.game-vhs-tracking {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 100px,
        rgba(255, 255, 255, 0.015) 100px,
        rgba(255, 255, 255, 0.015) 102px
    );
    animation: tracking 12s linear infinite;
}

@keyframes tracking {
    0% { transform: translateY(0); }
    100% { transform: translateY(200px); }
}

/* VHS 色彩滲透 */
.game-vhs-color-bleed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        linear-gradient(180deg,
            rgba(255, 0, 0, 0.02) 0%,
            transparent 20%,
            transparent 40%,
            rgba(0, 0, 255, 0.02) 60%,
            transparent 80%,
            rgba(255, 255, 0, 0.015) 100%
        );
    animation: colorBleed 8s ease-in-out infinite;
}

@keyframes colorBleed {
    0%, 100% { 
        transform: translateY(0);
        opacity: 0.30;
    }
    50% { 
        transform: translateY(-20px);
        opacity: 0.40;
    }
}

/* VHS 閃爍效果 */
.game-vhs-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0);
    animation: vhsFlicker 0.4s infinite;
}

@keyframes vhsFlicker {
    0%, 100% { 
        opacity: 0;
        background: rgba(255, 255, 255, 0);
    }
    5% { 
        opacity: 0.11;
        background: rgba(255, 255, 255, 0.038);
    }
    10% { 
        opacity: 0;
    }
    15% { 
        opacity: 0.06;
        background: rgba(0, 0, 0, 0.023);
    }
    20%, 80% { 
        opacity: 0;
    }
    85% { 
        opacity: 0.09;
        background: rgba(255, 255, 255, 0.03);
    }
    90% { 
        opacity: 0;
    }
}

/* VHS 干擾條紋 */
.game-vhs-interference {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 40px,
        rgba(255, 255, 255, 0.045) 40px,
        rgba(255, 255, 255, 0.045) 42px,
        transparent 42px,
        transparent 80px,
        rgba(0, 0, 0, 0.06) 80px,
        rgba(0, 0, 0, 0.06) 83px
    );
    animation: interference 0.3s steps(5) infinite;
    opacity: 0.38;
}

@keyframes interference {
    0% { transform: translateY(0); }
    100% { transform: translateY(-83px); }
}

#gameContainer {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* 點擊提示覆蓋層 */
#clickPrompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    cursor: pointer;
}

.click-prompt-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.click-prompt-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    animation: clickPromptPulse 2s ease-in-out infinite;
}

.click-prompt-text {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(64, 128, 255, 0.6),
        0 0 30px rgba(64, 128, 255, 0.4);
    margin-bottom: 10px;
}

.click-prompt-subtext {
    font-size: 14px;
    letter-spacing: 2px;
    color: #a0c0e0;
    opacity: 0.8;
    margin-bottom: 20px;
}

.click-prompt-icon {
    font-size: 48px;
    animation: clickPromptArrow 1.5s ease-in-out infinite;
}

@keyframes clickPromptPulse {
    0%, 100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes clickPromptArrow {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f5cc7a;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(245, 204, 122, 0.7);
    z-index: 100;
    transition: opacity 1.5s ease-in-out;
}

#instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #f5cc7a;
    border-radius: 10px;
    padding: 20px;
    color: #f5cc7a;
    font-size: 16px;
    text-align: center;
    z-index: 10;
    transition: opacity 0.5s ease-in-out;
    box-shadow: 0 0 20px rgba(245, 204, 122, 0.3);
}

#instructions h2 {
    margin-bottom: 15px;
    font-size: 24px;
    letter-spacing: 2px;
}

#instructions p {
    margin: 8px 0;
    letter-spacing: 1px;
}

#instructions h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    letter-spacing: 1px;
    color: #ffd700;
}

#instructions label {
    color: #f5cc7a;
    font-size: 14px;
    text-align: left;
}

/* 滑塊樣式 */
#instructions input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(245, 204, 122, 0.3);
    border-radius: 5px;
    outline: none;
    margin-top: 5px;
}

#instructions input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

#instructions input[type="range"]::-webkit-slider-thumb:hover {
    background: #ffed4e;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    transform: scale(1.1);
}

#instructions input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

#instructions input[type="range"]::-moz-range-thumb:hover {
    background: #ffed4e;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    transform: scale(1.1);
}

/* 自訂勾選框樣式 */
.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ffd700;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.custom-checkbox:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

/* 勾選框的勾勾 */
.custom-checkbox[data-checked="true"]::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #ffd700;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    animation: checkmark 0.3s ease-in-out;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
}

@keyframes checkmark {
    0% {
        transform: rotate(45deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: rotate(45deg) scale(1.2);
    }
    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }
}

.custom-checkbox[data-checked="true"] {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 9;
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 8;
}