/**
 * Veil Tokyo
 * Reset & Decorative Background Styles
 */

/* ==========================================================================
   1. BOX RESET & BASE HTML
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-jp);
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

img, svg, video, iframe {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-gold-watermark) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
    transition: background 0.5s ease;
}

/* ==========================================================================
   2. PARTICLES BACKGROUND ANIMATION
   ========================================================================== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 70% 30%, rgba(20, 60, 120, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(40, 80, 140, 0.1) 0%, transparent 50%);
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--star-color);
    box-shadow: 0 0 12px 3px var(--star-glow), 0 0 24px 6px rgba(120, 200, 255, 0.4);
    opacity: 0;
    animation: floatAndGlow infinite ease-in-out;
    transition: background 0.5s ease, box-shadow 0.5s ease;
    will-change: transform, opacity;
}

@keyframes floatAndGlow {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    50% { opacity: 0.9; transform: translateY(-40px) scale(1.2); }
    100% { transform: translateY(-80px) scale(0.8); opacity: 0; }
}

.p1  { left: 10%; bottom: 20%; width: 4px; height: 4px; animation-duration: 6s; animation-delay: 0s; }
.p2  { left: 25%; bottom: 40%; width: 6px; height: 6px; animation-duration: 8s; animation-delay: 2s; }
.p3  { left: 45%; bottom: 10%; width: 3px; height: 3px; animation-duration: 5s; animation-delay: 1s; }
.p4  { left: 60%; bottom: 60%; width: 5px; height: 5px; animation-duration: 7s; animation-delay: 3s; }
.p5  { left: 75%; bottom: 30%; width: 7px; height: 7px; animation-duration: 9s; animation-delay: 0s; }
.p6  { left: 90%; bottom: 50%; width: 4px; height: 4px; animation-duration: 6s; animation-delay: 4s; }
.p7  { left: 15%; bottom: 70%; width: 5px; height: 5px; animation-duration: 8s; animation-delay: 1s; }
.p8  { left: 35%; bottom: 80%; width: 3px; height: 3px; animation-duration: 5s; animation-delay: 3s; }
.p9  { left: 55%; bottom: 20%; width: 6px; height: 6px; animation-duration: 7s; animation-delay: 2s; }
.p10 { left: 80%; bottom: 90%; width: 4px; height: 4px; animation-duration: 6s; animation-delay: 5s; }
.p11 { left: 5%;  bottom: 50%; width: 5px; height: 5px; animation-duration: 9s; animation-delay: 2s; }
.p12 { left: 50%; bottom: 70%; width: 3px; height: 3px; animation-duration: 5s; animation-delay: 4s; }

/* ==========================================================================
   3. BASIC ELEMENT SETTINGS
   ========================================================================== */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0;
    position: relative;
}

/* ==========================================================================
   4. CUSTOM SCROLLBARS
   ========================================================================== */
.scroll-container,
.lc-scroll-container,
.schedule-tabs,
.system-tabs,
.system-cards-container,
.filter-controls,
.reasons-cards-grid,
.stress-free-grid,
.interviews-cards-grid {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) var(--bg-surface);
}

.scroll-container::-webkit-scrollbar,
.lc-scroll-container::-webkit-scrollbar,
.schedule-tabs::-webkit-scrollbar,
.system-tabs::-webkit-scrollbar,
.system-cards-container::-webkit-scrollbar,
.filter-controls::-webkit-scrollbar,
.reasons-cards-grid::-webkit-scrollbar,
.stress-free-grid::-webkit-scrollbar,
.interviews-cards-grid::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-track,
.lc-scroll-container::-webkit-scrollbar-track,
.schedule-tabs::-webkit-scrollbar-track,
.system-tabs::-webkit-scrollbar-track,
.system-cards-container::-webkit-scrollbar-track,
.filter-controls::-webkit-scrollbar-track,
.reasons-cards-grid::-webkit-scrollbar-track,
.stress-free-grid::-webkit-scrollbar-track,
.interviews-cards-grid::-webkit-scrollbar-track {
    background: var(--bg-surface);
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb,
.lc-scroll-container::-webkit-scrollbar-thumb,
.schedule-tabs::-webkit-scrollbar-thumb,
.system-tabs::-webkit-scrollbar-thumb,
.system-cards-container::-webkit-scrollbar-thumb,
.filter-controls::-webkit-scrollbar-thumb,
.reasons-cards-grid::-webkit-scrollbar-thumb,
.stress-free-grid::-webkit-scrollbar-thumb,
.interviews-cards-grid::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}