/* === McDONALD'S WRAPPED 2025 - STYLESHEET === */
/* Based on Feel Good Design & MyMcDonald's Brand Standards */
/* Design Spec v1.0 | December 2025 */

/* === CSS VARIABLES === */
:root {
    /* Primary Colors */
    --color-gold: #FFBC0D;
    --color-red: #DB0007;
    --color-black: #292929;
    --color-white: #FFFFFF;
    
    /* Extended Palette */
    --color-warm-gray: #F7F4F0;
    --color-medium-gray: #666666;
    --color-deep-black: #1A1A1A;
    --color-light-gold: #FFF8E7;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #FFBC0D 0%, #FFA500 100%);
    --gradient-red: linear-gradient(135deg, #DB0007 0%, #B30006 100%);
    --gradient-dark: linear-gradient(180deg, #292929 0%, #1A1A1A 100%);
    
    /* Typography */
    --font-headline: 'Poppins', 'Arial Black', sans-serif;
    --font-body: 'Inter', 'Arial', sans-serif;
    --font-arabic: 'Cairo', 'Noto Sans Arabic', sans-serif;
    
    /* Spacing (8px base) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-normal: 300ms ease-out;
    --transition-slow: 500ms ease-out;
    
    /* Layout */
    --safe-area-top: 44px;
    --safe-area-bottom: 34px;
}

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-white);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === LOADING SCREEN === */
.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-deep-black);
    z-index: 1000;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    animation: pulse 2s ease-in-out infinite;
}

.golden-arches {
    width: 100%;
    height: 100%;
}

.loading-text {
    font-family: var(--font-headline);
    font-size: 1.125rem;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border: 3px solid rgba(255, 188, 13, 0.2);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* === STORY CONTAINER === */
.story-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.story-container.hidden {
    display: none;
}

/* === PROGRESS BAR === */
.progress-bar {
    position: absolute;
    top: var(--safe-area-top);
    left: var(--space-md);
    right: var(--space-md);
    display: flex;
    gap: var(--space-xs);
    z-index: 100;
    padding: var(--space-sm) 0;
}

.progress-segment {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-segment.completed {
    background: var(--color-white);
}

.progress-segment.active {
    background: rgba(255, 255, 255, 0.3);
}

.progress-segment.active .progress-fill {
    height: 100%;
    background: var(--color-gold);
    animation: progressFill 5s linear forwards;
    transform-origin: left;
}

@keyframes progressFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* === TAP ZONES === */
.tap-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    z-index: 50;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tap-left {
    left: 0;
}

.tap-right {
    right: 0;
    width: 70%;
}

/* === CLOSE BUTTON === */
.close-btn {
    position: absolute;
    top: calc(var(--safe-area-top) + var(--space-lg));
    right: var(--space-md);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    z-index: 100;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.close-btn:hover,
.close-btn:active {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
}

.close-btn svg {
    width: 20px;
    height: 20px;
}

/* === SLIDES === */
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Slide Backgrounds */
.slide-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bg-dark {
    background: var(--gradient-dark);
}

.bg-gradient-red {
    background: var(--gradient-red);
}

.bg-gradient-gold {
    background: var(--gradient-gold);
}

.bg-warm {
    background: var(--color-warm-gray);
}

.bg-warm-light {
    background: linear-gradient(180deg, #FFF8E7 0%, #F7F4F0 100%);
}

/* Slide Content */
.slide-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--safe-area-top) + 60px) var(--space-lg) calc(var(--safe-area-bottom) + var(--space-lg));
    overflow-y: auto;
}

.slide-content.centered {
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* === TYPOGRAPHY === */
.intro-text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    color: inherit;
    opacity: 0.9;
    margin-bottom: var(--space-sm);
}

.hero-number {
    font-family: var(--font-headline);
    font-size: clamp(4rem, 15vw, 6rem);
    font-weight: 800;
    line-height: 1;
    color: var(--color-white);
    margin: var(--space-sm) 0;
}

.hero-number.gold {
    color: var(--color-gold);
}

.hero-number.red {
    color: var(--color-red);
}

.hero-label {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
}

.item-name {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    font-weight: 700;
    color: var(--color-black);
    margin: var(--space-md) 0;
}

.item-count {
    font-size: 1.125rem;
    color: var(--color-medium-gray);
}

.item-count strong {
    color: var(--color-red);
    font-weight: 700;
}

/* === WELCOME CHAPTER === */
.logo-container {
    width: 80px;
    height: 64px;
    margin-bottom: var(--space-xl);
}

.golden-arches-large {
    width: 100%;
    height: 100%;
}

.lottie-container {
    width: 100%;
    height: 100%;
}

.arches-fallback {
    width: 100%;
    height: 100%;
}

.welcome-title {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 10vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.welcome-title span {
    color: var(--color-gold);
}

/* === MOBILE PREVIEW FRAME (Desktop Testing) === */
.desktop-preview-container {
    display: none;
}

@media (min-width: 500px) {
    body {
        background: #1a1a1a;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }
    
    .desktop-preview-container {
        display: block;
        position: relative;
        width: 375px;
        height: 812px;
        background: #000;
        border-radius: 40px;
        padding: 12px;
        box-shadow: 0 0 0 3px #333, 0 25px 80px rgba(0,0,0,0.5);
    }
    
    .desktop-preview-container::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 28px;
        background: #000;
        border-radius: 20px;
        z-index: 1000;
    }
    
    .mobile-frame {
        width: 100%;
        height: 100%;
        border-radius: 32px;
        overflow: hidden;
        position: relative;
    }
    
    .story-container,
    .loading-screen,
    .error-screen {
        border-radius: 32px;
    }
    
    .loading-screen,
    .story-container,
    .error-screen,
    .modal {
        position: absolute;
        width: 100%;
        height: 100%;
    }
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 280px;
    line-height: 1.5;
}

.tap-hint {
    position: absolute;
    bottom: calc(var(--safe-area-bottom) + var(--space-xl));
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 600;
    margin: var(--space-md) 0;
}

.badge-gold {
    background: var(--color-gold);
    color: var(--color-black);
}

.badge-outline {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
}

.badge-icon {
    font-size: 1.25rem;
}

/* === STATS ROW === */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-xs);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* === PRODUCT SHOWCASE === */
.product-showcase {
    width: 200px;
    height: 200px;
    margin: var(--space-lg) auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 188, 13, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon {
    font-size: 5rem;
}

/* === CHANNEL BADGE === */
.channel-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: rgba(41, 41, 41, 0.1);
    border-radius: var(--radius-md);
}

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

.channel-text {
    font-size: 0.9375rem;
    color: var(--color-medium-gray);
}

.channel-text strong {
    color: var(--color-black);
}

/* Warm background adjustments */
.bg-warm .intro-text,
.bg-warm-light .intro-text {
    color: var(--color-black);
}

.bg-warm .hero-number,
.bg-warm-light .hero-number {
    color: var(--color-red);
}

.bg-warm .hero-label,
.bg-warm-light .hero-label {
    color: var(--color-black);
}

/* === FAN TRUTH === */
.fan-truth {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-lg);
}

.bg-warm .fan-truth,
.bg-warm-light .fan-truth {
    color: var(--color-medium-gray);
}

/* === SAVINGS REVEAL === */
.savings-reveal {
    margin: var(--space-xl) 0;
}

.savings-intro {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-sm);
}

.savings-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-sm);
}

.savings-amount .currency {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gold);
}

.savings-amount .amount {
    font-family: var(--font-headline);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-gold);
    text-shadow: 0 0 30px rgba(255, 188, 13, 0.5);
}

/* === POINTS DETAILS === */
.points-details {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.points-stat {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
}

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

.points-info {
    display: flex;
    flex-direction: column;
}

.points-value {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-black);
}

.points-label {
    font-size: 0.75rem;
    color: var(--color-medium-gray);
}

/* === FUN FACT (FRIES) === */
.fun-fact-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.fries-comparison {
    margin-top: var(--space-xl);
    text-align: center;
}

.comparison-text {
    font-size: 1.25rem;
    color: var(--color-black);
}

.comparison-text strong {
    color: var(--color-red);
    font-weight: 700;
}

.pyramid-visual {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.fries-stack {
    width: 60px;
    height: 100px;
    background: linear-gradient(180deg, var(--color-gold) 0%, #FFA500 100%);
    border-radius: 4px 4px 0 0;
}

.pyramid-label {
    font-size: 0.875rem;
    color: var(--color-medium-gray);
}

/* === GRAND FINALE === */
.finale-buildup {
    margin-bottom: var(--space-xl);
}

.finale-intro {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.fan-tier-reveal {
    margin: var(--space-xl) 0;
}

.tier-badge {
    position: relative;
    padding: var(--space-xl) var(--space-2xl);
    text-align: center;
}

.tier-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 188, 13, 0.3) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.tier-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-md);
}

.tier-title {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 7vw, 2.25rem);
    font-weight: 800;
    color: var(--color-gold);
    text-shadow: 0 0 30px rgba(255, 188, 13, 0.5);
}

.finale-thanks {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--space-xl);
}

/* Confetti Container */
.confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* === SUMMARY CARD === */
.summary-content {
    justify-content: center;
    align-items: center;
}

.summary-card {
    width: 100%;
    max-width: 320px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
}

.summary-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.summary-logo {
    width: 50px;
    height: 40px;
    margin-bottom: var(--space-sm);
}

.summary-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
}

.summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.summary-stat {
    text-align: center;
    padding: var(--space-md);
    background: var(--color-warm-gray);
    border-radius: var(--radius-sm);
}

.summary-value {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-red);
    display: block;
}

.summary-label {
    font-size: 0.75rem;
    color: var(--color-medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-xs);
    display: block;
}

.summary-tier {
    text-align: center;
    padding: var(--space-md);
    background: var(--color-gold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.summary-tier span {
    font-family: var(--font-headline);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-black);
}

.summary-footer {
    text-align: center;
}

.hashtag {
    font-size: 0.875rem;
    color: var(--color-medium-gray);
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    width: 100%;
    max-width: 320px;
}

/* === BUTTONS === */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--color-red);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
}

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

/* Slide Share Button */
.share-btn-slide {
    position: absolute;
    bottom: calc(var(--safe-area-bottom) + var(--space-lg));
    right: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
    z-index: 60;
}

.share-btn-slide:hover,
.share-btn-slide:active {
    background: rgba(255, 255, 255, 0.3);
}

.share-btn-slide svg {
    width: 16px;
    height: 16px;
}

.bg-warm .share-btn-slide,
.bg-warm-light .share-btn-slide,
.bg-gradient-gold .share-btn-slide {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--color-black);
}

/* === ERROR SCREEN === */
.error-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-deep-black);
    z-index: 1000;
}

.error-screen.hidden {
    display: none;
}

.error-content {
    text-align: center;
    padding: var(--space-lg);
}

.error-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.error-title {
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.error-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xl);
}

/* === MODAL === */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: var(--space-lg);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.modal-content h3 {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--space-md);
}

.modal-content p {
    font-size: 1rem;
    color: var(--color-medium-gray);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* === PARTICLES === */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* === ANIMATIONS === */
.fade-in {
    animation: fadeIn var(--transition-normal) ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp var(--transition-normal) ease-out forwards;
}

.scale-in {
    animation: scaleIn var(--transition-normal) ease-out forwards;
}

.count-up {
    animation: countUp 1.5s ease-out forwards;
}

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* === RESPONSIVE === */
@media (max-width: 375px) {
    :root {
        --space-lg: 20px;
        --space-xl: 28px;
    }
    
    .hero-number {
        font-size: 3.5rem;
    }
    
    .stats-row {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 60%;
        height: 1px;
    }
}

@media (min-width: 768px) {
    .slide-content {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .summary-card {
        max-width: 400px;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .progress-segment.active .progress-fill {
        animation: none;
        transform: scaleX(1);
    }
}

/* === RTL SUPPORT (Arabic) === */
[dir="rtl"] {
    font-family: var(--font-arabic);
}

[dir="rtl"] .tap-hint {
    direction: rtl;
}

[dir="rtl"] .stats-row {
    flex-direction: row-reverse;
}

/* === UTILITY CLASSES === */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-gold { color: var(--color-gold); }
.text-red { color: var(--color-red); }
.text-white { color: var(--color-white); }
.text-black { color: var(--color-black); }

.bg-gold { background-color: var(--color-gold); }
.bg-red { background-color: var(--color-red); }
