:root {
    --player-1: var(--red);
    --player-2: var(--blue);
    --player-3: var(--green);
    --player-4: var(--yellow);
    --empty-slot: var(--bg-lightest);
}
.otrio-game-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

#status-message {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}
.current-turn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.turn-indicator {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    border: 1px solid var(--border-color-light);
}
.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 10px;
    border-radius: var(--border-radius-md);
    margin: 10px auto;
}
.cell {
    background: var(--bg-darkest);
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}
.cell:hover {
    background: var(--bg-light);
}
.ring {
    border-radius: 50%;
    position: absolute;
    border: 4px solid var(--empty-slot);
    transition: all 0.3s ease;
}
.ring.size-L { width: 85%; height: 85%; }
.ring.size-M { width: 55%; height: 55%; }
.ring.size-S { width: 25%; height: 25%; }
.ring[data-player="1"] { border-color: var(--player-1); box-shadow: 0 0 10px var(--player-1); }
.ring[data-player="2"] { border-color: var(--player-2); box-shadow: 0 0 10px var(--player-2); }
.ring[data-player="3"] { border-color: var(--player-3); box-shadow: 0 0 10px var(--player-3); }
.ring[data-player="4"] { border-color: var(--player-4); box-shadow: 0 0 10px var(--player-4); }
.player-supply {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.supply-status {
    text-align: center;
    width: 100%;
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 0.75rem;
}
.supply-items {
    display: flex;
    justify-content: space-around;
    width: 100%;
}
.supply-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
    border: 1px solid transparent;
}
.supply-item:hover { background: var(--bg-darker); }
.supply-item.selected { 
    background: var(--bg-darker); 
    border-color: var(--link-color);
    box-shadow: 0 0 5px var(--link-color);
}
.supply-ring {
    border-radius: 50%;
    border: 3px solid var(--text-color);
}
.supply-ring.size-L { width: 30px; height: 30px; }
.supply-ring.size-M { width: 20px; height: 20px; }
.supply-ring.size-S { width: 10px; height: 10px; }
.supply-count { font-size: 0.9rem; font-weight: bold; }
.winning-ring {
    animation: otrio-pulse 1s infinite alternate;
}
@keyframes otrio-pulse {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.1); opacity: 0.6; }
}
@media (orientation: portrait) {
    .otrio-game-view {
        justify-content: center;
        height: 100%;
    }
}
