:root {
    --glaucous: #6382a3ff;
    --dark-cyan: #559997ff;
    --bar-start: #559989ff;
    --bar-middle: #1be07eff;
    --bar-end: #0b8e6bff;
    --aquamarine: #96f5c6ff;
    --white: #ffffffff;
    --pale-purple: #e8d9f0ff;
    --mauve: #d99affff;
    --lavender-floral: #bb66eeff;
    --dark-violet: #9526d2ff;
    --tekhelet: #601787ff;
    --gold-light: #ffd700ff;
    --gold-medium: #ffc700ff;
    --gold-dark: #ffb600ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* ==========================
   DYNAMIC BACKGROUND
========================== */
#background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -100;
    transition: background 2s ease;
}

#stars,
#clouds {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

body.day #background {
    background: #38b6ff;
}

body.night #background {
    background: #000;
}

/* ==========================
   CLOUDS & STARS
========================== */

.cloud {
    position: absolute;
    pointer-events: none;
    user-select: none;
    opacity: 0.9;
    animation-name: drift;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes drift {
    from {
        transform: translateX(-30vw);
    }
    to {
        transform: translateX(130vw);
    }
}

.star {
    position: absolute;
    pointer-events: none;
    user-select: none;
    opacity: 0.85;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.7;
    }
}

body.day #stars {
    display: none;
}

body.night #stars {
    display: block;
}

/* ==========================
   VERSION
========================== */

.version-number {
    position: absolute;
    top: 20px;
    left: 25px;
    color: var(--white);
    font-family: "Germania One", system-ui;
    font-size: 18px;
    opacity: 0.8;
    letter-spacing: 2px;
}

/* ==========================
   SETTINGS BUTTON
========================== */

.settings-button {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 28px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    padding: 0;
    transition: 0.3s ease;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.15);
}

.settings-button:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow:
        0 0 20px var(--lavender-floral),
        inset 0 0 15px rgba(255, 255, 255, 0.25);
}

/* ==========================
   LAUNCHER
========================== */

.launcher-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* ==========================
   LOGO
========================== */

.logo {
    width: clamp(420px, 45vw, 750px);
    height: auto;
    margin-bottom: clamp(60px, 8vh, 120px);
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(187, 102, 238, 0.9)) drop-shadow(0 0 70px rgba(149, 38, 210, 0.6));
}

/* ==========================
        BUTTONS
========================== */

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(25px, 4vh, 45px);
}

.glass-button {
    font-family: "Germania One", system-ui;
    font-size: clamp(24px, 2.5vw, 40px);
    font-weight: bold;
    width: clamp(280px, 32vw, 480px);
    padding: clamp(14px, 1.5vw, 22px) clamp(40px, 5vw, 70px);
    border-radius: 35px;
    background: linear-gradient(145deg, var(--dark-violet), var(--lavender-floral));
    color: var(--white);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 0 15px rgba(255, 255, 255, 0.2),
        0 0 25px var(--lavender-floral),
        0 0 50px var(--dark-violet);
    transition: all 0.4s ease;
}

.glass-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
    transform: rotate(45deg) scale(0);
    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.glass-button:hover::before {
    transform: rotate(45deg) scale(1.2);
    opacity: 0.6;
}

.glass-button:hover {
    background: linear-gradient(145deg, var(--lavender-floral), var(--tekhelet));
    box-shadow:
        inset 0 0 25px rgba(255, 255, 255, 0.3),
        0 0 35px var(--aquamarine),
        0 0 60px var(--dark-violet);
    transform: translateY(-2px);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 15px var(--aquamarine);
}

.glass-button:active::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 80%);
    left: -50%;
    top: -50%;
    border-radius: 50%;
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ==========================
   SETTINGS PANEL
========================== */

.settings-panel {
    position: absolute;
    top: 90px;
    right: 25px;
    width: clamp(280px, 25vw, 400px);
    padding: 30px;
    border-radius: 35px;
    background: linear-gradient(145deg, rgba(149, 38, 210, 0.85), rgba(96, 23, 135, 0.85));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.2),
        0 0 35px var(--lavender-floral),
        0 0 70px var(--dark-violet);
    color: white;
    display: none;
    flex-direction: column;
    gap: 20px;
}

.settings-panel.show {
    display: flex;
}

.settings-panel h2 {
    text-align: center;
    font-family: "Germania One";
    font-size: 32px;
}

.settings-option {
    min-height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(145deg, var(--dark-violet), var(--lavender-floral));
    color: white;
    font-family: "Germania One";
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s ease;
}

.settings-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--aquamarine);
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-size: 30px;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.link-option a {
    color: white;
    text-decoration: none;
    font-family: "Germania One";
    font-size: 22px;
}

.link-option a:hover {
    text-shadow: 0 0 12px var(--aquamarine);
}

.support-id {
    text-align: center;
    font-size: 18px;
    opacity: 0.9;
}

.support-id span {
    display: block;
    margin-top: 5px;
    font-family: monospace;
    color: var(--aquamarine);
}

.info-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 80vw);
    padding: 40px;
    border-radius: 35px;
    background: linear-gradient(145deg, rgba(149, 38, 210, 0.9), rgba(96, 23, 135, 0.9));
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-align: center;
    box-shadow:
        0 0 40px var(--lavender-floral),
        0 0 80px var(--dark-violet);
    display: none;
}

.info-popup.show {
    display: block;
}

.info-popup h2 {
    font-family: "Germania One";
    font-size: 36px;
    margin-bottom: 25px;
}

.info-popup p {
    font-size: 20px;
    line-height: 1.6;
}
