* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0d0d;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

h1 {
    margin-bottom: 25px;
    font-size: 44px;
    letter-spacing: 3px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 234, 255, 0.35);
}

/* COLORS FOR X & O */
.o {
    color: #00eaff;      /* aqua neon */
    text-shadow: 0 0 10px #00eaff;
}

.x {
    color: #ff007a;      /* pink neon */
    text-shadow: 0 0 10px #ff007a;
}

#container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#game {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 1.3vmin;
    width: min(90vw, 420px);
}

/* GAME BOX */
.box {
    aspect-ratio: 1 / 1;
    width: 100%;
    font-size: 9vmin;
    font-weight: bold;
    border: none;
    background-color: #363636;
    cursor: pointer;
    border-radius: 14px;
    transition: background 0.2s, transform 0.2s;
}

.box:hover {
    background-color: #262626;
    transform: scale(1.05);
}

.box:disabled {
    cursor: default;
    transform: none;
}

/* BUTTONS */
#reset, #new-btn {
    margin-top: 30px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #0061ff, #00eaff);
    color: white;
    font-size: 20px;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

#reset:hover, #new-btn:hover {
    transform: scale(1.08);
}

/* WINNER OVERLAY */
.msg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    z-index: 10;
}

.hide {
    display: none;
}

#msg {
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(0, 234, 255, 0.35);
}
