:root {
    --bg-dark: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --primary: #818cf8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --green: #4ade80;
    --red: #f87171;
    --yellow: #facc15;
    --blue: #60a5fa;

    --font-family: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: var(--text-main);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: var(--blue);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background: var(--green);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

.game-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    max-width: 800px;
    align-items: center;
}

.hud {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    z-index: 10;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.highlight {
    color: var(--primary);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.value {
    font-size: 1.5rem;
    font-weight: 700;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

.game-board-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.simon-board {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

.pad {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.1s;
    border: 1px solid transparent;
}

/* Quadrant shapes */
.pad.green {
    border-top-left-radius: 100%;
    background: var(--green);
}

.pad.red {
    border-top-right-radius: 100%;
    background: var(--red);
}

.pad.yellow {
    border-bottom-left-radius: 100%;
    background: var(--yellow);
}

.pad.blue {
    border-bottom-right-radius: 100%;
    background: var(--blue);
}

/* Active State (Flash) */
.pad.active {
    opacity: 1;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2), 0 0 30px currentColor;
    transform: scale(0.98);
}

/* User Hover */
.pad:active {
    opacity: 0.8;
}

.center-piece {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 4px solid #1e293b;
    z-index: 5;
}

#start-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1.1rem;
}

#status-text {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: #1e293b;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
}

@media (max-width: 400px) {
    .simon-board {
        width: 280px;
        height: 280px;
    }
}