* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px 10px;
    font-family: Arial, Helvetica, sans-serif;
    color: #f8fafc;
    background:
        radial-gradient(circle at 16% 18%, rgba(239, 68, 68, 0.34), transparent 26rem),
        radial-gradient(circle at 84% 76%, rgba(250, 204, 21, 0.28), transparent 28rem),
        linear-gradient(135deg, #0f172a, #172554 58%, #111827);
    overflow-x: hidden;
}

.game-shell {
    width: min(100%, 820px);
    display: grid;
    justify-items: center;
    gap: 16px;
}

.back-link {
    justify-self: start;
    color: #bfdbfe;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero {
    text-align: center;
}

.eyebrow {
    color: #facc15;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

h1 {
    text-align: center;
    margin: 6px 0 12px 0;
    font-size: clamp(2.3rem, 8vw, 4.4rem);
    line-height: 1;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.46);
}

h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #fecaca, #facc15);
    box-shadow: 0 16px 34px rgba(250, 204, 21, 0.2);
    font-size: clamp(1.1rem, 4vw, 1.5rem);
}

.board-card {
    width: min(100%, 700px);
    padding: clamp(10px, 2vw, 18px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    animation: boardRise 650ms ease both;
}

.board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: min(92vw, calc(100vh - 220px), 630px);
    aspect-ratio: 7 / 6;
    padding: clamp(4px, 1.2vw, 8px);
    border: 6px solid rgba(191, 219, 254, 0.85);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(96, 165, 250, 0.95), rgba(37, 99, 235, 0.95)),
        rgb(74, 74, 198);
    box-shadow: inset 0 0 0 3px rgba(15, 23, 42, 0.2), 0 24px 48px rgba(0, 0, 0, 0.34);
}

ul {
    display: grid;
    place-items: center;
    align-content: space-evenly;
    border-radius: 16px;
    transition: background-color 160ms ease, transform 160ms ease;
}

ul p {
    width: 80%;
    aspect-ratio: 1;
    margin: 0;
    border: 2px solid rgba(15, 23, 42, 0.46);
    border-radius: 100px;
    background-color: #eff6ff;
    box-shadow: inset 0 8px 18px rgba(15, 23, 42, 0.22), 0 5px 8px rgba(0, 0, 0, 0.12);
    transition: background-color 220ms ease, transform 180ms ease, box-shadow 180ms ease;
}

ul p.red-disc {
    background: radial-gradient(circle at 32% 28%, #fecaca, #ef4444 52%, #991b1b);
    box-shadow: inset -8px -10px 18px rgba(127, 29, 29, 0.42), 0 8px 14px rgba(239, 68, 68, 0.32);
    animation: discDrop 260ms ease both;
}

ul p.yellow-disc {
    background: radial-gradient(circle at 32% 28%, #fef9c3, #facc15 55%, #a16207);
    box-shadow: inset -8px -10px 18px rgba(113, 63, 18, 0.34), 0 8px 14px rgba(250, 204, 21, 0.3);
    animation: discDrop 260ms ease both;
}

ul:hover {
    cursor: pointer;
    background-color: rgba(147, 197, 253, 0.32);
    transform: translateY(-4px);
}

ul:hover p {
    transform: scale(0.96);
}

@keyframes boardRise {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes discDrop {
    from {
        transform: translateY(-18px) scale(0.86);
    }
    to {
        transform: translateY(0) scale(1);
    }
}

@media (max-height: 620px) {
    .game-shell {
        gap: 10px;
    }

    .eyebrow {
        display: none;
    }

    .board {
        width: min(92vw, calc(100vh - 170px), 630px);
    }
}

@media (max-width: 520px) {
    body {
        padding: 14px 8px;
    }

    .board-card {
        border-radius: 22px;
    }

    .board {
        border-width: 4px;
        border-radius: 18px;
    }
}
