/* ===== PACO'S CHICKEN PALACE - COMPACT RESTAURANT STYLES ===== */

/* === ROOT VARIABLES === */
:root {
    /* Vibrant Memecoin Color Palette - Cohesive */
    --restaurant-red: #dc2626;
    --restaurant-orange: #f97316;
    --restaurant-yellow: #fbbf24;
    --restaurant-green: #10b981;
    
    /* UI Component Colors */
    --surface-dark: #1f2937;
    --surface-darker: #111827;
    --surface-accent: #374151;
    --surface-light: #f9fafb;
    
    /* Border & Shadow Colors */
    --border-glow: rgba(251, 191, 36, 0.3);
    --shadow-glow: 0 4px 20px rgba(251, 191, 36, 0.2);
    --shadow-red: 0 4px 20px rgba(220, 38, 38, 0.3);
    --shadow-green: 0 4px 20px rgba(16, 185, 129, 0.2);
    --shadow-yellow: 0 4px 20px rgba(251, 191, 36, 0.4);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #f9fafb;
    --text-muted: #d1d5db;
    --text-dark: #111827;
    
    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    
    /* Layout */
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Typography */
    --font-display: 'Fredoka', cursive;
    --font-body: 'Poppins', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Animation Variables */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #1a1a1a;
    background: 
        linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(249, 115, 22, 0.1), rgba(251, 191, 36, 0.1), rgba(16, 185, 129, 0.1)),
        url('bg 2048.png');
    background-size: 400% 400%, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    animation: gradientShift 12s ease infinite;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    font-size: var(--font-size-base);
    line-height: 1.6;
}



/* Essential Animations Only */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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



@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

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

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--restaurant-yellow);
    color: var(--text-dark);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--restaurant-red), var(--restaurant-orange), var(--restaurant-yellow));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

/* Enhanced Loading Screen */
.loading-content {
    text-align: center;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.loading-chicken {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.loading-chicken::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top: 3px solid var(--restaurant-yellow);
    border-right: 3px solid var(--restaurant-orange);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    z-index: 1;
}

.loading-chicken::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 110px;
    height: 110px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(251, 191, 36, 0.4);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
    z-index: 0;
}

.loading-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-ring {
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.loading-ring-1 {
    width: 120px;
    height: 120px;
    border-top-color: var(--restaurant-red);
    border-right-color: var(--restaurant-red);
    animation-duration: 1.5s;
    top: -60px;
    left: -60px;
}

.loading-ring-2 {
    width: 140px;
    height: 140px;
    border-top-color: var(--restaurant-yellow);
    border-left-color: var(--restaurant-yellow);
    animation-duration: 2s;
    animation-direction: reverse;
    top: -70px;
    left: -70px;
}

.loading-ring-3 {
    width: 160px;
    height: 160px;
    border-top-color: var(--restaurant-orange);
    border-bottom-color: var(--restaurant-orange);
    animation-duration: 2.5s;
    top: -80px;
    left: -80px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== PREMIUM RESTAURANT HEADER ===== */
.restaurant-header {
    background: linear-gradient(145deg, var(--surface-darker) 0%, #0f172a 100%);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    height: 60px;
    border-bottom: 3px solid transparent;
    background-clip: padding-box;
    flex-shrink: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px);
    z-index: 2;
}

.restaurant-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--restaurant-red), var(--restaurant-yellow), var(--restaurant-orange), var(--restaurant-green));
    animation: gradientShift 8s ease infinite;
}

.restaurant-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--restaurant-red), var(--restaurant-yellow), var(--restaurant-orange), var(--restaurant-green));
}

.restaurant-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 200px;
}

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--restaurant-yellow);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow);
    filter: drop-shadow(0 0 6px var(--restaurant-yellow));
}

.header-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--restaurant-red));
}

.restaurant-name {
    text-align: left;
}

.palace-title {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    color: var(--restaurant-yellow);
    text-shadow: 1px 1px 0px var(--restaurant-red);
    margin-bottom: 2px;
    font-weight: 700;
    line-height: 1;
}

.palace-tagline {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.restaurant-stats {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    flex: 1;
}

/* ===== FIXED STATS BOXES WITH PROPER CONTRAST ===== */
.stat-item {
    text-align: center;
    background: var(--surface-dark);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-md);
    border: 2px solid var(--restaurant-yellow);
    min-width: 60px;
    transition: all var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--restaurant-yellow);
    line-height: 1;
    margin-bottom: 2px;
    text-shadow: 1px 1px 0px var(--restaurant-red);
}

.stat-label {
    font-size: 9px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    line-height: 1;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}

/* Live indicator animation */
.stat-item .stat-number {
    transition: all 0.3s ease;
}

/* Animate live indicator specifically */
.stat-item:nth-child(2) .stat-number {
    animation: livePulse 2s ease-in-out infinite;
}

/* ===== CLEANED UP NAVBAR RIGHT SIDE ===== */
.restaurant-hours {
    display: flex;
    flex-direction: row;
    gap: var(--space-lg);
    align-items: center;
    flex-shrink: 0;
    min-width: 200px;
}



.abstract-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.abstract-text {
    font-size: 11px;
    color: var(--restaurant-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}



.hours-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--restaurant-green);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-md);
    font-size: 11px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.2);
    white-space: nowrap;
    line-height: 1;
}

.hours-info small {
    display: block;
    color: var(--text-primary);
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* ===== ULTRA COMPACT ORDER SUMMARY ===== */
.order-summary {
    background: var(--surface-dark);
    color: var(--text-primary);
    border-radius: var(--border-radius-md);
    padding: 0;
    box-shadow: var(--shadow-glow);
    border: 2px solid var(--restaurant-yellow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.order-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--restaurant-red), var(--restaurant-yellow), var(--restaurant-orange), var(--restaurant-green));
}

.order-header {
    background: var(--restaurant-red);
    color: white;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.order-title {
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    font-weight: 700;
}

.order-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px var(--space-xs);
    border-radius: var(--border-radius-sm);
    font-size: 10px;
    font-weight: 600;
    font-family: monospace;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== PERFECTLY ALIGNED ORDER DETAILS ===== */
.order-details {
    padding: var(--space-sm);
    flex: 1;
    background: var(--surface-accent);
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.order-preview {
    padding: var(--space-xs) var(--space-xs) 0;
    text-align: center;
    background: var(--surface-light);
    border-bottom: 2px dashed var(--restaurant-yellow);
    margin-bottom: var(--space-sm);
    border-radius: var(--border-radius-md);
}

.preview-label {
    text-align: center;
    margin-bottom: var(--space-xs);
}

.preview-label h3 {
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    color: var(--restaurant-yellow);
    margin-bottom: var(--space-xs);
    font-weight: 700;
    text-shadow: 1px 1px 0px var(--restaurant-red);
}

.preview-label small {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
}

#pfpCanvas {
    border: 2px solid var(--restaurant-red);
    border-radius: var(--border-radius-md);
    background: white;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-base);
    cursor: pointer;
    display: block;
    margin: 0 auto var(--space-xs);
}

#pfpCanvas:hover {
    box-shadow: var(--shadow-red);
    transform: scale(1.01);
}

.order-items {
    margin-bottom: var(--space-lg);
    flex: 1;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    margin-bottom: var(--space-xs);
    border-radius: var(--border-radius-sm);
}

.order-item:last-child {
    margin-bottom: 0;
}

.order-item:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--restaurant-yellow);
}

.order-item-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

.item-qty {
    background: var(--restaurant-orange);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 12px;
    line-height: 1.3;
    flex: 1;
}

.item-price {
    font-weight: 700;
    color: var(--restaurant-yellow);
    font-size: 12px;
    font-family: var(--font-display);
    flex-shrink: 0;
    margin-left: var(--space-sm);
}

.order-total {
    border-top: 2px solid var(--restaurant-yellow);
    padding: var(--space-lg) var(--space-sm);
    background: var(--surface-dark);
    flex-shrink: 0;
    margin-top: auto;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.total-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--restaurant-yellow);
    border-top: 2px solid var(--restaurant-orange);
    margin-top: var(--space-sm);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-actions {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    background: var(--surface-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.place-order-btn {
    background: linear-gradient(135deg, var(--restaurant-green), #16a34a);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-height: 48px;
}

.place-order-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-green);
}

.clear-order-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    padding: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.clear-order-btn:hover {
    border-color: var(--restaurant-red);
    color: var(--restaurant-red);
    background: rgba(220, 38, 38, 0.1);
}

/* ===== ULTRA COMPACT RESTAURANT INFO ===== */
.restaurant-info {
    background: var(--surface-dark);
    color: var(--text-primary);
    border-radius: var(--border-radius-md);
    padding: var(--space-sm);
    box-shadow: var(--shadow-glow);
    border: 2px solid var(--restaurant-yellow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    height: 100%;
}

.info-title {
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    color: var(--restaurant-yellow);
    text-align: center;
    margin-bottom: var(--space-sm);
    text-shadow: 1px 1px 0px var(--restaurant-red);
    font-weight: 700;
    flex-shrink: 0;
}

.info-compact {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.info-item {
    background: var(--surface-accent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: var(--space-sm);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.info-item:hover {
    border-color: var(--restaurant-yellow);
    box-shadow: var(--shadow-glow);
}

.info-item h3 {
    color: var(--restaurant-yellow);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
    font-weight: 700;
    font-family: var(--font-display);
    text-shadow: 1px 1px 0px var(--restaurant-red);
}

.info-item p {
    color: var(--text-primary);
    line-height: 1.3;
    font-size: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-xs);
    border-radius: var(--border-radius-sm);
    border-left: 2px solid var(--restaurant-yellow);
}

.stats-mini {
    background: var(--surface-accent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: var(--space-sm);
    text-align: center;
    transition: all var(--transition-base);
}

.stats-mini:hover {
    border-color: var(--restaurant-yellow);
    box-shadow: var(--shadow-glow);
}

.stats-mini h3 {
    color: var(--restaurant-yellow);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
    font-weight: 700;
    font-family: var(--font-display);
    text-shadow: 1px 1px 0px var(--restaurant-red);
}

.stat-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-mini:last-child {
    border-bottom: none;
}

.stat-mini .number {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--restaurant-orange);
    font-family: var(--font-display);
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}

.stat-mini .label {
    font-size: 10px;
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px var(--space-xs);
    border-radius: var(--border-radius-sm);
}

.social-mini {
    background: var(--surface-accent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: var(--space-sm);
    text-align: center;
    transition: all var(--transition-base);
}

.social-mini:hover {
    border-color: var(--restaurant-yellow);
    box-shadow: var(--shadow-glow);
}

.social-mini h3 {
    color: var(--restaurant-yellow);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
    font-weight: 700;
    font-family: var(--font-display);
    text-shadow: 1px 1px 0px var(--restaurant-red);
}

.social-buttons {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    margin-top: var(--space-xs);
}

.social-btn {
    background: linear-gradient(135deg, var(--restaurant-red), var(--restaurant-orange));
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
    border: 2px solid var(--restaurant-yellow);
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.franchise-address {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--restaurant-yellow);
    border-radius: var(--border-radius-sm);
    padding: var(--space-sm);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: monospace;
    font-size: 10px;
    word-break: break-all;
    color: var(--text-primary);
    margin-top: var(--space-xs);
    font-weight: 600;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}

.franchise-address:hover {
    background: var(--restaurant-yellow);
    color: var(--text-dark);
    border-color: var(--restaurant-red);
    text-shadow: none;
}

/* ===== COMPACT STATS ===== */
.stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 8px;
}

.stats-mini span {
    background: white;
    padding: 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

/* ===== COMPACT SOCIAL BUTTONS ===== */
.social-mini {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
}

.social-btn {
    background: var(--restaurant-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.telegram { background: #0088cc; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.dex { background: #7c3aed; }

/* ===== SPECIAL EFFECTS ===== */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--restaurant-yellow);
    border-radius: 50%;
    animation: float-particle var(--particle-duration) infinite linear;
    opacity: 0.7;
    pointer-events: none;
}

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

.flying-chicken {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 1000;
    animation: fly-across 4s linear infinite;
    font-size: 1.5rem;
}

@keyframes fly-across {
    0% {
        transform: translateX(-80px) translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateX(50vw) translateY(-40px) rotate(10deg);
    }
    100% {
        transform: translateX(100vw) translateY(0px) rotate(0deg);
    }
}



.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    color: var(--text-primary) !important;
    padding: 8px 12px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    z-index: 1000;
    transform: translateX(350px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(251, 191, 36, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    max-width: 220px;
    word-wrap: break-word;
    font-size: 0.75rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .notification {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        width: auto;
        transform: translateY(-120px);
        text-align: center;
        padding: 6px 10px;
        font-size: 0.7rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                    0 4px 16px rgba(251, 191, 36, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, var(--restaurant-green), #059669);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.notification.info {
    background: linear-gradient(135deg, var(--restaurant-yellow), var(--restaurant-orange));
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

/* ===== MENU STYLES ===== */
.menu-board {
    background: var(--surface-dark);
    color: var(--text-primary);
    border-radius: var(--border-radius-md);
    padding: var(--space-sm);
    box-shadow: var(--shadow-glow);
    border: 2px solid var(--restaurant-yellow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-header {
    text-align: center;
    margin-bottom: var(--space-sm);
    flex-shrink: 0;
}

.menu-title {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    color: var(--restaurant-yellow);
    margin-bottom: var(--space-xs);
    text-shadow: 2px 2px 0px var(--restaurant-red);
    font-weight: 700;
}

.menu-subtitle {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.menu-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: var(--space-xs);
}

.menu-section {
    background: var(--surface-accent);
    border-radius: var(--border-radius-md);
    padding: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--restaurant-orange);
}

.section-number {
    background: var(--restaurant-red);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 700;
    flex-shrink: 0;
}

.section-name {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    color: var(--restaurant-yellow);
    font-weight: 700;
    text-shadow: 1px 1px 0px var(--restaurant-red);
    flex: 1;
    margin-left: var(--space-sm);
}

.section-price {
    font-size: var(--font-size-sm);
    color: var(--restaurant-green);
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--restaurant-green);
}

.horizontal-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--space-xs);
    max-height: 240px;
    overflow-y: auto;
    padding: var(--space-sm);
    padding-bottom: var(--space-lg);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.menu-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -moz-backdrop-filter: blur(12px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: var(--space-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    min-height: 85px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.menu-item:hover {
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(251, 191, 36, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    -moz-backdrop-filter: blur(16px);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(251, 191, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item.selected {
    border-color: var(--restaurant-yellow);
    background: rgba(220, 38, 38, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    -moz-backdrop-filter: blur(16px);
    color: var(--text-primary);
    box-shadow: 
        0 8px 32px rgba(220, 38, 38, 0.3),
        0 0 0 2px rgba(251, 191, 36, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.05);
}

.menu-item.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--restaurant-yellow);
    color: var(--surface-dark);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.item-image {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: var(--space-xs);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.item-name {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
}

.base-showcase-compact {
    display: flex;
    justify-content: center;
}

.base-item {
    background: var(--surface-accent);
    color: var(--text-primary);
    border: 2px solid var(--restaurant-green);
    border-radius: var(--border-radius-md);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 300px;
}

.base-details h4 {
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    color: var(--restaurant-yellow);
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

.base-details small {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    opacity: 0.9;
}

.base-price {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--restaurant-green);
    margin-left: auto;
}

.combo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-xs);
}

.combo-btn {
    background: linear-gradient(135deg, var(--restaurant-orange), var(--restaurant-red));
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    padding: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    min-height: 70px;
    font-family: var(--font-display);
    font-weight: 600;
    border: 2px solid transparent;
}

.combo-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
    border-color: var(--restaurant-yellow);
}

.combo-btn.special {
    background: linear-gradient(135deg, var(--restaurant-yellow), var(--restaurant-orange));
    color: var(--text-dark);
}

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

.combo-name {
    font-size: var(--font-size-sm);
    line-height: 1.2;
}

/* ===== TAB NAVIGATION SYSTEM ===== */
.tab-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin: 0 auto var(--space-lg) auto;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

/* Tab icon styles */
.tab-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    vertical-align: middle;
    object-fit: contain;
}

/* Jump animation for Paco Jump tab icon */
.jump-animation {
    animation: quickJump 1.2s ease-out infinite;
    transform-origin: center bottom;
}

@keyframes quickJump {
    0%, 85%, 100% {
        transform: translateY(0) scale(1);
    }
    8% {
        transform: translateY(-12px) scale(1.05);
    }
    15% {
        transform: translateY(0) scale(1);
    }
}

.tab-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -moz-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
    /* Mobile touch optimization */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: var(--restaurant-yellow);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--restaurant-red) 0%, var(--restaurant-orange) 100%);
    border-color: var(--restaurant-yellow);
    color: white;
    box-shadow: 
        0 8px 24px rgba(220, 38, 38, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tab-button.active:hover {
    background: linear-gradient(135deg, var(--restaurant-orange) 0%, var(--restaurant-red) 100%);
    transform: translateY(-3px);
}

/* Mobile active feedback */
.tab-button:active {
    transform: translateY(0px) scale(0.98);
    transition: all 0.1s ease;
}

.tab-button.active:active {
    transform: translateY(-1px) scale(0.98);
}

.tab-panel {
    display: none;
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-panel.active {
    display: contents; /* This makes the tab-panel transparent to layout */
}

/* ===== MAIN LAYOUT CONTAINER ===== */
.restaurant-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding: var(--space-lg);
    max-width: 100%;
    margin: 0 auto;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.restaurant-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.restaurant-container > * {
    position: relative;
    z-index: 1;
}

/* ===== GAME CONTAINER STYLES ===== */
.game-container {
    background: linear-gradient(145deg, var(--surface-dark) 0%, #0f172a 100%);
    border-radius: 24px;
    border: 3px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(220, 38, 38, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    background: linear-gradient(135deg, var(--restaurant-red), var(--restaurant-yellow), var(--restaurant-orange), var(--restaurant-green));
    border-radius: 24px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: borderGlow 4s ease-in-out infinite alternate;
}

.game-header {
    padding: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -moz-backdrop-filter: blur(12px);
}

.game-title-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--restaurant-yellow) 0%, var(--restaurant-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.game-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
    font-weight: 500;
}

.game-stats {
    display: flex;
    gap: var(--space-md);
}

.stat-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-sm);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 60px;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--restaurant-yellow);
    text-shadow: 1px 1px 0px var(--restaurant-red);
}

.stat-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.game-canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    margin: var(--space-md);
    border-radius: 16px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    overflow: hidden;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#gameCanvas {
    display: block;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 30%, #87CEEB 100%);
    border-radius: 14px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    /* Desktop enhancement: Scale up for better visibility */
    width: 480px;
    height: 720px;
    max-width: 480px;
    max-height: 720px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -moz-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 14px;
}

.game-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ===== Game Over Screen ===== */
.game-over-screen {
    text-align: center;
    max-width: 90%;
    width: 320px;
    padding: 20px;
    background: rgba(30, 30, 40, 0.85);
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    animation: fadeInScale 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.game-over-title {
    color: #ef4444;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.game-over-scores {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.game-over-final-score {
    color: #fbbf24;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.game-over-best-score {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.game-over-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}


.overlay-content {
    text-align: center;
    color: white;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -moz-backdrop-filter: blur(12px);
    max-width: 280px;
}

.game-controls {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -moz-backdrop-filter: blur(8px);
}

.game-btn {
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.game-btn:hover::before {
    left: 100%;
}

.game-btn.primary {
    background: linear-gradient(135deg, var(--restaurant-green) 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}

.game-btn.primary:hover {
    background: linear-gradient(135deg, #10b981 0%, var(--restaurant-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

.game-btn.secondary {
    background: linear-gradient(135deg, var(--restaurant-orange) 0%, var(--restaurant-red) 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.25);
}

.game-btn.secondary:hover {
    background: linear-gradient(135deg, var(--restaurant-red) 0%, var(--restaurant-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.4);
}

.game-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(29, 161, 242, 0.25);
}

.game-btn.twitter:hover {
    background: linear-gradient(135deg, #0d8bd9 0%, #1da1f2 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(29, 161, 242, 0.4);
}

.mobile-instructions {
    padding: var(--space-sm) var(--space-lg);
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -moz-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-instructions p {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    margin: 0;
    font-weight: 500;
}

/* ===== LEADERBOARD STYLES ===== */
.leaderboard-container {
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.leaderboard-container h3 {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    margin: 0 0 var(--space-lg) 0;
    background: linear-gradient(135deg, var(--restaurant-yellow) 0%, var(--restaurant-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    max-height: 300px;
    overflow-y: auto;
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -moz-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
}

.leaderboard-entry.current-user {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--restaurant-yellow);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.leaderboard-entry .rank {
    font-weight: 700;
    color: var(--restaurant-orange);
    min-width: 40px;
    text-align: left;
    font-size: var(--font-size-sm);
}

.leaderboard-entry .username {
    flex: 1;
    text-align: left;
    margin-left: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.leaderboard-entry .score {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--restaurant-yellow);
    font-size: var(--font-size-sm);
    text-shadow: 1px 1px 0px var(--restaurant-red);
}

.reset-timer {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin: var(--space-sm) 0;
    font-weight: 500;
}

.close-btn {
    background: linear-gradient(135deg, var(--restaurant-red) 0%, var(--restaurant-orange) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-display);
    font-size: var(--font-size-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    min-height: 40px;
    margin-top: var(--space-md);
}

.close-btn:hover {
    background: linear-gradient(135deg, var(--restaurant-orange) 0%, var(--restaurant-red) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ===== PREMIUM PFP GENERATOR ===== */
.pfp-generator {
    background: linear-gradient(145deg, var(--surface-dark) 0%, #0f172a 100%);
    border-radius: 24px;
    border: 3px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(220, 38, 38, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 1300px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    position: relative;
}

/* Firefox fallback - simple gradient border */
@supports not (mask-composite: xor) {
    .pfp-generator {
        border: 3px solid var(--restaurant-yellow);
    }
}

.pfp-generator::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    background: linear-gradient(135deg, var(--restaurant-red), var(--restaurant-yellow), var(--restaurant-orange), var(--restaurant-green));
    border-radius: 24px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: borderGlow 4s ease-in-out infinite alternate;
    /* Firefox fallback - hide the ::before element if mask doesn't work */
    @supports not (mask-composite: xor) {
        display: none;
    }
}

@keyframes borderGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.generator-content {
    display: flex;
    width: 100%;
    height: 100%;
}

/* ===== PREMIUM PREVIEW SECTION ===== */
.preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, var(--surface-darker) 0%, #0f172a 100%);
    border-left: 3px solid var(--restaurant-yellow);
    padding: var(--space-md);
    min-width: 420px;
    position: relative;
    overflow: visible;
    justify-content: flex-start;
}

.preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.preview-section > * {
    position: relative;
    z-index: 1;
}

.preview-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 3px solid transparent;
    background: linear-gradient(var(--surface-darker), var(--surface-darker)) padding-box,
                linear-gradient(90deg, var(--restaurant-red), var(--restaurant-yellow), var(--restaurant-orange)) border-box;
    position: relative;
}

.preview-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--restaurant-red), var(--restaurant-yellow));
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.preview-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--restaurant-yellow) 0%, var(--restaurant-orange) 50%, var(--restaurant-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback for browsers that don't support background-clip: text */
    @supports not (-webkit-background-clip: text) {
        color: var(--restaurant-yellow);
    }
    text-shadow: none;
    letter-spacing: -0.02em;
    position: relative;
}

.preview-header h2::after {
    content: '🐔';
    position: absolute;
    right: -40px;
    top: -5px;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.canvas-container {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(145deg, var(--surface-accent) 0%, var(--surface-dark) 100%);
    border-radius: 20px;
    border: 3px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(220, 38, 38, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    position: relative;
    overflow: visible;
    max-height: none;
}

/* Firefox fallback - simple border for canvas container */
@supports not (mask-composite: xor) {
    .canvas-container {
        border: 3px solid var(--restaurant-yellow);
    }
}

.canvas-container::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 4px;
    background: linear-gradient(135deg, var(--restaurant-red), var(--restaurant-yellow), var(--restaurant-orange));
    border-radius: 24px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    /* Firefox fallback - hide the ::before element if mask doesn't work */
    @supports not (mask-composite: xor) {
        display: none;
    }
}

.canvas-container::after {
    display: none;
}

#pfpCanvas {
    border: none;
    border-radius: 16px;
    background: white;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(220, 38, 38, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 320px;
    height: 320px;
    max-width: 320px;
    max-height: 320px;
    object-fit: contain;
    display: block;
    position: relative;
    transform-origin: center;
}

#pfpCanvas::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--restaurant-yellow), var(--restaurant-orange));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#pfpCanvas:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.18),
        0 8px 32px rgba(220, 38, 38, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: scale(1.03) translateY(-2px);
}

#pfpCanvas:hover::before {
    opacity: 1;
}

#pfpCanvas:active {
    transform: scale(1.01) translateY(-1px);
    transition: all 0.1s ease;
}

.canvas-hint {
    margin-top: var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -moz-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.01em;
}

.order-summary-compact {
    background: linear-gradient(145deg, var(--surface-darker) 0%, #1a202c 100%);
    border-radius: 12px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Mobile override for order summary base */
@media (max-width: 768px) {
    .order-summary-compact {
        flex: 0 0 auto !important;
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
    }
}

.order-summary-compact::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--restaurant-yellow), var(--restaurant-orange));
    border-radius: 16px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    /* Firefox fallback - hide the ::before element if mask doesn't work */
    @supports not (mask-composite: xor) {
        display: none;
    }
}

.order-summary-compact .order-items {
    margin-bottom: var(--space-sm);
    flex: 1;
}

.order-summary-compact .order-total {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--restaurant-yellow) 0%, var(--restaurant-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback for browsers that don't support background-clip: text */
    @supports not (-webkit-background-clip: text) {
        color: var(--restaurant-yellow);
    }
    text-shadow: none;
    letter-spacing: -0.01em;
    margin: var(--space-sm) 0;
    padding: var(--space-sm);
    border-radius: 8px;
    background-color: rgba(251, 191, 36, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    -moz-backdrop-filter: blur(4px);
}

.action-buttons {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
    flex-shrink: 0;
}

.action-buttons .place-order-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--restaurant-red) 0%, #b91c1c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 
        0 6px 16px rgba(220, 38, 38, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.action-buttons .place-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.action-buttons .place-order-btn:hover::before {
    left: 100%;
}

.action-buttons .place-order-btn:hover {
    background: linear-gradient(135deg, var(--restaurant-orange) 0%, var(--restaurant-red) 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(220, 38, 38, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.action-buttons .place-order-btn:active {
    transform: translateY(0) scale(1.01);
    transition: all 0.1s ease;
}

.action-buttons .copy-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--restaurant-orange) 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 
        0 6px 16px rgba(234, 88, 12, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.action-buttons .copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.action-buttons .copy-btn:hover::before {
    left: 100%;
}

.action-buttons .copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(234, 88, 12, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.action-buttons .copy-btn:active {
    transform: translateY(0) scale(1.01);
    transition: all 0.1s ease;
}

.action-buttons .clear-order-btn {
    flex: 1;
    background: linear-gradient(145deg, #374151 0%, #4b5563 100%);
    color: #d1d5db;
    border: 2px solid #6b7280;
    border-radius: 12px;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    letter-spacing: 0.01em;
    min-height: 44px;
}

.action-buttons .clear-order-btn:hover {
    background: linear-gradient(145deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ===== PREMIUM MENU SECTION ===== */
.menu-section-compact {
    flex: 0 0 360px;
    background: linear-gradient(145deg, var(--surface-darker) 0%, #0f172a 100%);
    padding: var(--space-md);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    border-right: 2px solid rgba(251, 191, 36, 0.3);
    position: relative;
    max-height: calc(100vh - 80px);
}

.menu-section-compact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--restaurant-yellow), var(--restaurant-orange), var(--restaurant-red));
    opacity: 0.6;
}

/* Enhanced Scrollbar Styling */
/* Webkit browsers (Chrome, Safari) */
.menu-section-compact::-webkit-scrollbar,
.horizontal-menu::-webkit-scrollbar,
.menu-grid::-webkit-scrollbar {
    width: 6px;
}

.menu-section-compact::-webkit-scrollbar-track,
.horizontal-menu::-webkit-scrollbar-track,
.menu-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin: 2px;
}

.menu-section-compact::-webkit-scrollbar-thumb,
.horizontal-menu::-webkit-scrollbar-thumb,
.menu-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--restaurant-yellow), var(--restaurant-orange));
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-section-compact::-webkit-scrollbar-thumb:hover,
.horizontal-menu::-webkit-scrollbar-thumb:hover,
.menu-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--restaurant-orange), var(--restaurant-red));
}

/* Firefox scrollbar styling */
.menu-section-compact,
.horizontal-menu,
.menu-grid {
    scrollbar-width: thin;
    scrollbar-color: var(--restaurant-yellow) rgba(255, 255, 255, 0.08);
}

.menu-category {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--space-md);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: var(--space-sm);
}

.menu-category::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--restaurant-yellow), var(--restaurant-orange));
    border-radius: 16px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    /* Firefox fallback - hide the ::before element if mask doesn't work */
    @supports not (mask-composite: xor) {
        display: none;
    }
}

.menu-category:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.category-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    font-weight: 800;
    text-shadow: none;
    letter-spacing: -0.01em;
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--restaurant-yellow), var(--restaurant-orange));
    border-radius: 1px;
}

.category-title span {
    background: linear-gradient(135deg, var(--restaurant-yellow) 0%, var(--restaurant-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback for browsers that don't support background-clip: text */
    @supports not (-webkit-background-clip: text) {
        color: var(--restaurant-yellow);
    }
}

.category-icon {
    font-size: 1.4em;
    background: linear-gradient(135deg, var(--restaurant-red), var(--restaurant-orange));
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: var(--space-sm);
    max-height: 240px;
    overflow-y: auto;
    padding: var(--space-sm);
    padding-bottom: var(--space-lg);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -moz-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.combo-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
}

.combo-btn-compact {
    background: rgba(220, 38, 38, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -moz-backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 10px;
    padding: var(--space-sm) var(--space-md);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
    box-shadow: 
        0 4px 16px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.combo-btn-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.4s ease;
}

.combo-btn-compact:hover {
    background: linear-gradient(135deg, var(--restaurant-orange) 0%, var(--restaurant-red) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(249, 115, 22, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--restaurant-yellow);
}

.combo-btn-compact:hover::before {
    left: 100%;
}

.combo-btn-compact:active {
    transform: translateY(0) scale(1.02);
    transition: all 0.1s ease;
}

.combo-btn-compact.special {
    background: linear-gradient(135deg, var(--restaurant-green) 0%, #059669 100%);
    border-color: var(--restaurant-yellow);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.combo-btn-compact.special:hover {
    background: linear-gradient(135deg, #10b981 0%, var(--restaurant-green) 100%);
    box-shadow: 
        0 8px 20px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.info-category {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    -moz-backdrop-filter: blur(16px);
}

.info-content-compact {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.franchise-compact {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    -moz-backdrop-filter: blur(16px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.franchise-compact:hover {
    background: rgba(251, 191, 36, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px);
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(251, 191, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.franchise-compact code {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-hint {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    background: rgba(251, 191, 36, 0.2);
    padding: 4px 8px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -moz-backdrop-filter: blur(8px);
}

.social-buttons-compact {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.1);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(251, 191, 36, 0.1);
    color: rgba(251, 191, 36, 1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.social-icon.buy-paco {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.2));
    border-color: rgba(251, 191, 36, 0.3);
}

.social-icon.buy-paco:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(249, 115, 22, 0.3));
    border-color: rgba(251, 191, 36, 0.6);
    color: rgba(251, 191, 36, 1);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(251, 191, 36, 0.3);
}

.stats-compact {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -moz-backdrop-filter: blur(8px);
    padding: var(--space-sm);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-compact span {
    color: rgba(251, 191, 36, 0.9);
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== RESPONSIVE DESIGN FOR NEW LAYOUT ===== */
@media (max-width: 1200px) {
    .pfp-generator {
        flex-direction: column;
        max-width: 100%;
    }
    
    .preview-section {
        min-width: unset;
        border-left: none;
        border-bottom: 2px solid var(--restaurant-yellow);
        padding: var(--space-sm);
    }
    
    .canvas-container {
        padding: var(--space-md);
        margin-bottom: var(--space-sm);
    }
    
    #pfpCanvas {
        width: 320px;
        height: 320px;
        max-width: 320px;
        max-height: 320px;
    }
    
    .menu-section-compact {
        flex: none;
        padding: var(--space-sm);
        gap: var(--space-sm);
        max-height: 300px;
    }
    
    .menu-category {
        margin-bottom: var(--space-sm);
    }
}

/* ===== TABLET OPTIMIZATION (MEDIUM SCREENS) ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    #gameCanvas {
        width: 360px !important;
        height: 540px !important;
        max-width: 360px !important;
        max-height: 540px !important;
    }
    
    .game-container {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    /* ===== MOBILE TAB NAVIGATION ===== */
    .tab-navigation {
        margin: 0 auto var(--space-md) auto;
        padding: var(--space-xs);
        border-radius: 12px;
        gap: var(--space-xs);
        width: calc(100% - var(--space-lg));
        max-width: 400px;
    }
    
    .tab-button {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-sm);
        min-width: 0;
        flex: 1;
        border-radius: 8px;
        max-width: 180px;
    }
    
    .tab-icon {
        width: 24px;
        height: 24px;
        margin-right: 6px;
    }
    
    /* ===== MOBILE GAME CONTAINER ===== */
    .game-container {
        max-width: 100%;
        margin: 0;
        border-radius: 16px;
    }
    
    .game-header {
        padding: var(--space-md);
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .game-title-section h2 {
        font-size: 1.25rem;
    }
    
    .game-stats {
        gap: var(--space-sm);
        justify-content: center;
    }
    
    .stat-box {
        min-width: 50px;
        padding: var(--space-xs);
    }
}

/* ===== EXTRA SMALL MOBILE SCREENS ===== */
@media (max-width: 480px) {
    .tab-navigation {
        width: calc(100% - var(--space-sm));
        padding: 6px;
        gap: 4px;
    }
    
    .tab-button {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
        letter-spacing: 0.01em;
    }
    
    .tab-icon {
        width: 20px;
        height: 20px;
        margin-right: 4px;
    }
}

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 360px) {
    .tab-navigation {
        width: calc(100% - 8px);
        padding: 4px;
        gap: 2px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tab-navigation::-webkit-scrollbar {
        display: none;
    }
    
    .tab-button {
        padding: 6px 8px;
        font-size: 0.75rem;
        font-weight: 600;
        min-width: 80px;
    }
    
    .tab-icon {
        width: 18px;
        height: 18px;
        margin-right: 3px;
    }
    
    .stat-value {
        font-size: var(--font-size-base);
    }
    
    .game-canvas-container {
        margin: var(--space-sm);
        border-radius: 12px;
    }
    
    #gameCanvas {
        width: 100% !important;
        height: auto !important;
        max-width: 280px !important;
        max-height: 420px !important;
        border-radius: 10px;
        image-rendering: auto !important; /* Better for small mobile screens */
    }
    
    .game-controls {
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    
    .game-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-sm);
        min-height: 44px;
        border-radius: 8px;
    }
    
    .mobile-instructions {
        padding: var(--space-sm);
    }
    
    .mobile-instructions p {
        font-size: var(--font-size-xs);
    }

    /* ===== MOBILE NAVBAR - KEEP DESKTOP LOOK ===== */
    .restaurant-header {
        padding: 0 var(--space-xl);
        gap: var(--space-md);
        flex-wrap: nowrap;
        height: 55px;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .restaurant-logo {
        position: absolute;
        left: var(--space-lg);
        gap: var(--space-sm);
        min-width: 0;
        flex-shrink: 0;
    }

    .header-logo {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .palace-title {
        display: none;
    }

    .palace-tagline {
        display: none;
    }

    /* SHOW ONLY ORDERS SERVED ON MOBILE */
    .restaurant-stats {
        gap: 0px;
        flex-shrink: 0;
        justify-content: center;
        position: relative;
    }
    
    /* Hide all stats except orders served */
    .stat-item:not(:first-child) {
        display: none !important;
    }
    
    .stat-item:first-child {
        padding: var(--space-xs) 6px;
        border-width: 2px;
        min-width: 60px;
        font-size: 10px;
    }
    
    .stat-item:first-child .stat-number {
        font-size: 11px;
        font-weight: 700;
    }
    
    .stat-item:first-child .stat-label {
        font-size: 7px;
    }

    /* SHOW ONLY ABSTRACT LOGO ON MOBILE */
    .restaurant-hours {
        position: absolute;
        right: var(--space-lg);
        gap: 0;
        min-width: 0;
        justify-content: flex-end;
        flex-shrink: 0;
        align-items: center;
    }
    
    .abstract-logo {
        width: 28px;
        height: 28px;
        display: block;
    }

    .abstract-text {
        display: none;
    }

    body {
        overflow-y: auto;
        height: auto;
    }
    
    .restaurant-container {
        padding: var(--space-sm);
        height: auto;
        min-height: calc(100vh - 55px);
    }
    
    .pfp-generator {
        flex-direction: column;
        max-width: 100%;
        margin: 0;
        width: 100%;
    }
    
    .generator-content {
        flex-direction: column;
        width: 100%;
        display: flex;
    }
    
    /* ===== MOBILE PREVIEW SECTION - BACK TO TOP ===== */
    .preview-section {
        padding: var(--space-md);
        min-width: unset;
        width: 100%;
        border-left: none;
        border-bottom: 3px solid var(--restaurant-yellow);
        margin-bottom: var(--space-sm);
        order: 1;
        flex: none;
    }
    
    .preview-header {
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-md);
    }
    
    .preview-header h2 {
        font-size: 1.5rem;
        margin: 0;
        font-weight: 800;
    }
    
    .canvas-container {
        padding: var(--space-md);
        margin: 0 auto var(--space-sm) auto;
        max-width: 260px;
        max-height: none;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    #pfpCanvas {
        width: 220px;
        height: 220px;
        max-width: 220px;
        max-height: 220px;
        display: block;
        margin: 0;
    }
    
    .canvas-hint {
        margin-top: var(--space-md);
        font-size: var(--font-size-xs);
        padding: var(--space-xs) var(--space-md);
    }
    
    .order-summary-compact {
        display: none;
    }
    
    .action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-sm);
        margin-top: var(--space-xs);
    }
    
    .action-buttons .place-order-btn {
        flex: 1 1 100%;
        min-height: 48px;
        font-size: var(--font-size-sm);
        font-weight: 700;
        padding: var(--space-md);
        border-radius: var(--border-radius-md);
    }
    
    .action-buttons .copy-btn,
    .action-buttons .clear-order-btn {
        flex: 1 1 calc(50% - var(--space-xs));
        min-height: 44px;
        font-size: var(--font-size-xs);
        padding: var(--space-sm);
        border-radius: var(--border-radius-md);
    }
    
    /* ===== MOBILE MENU SECTION - REORDER FOR OPTIMAL UX ===== */
    .menu-section-compact {
        flex: none;
        width: 100%;
        padding: var(--space-sm);
        gap: var(--space-sm);
        max-height: none;
        margin-bottom: 0;
        border-right: none;
        order: 3;
    }
    
    /* Franchise info goes second */
    .menu-category.info-category {
        order: 2;
        margin-bottom: var(--space-md);
        border-bottom: 2px solid var(--restaurant-yellow);
        padding-bottom: var(--space-md);
    }
    
    /* Regular trait categories go last */
    .menu-category:not(.info-category) {
        order: 3;
    }
    
    /* Hide Quick Combos on mobile to save space */
    .menu-category:has(.combo-buttons),
    .menu-category .combo-buttons {
        display: none;
    }
    
    .menu-category {
        padding: var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    .category-title {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-sm);
        padding-bottom: var(--space-xs);
    }
    
    .category-icon {
        font-size: 1.2em;
        min-width: 32px;
        height: 32px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: var(--space-xs);
        max-height: 200px;
        overflow-y: auto;
    }
    
    /* ===== MOBILE TRAIT ITEMS - MAINTAIN READABILITY ===== */
    .menu-item {
        min-height: 75px;
        padding: var(--space-xs);
        border-radius: var(--border-radius-sm);
    }
    
    .item-image {
        font-size: 1.5rem;
        margin-bottom: var(--space-xs);
    }
    
    .item-name {
        display: none;
    }
    
    .combo-buttons {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xs);
    }
    
    .combo-btn-compact {
        padding: var(--space-sm);
        font-size: 10px;
        min-height: 36px;
        line-height: 1.2;
    }
    
    .info-content-compact {
        gap: var(--space-sm);
    }
    
    .franchise-compact {
        padding: var(--space-sm);
    }
    
    .franchise-compact code {
        font-size: 10px;
    }
    
    .social-buttons-compact {
        gap: var(--space-sm);
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    

}

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

/* Focus styles for keyboard navigation */
button:focus, 
.menu-item:focus, 
.franchise-address:focus,
.combo-btn:focus {
    outline: 3px solid var(--restaurant-yellow);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .menu-board, 
    .order-summary, 
    .restaurant-info {
        border-width: 3px;
    }
    
    .menu-item, 
    .combo-btn, 
    .place-order-btn, 
    .social-btn {
        border: 2px solid currentColor;
    }
} 

/* ===== ENHANCED VISUAL ELEMENTS ===== */
.glow-effect {
    filter: drop-shadow(0 0 20px currentColor);
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 10px currentColor); }
    100% { filter: drop-shadow(0 0 25px currentColor); }
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes jump-bounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

.jump-animation {
    animation: jump-bounce 1s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced backdrop blur effects */
.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== ADDITIONAL MOBILE OPTIMIZATIONS ===== */
@media (max-width: 480px) {
    /* Extra small mobile devices */
    .restaurant-header {
        height: 48px;
        padding: 0 var(--space-xs);
    }
    
    .palace-title {
        font-size: 14px;
    }
    
    #pfpCanvas {
        width: 240px;
        height: 240px;
        max-width: 240px;
        max-height: 240px;
    }
    
    .action-buttons .place-order-btn,
    .action-buttons .copy-btn {
        padding: var(--space-sm);
        font-size: 12px;
    }
    
    .order-summary-compact {
        padding: var(--space-xs);
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .menu-item {
        min-height: 44px; /* Minimum touch target size */
    }
    
    .combo-btn-compact {
        min-height: 44px;
    }
    
    .social-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    .action-buttons button {
        min-height: 48px;
    }
} 