:root {
    --bg-1: #07162f;
    --bg-2: #0d2d61;
    --bg-3: #0f477d;

    --white: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.84);
    --text-muted: rgba(255, 255, 255, 0.68);

    --panel: rgba(255, 255, 255, 0.14);
    --panel-2: rgba(255, 255, 255, 0.10);
    --panel-3: rgba(255, 255, 255, 0.08);

    --border: rgba(255, 255, 255, 0.22);
    --border-soft: rgba(255, 255, 255, 0.14);

    --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.18);

    --cyan: #00eaff;
    --cyan-soft: #bafcff;
    --yellow: #ffd93d;
    --orange: #ff9f43;
    --green: #36f1a7;
    --red: #ff5c6c;
    --pink: #ff6ec7;
    --blue-dark: #0d446e;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;

    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    color: var(--white);
    background:
        radial-gradient(circle at top left, #1f73ff 0%, transparent 30%),
        radial-gradient(circle at top right, #00d9ff 0%, transparent 26%),
        radial-gradient(circle at bottom left, #7a5cff 0%, transparent 24%),
        linear-gradient(145deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
}

.hidden {
    display: none !important;
}

#main-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.screen {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

#main-header {
    position: relative;
    z-index: 10;
    padding: 14px 18px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.logo-container {
    cursor: pointer;
}

.logo-text {
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(0, 234, 255, 0.65),
        0 0 18px rgba(54, 241, 167, 0.35);
}

.logo {
    display: block;
    width: clamp(100px, 18vw, 180px);
    height: auto;
}

#auth-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.welcome-text {
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.45);
}

.btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 11px 15px;
    cursor: pointer;
    font-weight: 900;
    color: #07162f;
    background: linear-gradient(180deg, #ffffff, #dff9ff);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.24);
    filter: brightness(1.04);
}

#main-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
}

body.game-active #main-footer {
    display: none;
}

.brand-card {
    border-radius: var(--radius-lg);
    background: var(--panel-3);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}