img,
svg {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    touch-action: none !important;
}
.card-badge,
.badge-card,
.card-avatar-wrapper,
.clan-tag {
    cursor: pointer;
    user-select: none;
}
body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
.drawer-desc,
.stat-line,
.badge-tip {
    user-select: text;
    -webkit-user-select: text;
}

:root {
    --base: #0a0a0e;
    --card: #141418;
    --elevated: #1e1e24;
    --primary: #ffffff;
    --secondary: #a0a0b0;
    --highlight: #e8e8f0;
    --subtle: rgba(255, 255, 255, .05);
    --subtle-2: rgba(255, 255, 255, .12);
    --accent: #ffffff;
    --accent-glow: rgba(255, 255, 255, 0.08);
    --online: #8ae0b0;
    --idle: #f0b060;
    --dnd: #e06060;
    --offline: #808090;
    --danger: #e06060;
    --radius-card: 12px;
    --radius-md: 12px;
    --blur-glass: 18px;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .4);
    --shadow-card: inset 0 1px 0 rgba(255, 255, 255, .04), 0 12px 40px rgba(0, 0, 0, .6);
    --shadow-glow: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 40px rgba(255, 255, 255, .05);
    --ease: cubic-bezier(.16, 1, .3, 1);
    --sans: 'Geist Sans', ui-sans-serif, system-ui, sans-serif;
    --mono: 'Geist Mono', ui-monospace, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
::selection {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}
html,
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--base);
    color: var(--primary);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: brightness(0.4) saturate(0.6) contrast(1.1);
}
.video-fallback {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at center, #18181e, #0a0a0e);
}
.gradient-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.015), transparent 60%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.01), transparent 50%);
}

.aurora {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: transparent;
}
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    will-change: transform;
}
.aurora-blob.a {
    top: -20%;
    left: 20%;
    width: 50vmax;
    height: 50vmax;
    opacity: .02;
    background: radial-gradient(circle, rgba(200, 200, 220, 0.3), transparent 60%);
    animation: aurora-drift 20s ease-in-out infinite;
}
.aurora-blob.b {
    top: 40%;
    right: -15%;
    width: 45vmax;
    height: 45vmax;
    opacity: .015;
    background: radial-gradient(circle, rgba(160, 160, 180, 0.2), transparent 60%);
    animation: aurora-drift 24s ease-in-out infinite reverse;
}
.aurora-blob.c {
    bottom: 0;
    left: 30%;
    width: 40vmax;
    height: 40vmax;
    opacity: .015;
    background: radial-gradient(circle, rgba(120, 120, 140, 0.2), transparent 60%);
    animation: aurora-drift 28s ease-in-out infinite;
}
.aurora-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 50% 0%, transparent, #0a0a0e 80%);
}
@keyframes aurora-drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(3%, -2%, 0) scale(1.06);
    }
}
.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 2;
    opacity: .015;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

main {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 4rem;
    transition: all 0.6s var(--ease);
    flex: 1;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    transition: all 0.6s var(--ease);
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #f0f0f8, #c0c0d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.04);
}

.hero-sub {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease, height 0.4s ease, margin 0.4s ease;
}

.panel {
    width: 100%;
    max-width: 600px;
    background: color-mix(in srgb, var(--card) 70%, transparent);
    backdrop-filter: blur(var(--blur-glass)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(130%);
    border: 1px solid var(--subtle);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1.25rem 1.25rem 1rem;
    transition: all 0.6s var(--ease);
}
.panel:hover {
    border-color: var(--subtle-2);
    box-shadow: var(--shadow-glow);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}
.controls .field-group {
    flex: 1 1 200px;
    min-width: 150px;
}
.field-group label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: .35rem;
    opacity: 0.7;
}
.search-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    height: 2.75rem;
    padding: 0 .5rem 0 1rem;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--card) 70%, transparent);
    backdrop-filter: blur(var(--blur-glass)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(130%);
    border: 1px solid var(--subtle);
    transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.search-bar>i.fa-magnifying-glass {
    flex-shrink: 0;
    font-size: .875rem;
    color: var(--secondary);
}
.search-bar input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--primary);
    font: 400 .875rem/1 var(--sans);
}
.search-bar input::placeholder {
    color: var(--secondary);
}
.search-submit {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--subtle);
    border-radius: 8px;
    color: #fff;
    font-size: .8125rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, opacity .15s;
}
.search-submit:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--subtle-2);
}
.search-submit:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.status {
    font-size: .8125rem;
    color: var(--secondary);
    padding: .5rem 0 0;
    min-height: 1.75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--mono);
    justify-content: center;
}
.status.err {
    color: var(--danger);
}
.status.ok {
    color: var(--online);
}
.status .spinner-sm {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .12);
    border-top-color: var(--primary);
    animation: spin .6s linear infinite;
    flex: none;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--subtle);
}
.switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--elevated);
    border-radius: 99px;
    cursor: pointer;
    flex: none;
    transition: background .15s;
    border: 1px solid var(--subtle);
}
.switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--secondary);
    transition: all .2s var(--ease);
}
.switch.on {
    background: var(--online);
    border-color: var(--online);
}
.switch.on::after {
    background: #fff;
    left: 18px;
}
.toggle-label {
    font-size: 0.85rem;
    color: var(--secondary);
    cursor: pointer;
    user-select: none;
}

main.compact {
    justify-content: flex-start;
    padding-top: 2rem;
}
main.compact .hero-center {
    flex-direction: column;
    gap: 0.5rem;
    max-width: 100%;
    margin-bottom: 1.5rem;
    width: 100%;
}
main.compact .hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 0;
}
main.compact .hero-sub {
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}
main.compact .panel {
    max-width: 600px;
    margin: 0 auto;
}

.profile-card {
    width: 100%;
    max-width: 600px;
    background: color-mix(in srgb, var(--card) 70%, transparent);
    backdrop-filter: blur(var(--blur-glass)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(130%);
    border: 1px solid var(--subtle);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    margin: 1.5rem auto 0;
    overflow: visible;
    display: none;
    transition: all 0.6s var(--ease);
    position: relative;
}
.profile-card.visible {
    display: block;
}

.card-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 680 / 240;
    background: var(--elevated);
    overflow: visible;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.banner-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.banner-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.banner-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.card-avatar-wrapper {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.card-avatar-wrapper .avatar-ring {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--base);
    padding: 3px;
    box-shadow: 0 0 0 2px var(--subtle), 0 8px 24px rgba(0,0,0,0.6);
    overflow: visible;
}
.card-avatar-wrapper .avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--elevated);
    display: block;
}

.avatar-decoration-wrapper {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 11;
    pointer-events: none;
    border-radius: 0;
    overflow: visible;
    display: none;
}
.avatar-decoration-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    background: transparent !important;
    mix-blend-mode: normal;
    display: block;
}

.card-body {
    padding: 3.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.card-username-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.card-username {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 400;
}

.clan-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--elevated);
    border: 1px solid var(--subtle);
    border-radius: 4px;
    padding: 0.1rem 0.4rem 0.1rem 0.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.clan-tag img {
    width: 18px;
    height: 18px;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
}
.clan-tag .clan-name {
    color: var(--secondary);
    font-weight: 400;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}
.card-badge {
    position: relative;
    display: inline-flex;
    line-height: 0;
    cursor: default;
}
.card-badge img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.2s;
    filter: brightness(0.95) contrast(1.1);
}
.card-badge:hover img {
    transform: scale(1.15);
}
.card-badge .badge-tip {
    pointer-events: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    border-radius: 6px;
    border: 1px solid var(--subtle);
    background: var(--elevated);
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--highlight);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
}
.card-badge:hover .badge-tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--subtle);
    font-size: 0.85rem;
    color: var(--secondary);
}
.card-footer .member-since span {
    color: var(--primary);
    font-weight: 500;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}
.grid .empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--secondary);
    padding: 4rem 1.5rem;
    font-size: .875rem;
    font-family: var(--mono);
    letter-spacing: .01em;
}

.badge-card {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    backdrop-filter: blur(var(--blur-glass)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(130%);
    border: 1px solid var(--subtle);
    border-radius: var(--radius-card);
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, transform .15s var(--ease), box-shadow .2s;
    box-shadow: var(--shadow-card);
}
.badge-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.badge-card .medallion {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 12px;
    background: var(--elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--subtle);
}
.badge-card .medallion img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0.95) contrast(1.1);
    transition: transform 0.15s;
}
.badge-card .medallion img.animated-icon {
    transform: scale(1.55);
}
.badge-card .medallion.locked img {
    opacity: .5;
}
.lock-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--base);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--subtle);
    padding: 0;
    line-height: 0;
}
.lock-badge svg {
    width: 11px;
    height: 11px;
    stroke: var(--secondary);
    display: block;
}
.badge-card .name {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    word-break: break-word;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 100;
}
.overlay.show {
    display: flex;
}
.drawer {
    background: color-mix(in srgb, var(--card) 80%, transparent);
    backdrop-filter: blur(var(--blur-glass)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(130%);
    border: 1px solid var(--subtle);
    border-radius: var(--radius-card);
    max-width: 480px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-card);
}
.drawer::-webkit-scrollbar {
    width: 4px;
}
.drawer::-webkit-scrollbar-track {
    background: transparent;
}
.drawer::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 99px;
}
.close-x {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--secondary);
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.close-x:hover {
    background: var(--subtle);
    color: var(--primary);
}
.drawer-top {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}
.drawer-medallion {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    position: relative;
    border: 1px solid var(--subtle);
}
.drawer-medallion img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0.95) contrast(1.1);
}
.drawer-medallion img.locked-icon {
    opacity: .5;
}
.drawer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--primary);
}
.drawer-meta {
    font-size: .75rem;
    color: var(--secondary);
    font-family: var(--mono);
}
.drawer-desc {
    color: var(--highlight);
    font-size: .8125rem;
    line-height: 1.6;
    margin: 2px 0 4px;
}
.stat-line {
    background: var(--elevated);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 14px 0 12px;
    font-size: .8125rem;
    color: var(--primary);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    font-family: var(--mono);
}
.ladder {
    margin-top: 16px;
}
.ladder-title {
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 600;
}
.step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--subtle);
}
.step:last-child {
    border-bottom: none;
}
.step-medallion {
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 8px;
    background: var(--elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--subtle);
}
.step-medallion img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0.95) contrast(1.1);
}
.step.locked .step-medallion img {
    opacity: .5;
}
.step-indicator {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--base);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-sizing: border-box;
    line-height: 0;
    border: 1px solid var(--subtle);
}
.step-indicator svg {
    width: 8px;
    height: 8px;
    flex: none;
    display: block;
}
.step.owned .step-indicator svg {
    stroke: var(--online);
}
.step.locked .step-indicator svg {
    stroke: var(--secondary);
}
.step-name {
    font-size: .8125rem;
    flex: 1;
    color: var(--primary);
}
.step.locked .step-name {
    color: var(--secondary);
}
.step-milestone {
    font-size: .6875rem;
    color: var(--secondary);
    font-family: var(--mono);
}
.step.owned .step-milestone {
    color: var(--highlight);
}

@media (max-width: 640px) {
    main.compact .hero-center {
        gap: 0.25rem;
        margin-bottom: 1rem;
    }
    .hero-title {
        font-size: 2.6rem;
    }
    .hero-sub {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    .panel {
        padding: 1rem;
    }
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    .controls .field-group {
        flex: 1 1 auto;
    }
    .card-avatar-wrapper .avatar-ring {
        width: 100px;
        height: 100px;
    }
    .card-avatar-wrapper {
        bottom: -50px;
    }
    .card-body {
        padding: 3rem 1rem 1rem;
    }
    .card-name {
        font-size: 1.2rem;
    }
    .card-username-row {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    .card-username {
        font-size: 0.9rem;
    }
    .card-badge img {
        width: 18px;
        height: 18px;
    }
    .clan-tag {
        font-size: 0.7rem;
        padding: 0.05rem 0.3rem 0.05rem 0.15rem;
        border-radius: 3px;
    }
    .clan-tag img {
        width: 16px;
        height: 16px;
    }
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.625rem;
    }
    .badge-card .medallion {
        width: 48px;
        height: 48px;
    }
    .badge-card .medallion img {
        width: 28px;
        height: 28px;
    }
    .drawer {
        padding: 1.25rem;
    }
    main.compact {
        padding-top: 1.5rem;
    }
    .toggle-row {
        justify-content: center;
    }
}
@media (max-width: 420px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

.site-footer {
    width: 100%;
    margin-top: auto;
    padding: 1.5rem 1.5rem 1.5rem;
    background: color-mix(in srgb, var(--card) 70%, transparent);
    backdrop-filter: blur(var(--blur-glass)) saturate(130%);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(130%);
    border-top: 1px solid var(--subtle);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-copy {
    color: var(--secondary);
    font-size: 0.85rem;
}
.footer-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #5865F2;
    text-decoration: underline;
}
@media (max-width: 640px) {
    .footer-content {
        text-align: center;
    }
}