/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.07);
    --border-glass: rgba(255, 255, 255, 0.12);
    --text-primary: #f0f0f5;
    --text-secondary: #8a8a9a;
    --text-muted: #5a5a6a;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 58, 237, 0.4);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.3);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --warning: #f59e0b;
    --impostor-red: #ff3b5c;
    --impostor-glow: rgba(255, 59, 92, 0.4);
    --citizen-blue: #3b82f6;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --font: 'Outfit', sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* ========== SCREENS ========== */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
    background: var(--bg-dark);
    transition: opacity 0.3s ease;
}

.screen.active {
    display: flex;
}

.screen.fade-in {
    animation: fadeIn 0.35s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.btn:active::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #9333ea);
    color: white;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    box-shadow: 0 4px 16px var(--danger-glow);
}

.btn-ghost {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-ghost:active {
    background: var(--bg-card-hover);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.15rem;
    border-radius: var(--radius-lg);
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}

.btn-back:active {
    background: var(--bg-card-hover);
}

/* ========== HOME SCREEN ========== */
#screen-home {
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.home-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: -50px;
    right: -80px;
    animation: float1 8s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--impostor-red);
    bottom: 10%;
    left: -60px;
    animation: float2 10s ease-in-out infinite;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--citizen-blue);
    bottom: -40px;
    right: 20%;
    animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 40px);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(40px, -30px);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, -40px);
    }
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    z-index: 2;
    padding: 20px;
}

.logo-container {
    text-align: center;
}

.logo-icon {
    font-size: 5rem;
    margin-bottom: 12px;
    animation: logoBounce 2s ease-in-out infinite;
}

@keyframes logoBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.logo-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--impostor-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.logo-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 300;
}

.pulse-animation {
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 24px var(--accent-glow);
    }

    50% {
        box-shadow: 0 4px 40px var(--accent-glow), 0 0 60px var(--accent-glow);
    }
}

/* ========== HOW TO PLAY ========== */
.screen-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.screen-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.howto-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

.howto-step {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease forwards;
}

.howto-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #9333ea);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.howto-text h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.howto-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========== SETUP SCREEN ========== */
.setup-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 40px;
}

.setup-section {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.player-count-badge {
    background: var(--accent);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Player list */
.players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.player-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-light);
    flex-shrink: 0;
}

.player-item input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    padding: 4px 0;
}

.player-item input::placeholder {
    color: var(--text-muted);
}

.player-item input:focus {
    border-bottom: 1px solid var(--accent-light);
}

.btn-remove-player {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-remove-player:active {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.btn-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px dashed rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add:active {
    background: rgba(124, 58, 237, 0.2);
}

/* Counter control */
.counter-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.btn-counter {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn-counter:active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(0.92);
}

.counter-value {
    font-size: 2.5rem;
    font-weight: 800;
    min-width: 50px;
    text-align: center;
    color: var(--accent-light);
}

.validation-msg {
    text-align: center;
    font-size: 0.8rem;
    color: var(--warning);
    margin-top: 10px;
    min-height: 20px;
}

/* Time options */
.time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-time {
    flex: 1;
    min-width: 55px;
    padding: 10px 8px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-time.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-time:active {
    transform: scale(0.95);
}

.custom-time {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-time label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.custom-time input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
}

.custom-time input:focus {
    border-color: var(--accent-light);
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.category-chip.selected {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--accent);
    color: var(--accent-light);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.15);
}

.category-chip:active {
    transform: scale(0.96);
}

.category-chip .cat-emoji {
    font-size: 1.2rem;
}

.btn-select-all {
    background: none;
    border: 1px solid var(--border-glass);
    color: var(--accent-light);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-select-all:active {
    background: var(--bg-card);
}

.btn-start {
    width: 100%;
    padding: 20px 36px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent), #9333ea);
    box-shadow: 0 4px 30px var(--accent-glow);
    margin-top: 8px;
}

/* ========== TURN SCREEN ========== */
#screen-turn {
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.turn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px;
    height: 100%;
    justify-content: center;
    position: relative;
}

.turn-player-indicator {
    position: absolute;
    top: 24px;
    right: 24px;
}

.turn-number {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-glass);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.turn-avatar {
    font-size: 4.5rem;
    animation: logoBounce 2s ease-in-out infinite;
}

.turn-player-name {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.turn-instruction {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Swipe Panel */
.swipe-container {
    position: fixed;
    bottom: 140px;
    left: 0;
    right: 0;
    height: 420px;
    z-index: 20;
    pointer-events: none;
}

.swipe-panel {
    position: absolute;
    bottom: -310px;
    left: 0;
    right: 0;
    height: 420px;
    background: linear-gradient(180deg, rgba(30, 20, 60, 0.98) 0%, rgba(20, 10, 40, 0.99) 100%);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    border-top: 2px solid rgba(124, 58, 237, 0.5);
    backdrop-filter: blur(30px);
    transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: all;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.6), 0 -2px 20px rgba(124, 58, 237, 0.2);
    will-change: bottom;
}

.swipe-panel.revealed {
    bottom: -140px;
    transition: bottom 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.swipe-handle {
    padding: 18px 0 14px;
    width: 100%;
    display: flex;
    justify-content: center;
    cursor: grab;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.swipe-handle-bar {
    width: 70px;
    height: 7px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 10px;
    box-shadow: 0 0 12px var(--accent-glow);
    animation: handlePulse 2s ease-in-out infinite;
}

.swipe-panel.revealed .swipe-handle-bar {
    animation: none;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

@keyframes handlePulse {

    0%,
    100% {
        box-shadow: 0 0 12px var(--accent-glow);
        width: 70px;
    }

    50% {
        box-shadow: 0 0 25px var(--accent-glow), 0 0 40px rgba(124, 58, 237, 0.15);
        width: 80px;
    }
}

.swipe-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    animation: hintBounce 1.5s ease-in-out infinite;
    padding: 8px 0;
}

.swipe-hint svg {
    width: 28px;
    height: 28px;
    color: var(--accent-light);
}

@keyframes hintBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.word-reveal {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 30px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.word-reveal.visible {
    display: flex;
}

.word-role {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 6px 20px;
    border-radius: 20px;
}

.word-role.citizen {
    color: var(--citizen-blue);
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.word-role.impostor {
    color: var(--impostor-red);
    background: rgba(255, 59, 92, 0.15);
    border: 1px solid rgba(255, 59, 92, 0.3);
    animation: glowPulse 1.5s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 59, 92, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 59, 92, 0.4);
    }
}

.word-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.word-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.word-text.impostor-hidden {
    font-size: 3rem;
    color: var(--impostor-red);
    text-shadow: 0 0 20px rgba(255, 59, 92, 0.5);
    letter-spacing: 8px;
}

.btn-next {
    position: fixed;
    bottom: 24px;
    left: 20px;
    right: 20px;
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.btn-next.visible {
    opacity: 1;
    pointer-events: all;
}

/* ========== TIMER SCREEN ========== */
#screen-timer {
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.timer-bg-pulse {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    animation: timerPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes timerPulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

.timer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;
    padding: 20px;
}

.timer-title {
    font-size: 1.8rem;
    font-weight: 800;
}

.timer-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
}

.timer-circle {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 10px 0;
}

.timer-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.timer-bg-circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 8;
}

.timer-progress-circle {
    fill: none;
    stroke: url(#timer-gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.timer-display.warning {
    color: var(--warning);
}

.timer-display.danger {
    color: var(--danger);
    animation: timerShake 0.5s ease-in-out infinite;
}

@keyframes timerShake {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0);
    }

    25% {
        transform: translate(-50%, -50%) rotate(-2deg);
    }

    75% {
        transform: translate(-50%, -50%) rotate(2deg);
    }
}

.btn-timer-control {
    min-width: 140px;
}

/* ========== REVEAL SCREEN ========== */
#screen-reveal {
    align-items: center;
    justify-content: center;
}

.reveal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
}

.reveal-header {
    text-align: center;
}

.reveal-icon {
    font-size: 4rem;
    margin-bottom: 8px;
    animation: revealPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes revealPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.reveal-header h2 {
    font-size: 2rem;
    font-weight: 800;
}

.reveal-word-section,
.reveal-impostor-word-section {
    text-align: center;
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    width: 100%;
    backdrop-filter: blur(10px);
}

.reveal-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.reveal-word {
    font-size: 2rem;
    font-weight: 800;
    color: var(--citizen-blue);
}

.reveal-impostor-word {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--impostor-red);
}

.reveal-impostors-section {
    text-align: center;
    width: 100%;
}

.reveal-impostors-section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.reveal-impostors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reveal-impostor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 59, 92, 0.1);
    border: 1px solid rgba(255, 59, 92, 0.25);
    border-radius: var(--radius-md);
    animation: revealSlide 0.5s ease forwards;
    color: var(--impostor-red);
    font-weight: 700;
    font-size: 1.1rem;
}

@keyframes revealSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-impostor-card .impostor-icon {
    font-size: 1.6rem;
}

.reveal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.reveal-actions .btn {
    width: 100%;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 500px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {

    .setup-content,
    .howto-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .reveal-content {
        max-width: 500px;
    }
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 100;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
    max-width: 90%;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}