body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #0f172a;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    margin: 1rem 0 0.3rem;
}

.stats {
    margin-bottom: 0.8rem;
    opacity: 0.85;
}

.controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

input, button {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
}

button {
    cursor: pointer;
    background: #38bdf8;
    color: black;
    font-weight: bold;
}

.game {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    width: 100%;
    max-width: 900px;
    height: 60vh;
    padding: 1rem;
}

.peg {
    position: relative;
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.peg::before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 1.2vw;
    max-width: 8px;
    height: 90%;
    background: #e5e7eb;
    border-radius: 5px;
}

.disk {
    height: 3vh;
    max-height: 24px;
    margin-bottom: 0.4vh;
    border-radius: 6px;
    transition: transform 0.4s ease;
}

.moving {
    position: absolute;
    z-index: 1000;
    transition: transform 0.4s ease;
}

footer {
    margin-top: auto;
    opacity: 0.6;
    font-size: 0.9rem;
}
