/* 
 * trophyCase.css
 * Overhaul v3: Tabs, Dossier List, and Unified UI
 */

.gamification-dashboard { width: 100%; margin: 0 auto; font-family: 'Inter', sans-serif; }

/* Banner Card Cleanup */
.banner-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 16px; padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), inset 0 2px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.04); margin-bottom: 24px;
}

.title-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;}
.title-wrap { display: flex; flex-direction: column; }
.title-eyebrow { font-size: 10px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
#current-title-label { font-size: 24px; font-weight: 800; margin: 0; background: linear-gradient(90deg, #0f172a, #334155); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.score-pill {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white; font-weight: 800; font-size: 15px; padding: 8px 16px; border-radius: 30px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.progress-bar-track { background: #e2e8f0; height: 12px; border-radius: 10px; overflow: hidden; position: relative; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.progress-bar-fill {
    height: 100%; background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 10px; transition: width 0.8s ease;
}

/* --- VAULT TAB NAVIGATION --- */
.vault-tabs {
    display: flex; gap: 8px; margin-bottom: 16px;
    background: rgba(0,0,0,0.03); padding: 4px; border-radius: 12px;
}
.tab-btn {
    flex: 1; border: none; background: transparent; padding: 10px;
    font-size: 11px; font-weight: 800; color: #64748b; cursor: pointer;
    border-radius: 8px; text-transform: uppercase; letter-spacing: 0.5px;
    transition: all 0.2s;
}
.tab-btn.active { background: white; color: #0f172a; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }

.vault-drawer { 
    position: relative; 
    margin-top: 20px; 
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

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

/* --- UNIVERSAL HORIZONTAL CAROUSEL --- */
.badge-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible; /* Prevent 3D cards from clipping */
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 20px 16px;
    -webkit-overflow-scrolling: touch;
}

.badge-grid::-webkit-scrollbar { display: none; }

/* FIX: Specific rules for States Grid to force horizontal swipe */
#states-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    padding-bottom: 20px !important;
    -webkit-overflow-scrolling: touch;
}

#states-grid::-webkit-scrollbar { display: none; }

#states-grid .flip-scene {
    flex: 0 0 auto !important;
    width: 140px !important;
    scroll-snap-align: center !important;
}

/* 3D COIN STYLING */
.flip-scene { width: 130px; aspect-ratio: 1 / 1.1; cursor: default; }
.flip-scene.is-unlocked { cursor: pointer; }
.flip-scene.is-unlocked:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 4px;
    border-radius: 18px;
}
.skeuo-badge {
    width: 100%; height: 100%; position: relative; transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 16px;
}
.flip-scene.is-unlocked:hover .skeuo-badge.unlocked,
.flip-scene.is-unlocked.is-flipped .skeuo-badge.unlocked {
    transform: rotateY(180deg) translateY(-5px);
}

.badge-face {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
    -webkit-backface-visibility: hidden; border-radius: 16px; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    padding: 10px; box-sizing: border-box; text-align: center;
}
.badge-front { z-index: 2; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.badge-back { 
    transform: rotateY(180deg); 
    background: radial-gradient(circle at center, #1e293b, #0f172a); 
    color: white; 
    border: 1px solid rgba(255,255,255,0.05); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.engraved-date {
    font-size: 10px; 
    font-family: 'Courier New', monospace; /* Monospace for that literal serial number feel */
    letter-spacing: 1.5px; 
    color: #94a3b8; 
    text-shadow: -1px -1px 0 rgba(0,0,0,0.5);
    opacity: 0.8;
}

.upgrade-pill {
    font-size: 8px; 
    font-weight: 800; 
    background: rgba(245, 158, 11, 0.12); 
    border: 1px solid rgba(245, 158, 11, 0.3); 
    color: #fbbf24; 
    padding: 4px 10px; 
    border-radius: 20px; 
    text-transform: uppercase; 
    margin-top: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#share-vault-btn {
    cursor: pointer;
}

#share-vault-btn:disabled {
    cursor: wait;
}

/* TIERS */
.honor-tier .badge-front { background: linear-gradient(135deg, #A0522D, #8B4513); border: 2px solid #5C4033; }
.verified-tier .badge-front { background: linear-gradient(135deg, #FFDF00, #DAA520, #B8860B); border: 2px solid #996515; }
.locked-tier .badge-front { background: #e2e8f0; border: 1px solid #cbd5e1; box-shadow: inset 0 2px 5px rgba(0,0,0,0.05); }

/* --- CLASSIFIED DOSSIER FEATURE --- */
.mystery-card {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: center;
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mystery-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.mystery-icon {
    font-size: 42px;
    color: #60a5fa;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    line-height: 1;
}

.mystery-info { flex: 1; }
.mystery-title { font-size: 14px; font-weight: 800; color: #f1f5f9; margin-bottom: 4px; letter-spacing: 0.5px; }
.mystery-hint { font-size: 11px; color: #38bdf8; font-style: italic; opacity: 0.8; line-height: 1.4; }

.mystery-card.unlocked { 
    background: linear-gradient(135deg, #1e293b, #0f172a); 
    border-left: 4px solid #f59e0b; 
}
.mystery-card.unlocked .mystery-icon { color: #f59e0b; text-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }

/* Cleaned up Mobile Rules */
.state-progress-wrap { 
    display: flex; flex-direction: column; gap: 4px; 
    margin-top: 10px; width: 100%; align-items: center; 
}

.state-progress-track { 
    width: 80%; height: 6px; background: rgba(0,0,0,0.25); 
    border-radius: 10px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.4); 
    overflow: hidden; 
}

.state-progress-fill { 
    height: 100%; background: linear-gradient(90deg, #38bdf8, #3b82f6); 
    border-radius: 10px; box-shadow: 0 0 8px rgba(56, 189, 248, 0.4); 
    transition: width 0.6s ease;
}

.state-progress-text { 
    font-size: 9px; font-weight: 900; color: #64748b; 
    letter-spacing: 0.5px; text-transform: uppercase;
}

@media (max-width: 600px) {
    .badge-icon { font-size: 28px; margin-bottom: 4px; transition: transform 0.3s ease; }
.badge-details h4 { 
    margin: 2px 0; 
    font-size: 11px; /* Smaller font for better fit */
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: inherit;
}
.badge-details p { font-size: 9px; margin: 0; opacity: 0.8; }.mystery-hint { font-size: 9px; }
    .mystery-card { width: 250px; }
}
/* --- SURGICAL OVERRIDES FOR SIZING & LEGENDARY CARDS --- */

/* 1. Force the Paws and States to remain large */
.flip-scene { 
    flex: 0 0 auto !important; 
    width: 120px !important; 
    scroll-snap-align: center; 
    perspective: 800px;
}

/* 2. Fix the Mobile Font Sizing for smaller cards */
@media (max-width: 600px) {
    .flip-scene { width: 110px !important; }
    .badge-details h4 { font-size: 11px !important; }
}

/* 3. The True Legendary Drop for Declassified Dossiers */
.mystery-card.unlocked { 
    background: linear-gradient(135deg, #312e81, #7e22ce, #c026d3) !important; 
    background-size: 200% 200% !important; 
    animation: gradientShift 3s ease infinite !important;
    border: 2px solid #e879f9 !important; 
    box-shadow: 0 0 15px rgba(192, 38, 211, 0.6), inset 0 0 10px rgba(255,255,255,0.2) !important;
    position: relative;
    overflow: hidden;
}

/* The Watermark Stamp */
.mystery-card.unlocked::after {
    content: "DECLASSIFIED";
    position: absolute;
    font-weight: 900;
    opacity: 0.1;
    font-size: 38px;
    transform: rotate(-10deg);
    color: white;
    top: 20%;
    left: -5%;
    pointer-events: none;
}

.mystery-card.unlocked .mystery-title {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
}

.mystery-card.unlocked .mystery-hint {
    color: #a5f3fc !important; /* Bright cyan */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
}

.mystery-card.unlocked .mystery-icon { 
    color: #fef08a !important; 
    text-shadow: 0 0 12px rgba(253, 224, 71, 0.8) !important; 
    position: relative;
    z-index: 2;
}

/* --- LEADERBOARD RIVALRY ANIMATIONS --- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.rivalry-pill {
    animation: pulse 2s infinite;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- SCORING LEGEND MODAL & INFO BTN --- */
.info-pulse-btn {
    font-size: 10px;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 700;
    margin-left: 8px;
    opacity: 0.7;
    transition: all 0.2s ease;
    animation: infoPulse 3s infinite;
}

.info-pulse-btn:hover {
    opacity: 1;
    color: #3b82f6;
    transform: scale(1.05);
}

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

.scoring-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.scoring-modal-card {
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2), 0 20px 40px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 24px;
    color: #f8fafc;
    animation: modalSlideUp 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 16px;
    letter-spacing: 1px;
    color: #3b82f6;
    margin: 0;
}

.modal-close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.modal-section {
    margin-bottom: 24px;
}

.long-route-warning-card {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.18), 0 20px 40px rgba(0,0,0,0.4);
}

.long-route-warning-card .modal-header h3 {
    color: #fbbf24;
}

.long-route-warning-body {
    margin-bottom: 0;
}

.long-route-warning-summary {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.4;
    margin: 0 0 12px;
}

.long-route-warning-note {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 20px;
}

.long-route-warning-actions {
    display: grid;
    gap: 10px;
}

.long-route-warning-primary,
.long-route-warning-secondary {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    padding: 12px;
    text-transform: uppercase;
}

.long-route-warning-primary {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

.long-route-warning-secondary {
    background: rgba(255,255,255,0.08);
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,0.14);
}

.section-title {
    font-size: 10px;
    color: #64748b;
    letter-spacing: 2px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 4px;
}

.protocol-grid {
    display: grid;
    gap: 12px;
}

.protocol-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 12px;
}

.p-icon { font-size: 20px; }
.p-details strong { display: block; font-size: 13px; color: #f1f5f9; }
.p-details p { font-size: 11px; color: #94a3b8; margin: 2px 0 0; }

.ladder-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ladder-step {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.ladder-step span { color: #64748b; font-weight: 700; font-family: monospace; }
.ladder-step strong { color: #3b82f6; }

/* --- FLEX ENGINE UI --- */
.share-vault-btn {
    margin-top: 12px;
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-vault-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.6);
}

/* --- EXPORT STUDIO: SLOT MACHINE SPREAD (Surgical Overrides) --- */
#vault-export-template { 
    padding: 80px !important; 
}

#export-badges-container { 
    gap: 80px !important; 
}

/* Targeting the generated anonymous divs inside the container */
#export-badges-container > div {
    width: 240px !important;
    height: 340px !important;
    padding: 20px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* Targeting the badge name/detail div */
#export-badges-container > div > div:last-child {
    font-size: 24px !important;
    line-height: 1.3 !important;
}

/* --- BANNER LAYOUT RECONSTRUCTION (Fixing Overlap) --- */
.banner-actions-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-left: 20px;
}

.share-vault-btn {
    margin-top: 0 !important;
    width: auto !important;
    white-space: nowrap;
    padding: 8px 16px !important;
    font-size: 11px !important;
}

.info-pulse-btn {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px;
    font-size: 11px !important;
}

.title-wrap {
    flex: 1;
}

/* Fix for the Dossier Share Button */
.mystery-share-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    margin-left: auto; /* Pushes it perfectly to the right edge */
    transition: all 0.2s;
    flex-shrink: 0; /* Prevents flexbox from squishing it */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.mystery-share-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Daily Training CSS Overrides */
.training-btn {
    background: #f59e0b !important;
    color: white !important;
    min-width: 120px;
    font-weight: 800 !important;
    font-size: 13px !important;
}
.training-btn.active {
    background: #ef4444 !important; /* Red for 'In Progress / Stop' feel */
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* --- SIDE PANEL COMMAND CENTER --- */
#slide-panel {
    display: flex;
    flex-direction: column;
}

.panel-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important; /* Managed by sticky footer */
}

/* 2-Column Metadata Grid */
.metadata-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.metadata-grid .panel-section {
    margin-bottom: 0 !important;
}

/* --- FIXED COMMAND CENTER FOOTER --- */
.panel-sticky-footer {
    position: sticky;
    bottom: 0;
    background: #ffffff !important;
    padding: 10px 20px 10px 20px !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
    border-top: 2px solid #f1f5f9;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 10px;
    z-index: 100;
    margin: auto -20px -20px -20px;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.05);
}

/* Make Map Buttons Pop (No more white out) */
.panel-sticky-footer .dir-btn {
    background: #0f172a !important; /* Dark Obsidian */
    color: #ffffff !important;
    border: none;
    min-height: 46px;
    padding: 10px 5px !important;
    font-size: 11px !important;
    font-weight: 800;
    border-radius: 12px !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: transform 0.2s;
}

.panel-sticky-footer .dir-btn:active { transform: scale(0.95); }

.panel-sticky-footer .btn-trip {
    background: #eff6ff !important;
    border: 1.5px solid #3b82f6 !important;
    color: #2563eb !important;
    margin: 0 !important;
    min-height: 46px;
    padding: 10px 5px !important;
    font-size: 11px !important;
    font-weight: 700;
    border-radius: 12px !important;
}

#panel-visited-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px !important;
}

.panel-visit-action {
    width: 100%;
    min-height: 54px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 8px !important;
    border-radius: 14px !important;
    border: none !important;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

#verify-checkin-btn {
    background: #FF9800;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.24);
}

#verify-checkin-text,
#mark-visited-text {
    min-width: 0;
    color: inherit !important;
}

.panel-action-icon {
    flex: 0 0 auto;
    font-size: 15px;
    line-height: 1;
}

#mark-visited-btn .heart-icon {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
}

.panel-secondary-action {
    width: 100%;
    min-height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px !important;
    padding: 7px 12px !important;
    border-radius: 12px !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
}

/* Typography & Reports */
#panel-info {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #475569;
}

/* --- FIXED REPORT CLIPPING --- */
.report-container {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease;
    max-height: none; /* Default to showing everything */
}

/* Only restrict height if this class is added by JS */
.report-container.report-collapsed {
    max-height: 120px;
}

.report-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    display: none;
}

.report-collapsed .report-fade-overlay {
    display: block;
}

.show-more-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 5px 0;
    margin-top: 5px;
}

/* --- iOS SAFARI & PWA OPTIMIZATIONS --- */
/* iOS-specific glassmorphism (handled in main footer block now) */

/* Quick-Info Meta Bar */
.park-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 15px 0;
}

.meta-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Contrast & Fade Enhancements */
#panel-info {
    color: #0f172a !important;
    line-height: 1.6;
    font-size: 13px;
    font-weight: 500;
}

/* Contrast enhancement (handled in fixed report block now) */

/* Button Grids */
#websites-container, #panel-pics {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.website-btn, .swag-link-btn {
    padding: 10px 8px !important;
    font-size: 11px !important;
    margin: 0 !important;
    width: 100% !important;
    border-radius: 10px !important;
    text-align: center;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- UI/UX MASTERCLASS REFACTOR --- */
/* 1. Flatten the Bubbles */
.glass-btn, input, select, textarea {
    border-radius: 8px !important;
}
.view-content, .panel-content, .mystery-card, .banner-card {
    border-radius: 12px !important;
}
#start-route-btn {
    border-radius: 50px !important; /* Keep the main CTA pill-shaped */
}

/* 2. Calm the Bookends */
#ui-start-node > div {
    background: #f0fdf4 !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
}
#ui-end-node > div {
    background: #fef2f2 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
}

/* 3. Stop List Hover States & Minimalism */
.stop-list-item {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.03); padding: 10px 4px;
    transition: background 0.2s; border-radius: 8px;
}
.stop-list-item:hover {
    background: rgba(0,0,0,0.02);
}
.stop-controls {
    opacity: 0.3; /* Hidden until hovered */
    transition: opacity 0.2s;
    display: flex; gap: 4px; align-items: center;
}
.stop-list-item:hover .stop-controls {
    opacity: 1; /* Reveal on hover */
}

/* 4. Day Management Utility Bar */
#day-management-bar > div {
    background: transparent !important; border: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 0 !important; box-shadow: none !important;
    padding: 4px 0 12px 0 !important; gap: 8px !important;
}
#day-management-bar button {
    background: transparent !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    color: #64748b !important;
    box-shadow: none !important; transition: all 0.2s;
}
#day-management-bar button:hover:not(:disabled) {
    background: rgba(0,0,0,0.03) !important; color: #0f172a !important;
}

/* ── LOW GRAPHICS OVERRIDE ──
 * Automatically strips GPU-heavy 3D layers when enabled 
 */
body.low-graphics .banner-card,
body.low-graphics .badge-face,
body.low-graphics .skeuo-badge,
body.low-graphics .flip-scene,
body.low-graphics .mystery-card {
    transform-style: flat !important;
    perspective: none !important;
    backface-visibility: visible !important;
    box-shadow: none !important;
    transform: none !important;
}

body.low-graphics * {
    /* Kills all glass effects globally */
    backdrop-filter: none !important; 
    -webkit-backdrop-filter: none !important;
}
