.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.code-grid {
    background-image: radial-gradient(circle at 2px 2px, rgba(143, 149, 255, 0.08) 1px, transparent 0);
    background-size: 30px 30px;
}

.glass {
    background: linear-gradient(135deg, rgba(143, 149, 255, 0.12) 0%, rgba(35, 35, 35, 0.78) 100%);
    backdrop-filter: blur(12px);
}

.light {
    color-scheme: light;
}

.light .bg-background {
    background-color: #f5f7fb !important;
}

.light .bg-surface {
    background-color: #eef2f8 !important;
}

.light .bg-panel {
    background-color: #ffffff !important;
}

.light .bg-panel2 {
    background-color: #ffffff !important;
}

.light .text-text {
    color: #0f172a !important;
}

.light .text-muted {
    color: #475569 !important;
}

.light .text-text\/50 {
    color: #64748b !important;
}

.light .text-text\/80 {
    color: #334155 !important;
}

.light .text-text\/90 {
    color: #1e293b !important;
}

.light .border-outline\/25,
.light .border-outline\/30,
.light .border-outline\/40 {
    border-color: rgba(148, 163, 184, 0.45) !important;
}

.light .code-grid {
    background-image: radial-gradient(circle at 2px 2px, rgba(71, 85, 105, 0.08) 1px, transparent 0);
}

.light .glass {
    background: linear-gradient(135deg, rgba(143, 149, 255, 0.16) 0%, rgba(255, 255, 255, 0.85) 100%);
}

.light .bg-\[\#111\] {
    background-color: #ffffff !important;
}

.light .bg-\[\#0f0f0f\] {
    background-color: #e2e8f0 !important;
}

.mobile-theme-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 180ms ease, color 180ms ease;
}

.mobile-theme-btn:hover,
.mobile-theme-btn:focus-visible {
    background: rgba(143, 149, 255, 0.12);
    outline: none;
}

.mobile-header {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.mobile-nav-shell {
    max-width: 28rem;
    margin: 0 auto;
    width: calc(100% - 1.25rem);
    border-radius: 18px 18px 0 0;
    padding: 8px 10px calc(env(safe-area-inset-bottom, 0px) + 10px);
    box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.16);
}

.mobile-nav-link {
    min-width: 68px;
    min-height: 52px;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(232, 232, 232, 0.58);
    transition: all 180ms ease;
}

.mobile-nav-link.is-active {
    color: #39d7ff;
    background: rgba(143, 149, 255, 0.14);
    font-weight: 700;
}

.light .mobile-nav-link {
    color: #64748b;
}

.light .mobile-nav-link.is-active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.12);
}

.light .mobile-header {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: rgba(148, 163, 184, 0.5) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.light .mobile-header h1 {
    color: #0f172a;
}

.light .mobile-theme-btn {
    border-color: rgba(148, 163, 184, 0.42);
    background: rgba(255, 255, 255, 0.82) !important;
    color: #334155 !important;
}

.light .mobile-theme-btn:hover,
.light .mobile-theme-btn:focus-visible {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #2563eb !important;
}

.mobile-theme-btn.is-active-theme {
    border-color: rgba(57, 215, 255, 0.35);
    background: rgba(57, 215, 255, 0.14) !important;
    color: #39d7ff !important;
}

.light .mobile-theme-btn.is-active-theme {
    border-color: rgba(37, 99, 235, 0.42);
    background: rgba(59, 130, 246, 0.16) !important;
    color: #2563eb !important;
}

.light .mobile-nav-shell {
    background: rgba(248, 250, 252, 0.96) !important;
    border-color: rgba(148, 163, 184, 0.5) !important;
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.08);
}

.desktop-header {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.desktop-nav-link {
    color: rgba(232, 232, 232, 0.78);
    transition: color 180ms ease;
}

.desktop-nav-link:hover {
    color: #39d7ff;
}

.desktop-theme-btn {
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 4px 8px;
}

.light .desktop-header {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: rgba(148, 163, 184, 0.5) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.light .desktop-header .desktop-brand {
    color: #0f172a !important;
}

.light .desktop-nav-link {
    color: #334155 !important;
}

.light .desktop-nav-link:hover {
    color: #2563eb !important;
}

.light .desktop-theme-btn {
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.86);
    color: #334155 !important;
}

.light .desktop-theme-btn:hover {
    color: #2563eb !important;
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 420ms ease, transform 420ms ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
