@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&display=swap');

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

body {
    font-family: 'Manrope', sans-serif;
    text-align: center;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 15%, rgba(251, 146, 60, 0.35), transparent 35%),
        linear-gradient(140deg, #0f172a, #1e293b);
    color: #f8fafc;
}

main {
    width: min(700px, 92vw);
    margin: 2.5rem auto 1.5rem;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 1.8rem 1rem;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.36);
}

h1 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.container {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
}

.game {
    width: min(86vw, 420px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
}

.box {
    aspect-ratio: 1;
    border-radius: 16px;
    border: 1px solid #334155;
    box-shadow: inset 0 0 20px rgba(148, 163, 184, 0.12);
    font-size: clamp(1.8rem, 7vw, 3.2rem);
    color: #fb923c;
    background: #0b1220;
    cursor: pointer;
}

#reset,
#new-Game {
    margin-top: 1.3rem;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(130deg, #f97316, #ef4444);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

#msg {
    color: #fed7aa;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
}

.msg-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

.hide {
    display: none;
}
