:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --border-primary: #2a2a2a;
    --border-secondary: #3a3a3a;

    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-tertiary: #c0c0c0;
    --text-muted: #a0a0a0;

    --accent-from: #5c5cff;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    --title-font: "Italianno", cursive;

}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e5e5e5;
    --border-primary: #e0e0e0;
    --border-secondary: #d0d0d0;

    --text-primary: #0a0a0a;
    --text-secondary: #1a1a1a;
    --text-tertiary: #404040;
    --text-muted: #666666;

    --accent-from: #1818ff;

}

::selection {
    background-color: var(--accent-from);
    color: white;
}

::-moz-selection {
    background-color: var(--accent-from);
    color: white;
}

/* 
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-from);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
} */

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

body {
    font-weight: 400;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: transparent;
    /* Make body transparent */
    color: var(--text-secondary);
    display: flex;
    margin-top: 4rem;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: color var(--transition-slow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: -2;
    transition: background-color var(--transition-slow);
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
}

::view-transition-new(root) {
    z-index: 9999;
}

::view-transition-old(root) {
    z-index: 1;
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 9999;
    pointer-events: none;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    mask-image: linear-gradient(to bottom,
            black 0%,
            black 10%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            black 0%,
            black 10%,
            transparent 100%);

    opacity: 0;
    transition: opacity 0.5s ease;
}

.blur-overlay.visible {
    opacity: 1;
}

.container {
    max-width: 40%;
    width: 100%;
    position: relative;
}

.container>* {
    opacity: 0;
    transform: translateY(10px);
    animation: itemFade 0.5s ease-out forwards;
    animation-delay: calc(var(--i) * 0.2s);
}

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


.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.right-buttons {
    display: flex;
    gap: 0;
    align-items: center;
}

.theme-toggle {
    display: flex;
}

.theme-home {
    border-radius: 25px;
}

.theme-sound {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.theme-theme {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.theme-btn {
    width: 35px;
    height: 35px;
    background-color: var(--bg-secondary);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.theme-btn svg {
    width: 15px;
    height: 15px;
}

.theme-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1321px) {
    body {
        padding: 1.5rem;
    }

    .container {
        max-width: 80%;
    }
}

@media (max-width: 996px) {
    body {
        padding: 1.5rem;
    }

    .container {
        max-width: 90%;
    }
}

.section-title {
    margin-top: 2rem;
    font-family: var(--title-font);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

@media (max-width: 640px) {
    .section-title {
        font-size: 2rem;
    }
}

.content {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.90rem;
    color: var(--text-tertiary);
    letter-spacing: 0.01em;
}

.content p {
    margin-bottom: 1.5rem;
}

.content p:last-child {
    margin-bottom: 0;
}

.social-links {
    color: var(--text-muted);
    display: flex;
}

.social-btn:hover {
    color: var(--text-primary);
}

.social-btn {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.theme-btn:focus-visible {
    z-index: 2;
    outline: 2px solid var(--accent-from);
    outline-offset: 2px;
}

.social-btn {
    padding: 0.50rem 0.85rem;
    background-color: var(--bg-secondary);
    border-radius: 25px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.80rem;
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--border-secondary);
}

.egg-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
    text-align: left;
}

.egg-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.egg-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.egg-desc {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
}

.combo {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: inherit;
    font-size: 0.9rem;
}

.egg-setting {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.egg-status {
    font-size: 0.85rem;
    opacity: 0.6;
}

.egg-status.active {
    opacity: 1;
    color: #ff0000;
}

.egg-toggle-btn {
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--accent-from, currentColor);
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 0.85rem;
}

.egg-toggle-btn:hover {
    opacity: 0.8;
}

.settings-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.settings-label {
    font-size: 0.95rem;
}

.switch {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    border: none;
    background: rgba(128, 128, 128, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease;
    flex-shrink: 0;
}
.switch.konami-switch {
    background: var(--accent-from) !important;
}
.switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.25s ease;
}

.switch.on {
    background: #ff0000;
}

.switch.on .switch-knob {
    transform: translateX(20px);
}

.switch:focus-visible {
    z-index: 2;
    outline: 2px solid var(--accent-from);
    outline-offset: 2px;
}