/* ===== DESIGN TOKENS ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Background & Dark Surface Palette */
    --bg-primary: #05050a;
    --bg-secondary: #0a0812;
    --bg-tertiary: #120e20;
    --bg-card: rgba(18, 14, 28, 0.65);
    --bg-card-hover: rgba(30, 24, 48, 0.85);
    --bg-glass: rgba(18, 14, 28, 0.70);
    --bg-glass-strong: rgba(32, 24, 52, 0.85);

    /* Vibrant Neon Accents */
    --district-pink: #FF0055;
    --district-pink-glow: rgba(255, 0, 85, 0.45);
    --district-pink-subtle: rgba(255, 0, 85, 0.12);
    
    --district-violet: #7928CA;
    --district-violet-glow: rgba(121, 40, 202, 0.45);
    --district-violet-subtle: rgba(121, 40, 202, 0.15);
    
    --district-cyan: #00DFD8;
    --district-cyan-glow: rgba(0, 223, 216, 0.35);

    --accent-purple: #9D4EDD;
    --accent-purple-glow: rgba(157, 78, 221, 0.4);
    --accent-blue: #3A86EF;
    --accent-green: #10B981;
    --accent-pink: #FF0055;

    /* Signature Gradients */
    --accent-gradient: linear-gradient(135deg, #FF0055 0%, #7928CA 50%, #00DFD8 100%);
    --accent-gradient-warm: linear-gradient(135deg, #FF0055 0%, #FF5500 100%);
    --accent-gradient-cool: linear-gradient(135deg, #7928CA 0%, #00DFD8 100%);
    --glass-border-gradient: linear-gradient(135deg, rgba(255,0,85,0.4), rgba(121,40,202,0.2), rgba(0,223,216,0.3));

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #B4B0CB;
    --text-muted: #6C668A;
    --text-accent: #FF2E74;

    /* Cube Sticker Palette */
    --cube-white: #FFFFFF;
    --cube-red: #EE2B47;
    --cube-green: #00E676;
    --cube-yellow: #FFD600;
    --cube-orange: #FF6D00;
    --cube-blue: #2979FF;
    --cube-gray: #1E1A2E;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(255, 0, 85, 0.35);
    --border-cyan: rgba(0, 223, 216, 0.35);

    /* Shadows & Neon Radiance */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 35px var(--district-pink-glow), 0 0 70px var(--district-violet-subtle);

    /* Radii */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    /* Motion Curves */
    --transition-fast: 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-base: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-slow: 450ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.6, 0.64, 1);

    /* Layout Sizing */
    --navbar-height: 72px;
    --max-width: 1160px;
    --sticker-size: 46px;
    --sticker-gap: 4px;
}

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

.text-danger {
    color: #EE2B47 !important;
}

/* ===== APP SPLASH SCREEN LOADER ===== */
.app-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-splash.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}

.splash-logo-box {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-cube-emblem {
    font-size: 3.5rem;
    z-index: 2;
    animation: splashPulse 2s ease-in-out infinite alternate;
}

.splash-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--district-pink);
    border-right-color: var(--district-violet);
    border-bottom-color: var(--district-cyan);
    animation: splashSpin 1.2s linear infinite;
}

.splash-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--accent-gradient);
    filter: blur(40px);
    opacity: 0.6;
    border-radius: 50%;
    animation: splashGlowPulse 2s ease-in-out infinite alternate;
}

.splash-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-tagline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

@keyframes splashPulse {
    0% { transform: scale(0.95); }
    100% { transform: scale(1.1); }
}

@keyframes splashGlowPulse {
    0% { opacity: 0.4; filter: blur(30px); }
    100% { opacity: 0.8; filter: blur(50px); }
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 0, 85, 0.2);
    border-top-color: var(--district-pink);
    border-right-color: var(--district-violet);
    border-radius: 50%;
    animation: spinnerRotate 0.8s linear infinite;
    box-shadow: 0 0 20px var(--district-pink-glow);
}

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

.loading-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ambient Radial Mesh Backdrop */
body::before {
    content: '';
    position: fixed;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: 
        radial-gradient(ellipse at 25% 15%, rgba(255, 0, 85, 0.15) 0%, transparent 45%),
        radial-gradient(ellipse at 75% 35%, rgba(121, 40, 202, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 223, 216, 0.08) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    animation: districtMeshFloat 22s ease-in-out infinite alternate;
}

@keyframes districtMeshFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-2%, 2%) scale(1.03); }
    100% { transform: translate(2%, -1%) scale(0.98); }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ===== FLOATING DOCK HEADER NAVBAR ===== */
.navbar-wrapper {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
}

.navbar {
    pointer-events: auto;
    width: min(1100px, 100%);
    height: 64px;
    background: rgba(12, 10, 22, 0.85);
    backdrop-filter: blur(28px) saturate(210%);
    -webkit-backdrop-filter: blur(28px) saturate(210%);
    border: 1px solid rgba(255, 0, 85, 0.22);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(255, 0, 85, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: var(--transition-base);
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.navbar-brand .cube-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 0 20px var(--district-pink-glow);
    transition: var(--transition-spring);
}

.navbar-brand:hover .cube-icon {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 30px var(--district-pink-glow);
}

.navbar-brand span {
    background: linear-gradient(135deg, #FFFFFF 0%, #E0DBF5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    background: none;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.25) 0%, rgba(121, 40, 202, 0.3) 100%);
    border-color: rgba(255, 0, 85, 0.4);
    box-shadow: 0 0 16px var(--district-pink-glow);
}

.nav-link.active svg {
    stroke: #FF0055;
    filter: drop-shadow(0 0 6px #FF0055);
}

.nav-link svg {
    width: 17px;
    height: 17px;
    transition: var(--transition-fast);
}

/* Mobile nav toggle button */
.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 6px 14px;
    margin-left: auto;
}

/* ===== MAIN CONTENT CONTAINER ===== */
.main-content {
    padding-top: calc(var(--navbar-height) + 32px);
    min-height: 100vh;
}

.view {
    display: none;
    padding: 24px 20px 60px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    animation: districtViewFade 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.view.active {
    display: block;
}

@keyframes districtViewFade {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== GLASS CARDS ===== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 0, 85, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 0, 85, 0.1);
}

.glass-card-elevated {
    background: linear-gradient(160deg, rgba(26, 20, 42, 0.8) 0%, rgba(14, 10, 24, 0.85) 100%);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(255, 0, 85, 0.25);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(121, 40, 202, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    outline: none;
    position: relative;
    overflow: hidden;
}

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

.btn-primary {
    background: linear-gradient(135deg, #FF0055 0%, #D9004C 50%, #7928CA 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 24px var(--district-pink-glow), 0 0 12px var(--district-pink-subtle);
}

.btn-primary:hover {
    box-shadow: 0 10px 36px var(--district-pink-glow), 0 0 24px rgba(255, 0, 85, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(35, 26, 56, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.btn-secondary:hover {
    background: rgba(50, 38, 80, 0.9);
    border-color: rgba(255, 0, 85, 0.35);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 0, 85, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 0, 85, 0.12);
    border-color: #FF0055;
    box-shadow: 0 0 16px var(--district-pink-subtle);
    transform: translateY(-2px);
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-full);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

/* ===== 3D CUBE STYLES ===== */
.cube-scene {
    perspective: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-22deg) rotateY(35deg);
    transition: transform 0.1s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.cube-face-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
    padding: 3px;
    background: #08060f;
    border: 2px solid #000;
    border-radius: 12px;
    box-sizing: border-box;
    backface-visibility: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.cube-sticker-3d {
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
    transition: background-color 0.2s ease;
}

/* ===== HOME HERO SECTION ===== */
.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 50px 0;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: rgba(255, 0, 85, 0.10);
    border: 1px solid rgba(255, 0, 85, 0.35);
    color: #FF2E74;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.15);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #FF0055;
    border-radius: 50%;
    box-shadow: 0 0 10px #FF0055;
    animation: districtDotPulse 1.5s infinite alternate;
}

@keyframes districtDotPulse {
    0% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.3); }
}

.hero-cube-stage {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 10px auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-cube-stage::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 0, 85, 0.35) 0%, rgba(121, 40, 202, 0.25) 50%, transparent 75%);
    filter: blur(40px);
    border-radius: 50%;
    z-index: 0;
    animation: heroAuraPulse 3s ease-in-out infinite alternate;
}

@keyframes heroAuraPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0.9; }
}

#home-cube {
    position: relative;
    z-index: 2;
}

.cube-drag-hint {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(12, 10, 22, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFB3D1 40%, #FF0055 80%, #7928CA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.05;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
    font-weight: 500;
}

.home-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Hero Stats Strip */
.hero-stats-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 20px 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(26, 20, 42, 0.85) 0%, rgba(14, 10, 24, 0.9) 100%);
    border: 1px solid rgba(255, 0, 85, 0.25);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 0, 85, 0.1);
    max-width: 100%;
}

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

.stat-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FFFFFF 0%, #FF2E74 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-desc {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

/* ===== BENTO FEATURE GRID ===== */
.home-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    padding: 32px 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, rgba(22, 16, 36, 0.75) 0%, rgba(10, 8, 18, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-base);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 0, 85, 0.35);
    background: linear-gradient(160deg, rgba(32, 22, 54, 0.9) 0%, rgba(14, 10, 24, 0.95) 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 0, 85, 0.15);
}

.feature-card:hover::before {
    background: var(--accent-gradient);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.feature-icon.purple { background: rgba(255, 0, 85, 0.15); border-color: rgba(255, 0, 85, 0.3); }
.feature-icon.blue { background: rgba(121, 40, 202, 0.15); border-color: rgba(121, 40, 202, 0.3); }
.feature-icon.green { background: rgba(0, 223, 216, 0.15); border-color: rgba(0, 223, 216, 0.3); }
.feature-icon.pink { background: rgba(255, 85, 0, 0.15); border-color: rgba(255, 85, 0, 0.3); }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0DBF5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== INPUT CUBE VIEW ===== */
.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Color Palette Swatches */
.color-palette {
    display: flex;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(18, 14, 28, 0.85);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 0, 85, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    justify-content: center;
}

.palette-color, .palette-swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-spring);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    outline: none;
}

.palette-color:hover, .palette-swatch:hover {
    transform: scale(1.18);
}

.palette-color.selected, .palette-swatch.active {
    transform: scale(1.22);
    outline: 3px solid #FF0055;
    outline-offset: 3px;
    box-shadow: 0 0 20px var(--district-pink-glow);
}

.palette-color.c-white { background-color: var(--cube-white); }
.palette-color.c-red { background-color: var(--cube-red); }
.palette-color.c-green { background-color: var(--cube-green); }
.palette-color.c-yellow { background-color: var(--cube-yellow); }
.palette-color.c-orange { background-color: var(--cube-orange); }
.palette-color.c-blue { background-color: var(--cube-blue); }

.input-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

/* ===== 2D CUBE NET ===== */
.cube-net {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 12px;
    justify-content: center;
    margin: 0 auto;
}

.face-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.face-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
}

.face-grid {
    display: grid;
    grid-template-columns: repeat(3, var(--sticker-size));
    grid-template-rows: repeat(3, var(--sticker-size));
    gap: var(--sticker-gap);
    padding: 6px;
    background: rgba(10, 8, 16, 0.9);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sticker {
    width: var(--sticker-size);
    height: var(--sticker-size);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
    background-color: var(--cube-gray);
}

.sticker:hover {
    transform: scale(1.08);
    z-index: 2;
}

/* Sticker Color Selectors */
.sticker[data-color="U"], .sticker[data-color="W"], .sticker.U, .sticker.W { background-color: var(--cube-white); }
.sticker[data-color="R"], .sticker.R { background-color: var(--cube-red); }
.sticker[data-color="F"], .sticker[data-color="G"], .sticker.F, .sticker.G { background-color: var(--cube-green); }
.sticker[data-color="D"], .sticker[data-color="Y"], .sticker.D, .sticker.Y { background-color: var(--cube-yellow); }
.sticker[data-color="L"], .sticker[data-color="O"], .sticker.L, .sticker.O { background-color: var(--cube-orange); }
.sticker[data-color="B"], .sticker.B { background-color: var(--cube-blue); }
.sticker[data-color="X"], .sticker[data-color=""], .sticker.X { background-color: var(--cube-gray); }

.sticker.center {
    cursor: not-allowed;
}

/* ===== SOLVE VIEW ===== */
.solve-steps-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
}

.solve-cube-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
}

.solve-display-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    width: 100%;
}

.solve-3d-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    position: relative;
}

.solve-2d-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-cube-net {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 10px;
    justify-content: center;
    margin: 0 auto;
}

.mini-face-grid {
    display: grid;
    grid-template-columns: repeat(3, 26px);
    grid-template-rows: repeat(3, 26px);
    gap: 3px;
    padding: 5px;
    background: rgba(10, 8, 16, 0.95);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-face-grid .mini-sticker {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.mini-sticker[data-color="U"], .mini-sticker[data-color="W"] { background-color: var(--cube-white); }
.mini-sticker[data-color="R"] { background-color: var(--cube-red); }
.mini-sticker[data-color="F"], .mini-sticker[data-color="G"] { background-color: var(--cube-green); }
.mini-sticker[data-color="D"], .mini-sticker[data-color="Y"] { background-color: var(--cube-yellow); }
.mini-sticker[data-color="L"], .mini-sticker[data-color="O"] { background-color: var(--cube-orange); }
.mini-sticker[data-color="B"] { background-color: var(--cube-blue); }
.mini-sticker[data-color="X"], .mini-sticker[data-color=""] { background-color: var(--cube-gray); }

.moves-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.moves-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    max-height: 200px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(10, 8, 16, 0.7);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.move-badge, .move-token {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
}

.move-badge:hover, .move-token:hover {
    background: rgba(255, 0, 85, 0.2);
    color: #FFFFFF;
    border-color: rgba(255, 0, 85, 0.4);
}

.move-badge.highlight, .move-token.active {
    background: linear-gradient(135deg, #FF0055 0%, #7928CA 100%);
    color: #FFFFFF;
    border-color: #FF0055;
    box-shadow: 0 0 16px var(--district-pink-glow);
    transform: scale(1.15);
}

.move-badge.past {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.03);
    border-color: transparent;
}

.step-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.step-counter {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 90px;
    text-align: center;
    color: var(--text-primary);
}

/* ===== ALGORITHMS VIEW ===== */
.mode-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.mode-toggle {
    display: inline-flex;
    padding: 6px;
    background: rgba(18, 14, 28, 0.9);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 0, 85, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mode-btn.active {
    background: linear-gradient(135deg, #FF0055 0%, #7928CA 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px var(--district-pink-glow);
}

.mode-description {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
}

.algo-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.algo-tab {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.algo-tab.active {
    background: rgba(255, 0, 85, 0.2);
    border-color: #FF0055;
    color: #FFFFFF;
    box-shadow: 0 0 16px var(--district-pink-subtle);
}

.algo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.algo-group-header {
    grid-column: 1 / -1;
    font-size: 1.15rem;
    font-weight: 800;
    color: #FF2E74;
    margin-top: 16px;
    margin-bottom: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 0, 85, 0.25);
    letter-spacing: -0.01em;
}

.algo-card {
    background: rgba(18, 14, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition-base);
}

.algo-card:hover {
    border-color: rgba(255, 0, 85, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 0, 85, 0.12);
}

.algo-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.algo-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.algo-moves, .algo-notation {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    font-weight: 700;
    color: #00DFD8;
    background: rgba(10, 8, 16, 0.8);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 223, 216, 0.2);
    word-break: break-word;
}

.algo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.algo-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 0, 85, 0.15);
    color: #FF2E74;
    border: 1px solid rgba(255, 0, 85, 0.3);
}

/* OLL / PLL Mini Diagram */
.algo-diagram {
    display: grid;
    grid-template-columns: repeat(3, 18px);
    grid-template-rows: repeat(3, 18px);
    gap: 2px;
    padding: 6px;
    background: rgba(10, 8, 16, 0.9);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    flex-shrink: 0;
}

.algo-diagram .mini-sticker {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.algo-diagram .mini-sticker.filled {
    background: var(--cube-yellow);
    box-shadow: 0 0 6px rgba(255, 214, 0, 0.6);
}

.algo-diagram .mini-sticker.empty {
    background: rgba(255, 255, 255, 0.08);
}

/* ===== TIMER VIEW ===== */
.timer-scramble-card {
    margin-bottom: 24px;
    text-align: center;
}

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

.scramble-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scramble-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.scramble-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.scramble-preview-box {
    margin-top: 16px;
    padding: 16px;
    background: rgba(10, 8, 16, 0.7);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
}

.timer-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}

.timer-display-container {
    width: 100%;
    max-width: 600px;
    padding: 60px 40px;
    text-align: center;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, rgba(22, 16, 36, 0.85) 0%, rgba(10, 8, 18, 0.95) 100%);
    border: 1px solid rgba(255, 0, 85, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 0, 85, 0.15);
    transition: var(--transition-base);
}

/* Timer State Classes */
.timer-area.state-holding .timer-display-container {
    border-color: #FFD600;
    box-shadow: 0 0 45px rgba(255, 214, 0, 0.45);
}

.timer-area.state-holding .timer-digits {
    color: #FFD600;
    text-shadow: 0 0 30px #FFD600;
}

.timer-area.state-ready .timer-display-container {
    border-color: #00E676;
    box-shadow: 0 0 55px rgba(0, 230, 118, 0.6);
}

.timer-area.state-ready .timer-digits {
    color: #00E676;
    text-shadow: 0 0 30px #00E676;
}

.timer-area.state-running .timer-display-container {
    border-color: #FF0055;
    box-shadow: 0 0 55px var(--district-pink-glow);
}

.timer-area.state-running .timer-digits {
    color: #FFFFFF;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.timer-area.state-inspection .timer-display-container {
    border-color: #FF6D00;
    box-shadow: 0 0 45px rgba(255, 109, 0, 0.45);
}

.timer-area.state-inspection .timer-digits {
    color: #FF6D00;
    text-shadow: 0 0 30px #FF6D00;
}

.timer-status-hint {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timer-digits {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #FFFFFF;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Stats Bar */
.timer-stats-bar {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 24px 0;
}

.stat-pill {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
}

.stat-pill-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.stat-pill-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.highlight-green { color: #00E676; }
.highlight-purple { color: #FF0055; }
.highlight-blue { color: #00DFD8; }

/* Solves History Table */
.timer-history-container {
    margin-top: 24px;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.session-select-dropdown {
    background: rgba(10, 8, 16, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    outline: none;
}

.solves-table-wrapper {
    overflow-x: auto;
    max-height: 260px;
}

.solves-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.solves-table th {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.solves-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
}

.solves-table tr:hover {
    background: rgba(255, 0, 85, 0.06);
}

.action-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.scramble-cell {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Timer Options Bar */
.timer-options-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 16px 24px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.option-item input[type="checkbox"] {
    accent-color: #FF0055;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.precision-select {
    background: rgba(10, 8, 16, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

/* ===== NOTATION GUIDE VIEW ===== */
.notation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.notation-card, .notation-item {
    background: rgba(18, 14, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition-base);
}

.notation-card:hover, .notation-item:hover {
    border-color: rgba(255, 0, 85, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 20px rgba(255,0,85,0.12);
}

.notation-symbol {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF0055 0%, #7928CA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notation-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== FLOATING BOTTOM NAV FOR MOBILE ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, 92vw);
    height: 60px;
    background: rgba(12, 10, 22, 0.92);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(255, 0, 85, 0.3);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 0, 85, 0.15);
    z-index: 2000;
    align-items: center;
    justify-content: space-around;
    padding: 0 12px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.mobile-nav-item svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.mobile-nav-item.active {
    color: #FF0055;
}

.mobile-nav-item.active svg {
    stroke: #FF0055;
    filter: drop-shadow(0 0 8px #FF0055);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    background: rgba(18, 14, 28, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 0, 85, 0.4);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px var(--district-pink-subtle);
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== RESPONSIVE UTILITIES (MOBILE & TABLET) ===== */
@media (max-width: 900px) {
    .main-content {
        padding-top: calc(var(--navbar-height) + 16px);
        padding-bottom: 96px;
    }
    
    .view {
        padding-bottom: 96px;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: rgba(12, 10, 22, 0.95);
        backdrop-filter: blur(28px);
        border: 1px solid rgba(255, 0, 85, 0.3);
        border-radius: var(--radius-lg);
        padding: 16px;
        flex-direction: column;
        gap: 8px;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 0, 85, 0.15);
    }
    
    .navbar-nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 20px;
    }
    
    .nav-toggle { display: block; }
    .mobile-bottom-nav { display: flex; }
    
    .hero-title { font-size: 2.8rem; }
    .subtitle { font-size: 1rem; }
    
    .hero-stats-strip {
        padding: 16px 20px;
        gap: 16px;
    }
    
    .stat-num { font-size: 1.35rem; }
    .timer-digits { font-size: 3.8rem; }

    .toast-container {
        bottom: 90px;
        right: 16px;
        left: 16px;
        align-items: center;
    }
}

@media (max-width: 800px) {
    .cube-net {
        grid-template-columns: repeat(4, auto);
        gap: 8px;
        --sticker-size: 34px;
    }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.4rem; }
    .subtitle { font-size: 0.95rem; margin-bottom: 24px; padding: 0 10px; }
    .hero-cube-stage { width: 220px; height: 220px; margin: 0 auto 20px auto; }
    .hero-stats-strip {
        padding: 16px;
        gap: 14px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-radius: var(--radius-lg);
    }
    .stat-divider { display: none; }
    .home-actions { flex-direction: column; width: 100%; gap: 12px; }
    .btn-lg { width: 100%; justify-content: center; }

    .cube-net {
        grid-template-columns: repeat(4, auto);
        gap: 6px;
        --sticker-size: 25px;
        --sticker-gap: 2px;
    }

    .color-palette {
        gap: 8px;
        padding: 8px 16px;
        width: 100%;
        flex-wrap: wrap;
    }
    .palette-color, .palette-swatch {
        width: 32px;
        height: 32px;
    }

    .input-controls {
        flex-direction: column;
        width: 100%;
    }
    .input-controls .btn {
        width: 100%;
    }

    .timer-display-container {
        padding: 36px 16px;
    }
    .timer-digits {
        font-size: 3.2rem;
    }
    .timer-stats-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-pill {
        min-width: 0;
        padding: 10px;
    }

    .solves-table th, .solves-table td {
        padding: 8px 6px;
        font-size: 0.78rem;
    }
    .scramble-cell {
        max-width: 90px;
    }
    .history-header {
        flex-direction: column;
        align-items: stretch;
    }

    .solve-display-flex {
        flex-direction: column;
        gap: 20px;
    }
    .solve-3d-box {
        width: 160px;
        height: 160px;
    }
    .mini-face-grid {
        grid-template-columns: repeat(3, 20px);
        grid-template-rows: repeat(3, 20px);
    }
    .mini-face-grid .mini-sticker {
        width: 20px;
        height: 20px;
    }
}
