/* ============================================
   DATING ROULETTE - STYLES
   Theme: Romantic, Modern, Mobile-First
   ============================================ */

/* CSS Variables - Theme Colors */
:root {
    --primary: #FF3366;
    --primary-dark: #E02958;
    --gold: #FFD166;
    --off-white: #FFF7F0;
    --charcoal: #1C1C1E;
    --soft-pink: #FF6B8A;
    --light-pink: #FFE4E9;
    --success: #4CAF50;
    --danger: #FF5252;
    --gray: #9E9E9E;
    --light-gray: #F5F5F5;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 8px 30px rgba(255, 51, 102, 0.2);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 50%;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--light-pink) 100%);
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--charcoal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Screen Management */
.screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn var(--transition-normal);
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--gold); }
    50% { box-shadow: 0 0 40px var(--gold), 0 0 60px var(--primary); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--soft-pink) 100%);
    color: white;
    box-shadow: var(--shadow-card);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 6px 25px rgba(255, 51, 102, 0.4);
}

.btn-primary:disabled {
    background: var(--gray);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--light-pink);
}

.btn-ghost {
    background: transparent;
    color: var(--charcoal);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--border-radius-full);
    background: white;
    color: var(--charcoal);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.btn.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   SPLASH SCREEN
   ============================================ */
#splash-screen {
    background: linear-gradient(180deg, var(--primary) 0%, var(--soft-pink) 50%, var(--off-white) 100%);
}

.splash-content {
    text-align: center;
    animation: slideUp 0.6s ease-out;
    z-index: 2;
}

.logo-container {
    margin-bottom: 40px;
}

.heart-icon {
    font-size: 4rem;
    animation: heartbeat 1.5s infinite;
    margin-bottom: 10px;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
}

.tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

#splash-screen .btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 10px auto;
}

#splash-screen .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border-color: transparent;
}

/* Floating Hearts Background */
.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: floatUp 10s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   MENU SCREEN
   ============================================ */
.menu-container {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease-out;
}

.menu-container h2 {
    text-align: center;
    color: var(--charcoal);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.setting-group {
    margin-bottom: 24px;
}

.setting-group h3 {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gender Buttons */
.gender-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gender-btn {
    flex-direction: column;
    padding: 20px;
    background: var(--light-gray);
    color: var(--charcoal);
    border: 2px solid transparent;
}

.gender-btn .icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

.gender-btn.selected {
    background: var(--light-pink);
    border-color: var(--primary);
    color: var(--primary);
}

/* Difficulty Buttons */
.difficulty-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.difficulty-btn {
    flex-direction: column;
    padding: 16px 8px;
    background: var(--light-gray);
    color: var(--charcoal);
    font-size: 0.85rem;
    border: 2px solid transparent;
}

.diff-name {
    font-weight: 600;
}

.diff-desc {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 4px;
}

.difficulty-btn.selected {
    background: var(--light-pink);
    border-color: var(--primary);
}

.difficulty-btn.selected .diff-desc {
    color: var(--primary);
}

/* Toggle Switches */
.toggle-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.toggle-label span:first-child {
    font-size: 0.95rem;
}

.toggle-label input {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 28px;
    background: var(--gray);
    border-radius: 14px;
    position: relative;
    transition: var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle-label input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-label input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* Menu Actions */
.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.menu-actions .btn {
    width: 100%;
}

/* ============================================
   GAME SCREEN
   ============================================ */
#game-screen {
    background: linear-gradient(180deg, var(--light-pink) 0%, var(--off-white) 100%);
    padding: 0;
}

.game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.progress-info {
    font-weight: 600;
    color: var(--charcoal);
}

#current-profile {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Timer */
.timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--charcoal);
    border-radius: var(--border-radius-sm);
}

.timer.hidden {
    display: none;
}

.timer-bar {
    width: 60px;
    height: 6px;
    background: var(--gray);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.timer-bar {
    background: var(--gold);
    transition: width 0.1s linear;
}

.timer-bar.warning {
    background: var(--danger);
}

.timer-text {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 35px;
}

/* Card Container */
.card-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 160px;
    width: 100%;
}

.card-stack {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 450px;
}

/* Profile Card */
.profile-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    transform-origin: center bottom;
    transition: box-shadow var(--transition-fast);
    user-select: none;
}

.profile-card:active {
    cursor: grabbing;
}

.profile-card.swiping {
    transition: none;
}

.profile-card.swipe-left {
    animation: swipeLeft 0.4s ease-out forwards;
}

.profile-card.swipe-right {
    animation: swipeRight 0.4s ease-out forwards;
}

@keyframes swipeLeft {
    to {
        transform: translateX(-150%) rotate(-30deg);
        opacity: 0;
    }
}

@keyframes swipeRight {
    to {
        transform: translateX(150%) rotate(30deg);
        opacity: 0;
    }
}

.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
}

/* Avatar */
.avatar {
    width: 140px;
    height: 140px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.avatar .initials {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.mini-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-avatar .initials {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

/* Profile Info */
.profile-info {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.profile-age {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 16px;
}

.profile-bio {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.5;
    flex: 1;
}

/* Rank Badge */
.rank-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--soft-pink) 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    margin-top: 12px;
}

.rank-badge.hidden {
    display: none;
}

/* Hint Badge */
.hint-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--gold) 0%, #FFC107 100%);
    color: var(--charcoal);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    margin-top: 8px;
}

.hint-badge.hidden {
    display: none;
}

.hint-badge.top-tier {
    background: linear-gradient(135deg, var(--gold) 0%, #FFC107 100%);
}

.hint-badge.mid-tier {
    background: linear-gradient(135deg, #90CAF9 0%, #64B5F6 100%);
}

.hint-badge.low-tier {
    background: linear-gradient(135deg, var(--gray) 0%, #757575 100%);
    color: white;
}

/* Swipe Indicators */
.swipe-indicator {
    position: absolute;
    top: 40px;
    padding: 12px 24px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.swipe-indicator.left {
    left: 20px;
    background: var(--danger);
    color: white;
    transform: rotate(-15deg);
}

.swipe-indicator.right {
    right: 20px;
    background: var(--success);
    color: white;
    transform: rotate(15deg);
}

/* Action Buttons */
.action-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: linear-gradient(180deg, transparent 0%, var(--off-white) 30%);
    z-index: 100;
}

.action-btn {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    padding: 0;
    box-shadow: var(--shadow-md);
}

.action-btn .btn-label {
    font-size: 0.65rem;
    margin-top: 2px;
}

.action-btn.reject {
    background: white;
    color: var(--danger);
    border: 3px solid var(--danger);
}

.action-btn.reject:hover {
    background: var(--danger);
    color: white;
}

.action-btn.accept {
    background: var(--primary);
    color: white;
    border: 3px solid var(--primary);
}

.action-btn.accept:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.swipe-hint {
    position: fixed;
    bottom: 110px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    z-index: 99;
}

/* ============================================
   WIN SCREEN
   ============================================ */
#win-screen {
    background: linear-gradient(180deg, var(--gold) 0%, var(--off-white) 100%);
}

.result-container {
    text-align: center;
    width: 100%;
    max-width: 380px;
    animation: slideUp 0.5s ease-out;
    position: relative;
}

.result-container.win .result-icon {
    font-size: 5rem;
    animation: float 2s ease-in-out infinite;
}

.result-container h1 {
    font-size: 2rem;
    color: var(--charcoal);
    margin: 16px 0 8px;
}

.result-subtitle {
    color: var(--gray);
    margin-bottom: 24px;
}

.chosen-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: white;
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.chosen-info h3 {
    font-size: 1.2rem;
    color: var(--charcoal);
}

.chosen-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.stats-summary {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s linear forwards;
}

/* Result Actions */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-actions .btn {
    width: 100%;
}

/* ============================================
   LOSE SCREEN
   ============================================ */
#lose-screen {
    background: linear-gradient(180deg, #E0E0E0 0%, var(--off-white) 100%);
}

.result-container.lose {
    filter: none;
}

.result-container.lose .result-icon {
    font-size: 4rem;
}

.result-container.lose .result-icon.shake {
    animation: shake 0.5s ease-in-out;
}

/* Comparison */
.comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.compare-item {
    background: white;
    padding: 16px;
    border-radius: var(--border-radius-md);
    text-align: center;
    min-width: 120px;
    box-shadow: var(--shadow-sm);
}

.compare-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.compare-item h4 {
    font-size: 0.95rem;
    margin-top: 8px;
    color: var(--charcoal);
}

.compare-rank {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

.compare-item.yours .compare-rank {
    color: var(--danger);
}

.compare-item.best .compare-rank {
    color: var(--success);
}

.compare-item.best {
    border: 2px solid var(--gold);
}

.vs {
    font-weight: 700;
    color: var(--gray);
    font-size: 1rem;
}

/* ============================================
   STATS SCREEN
   ============================================ */
#stats-screen {
    background: var(--off-white);
    align-items: flex-start;
    justify-content: flex-start;
}

.stats-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: sticky;
    top: -20px;
    background: var(--off-white);
    padding: 20px 0;
    z-index: 10;
}

.stats-header h2 {
    flex: 1;
    font-size: 1.3rem;
}

/* Season Display */
.season-display {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.season-display h3 {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 16px;
}

.season-progress {
    margin-bottom: 16px;
}

.season-rounds {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.season-round {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--light-gray);
}

.season-round.win {
    background: linear-gradient(135deg, var(--success) 0%, #81C784 100%);
}

.season-round.lose {
    background: linear-gradient(135deg, var(--danger) 0%, #EF5350 100%);
}

.season-info {
    font-size: 0.9rem;
    color: var(--charcoal);
}

.medal-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--light-gray);
    border-radius: var(--border-radius-sm);
}

.medal-icon {
    font-size: 1.5rem;
}

.medal-name {
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 16px;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-title {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Medals Collection */
.medals-collection {
    margin-bottom: 24px;
}

.medals-collection h3 {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.medals-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.medal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: var(--border-radius-sm);
    min-width: 70px;
    box-shadow: var(--shadow-sm);
}

.medal-item .medal-emoji {
    font-size: 1.5rem;
}

.medal-item .medal-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
}

#reset-stats {
    width: 100%;
}

/* ============================================
   SEASON SUMMARY SCREEN
   ============================================ */
#season-screen {
    background: linear-gradient(180deg, var(--primary) 0%, var(--soft-pink) 50%, var(--off-white) 100%);
}

.season-summary {
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

.season-summary h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.big-medal {
    background: white;
    width: 150px;
    height: 150px;
    border-radius: var(--border-radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-lg);
    animation: glow 2s ease-in-out infinite;
}

.big-medal .medal-emoji {
    font-size: 4rem;
}

.big-medal .medal-title {
    font-weight: 700;
    color: var(--charcoal);
}

.season-result {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 24px;
}

.season-rounds-recap {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.recap-round {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: white;
    box-shadow: var(--shadow-sm);
}

.season-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 280px;
    margin: 0 auto;
}

.season-actions .btn {
    width: 100%;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn var(--transition-fast);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius-md);
    text-align: center;
    max-width: 320px;
    width: 100%;
    animation: slideUp var(--transition-normal);
}

.modal-content h3 {
    margin-bottom: 8px;
}

.modal-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions .btn {
    flex: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (min-width: 768px) {
    .game-title {
        font-size: 3.5rem;
    }
    
    .card-stack {
        max-width: 380px;
        height: 500px;
    }
    
    .action-btn {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .action-buttons {
        gap: 60px;
    }
}

@media (max-height: 700px) {
    .card-stack {
        height: 380px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .avatar .initials {
        font-size: 2rem;
    }
    
    .card-inner {
        padding: 24px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .action-btn.reject:hover {
        background: white;
        color: var(--danger);
    }
    
    .action-btn.accept:hover {
        background: var(--primary);
    }
}
