/* ========================= */
/*     CSS Design System     */
/* ========================= */

:root {
    /* Color Palette */
    --bg-primary: #0a0e27;
    --bg-secondary: #111640;
    --bg-card: rgba(30, 35, 80, 0.55);
    --bg-card-hover: rgba(40, 50, 110, 0.65);
    --bg-card-active: rgba(70, 80, 160, 0.5);
    --text-primary: #e8e6f0;
    --text-secondary: #a3a0c2;
    --text-muted: #6b6899;
    --accent-warm: #ffb347;
    --accent-purple: #b19cd9;
    --accent-blue: #87ceeb;
    --accent-rose: #f4a6b0;
    --accent-green: #7ed6a5;
    --glow-color: rgba(255, 179, 71, 0.15);
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px var(--glow-color);

    /* Typography */
    --font-primary: 'Noto Sans SC', 'Outfit', -apple-system, sans-serif;
    --font-display: 'Outfit', 'Noto Sans SC', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================= */
/*         Reset             */
/* ========================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 100px;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
    color: inherit;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

/* ========================= */
/*      Night Sky Canvas     */
/* ========================= */

#nightSky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========================= */
/*   Night Light Overlay     */
/* ========================= */

.nightlight-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: background 0.8s ease, opacity 0.8s ease;
    opacity: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 179, 71, 0.5) 0%, rgba(255, 179, 71, 0.15) 50%, transparent 80%);
}

/* ========================= */
/*         Moon              */
/* ========================= */

.moon-link {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 15;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.moon-link:hover {
    transform: scale(1.08);
}

.moon-container {
    position: relative;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.moon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: radial-gradient(circle at 35% 35%, #fff8e7, #f5e6c8, #e8d5a8);
    position: relative;
    box-shadow:
        0 0 20px rgba(255, 248, 231, 0.4),
        0 0 60px rgba(255, 248, 231, 0.2),
        0 0 100px rgba(255, 248, 231, 0.1);
    animation: moonPulse 6s ease-in-out infinite;
}

.moon-crater {
    position: absolute;
    border-radius: var(--radius-full);
    background: rgba(200, 180, 150, 0.3);
}

.moon-crater-1 {
    width: 15px;
    height: 15px;
    top: 20px;
    left: 25px;
}

.moon-crater-2 {
    width: 10px;
    height: 10px;
    top: 42px;
    left: 48px;
}

.moon-crater-3 {
    width: 8px;
    height: 8px;
    top: 55px;
    left: 22px;
}

.moon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: var(--radius-full);
    background: radial-gradient(circle, rgba(255, 248, 231, 0.1) 0%, transparent 70%);
    animation: moonGlow 4s ease-in-out infinite alternate;
}

@keyframes moonPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 248, 231, 0.4), 0 0 60px rgba(255, 248, 231, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 248, 231, 0.5), 0 0 80px rgba(255, 248, 231, 0.25);
    }
}

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

    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

/* ========================= */
/*       Clouds              */
/* ========================= */

.clouds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: radial-gradient(ellipse, rgba(180, 190, 220, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.cloud-1 {
    width: 400px;
    height: 120px;
    top: 15%;
    left: -200px;
    animation: cloudFloat 45s linear infinite;
}

.cloud-2 {
    width: 300px;
    height: 90px;
    top: 30%;
    left: -150px;
    animation: cloudFloat 60s linear infinite;
    animation-delay: -20s;
}

.cloud-3 {
    width: 350px;
    height: 100px;
    top: 50%;
    left: -175px;
    animation: cloudFloat 55s linear infinite;
    animation-delay: -35s;
}

@keyframes cloudFloat {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(calc(100vw + 100%));
    }
}

/* ========================= */
/*     App Container         */
/* ========================= */

.app-container {
    position: relative;
    z-index: 10;
    max-width: 520px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
    padding-bottom: var(--space-2xl);
}

/* ========================= */
/*        Header             */
/* ========================= */

.app-header {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-lg);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    position: relative;
}

.app-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-warm), #ffd89b, var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.title-icon {
    font-size: 1.6rem;
    -webkit-text-fill-color: initial;
    animation: titleIconFloat 3s ease-in-out infinite;
}

@keyframes titleIconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-4px) rotate(5deg);
    }
}

.header-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.clock {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.app-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
    font-weight: 300;
    letter-spacing: 1px;
}

/* ========================= */
/*       Sections            */
/* ========================= */

.section {
    margin-bottom: var(--space-xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    letter-spacing: 0.5px;
}

.section-icon {
    font-size: 1.1rem;
}

/* ========================= */
/*     Sound Cards           */
/* ========================= */

.sound-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.sound-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.sound-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-warm), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.sound-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.sound-card.active {
    background: var(--bg-card-active);
    border-color: rgba(177, 156, 217, 0.3);
    box-shadow: 0 0 20px rgba(177, 156, 217, 0.1);
}

.sound-card.active::before {
    opacity: 1;
}

.sound-card-icon {
    font-size: 1.8rem;
    transition: transform var(--transition-normal);
}

.sound-card:hover .sound-card-icon {
    transform: scale(1.1);
}

.sound-card.active .sound-card-icon {
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.sound-card-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.sound-card.active .sound-card-label {
    color: var(--text-primary);
}

.sound-card-bar {
    width: 100%;
    opacity: 0;
    height: 0;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.sound-card.active .sound-card-bar {
    opacity: 1;
    height: 20px;
    margin-top: var(--space-xs);
}

.mini-volume {
    width: 100%;
    height: 4px;
}

.mini-volume::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.mini-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--accent-purple);
    margin-top: -4px;
    box-shadow: 0 0 8px rgba(177, 156, 217, 0.4);
}

.mini-volume::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

.mini-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--accent-purple);
    border: none;
    box-shadow: 0 0 8px rgba(177, 156, 217, 0.4);
}

/* ========================= */
/*     Lullaby Cards         */
/* ========================= */

.lullaby-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.lullaby-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    transition: all var(--transition-normal);
    text-align: left;
}

.lullaby-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.lullaby-card.active {
    background: var(--bg-card-active);
    border-color: rgba(255, 179, 71, 0.3);
    box-shadow: 0 0 20px rgba(255, 179, 71, 0.08);
}

.lullaby-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.lullaby-info {
    flex: 1;
    min-width: 0;
}

.lullaby-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.lullaby-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.3px;
}

.lullaby-status {
    flex-shrink: 0;
}

.play-indicator {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.lullaby-card.active .play-indicator {
    background: var(--accent-warm);
    box-shadow: 0 0 12px rgba(255, 179, 71, 0.5);
    animation: playPulse 1.5s ease-in-out infinite;
}

@keyframes playPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Lullaby volume slider — hidden until active */
.lullaby-volume-bar {
    width: 100%;
    flex-basis: 100%;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.lullaby-card.active .lullaby-volume-bar {
    opacity: 1;
    height: 20px;
    margin-top: calc(-1 * var(--space-sm));
}

.lullaby-volume {
    width: 100%;
    height: 4px;
}

.lullaby-volume::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.lullaby-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--accent-warm);
    margin-top: -4px;
    box-shadow: 0 0 8px rgba(255, 179, 71, 0.4);
}

.lullaby-volume::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

.lullaby-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--accent-warm);
    border: none;
    box-shadow: 0 0 8px rgba(255, 179, 71, 0.4);
}

/* ========================= */
/*    Night Light Controls   */
/* ========================= */

.nightlight-controls {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.nightlight-brightness {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.control-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    min-width: 32px;
    flex-shrink: 0;
}

.range-value {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 36px;
    text-align: right;
    font-family: var(--font-display);
}

.color-temp-control {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.color-temp-options {
    display: flex;
    gap: var(--space-sm);
    flex: 1;
}

.color-temp-btn {
    flex: 1;
    padding: var(--space-sm) var(--space-xs);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.color-temp-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--btn-color);
    transition: width var(--transition-normal);
    border-radius: 1px;
}

.color-temp-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.color-temp-btn.active {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.color-temp-btn.active::after {
    width: 60%;
}

/* ========================= */
/*     Styled Range Input    */
/* ========================= */

.styled-range {
    flex: 1;
    height: 6px;
}

.styled-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.styled-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--text-primary);
    margin-top: -6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: box-shadow var(--transition-fast);
}

.styled-range::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 12px rgba(177, 156, 217, 0.4);
}

.styled-range::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
}

.styled-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--text-primary);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ========================= */
/*      Bottom Bar           */
/* ========================= */

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--border-glass);
    padding: var(--space-md) var(--space-md);
    padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
}

.bottom-bar-content {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.master-volume-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.volume-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.volume-value {
    font-size: 0.72rem;
    color: var(--text-muted);
    min-width: 30px;
    text-align: right;
    font-family: var(--font-display);
}

.master-range {
    flex: 1;
    height: 4px;
}

.master-range::-webkit-slider-runnable-track {
    height: 4px;
}

.master-range::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -5px;
}

.master-range::-moz-range-track {
    height: 4px;
}

.master-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
}

/* Play/Pause Button */
.play-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-purple), #8b7ec8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(177, 156, 217, 0.3);
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(177, 156, 217, 0.45);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-btn svg {
    width: 24px;
    height: 24px;
}

.play-icon {
    margin-left: 2px;
}

.hidden {
    display: none !important;
}

/* Timer Section */
.timer-section {
    flex-shrink: 0;
}

.timer-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    transition: all var(--transition-normal);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.timer-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.timer-btn.active {
    background: rgba(255, 179, 71, 0.12);
    border-color: rgba(255, 179, 71, 0.25);
    color: var(--accent-warm);
}

.timer-icon {
    font-size: 1rem;
}

.timer-label {
    font-family: var(--font-display);
    letter-spacing: 0.3px;
}

/* ========================= */
/*        Timer Modal        */
/* ========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 100%;
    max-width: 360px;
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.timer-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.timer-option {
    padding: var(--space-md) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: all var(--transition-normal);
}

.timer-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.timer-option.active {
    background: rgba(255, 179, 71, 0.12);
    border-color: rgba(255, 179, 71, 0.3);
    color: var(--accent-warm);
}

.timer-countdown {
    text-align: center;
    padding: var(--space-md) 0;
    margin-bottom: var(--space-md);
}

.countdown-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.countdown-time {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent-warm);
    letter-spacing: 4px;
}

.modal-close-btn {
    width: 100%;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(177, 156, 217, 0.2), rgba(135, 206, 235, 0.2));
    border: 1px solid rgba(177, 156, 217, 0.2);
    transition: all var(--transition-normal);
}

.modal-close-btn:hover {
    background: linear-gradient(135deg, rgba(177, 156, 217, 0.3), rgba(135, 206, 235, 0.3));
}

/* ========================= */
/*    Responsive (Mobile)    */
/* ========================= */

@media (max-width: 400px) {
    .app-title {
        font-size: 1.6rem;
    }

    .sound-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .sound-card {
        padding: var(--space-sm) var(--space-xs);
    }

    .sound-card-icon {
        font-size: 1.5rem;
    }

    .moon-container {
        top: 20px;
        right: 20px;
    }

    .moon {
        width: 50px;
        height: 50px;
    }

    .moon-glow {
        width: 120px;
        height: 120px;
    }
}

/* ========================= */
/*   Screen brightness dim   */
/* ========================= */

.night-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 39, 0.7);
    z-index: 0;
    pointer-events: none;
    transition: background 1s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}