* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d1329;
    --bg-secondary: #1a2140;
    --bg-card: #252b4a;
    --accent-red: #dc2626;
    --accent-red-dark: #991b1b;
    --accent-blue: #3b82f6;
    --accent-blue-dark: #1d4ed8;
    --accent-yellow: #eab308;
    --accent-yellow-dark: #a16207;
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
    --text-placeholder: #5a6380;
    --success: #4ade80;
    --error: #f87171;
    --onboarding-accent: var(--accent-red);
    --onboarding-accent-dark: var(--accent-red-dark);
    --onboarding-shadow: rgba(220, 38, 38, 0.3);
    --onboarding-shadow-hover: rgba(220, 38, 38, 0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0a0f1f 100%);
    min-height: 100vh;
    min-height: var(--app-height, 100dvh);
    color: var(--text-primary);
    overflow-x: hidden;
}

.app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: var(--app-height, 100dvh);
    position: relative;
}

.screen {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    min-height: var(--app-height, 100dvh);
    padding: 40px 24px;
    padding-top: calc(40px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

/* Back Button */
.btn-back {
    position: absolute;
    top: calc(40px + env(safe-area-inset-top, 0px));
    left: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

/* ====== Animated Onboarding ====== */
.secret-hitler-onboarding {
    padding-top: 16px;
}

.secret-hitler-onboarding .onboarding-slides {
    align-items: stretch;
    padding-top: 0;
}

.secret-hitler-onboarding .onboarding-slide {
    width: 100%;
    max-width: 360px;
    padding: 4px 4px 0;
    animation: none;
}

.secret-hitler-onboarding .onboarding-slide.active.slide-in-left,
.secret-hitler-onboarding .onboarding-slide.active.slide-in-right {
    animation: none;
}

.secret-hitler-remotion-stage {
    position: relative;
    width: min(100%, 320px);
    height: 268px;
    margin: 0 auto 16px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
}

.secret-hitler-remotion-stage > div,
.secret-hitler-remotion-fill {
    width: 100%;
    height: 100%;
}

.secret-hitler-motion-layer {
    position: absolute;
    inset: 0;
}

.secret-hitler-motion-asset {
    position: absolute;
    display: block;
    height: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    transform-origin: center;
    will-change: transform, opacity;
    filter: drop-shadow(0 14px 18px rgba(0,0,0,0.28));
}

.secret-hitler-motion-asset-law,
.secret-hitler-motion-asset-yes-no,
.secret-hitler-motion-asset-vote,
.secret-hitler-motion-asset-ballot {
    filter: drop-shadow(0 10px 14px rgba(0,0,0,0.22));
}

.secret-hitler-onboarding .slide-title {
    font-size: 22px;
    line-height: 1.16;
    max-width: 340px;
    margin-bottom: 10px;
}

.secret-hitler-onboarding .slide-text {
    max-width: 340px;
    min-height: 50px;
    line-height: 1.45;
}

@media (max-width: 380px) {
    .secret-hitler-remotion-stage {
        width: min(100%, 294px);
        height: 247px;
    }
}

@media (max-height: 700px) {
    .secret-hitler-onboarding {
        padding-top: 6px;
    }

    .secret-hitler-remotion-stage {
        width: min(100%, 284px);
        height: 239px;
        margin-bottom: 12px;
    }

    .secret-hitler-onboarding .slide-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .secret-hitler-onboarding .slide-text {
        min-height: 46px;
    }
}

/* ====== Players List ====== */
.players-list {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* ====== Bottom Section ====== */
.bottom-section {
    padding: 20px 0;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ====== Buttons ====== */
.btn-play {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    border: none;
    color: white;
    padding: 18px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

@media (hover: hover) {
    .btn-play:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(220, 38, 38, 0.4);
    }
}

.btn-play:active {
    transform: translateY(0);
}

.btn-play:disabled {
    background: var(--bg-card);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
    padding: 16px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .btn-secondary:hover {
        background: var(--bg-card);
        border-color: var(--text-primary);
    }
}

/* ====== Cards Screen (Role Distribution) ====== */
#cards-screen {
    justify-content: center;
    align-items: center;
    padding-top: 60px;
}

.card-container {
    perspective: 1000px;
    width: 300px;
    height: 400px;
    margin: 20px 0;
}

.game-card {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.game-card.swiping {
    transition: transform 0.4s ease;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.game-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.card-front {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--accent-red);
}

.card-back {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    transform: rotateY(180deg);
}

.card-back.liberal {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
}

.card-back.fascist {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
}

.card-back.hitler {
    background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
    border: 2px solid var(--accent-yellow);
}

.card-title {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.card-player-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 30px;
}

.card-hint {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

.card-role {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 12px;
}

.card-team-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    line-height: 1.6;
    white-space: pre-line;
}

.card-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    width: 300px;
}

.btn-show-role, .btn-next-player {
    flex: 1;
    padding: 14px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-show-role {
    background: var(--accent-red);
    color: white;
}

.btn-show-role:active {
    transform: scale(0.96);
}

.btn-next-player {
    background: var(--accent-red);
    color: white;
    display: none;
}

.btn-next-player:active {
    transform: scale(0.96);
}

.swipe-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-hint.visible {
    opacity: 1;
}

/* ====== Game Board ====== */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.round-title {
    font-size: 22px;
    font-weight: 700;
}

.deck-counter {
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 6px 12px;
    border-radius: 12px;
}

.policy-tracks {
    margin-bottom: 16px;
}

.track-section {
    margin-bottom: 12px;
}

.track-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.liberal-label {
    color: var(--accent-blue);
}

.fascist-label {
    color: var(--accent-red);
}

.policy-track {
    display: flex;
    gap: 6px;
}

.policy-slot {
    flex: 1;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
}

.liberal-slot {
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.liberal-slot.filled {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.fascist-slot {
    background: rgba(220, 38, 38, 0.15);
    border: 2px solid rgba(220, 38, 38, 0.3);
}

.fascist-slot.filled {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.slot-power-icon {
    font-size: 16px;
}

.filled .slot-power-icon {
    display: none;
}

/* Election Tracker */
.election-tracker-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tracker-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.election-tracker {
    display: flex;
    gap: 8px;
}

.election-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--text-secondary);
    transition: all 0.3s ease;
}

.election-dot.filled {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

/* Board Players */
.board-players {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 12px;
}

.board-player-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease;
    position: relative;
}

.board-player-item.dead {
    opacity: 0.4;
}

.board-player-item.dead .board-player-name {
    text-decoration: line-through;
}

.board-player-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
    background: var(--bg-secondary);
}

.board-player-item.president .board-player-icon {
    background: var(--accent-yellow);
}

.board-player-item.chancellor .board-player-icon {
    background: var(--accent-red);
}

.board-player-name {
    flex: 1;
    font-size: 15px;
}

.board-player-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-president {
    background: rgba(234, 179, 8, 0.2);
    color: var(--accent-yellow);
}

.badge-chancellor {
    background: rgba(220, 38, 38, 0.2);
    color: var(--accent-red);
}

.badge-dead {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* ====== Nomination Screen ====== */
.nomination-info {
    text-align: center;
    margin-bottom: 24px;
}

.president-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.badge-label {
    font-size: 12px;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.badge-name {
    font-size: 22px;
    font-weight: 700;
}

.nomination-hint {
    font-size: 15px;
    color: var(--text-secondary);
}

.candidate-list {
    flex: 1;
    overflow-y: auto;
}

.candidate-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

@media (hover: hover) {
    .candidate-item:hover {
        background: var(--bg-secondary);
    }
}

.candidate-item.selected {
    border-color: var(--accent-red);
    background: rgba(220, 38, 38, 0.1);
}

.candidate-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
    background: var(--bg-secondary);
}

.candidate-item.selected .candidate-icon {
    background: var(--accent-red);
}

.candidate-name {
    font-size: 16px;
}

/* ====== Pass Phone Screen ====== */
.pass-phone-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
}

.pass-phone-icon {
    font-size: 80px;
}

.pass-phone-title {
    font-size: 18px;
    color: var(--text-secondary);
}

.pass-phone-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-red);
}

.pass-phone-description {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 280px;
    line-height: 1.5;
}

#pass-phone-screen .btn-play {
    width: auto;
    padding: 18px 48px;
    margin-top: 16px;
}

/* ====== Vote Screen ====== */
.vote-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
}

.vote-player-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.vote-government {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px 24px;
    width: 100%;
    max-width: 300px;
}

.vote-gov-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.vote-gov-row + .vote-gov-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gov-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.gov-name {
    font-size: 16px;
    font-weight: 600;
}

.vote-buttons {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 300px;
}

.btn-vote {
    flex: 1;
    padding: 24px;
    border: none;
    border-radius: 20px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-vote:active {
    transform: scale(0.95);
}

.btn-vote-ja {
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
    color: white;
}

.btn-vote-nein {
    background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
    color: white;
}

/* ====== Vote Results ====== */
.vote-results-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.vote-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px 14px;
}

.vote-result-name {
    font-size: 14px;
}

.vote-result-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}

.vote-result-item.ja .vote-result-badge {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

.vote-result-item.nein .vote-result-badge {
    background: rgba(248, 113, 113, 0.2);
    color: var(--error);
}

.vote-outcome {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
}

.vote-outcome.passed {
    color: var(--success);
    background: rgba(74, 222, 128, 0.1);
}

.vote-outcome.failed {
    color: var(--error);
    background: rgba(248, 113, 113, 0.1);
}

/* ====== Legislative Session ====== */
.legislative-instruction {
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.policy-cards-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.policy-card {
    width: 100px;
    height: 150px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid transparent;
    text-align: center;
    padding: 12px;
    line-height: 1.3;
}

.policy-card.liberal {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: white;
}

.policy-card.fascist {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    color: white;
}

.policy-card.selected {
    border-color: var(--accent-yellow);
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.3);
}

.btn-veto {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

@media (hover: hover) {
    .btn-veto:hover {
        background: rgba(234, 179, 8, 0.1);
        border-color: var(--accent-yellow);
    }
}

/* ====== Policy Enacted ====== */
.policy-enacted-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.enacted-card {
    width: 200px;
    height: 280px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: enactedAppear 0.5s ease;
}

@keyframes enactedAppear {
    from { opacity: 0; transform: scale(0.8) rotate(-5deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.enacted-card.liberal {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.enacted-card.fascist {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
}

.enacted-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.enacted-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.enacted-power-hint {
    font-size: 16px;
    color: var(--accent-yellow);
    font-weight: 600;
    text-align: center;
    margin-top: 12px;
}

/* ====== Presidential Power ====== */
.power-description {
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.power-content {
    flex: 1;
    overflow-y: auto;
}

.power-player-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

@media (hover: hover) {
    .power-player-item:hover {
        background: var(--bg-secondary);
    }
}

.power-player-item.selected {
    border-color: var(--accent-red);
    background: rgba(220, 38, 38, 0.1);
}

.power-player-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
    background: var(--bg-secondary);
}

.power-player-item.selected .power-player-icon {
    background: var(--accent-red);
}

.power-player-name {
    font-size: 16px;
}

.power-result {
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
}

.power-result.liberal {
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid var(--accent-blue);
}

.power-result.fascist {
    background: rgba(220, 38, 38, 0.15);
    border: 2px solid var(--accent-red);
}

.power-result-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.power-result-party {
    font-size: 24px;
    font-weight: 700;
}

.power-result.liberal .power-result-party {
    color: var(--accent-blue);
}

.power-result.fascist .power-result-party {
    color: var(--accent-red);
}

/* Peek cards */
.peek-cards {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.peek-card {
    width: 80px;
    height: 120px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-align: center;
    padding: 8px;
}

.peek-card.liberal {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
}

.peek-card.fascist {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
}

/* ====== Game Over ====== */
.gameover-container {
    text-align: center;
    padding: 40px 0 20px;
}

.gameover-icon {
    font-size: 80px;
    margin-bottom: 16px;
}

.gameover-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.gameover-title.liberal-win {
    color: var(--accent-blue);
}

.gameover-title.fascist-win {
    color: var(--accent-red);
}

.gameover-reason {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.roles-reveal {
    margin-bottom: 20px;
}

.role-reveal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
}

.role-reveal-name {
    font-size: 16px;
}

.role-reveal-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
}

.role-liberal .role-reveal-badge {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.role-fascist .role-reveal-badge {
    background: rgba(220, 38, 38, 0.2);
    color: var(--accent-red);
}

.role-hitler .role-reveal-badge {
    background: rgba(234, 179, 8, 0.2);
    color: var(--accent-yellow);
}

/* ====== Veto Overlay ====== */
.veto-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 31, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.veto-overlay.active {
    display: flex;
}

.veto-modal {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    max-width: 320px;
    width: 90%;
}

.veto-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent-yellow);
}

.veto-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.veto-buttons {
    display: flex;
    gap: 12px;
}

.veto-buttons .btn-vote {
    padding: 16px;
    font-size: 16px;
}

/* ====== Mobile Responsive ====== */
@media (max-width: 480px) {
    .app {
        max-width: 100%;
    }

    .screen {
        padding: 20px 12px;
        padding-top: calc(20px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .title {
        font-size: 22px;
        margin-bottom: 20px;
    }


    .btn-play {
        padding: 16px;
        font-size: 16px;
    }

    .card-container {
        width: 240px;
        height: 320px;
    }

    .card-buttons {
        width: 240px;
    }

    .card-player-name {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .card-role {
        font-size: 22px;
    }

    .card-team-info {
        font-size: 12px;
    }

    .card-hint {
        font-size: 13px;
    }

    .swipe-hint {
        font-size: 12px;
        margin-top: 12px;
    }

    .round-title {
        font-size: 18px;
    }

    .policy-slot {
        height: 38px;
    }

    .pass-phone-icon {
        font-size: 60px;
    }

    .pass-phone-name {
        font-size: 26px;
    }

    .vote-results-list {
        grid-template-columns: 1fr;
    }

    .policy-card {
        width: 85px;
        height: 130px;
        font-size: 13px;
    }

    .enacted-card {
        width: 160px;
        height: 230px;
    }

    .enacted-icon {
        font-size: 48px;
    }

    .enacted-text {
        font-size: 17px;
    }
}

/* Responsive Height */
@media (max-height: 700px) {
    .screen {
        padding: 20px;
    }

    .title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .card-container {
        width: 260px;
        height: 340px;
    }

    .card-player-name {
        font-size: 24px;
    }

    .card-role {
        font-size: 24px;
    }

}

/* Tablet and larger */
@media (min-width: 768px) {
    .app {
        max-width: 100%;
    }

    .screen {
        padding: 50px 40px;
    }

    .title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .card-container {
        width: 320px;
        height: 420px;
    }

    .card-player-name {
        font-size: 32px;
    }

    .card-role {
        font-size: 32px;
    }
}
