/* ============================================
   BASE STYLES
   Variables, Resets, Typography, Global Styles
   ============================================ */

:root {
    /* --- Dark Mode (Default) --- */
    --bg-base: #050505;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.35);

    --glass-bg: rgba(20, 20, 22, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.4);

    /* Opacity 0.1 */
    --blob-1: #312e81;
    --blob-2: #581c87;
    --blob-3: #172554;
    --blob-opacity: 0.1;

    --num-gradient: linear-gradient(180deg, #FFFFFF 30%, rgba(255, 255, 255, 0.5) 100%);

    --btn-bg: rgba(255, 255, 255, 0.1);
    --switch-bg: rgba(0, 0, 0, 0.3);
    --glider-bg: rgba(255, 255, 255, 0.2);
    --icon-active: #fff;

    --ticket-grid-bg: rgba(0, 0, 0, 0.2);
    --ticket-cell-bg: rgba(255, 255, 255, 0.03);
    --ticket-cell-hover: rgba(255, 255, 255, 0.1);
    --ticket-cell-border: rgba(255, 255, 255, 0.05);

    /* Physics */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --ios-blue: #0A84FF;
    --toggle-active: #32d74b;
    --marked-bg: #FF453A;
    --marked-bg-hover: #ff5e55;
    --marked-text: #fff;
	
	color-scheme: dark;
}

/* --- Reset & Global Styles --- */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100svh;
    width: 100vw;
    background-color: var(--bg-base);
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-primary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.8s ease, color 0.5s ease;
    padding-top: 25px;
    padding-bottom: 20px;
}

/* --- Background Effects --- */
.aurora-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.noise {
    position: fixed;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Lighting Effects --- */
.spotlight-wrapper {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.spotlight-wrapper::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(150px circle at var(--x, 50%) var(--y, 50%), var(--glass-shine), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: var(--opacity, 0);
    transition: opacity 0.5s ease;
    z-index: 5;
}

.bottom-shine {
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.2),
        inset 0 1px 20px rgba(0, 0, 0, 0.05),
        0 10px 30px -5px rgba(0, 0, 0, 0.2);
}

.top-shine {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.3);
}
