.turkey-trot {
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: system-ui, sans-serif;
    text-align: center;
}

.turkey-trot .turkey-trot .board-surface {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.turkey-trot .turkey-trot #turkey-trot-board {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    touch-action: none;
}

.turkey-trot .turkey-trot .thumbstick {
    position: absolute;
    width: 68px;
    height: 68px;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(42, 26, 56, 0.6);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.turkey-trot .turkey-trot .thumbstick-knob {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: #f7e6ff;
}

.turkey-trot .turkey-trot .game-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.turkey-trot .turkey-trot .game-controls button,
.turkey-trot .direction-pad button {
    padding: 0.5rem 1rem;
    border: 1px solid #572d68;
    border-radius: 999px;
    background: #fff;
    color: #572d68;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.turkey-trot .turkey-trot .game-controls button[aria-pressed="true"] {
    background: #572d68;
    color: #fff;
}

.turkey-trot :focus-visible {
    outline: 3px solid #572d68;
    outline-offset: 3px;
}

.turkey-trot .turkey-trot .direction-pad {
    display: grid;
    grid-template-columns: repeat(3, 48px);
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.turkey-trot .turkey-trot .direction-pad button {
    min-height: 48px;
    padding: 0;
    font-size: 1.5rem;
    touch-action: manipulation;
}

.turkey-trot .turkey-trot .direction-pad button[data-direction="ArrowUp"] {
    grid-column: 2;
}

.turkey-trot .turkey-trot .direction-pad button[data-direction="ArrowLeft"] {
    grid-column: 1;
}

.turkey-trot .turkey-trot .direction-pad button:active {
    background: #572d68;
    color: #fff;
}

@media (max-width: 480px) {
    .turkey-trot {
        margin: 0.75rem auto;
    }

    .turkey-trot h3,
    .turkey-trot p {
        margin: 0.4rem 0;
    }

    .turkey-trot .board-surface {
        max-width: clamp(210px, calc(75svh - 175px), 360px);
    }
}
