/* ── One Night Werewolf (on-) ── */
:root {
    --on-accent: #5c6bc0;
    --on-accent-dark: #3f51b5;
    --on-accent-rgb: 92, 107, 192;
    --on-bg: #0f0820;
    --on-surface: #2a1a4a;
    --on-border: #3d2b5f;
    --on-text: #f0e6ff;
    --on-muted: #9d8fb5;
    --on-werewolf: #e74c3c;
    --on-village: #2ecc71;
}

.on-container {
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.75rem 0.75rem;
    gap: 0.5rem;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .on-container {
        padding: 0.4rem 0.5rem 0.5rem;
        gap: 0.4rem;
    }
}

.on-heading {
    font-family: 'Cabin Sketch', cursive;
    font-size: 2rem;
    color: var(--on-accent);
    text-align: center;
    margin-bottom: 0.5rem;
}

.on-room-code {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.4rem;
    color: var(--on-text);
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
}

.on-room-code .code {
    color: var(--on-accent);
}

.on-copy-btn {
    background: transparent;
    border: 1px solid var(--on-border);
    color: var(--on-muted);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.on-copy-btn:hover {
    color: var(--on-accent);
    border-color: var(--on-accent);
}

/* ── Sections ── */
.on-section {
    width: 100%;
    margin-bottom: 1rem;
}

.on-section-title {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.1rem;
    color: var(--on-accent);
    margin: 0 0 0.5rem;
}

/* ── Player list (lobby) ── */
.on-player-list {
    list-style: none;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.on-lobby-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--on-surface);
    border: 1px solid var(--on-border);
    border-radius: 10px;
}

.on-lobby-player-name {
    font-weight: 600;
    color: var(--on-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.on-host-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.3rem;
    background: rgba(92, 107, 192, 0.2);
    color: var(--on-accent);
    border: 1px solid rgba(92, 107, 192, 0.4);
}

.on-you-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    margin-left: 0.3rem;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    border: 1px solid rgba(78, 205, 196, 0.4);
    vertical-align: middle;
}

.on-kick-btn {
    background: transparent;
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e74c3c;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.on-kick-btn:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* ── Settings (lobby) ── */
.on-settings {
    width: 100%;
    background: var(--on-surface);
    border: 1px solid var(--on-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.on-settings-title {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.1rem;
    color: var(--on-accent);
    margin: 0 0 0.75rem;
    text-align: center;
}

.on-mode-toggle {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    justify-content: center;
}

.on-mode-btn {
    flex: 1;
    max-width: 200px;
    padding: 0.6rem 1rem;
    background: var(--on-bg);
    border: 2px solid var(--on-border);
    border-radius: 12px;
    color: var(--on-muted);
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.on-mode-btn:hover {
    border-color: rgba(92, 107, 192, 0.5);
}

.on-mode-btn.active {
    border-color: var(--on-accent);
    background: rgba(92, 107, 192, 0.15);
    color: var(--on-accent);
}

.on-timer-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.on-timer-btn {
    padding: 0.4rem 0.8rem;
    background: var(--on-bg);
    border: 1px solid var(--on-border);
    border-radius: 8px;
    color: var(--on-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.on-timer-btn:hover {
    border-color: rgba(92, 107, 192, 0.5);
}

.on-timer-btn.active {
    border-color: var(--on-accent);
    color: var(--on-accent);
    background: rgba(92, 107, 192, 0.1);
}

/* ── Lobby status ── */
.on-lobby-status {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

.on-status-msg {
    color: var(--on-muted);
    font-size: 0.95rem;
}

.on-status-msg.on-ready {
    color: var(--on-village);
}

.on-waiting-msg {
    text-align: center;
    color: var(--on-muted);
    font-size: 0.95rem;
    padding: 1rem;
    font-style: italic;
}

/* ── Phase title (shared) ── */
.on-phase-title {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.6rem;
    color: var(--on-accent);
    text-align: center;
    margin: 0 0 1rem;
}

/* ── Night phase ── */
.on-night {
    width: 100%;
}

.on-night-title {
    color: var(--on-accent);
}

.on-night-subtitle {
    color: var(--on-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ── Role card ── */
.on-role-card {
    width: 100%;
    background: var(--on-surface);
    border: 1px solid var(--on-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.on-role-card.on-active-turn {
    --tile-glow-color: rgba(92, 107, 192, 0.5);
    border-color: var(--on-accent);
    background: rgba(92, 107, 192, 0.08);
    animation: gn-tile-glow-pulse 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .on-role-card.on-active-turn {
        animation: none;
        box-shadow: 0 0 0 2px rgba(92, 107, 192, 0.6);
    }
}

.on-role-card.on-role-reminder-card {
    border-color: rgba(92, 107, 192, 0.3);
}

.on-role-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.on-role-label {
    font-size: 0.8rem;
    color: var(--on-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.on-role-name {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.3rem;
    color: var(--on-accent);
}

.on-role-desc {
    color: var(--on-muted);
    font-size: 0.85rem;
    margin: 0.25rem 0 0.75rem;
}

/* ── Night action elements ── */
.on-night-info {
    background: rgba(92, 107, 192, 0.1);
    border: 1px solid rgba(92, 107, 192, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--on-text);
    margin-bottom: 1rem;
    text-align: center;
}

.on-night-info p {
    margin: 0;
}

.on-night-prompt {
    color: var(--on-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.on-night-result {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #2ecc71;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
}

.on-night-result p {
    margin: 0;
}

.on-night-hint {
    background: rgba(92, 107, 192, 0.1);
    border: 1px solid rgba(92, 107, 192, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    color: var(--on-text);
    font-size: 0.85rem;
}

.on-night-hint p {
    margin: 0;
}

.on-night-waiting {
    width: 100%;
    text-align: center;
    padding: 1rem;
}

.on-role-reminder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--on-surface);
    border-radius: 10px;
    border: 1px solid var(--on-border);
}

.on-night-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.on-moon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe66d, #ffd93d);
    box-shadow: 0 0 30px rgba(255, 230, 109, 0.4);
    animation: on-moon-glow 3s ease-in-out infinite;
}

@keyframes on-moon-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 230, 109, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 230, 109, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
    .on-moon {
        animation: none;
    }
}

.on-waiting-text {
    color: var(--on-muted);
    font-style: italic;
    animation: on-fade 2s ease-in-out infinite;
}

@keyframes on-fade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .on-waiting-text {
        animation: none;
    }
}

/* Seer choice toggle */
.on-seer-choice {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.on-choice-btn {
    padding: 0.5rem 1rem;
    background: var(--on-surface);
    border: 2px solid var(--on-border);
    border-radius: 10px;
    color: var(--on-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.on-choice-btn:hover {
    border-color: rgba(92, 107, 192, 0.5);
}

.on-choice-btn.active {
    border-color: var(--on-accent);
    color: var(--on-accent);
    background: rgba(92, 107, 192, 0.15);
}

/* Player selection grid */
.on-player-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    width: 100%;
    margin-bottom: 1rem;
}

@media (max-width: 380px) {
    .on-player-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.on-player-card {
    padding: 0.6rem 0.8rem;
    background: rgba(42, 26, 74, 0.55);
    border: 1px solid var(--gn-border-glass);
    border-radius: 12px;
    color: var(--on-text);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    text-align: center;
}

.on-player-card:hover {
    border-color: var(--on-accent);
}

.on-player-card.selected {
    border-color: var(--on-accent);
    background: rgba(92, 107, 192, 0.2);
    color: var(--on-accent);
}

/* Center card selection */
.on-center-cards {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.on-center-card {
    width: 70px;
    height: 90px;
    background: var(--on-surface);
    border: 2px solid var(--on-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--on-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    padding: 0.25rem;
}

.on-center-card:hover {
    border-color: var(--on-accent);
}

.on-center-card.selected {
    border-color: var(--on-accent);
    background: rgba(92, 107, 192, 0.2);
    color: var(--on-accent);
}

/* Narration */
.on-narration {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(92, 107, 192, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(92, 107, 192, 0.15);
}

.on-narration-line {
    color: var(--on-muted);
    font-size: 0.8rem;
    font-style: italic;
    margin: 0.25rem 0;
}

.on-skip-btn {
    margin-top: 0.5rem;
}

/* ── Discussion ── */
.on-discussion {
    width: 100%;
}

.on-timer {
    font-family: 'Cabin Sketch', cursive;
    font-size: 2rem;
    color: var(--on-accent);
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.on-timer-icon {
    font-size: 1.4rem;
}

.on-timer-value {
    font-family: 'Cabin Sketch', cursive;
}

.on-timer.on-timer-warning {
    color: var(--on-werewolf);
    animation: on-pulse 1s infinite;
}

@keyframes on-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
    .on-timer.on-timer-warning {
        animation: none;
        opacity: 1;
    }
}

/* Team badge (discussion) */
.on-team-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.on-team-werewolf {
    background: rgba(231, 76, 60, 0.15);
    color: var(--on-werewolf);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.on-team-village {
    background: rgba(46, 204, 113, 0.15);
    color: var(--on-village);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Player reference (discussion) */
.on-player-reference {
    width: 100%;
    margin-bottom: 1rem;
}

.on-discussion-players {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.on-player-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: rgba(42, 26, 74, 0.55);
    border: 1px solid var(--gn-border-glass);
    border-radius: 12px;
    color: var(--on-text);
    font-size: 0.85rem;
}

/* ── Voting ── */
.on-voting {
    width: 100%;
}

.on-vote-progress {
    text-align: center;
    color: var(--on-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.on-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--on-border);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.on-progress-fill {
    height: 100%;
    background: var(--on-accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.on-vote-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.on-vote-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--on-surface);
    border: 2px solid var(--on-border);
    border-radius: 10px;
    transition: all 0.2s;
}

.on-vote-item.on-voted-for {
    border-color: var(--on-accent);
    background: rgba(92, 107, 192, 0.1);
}

.on-vote-item.on-vote-me {
    opacity: 0.6;
}

.on-vote-player {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.on-vote-name {
    font-weight: 600;
    color: var(--on-text);
}

.on-voted-check {
    color: var(--on-accent);
    font-size: 0.85rem;
    margin-left: 0.3rem;
}

.on-btn-vote {
    background: linear-gradient(135deg, var(--on-accent), var(--on-accent-dark));
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.on-btn-vote:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── Reveal ── */
.on-reveal {
    width: 100%;
}

.on-phase-title.on-village-wins {
    color: var(--on-village);
}

.on-phase-title.on-werewolves-win {
    color: var(--on-werewolf);
}

/* Eliminated section */
.on-eliminated-section {
    width: 100%;
    margin-bottom: 1.5rem;
}

.on-eliminated-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.on-eliminated-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 2px solid;
}

.on-eliminated-card.on-elim-werewolf {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.4);
}

.on-eliminated-card.on-elim-village {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.4);
}

.on-elim-name {
    font-weight: 600;
    color: var(--on-text);
}

.on-elim-role {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1rem;
}

.on-elim-werewolf .on-elim-role {
    color: var(--on-werewolf);
}

.on-elim-village .on-elim-role {
    color: var(--on-village);
}

.on-no-elimination {
    text-align: center;
    color: var(--on-muted);
    font-size: 0.9rem;
    padding: 0.75rem;
    background: rgba(92, 107, 192, 0.05);
    border: 1px solid var(--on-border);
    border-radius: 10px;
}

/* Reveal grid */
.on-reveal-section {
    width: 100%;
    margin-bottom: 1.5rem;
}

.on-reveal-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.on-reveal-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--on-surface);
    border: 1px solid var(--on-border);
    border-radius: 10px;
}

.on-reveal-card.on-reveal-werewolf {
    border-left: 3px solid var(--on-werewolf);
}

.on-reveal-card.on-reveal-village {
    border-left: 3px solid var(--on-village);
}

.on-reveal-card.on-reveal-eliminated {
    background: rgba(231, 76, 60, 0.05);
    border-color: rgba(231, 76, 60, 0.3);
}

.on-reveal-name {
    font-weight: 600;
    color: var(--on-text);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.on-reveal-roles {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.on-reveal-original {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1rem;
}

.on-reveal-werewolf .on-reveal-original {
    color: var(--on-werewolf);
}

.on-reveal-village .on-reveal-original {
    color: var(--on-village);
}

.on-reveal-arrow {
    color: var(--on-muted);
    font-size: 0.85rem;
}

.on-reveal-final {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1rem;
    color: var(--on-accent);
}

/* Center cards reveal */
.on-center-reveal {
    width: 100%;
    margin-bottom: 1.5rem;
}

.on-center-revealed {
    flex-wrap: wrap;
}

.on-center-card-reveal {
    width: 80px;
    height: 100px;
    background: var(--on-surface);
    border: 1px solid var(--on-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
    gap: 0.25rem;
}

.on-center-card-reveal.on-reveal-werewolf {
    border-color: rgba(231, 76, 60, 0.4);
}

.on-center-card-reveal.on-reveal-village {
    border-color: rgba(46, 204, 113, 0.4);
}

.on-center-label {
    font-size: 0.65rem;
    color: var(--on-muted);
    text-transform: uppercase;
}

.on-center-role {
    font-family: 'Cabin Sketch', cursive;
    font-size: 0.85rem;
    color: var(--on-text);
}

/* Scores section (reveal) */
.on-scores-section {
    width: 100%;
    margin-bottom: 1.5rem;
}

.on-score-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.on-score-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: var(--on-surface);
    border: 1px solid var(--on-border);
    border-radius: 10px;
}

.on-score-item.on-scored {
    background: rgba(46, 204, 113, 0.05);
    border-color: rgba(46, 204, 113, 0.3);
}

.on-score-name {
    font-weight: 500;
    color: var(--on-text);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.on-score-pts {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.1rem;
    color: var(--on-muted);
}

.on-score-item.on-scored .on-score-pts {
    color: var(--on-village);
}

/* ── Buttons ── */
.on-btn-primary {
    background: linear-gradient(135deg, var(--on-accent), var(--on-accent-dark));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Cabin Sketch', cursive;
}

.on-btn-primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.on-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.on-btn-secondary {
    background: transparent;
    border: 1px solid var(--on-border);
    color: var(--on-text);
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.on-btn-secondary:hover {
    border-color: var(--on-accent);
    color: var(--on-accent);
}

.on-actions,
.on-action-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ── Game over / Leaderboard ── */
.on-gameover {
    text-align: center;
    margin-bottom: 1rem;
}

.on-gameover-title {
    font-family: 'Cabin Sketch', cursive;
    font-size: 2.2rem;
    color: var(--on-accent);
    text-align: center;
    margin-bottom: 0.5rem;
}

.on-winner-banner {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.on-winner-icon {
    font-size: 2.5rem;
}

.on-winner-name {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.4rem;
    color: #ffe66d;
}

.on-leaderboard {
    width: 100%;
    margin-bottom: 1.5rem;
}

.on-lb-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--on-surface);
    border-radius: 12px;
    overflow: hidden;
}

.on-lb-table thead {
    background: rgba(92, 107, 192, 0.1);
}

.on-lb-table th {
    color: var(--on-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--on-border);
}

.on-lb-table td {
    padding: 0.6rem 0.75rem;
    color: var(--on-text);
    border-bottom: 1px solid rgba(61, 43, 95, 0.4);
}

.on-lb-first {
    background: rgba(92, 107, 192, 0.08);
}

.on-score-cell {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.1rem;
    text-align: center;
    color: var(--on-accent);
}

/* ── Spectator ── */
.on-spectator-section {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--on-border);
}

.on-spectator-title {
    color: var(--on-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 500px) {
    .on-heading {
        font-size: 1.6rem;
    }

    .on-night-title {
        font-size: 1.3rem;
    }

    .on-center-card {
        width: 55px;
        height: 70px;
    }

    .on-center-card-reveal {
        width: 65px;
        height: 85px;
    }

    .on-mode-toggle {
        flex-direction: column;
        align-items: stretch;
    }

    .on-mode-btn {
        max-width: none;
    }
}

@media (max-width: 600px) {
    /* Compact chip layout for player chips (already chip-shaped — enforce consistency) */
    .on-player-chip {
        padding: 0.35rem 0.55rem;
        border-radius: 20px;
        font-size: 0.78rem;
        gap: 0.25rem;
    }
    .on-discussion-players {
        gap: 0.35rem;
    }

    /* Touch targets — kick button */
    .on-kick-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    /* Action buttons — 44px minimum height */
    .on-btn-primary,
    .on-btn-secondary {
        min-height: 44px;
    }

    /* Vote button — 44px minimum */
    .on-btn-vote {
        min-height: 44px;
    }

    /* Vote items — 44px minimum for touch */
    .on-vote-item {
        min-height: 44px;
    }

    /* Player cards (night selection) — 44px minimum */
    .on-player-card {
        min-height: 44px;
    }

    /* Mode and choice buttons — 44px minimum */
    .on-mode-btn,
    .on-choice-btn {
        min-height: 44px;
    }

    /* Action rows — full-width buttons */
    .on-actions,
    .on-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .on-actions .on-btn-primary,
    .on-actions .on-btn-secondary,
    .on-action-row .on-btn-primary,
    .on-action-row .on-btn-secondary {
        text-align: center;
    }
}
