:root {
    --bg: #04050b;
    --panel: rgba(9, 11, 21, .82);
    --panel-solid: #0b0d19;
    --line: rgba(150, 175, 255, .15);
    --line-strong: rgba(150, 175, 255, .28);
    --text: #e8ebf5;
    --muted: #8e96b0;
    --dim: #5f6783;
    --accent: #8ab4ff;
    --accent-2: #b79cff;
    --green: #5cff87;
    --blue: #5ca9ff;
    --red: #ff5f6d;
    --amber: #ffd37a;
    --radius: 14px;
    --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

button {
    font: inherit;
    color: inherit;
}

a {
    color: var(--accent);
}

::selection {
    background: rgba(138, 180, 255, .35);
}

canvas#scene {
    position: fixed;
    inset: 0;
    display: block;
    z-index: 0;
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .22) 72%, rgba(0, 0, 0, .78) 100%);
}

.window {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .55),
        0 0 70px rgba(110, 140, 255, .07);
}

/* static hairline outline */
.window::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--line);
}

.ring {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    border-radius: inherit;
    padding: 1px;
    overflow: hidden;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.ring > i {
    position: absolute;
    inset: -60%;
    opacity: 0;
    background: conic-gradient(from 0deg,
            transparent 0 60%,
            rgba(138, 180, 255, 0) 60%,
            rgba(150, 190, 255, .55) 74%,
            rgba(226, 238, 255, .98) 84%,
            rgba(183, 156, 255, .9) 89%,
            transparent 95% 100%);
    animation: ring-sweep var(--shine-dur, 11s) cubic-bezier(.4, 0, .25, 1) var(--shine-delay, 0s) infinite;
    will-change: transform, opacity;
}

@keyframes ring-sweep {
    0% { transform: rotate(0deg); opacity: 0; }
    4% { opacity: 1; }
    27% { opacity: 1; }
    31% { transform: rotate(360deg); opacity: 0; }
    100% { transform: rotate(360deg); opacity: 0; }
}

#terminal .ring { --shine-delay: 1.2s; --shine-dur: 12s; }
#gallery-window .ring { --shine-delay: .4s; --shine-dur: 9s; }
#profile-window .ring { --shine-delay: .6s; --shine-dur: 10s; }

.sheen {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.sheen::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(105deg,
            transparent 36%,
            rgba(190, 215, 255, .06) 45%,
            rgba(255, 255, 255, .13) 50%,
            rgba(190, 215, 255, .06) 55%,
            transparent 64%);
    transform: translateX(-135%);
    animation: sheen 10s ease-in-out var(--shine-delay, 0s) infinite;
}

.sheen:nth-child(2n)::after { animation-delay: 2.7s; animation-duration: 12s; }
.sheen:nth-child(3n)::after { animation-delay: 5.1s; animation-duration: 9s; }

@keyframes sheen {
    0% { transform: translateX(-135%); }
    15% { transform: translateX(135%); }
    100% { transform: translateX(135%); }
}

/* a covered terminal doesn't need to animate */
body.has-window #terminal .ring > i,
body.has-window #terminal .sheen::after {
    animation-play-state: paused;
}

.window-header {
    flex: none;
    height: 44px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 13px;
    user-select: none;
}

.window-header .title {
    opacity: .85;
    letter-spacing: .02em;
}

.traffic {
    display: flex;
    gap: 8px;
}

.traffic span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: filter .15s, transform .15s;
}

.traffic span:hover {
    filter: brightness(1.2);
}

.overlay .traffic .red {
    cursor: pointer;
}

.overlay .traffic .red:hover {
    transform: scale(1.18);
    box-shadow: 0 0 10px rgba(255, 95, 87, .7);
}

.red { background: #ff5f57; }
.yellow { background: #febc2e; }
.green { background: #28c840; }

#terminal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: min(860px, calc(100vw - 24px));
    height: min(540px, calc(100dvh - 24px));
    background: rgba(8, 10, 19, .78);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    font-family: var(--mono);
}

#terminal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 20px 24px;
    font-size: 14.5px;
    line-height: 1.55;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

#terminal-body::-webkit-scrollbar,
#gallery-content::-webkit-scrollbar,
#profile-content::-webkit-scrollbar {
    width: 8px;
}

#terminal-body::-webkit-scrollbar-track,
#gallery-content::-webkit-scrollbar-track,
#profile-content::-webkit-scrollbar-track {
    background: transparent;
}

#terminal-body::-webkit-scrollbar-thumb,
#gallery-content::-webkit-scrollbar-thumb,
#profile-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 999px;
}

.banner {
    width: max-content;
    max-width: 100%;
    margin-bottom: 14px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.08;
    background: linear-gradient(90deg, #8ab4ff, #b79cff 55%, #ff8ad8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
}

.line {
    margin: 0 0 4px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.line.info,
.info {
    color: var(--muted);
}

.cmd {
    color: var(--green);
}

.user { color: var(--green); }
.host { color: var(--blue); }
.prompt { color: var(--text); }

.line a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed rgba(138, 180, 255, .4);
}

.line a:hover {
    border-bottom-style: solid;
}

.cmdline {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .7ch;
}

.cmdline .prompt {
    flex: none;
    white-space: nowrap;
}

.typed-command {
    flex: 1;
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--text);
}

#t-cursor {
    display: inline-block;
    min-width: 1ch;
    background: var(--text);
    color: #0b0d19;
    animation: blink 1.1s steps(1) infinite;
}

#terminal.locked #t-cursor {
    background: transparent;
    color: transparent;
    outline: 1px solid var(--dim);
    outline-offset: -1px;
    animation: none;
}

@keyframes blink {
    50% { opacity: 0; }
}

#real-input {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    font-size: 16px;
    pointer-events: none;
}

.result {
    margin: 2px 0 14px;
}

.reveal {
    animation: reveal .38s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.card {
    position: relative;
    margin: 6px 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid var(--line);
}

.cmd-chip {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 6px;
    border: 1px solid rgba(92, 255, 135, .2);
    background: rgba(92, 255, 135, .07);
    color: var(--green);
    font-family: var(--mono);
    font-size: .95em;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, transform .15s;
}

.cmd-chip:hover {
    background: rgba(92, 255, 135, .15);
    box-shadow: 0 0 14px rgba(92, 255, 135, .2);
    transform: translateY(-1px);
}

.help-title,
.secrets-head {
    margin-bottom: 12px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: .04em;
}

.help-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 7px 18px;
    align-items: center;
}

.help-grid .cmd-chip {
    justify-self: start;
}

.command-description {
    color: var(--muted);
}

.help-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    color: var(--dim);
    font-size: 12.5px;
}

.kv {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 16px;
}

.kv dt { color: var(--accent); }
.kv dd { color: var(--text); overflow-wrap: anywhere; }

/* about */

.about-card {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.about-logo {
    flex: none;
    width: 104px;
    height: 104px;
    overflow: visible;
}

.about-logo-line {
    stroke: rgba(170, 200, 255, .55);
    stroke-width: 1;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-line 1.6s .25s ease forwards;
}

.about-logo-star {
    fill: #fff;
    filter: drop-shadow(0 0 4px rgba(170, 200, 255, .9));
    animation: twinkle 2.6s ease-in-out 3;
}

@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes twinkle { 50% { opacity: .3; } }

.about-body {
    min-width: 0;
    flex: 1;
}

.about-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(90deg, #fff, #b8ccff 60%, #c9b6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-handle {
    font-size: 13px;
    font-weight: 400;
    -webkit-text-fill-color: var(--muted);
}

.about-tagline {
    margin: 8px 0 14px;
    color: var(--text);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 12px;
}

.tag {
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(138, 180, 255, .08);
    color: var(--accent);
    font-size: 12.5px;
}

.about-foot {
    color: var(--dim);
    font-size: 13px;
}

.social-list {
    display: grid;
    gap: 10px;
    margin: 6px 0;
}

.social-card {
    --accent: #8ab4ff;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent), rgba(255, 255, 255, .02));
    color: var(--text) !important;
    text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.social-card:hover {
    transform: translateX(4px);
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
    box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 22%, transparent);
}

.social-icon {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    color: var(--accent);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.social-text b {
    font-size: 15px;
}

.social-text small {
    color: var(--muted);
    font-size: 12.5px;
}

.social-arrow {
    color: var(--muted);
    font-size: 18px;
    transition: transform .2s, color .2s;
}

.social-card:hover .social-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.empty-card {
    text-align: center;
    border-style: dashed;
}

.empty-title { font-weight: 700; }
.empty-sub { margin-top: 4px; color: var(--muted); }

.secrets-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.secrets-count { color: var(--muted); font-weight: 400; }

.secrets-bar {
    height: 4px;
    margin-bottom: 14px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}

.secrets-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width .6s;
}

.secrets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.secret-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px 2px 8px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}

.secret-chip:hover {
    color: var(--text);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.secret-chip.found {
    color: var(--green);
    border-color: rgba(92, 255, 135, .3);
    background: rgba(92, 255, 135, .08);
}

.secret-mark { opacity: .8; }

.secrets-foot {
    margin-top: 12px;
    color: var(--dim);
    font-size: 12.5px;
}

.neofetch {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.neofetch-art {
    flex: none;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.3;
}

.neofetch-title { font-weight: 700; }

.neofetch-rule {
    height: 1px;
    margin: 6px 0 8px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
}

.neofetch-swatches {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.neofetch-swatches i {
    width: 22px;
    height: 12px;
    border-radius: 3px;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 4, 10, .74); /* solid tint instead of a live backdrop blur: much cheaper */
    opacity: 0;
    transition: opacity .22s ease;
}

.overlay.open {
    opacity: 1;
}

.overlay > .window {
    transform: translateY(12px) scale(.97);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.overlay.open > .window {
    transform: none;
}

#gallery-window {
    width: min(920px, calc(100vw - 24px));
    height: min(680px, calc(100dvh - 24px));
    background: var(--panel-solid);
    font-family: var(--sans);
}

#gallery-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
    overscroll-behavior: contain;
}

.gallery-empty {
    padding: 28px 0;
    color: var(--muted);
    text-align: center;
}

.gallery-item {
    display: flex;
    gap: 22px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
    content-visibility: auto;
    contain-intrinsic-size: auto 240px;
}

.gallery-preview-grid {
    flex: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: min(260px, 40vw);
    align-content: start;
}

.gallery-placeholder {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px dashed var(--line-strong);
    color: var(--dim);
    font-size: 13px;
}

.gallery-preview-tile {
    position: relative;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    background: #11142a;
}

.gallery-preview-tile:not(.loaded) {
    background: linear-gradient(110deg, #11142a 30%, #1b2040 50%, #11142a 70%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

.gallery-preview-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s, transform .4s;
}

.gallery-preview-tile.loaded .gallery-preview-media {
    opacity: 1;
}

.gallery-preview-tile:hover .gallery-preview-media {
    transform: scale(1.07);
}

.gallery-preview-tile:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.play-badge,
.more-badge {
    position: absolute;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.play-badge {
    inset: 0;
    margin: auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .4);
    font-size: 14px;
    padding-left: 3px;
}

.more-badge {
    inset: 0;
    background: rgba(4, 5, 12, .62);
    font-size: 22px;
    font-weight: 700;
}

.gallery-info {
    min-width: 0;
    padding-top: 4px;
}

.gallery-info h2 {
    margin-bottom: 6px;
    font-size: 22px;
}

.gallery-date { margin-bottom: 6px; color: var(--dim); font-size: 13px; }
.gallery-description { color: var(--accent); font-size: 14px; }
.gallery-about { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }

#lightbox {
    z-index: 60;
    background: rgba(2, 3, 8, .95);
}

#lightbox-viewport {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.lightbox-media {
    max-width: min(94vw, 1500px);
    max-height: calc(100dvh - 150px);
    border-radius: 10px;
    box-shadow: 0 0 60px rgba(120, 150, 255, .12);
    transform-origin: center;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.lightbox-media.dragging { cursor: grabbing; }
.lightbox-media.animating { transition: transform .22s cubic-bezier(.2, .8, .2, 1); }

video.lightbox-media {
    cursor: auto;
    background: #000;
}

.lightbox-spinner {
    display: none;
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .12);
    border-top-color: var(--accent);
    animation: spin .8s linear infinite;
}

#lightbox-viewport.loading .lightbox-spinner { display: block; }

.lightbox-error {
    display: none;
    position: absolute;
    color: var(--muted);
}

#lightbox-viewport.failed .lightbox-error { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

#lightbox-prev,
#lightbox-next,
#lightbox-close {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

#lightbox-prev:hover,
#lightbox-next:hover,
#lightbox-close:hover {
    background: rgba(255, 255, 255, .18);
}

#lightbox-prev,
#lightbox-next {
    top: 50%;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    font-size: 22px;
}

#lightbox-prev { left: 28px; }
#lightbox-next { right: 28px; }

#lightbox-close {
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
}

#lightbox-ui {
    position: absolute;
    bottom: 26px;
    left: 50%;
    z-index: 2;
    max-width: min(90vw, 700px);
    transform: translateX(-50%);
    text-align: center;
    font-family: var(--mono);
    pointer-events: none;
}

#lightbox-caption { margin-bottom: 6px; font-size: 15px; line-height: 1.45; text-shadow: 0 1px 8px #000; }
#lightbox-counter { opacity: .6; font-size: 13px; }

#profile-window {
    width: min(600px, calc(100vw - 24px));
    max-height: min(88dvh, 820px);
    background: #0d0f1d;
    font-family: var(--sans);
}

#profile-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

#profile-loading {
    padding: 70px 30px;
    text-align: center;
    color: #9fa1a5;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    50% { opacity: .45; }
}

#profile-banner {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #5865f2, #1b1d36);
}

#profile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 55%);
}

#profile-top {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: -44px 20px 14px;
}

#profile-avatar-container {
    position: relative;
    width: 92px;
    height: 92px;
    flex: none;
}

#profile-avatar {
    display: block;
    color: transparent;
    font-size: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid #0d0f1d;
    background: #2b2d31;
    object-fit: cover;
    box-shadow: 0 0 18px rgba(0, 0, 0, .35);
    user-select: none;
    -webkit-user-drag: none;
}

#profile-decoration {
    position: absolute;
    inset: -8px;
    width: 108px;
    height: 108px;
    display: none;
    pointer-events: none;
}

#profile-status-dot {
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid #0d0f1d;
    background: #80848e;
    transition: background .3s;
}

#profile-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
}

.badge {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: .94;
    transition: transform .18s, opacity .18s;
}

.badge:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.badge-fallback {
    display: grid;
    place-items: center;
    font-size: 17px;
    line-height: 1;
}

#profile-names {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 0 22px;
    margin-bottom: 18px;
}

#profile-display-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

#profile-username-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#profile-username {
    color: #9fa1a5;
    font-size: 15px;
}

#profile-guild-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: #dcddde;
    font-size: 12px;
    font-weight: 700;
}

#profile-guild-tag img {
    width: 14px;
    height: 14px;
}

#profile-custom-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin-top: 8px;
    padding: 7px 13px;
    border-radius: 14px 14px 14px 4px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .07);
    font-size: 14px;
    line-height: 1.3;
}

.custom-emoji {
    flex: none;
    width: 20px;
    height: 20px;
    object-fit: contain;
    font-size: 18px;
    line-height: 20px;
    text-align: center;
}

.custom-text {
    overflow-wrap: anywhere;
}

#profile-status {
    --status: #80848e;
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .06);
    color: var(--status);
    font-size: 13px;
}

#profile-status::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--status);
    box-shadow: 0 0 8px var(--status);
}

.profile-divider {
    width: calc(100% - 44px);
    height: 1px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .06);
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 24px;
}

.profile-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8e8e8e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

#profile-activity-count {
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(138, 180, 255, .14);
    color: var(--accent);
    letter-spacing: 0;
    text-transform: none;
}

#profile-about {
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

#profile-activity {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 12px;
    background: #181a2c;
    border: 1px solid rgba(255, 255, 255, .06);
    transition: background .18s, border-color .18s;
}

.activity-card:hover {
    background: #1d2035;
    border-color: rgba(255, 255, 255, .1);
}

.activity-card.empty {
    justify-content: center;
    text-align: center;
}

.activity-card.spotify {
    border-color: rgba(29, 185, 84, .22);
}

.activity-assets {
    position: relative;
    flex: none;
    width: 72px;
    height: 72px;
}

.activity-large {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: #11121f;
    box-shadow: 0 0 12px rgba(0, 0, 0, .35);
}

.activity-small {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #181a2c;
    background: #181a2c;
    object-fit: cover;
}

.activity-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.activity-app {
    margin-bottom: 5px;
    color: #949ba4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.activity-title {
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.activity-title:hover { text-decoration: underline; }

.activity-details,
.activity-extra {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-details { margin-top: 3px; color: #dcddde; font-size: 14px; }
.activity-extra { margin-top: 2px; color: #949ba4; font-size: 13px; }

.activity-timestamp {
    margin-top: 6px;
    color: #8e9297;
    font-size: 12px;
}

.activity-timestamp .clock {
    color: #b5bac1;
    font-variant-numeric: tabular-nums;
}

.activity-progress-container { margin-top: 12px; }

.activity-progress-bar {
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: #343650;
}

.activity-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width 1s linear;
}

.activity-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: #949ba4;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

#profile-devices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.device {
    padding: 8px 14px;
    border-radius: 999px;
    background: #181a2c;
    border: 1px solid rgba(255, 255, 255, .05);
    color: #dcddde;
    font-size: 13px;
}

#profile-created {
    color: #dcddde;
    font-size: 14px;
}

#profile-id-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#profile-id {
    flex: 1;
    overflow: hidden;
    color: #b5bac1;
    font-family: var(--mono);
    font-size: 14px;
    text-overflow: ellipsis;
}

#copy-id {
    min-width: 96px;
    padding: 8px 16px;
    border: 0;
    border-radius: 8px;
    background: #5865f2;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background .18s, transform .18s;
}

#copy-id:hover { background: #4752c4; transform: translateY(-1px); }
#copy-id:active { transform: scale(.96); }

#profile-window ::selection {
    background: #5865f2;
    color: #fff;
}

@media (max-width: 640px) {
    #terminal-body { padding: 14px 14px 20px; font-size: 13.5px; }
    .banner { font-size: 10.5px; }
    .about-card,
    .neofetch { flex-direction: column; gap: 14px; }
    .help-grid { grid-template-columns: 1fr; gap: 2px; }
    .help-grid .command-description { margin: 0 0 8px 2px; }

    .gallery-item { flex-direction: column; gap: 14px; }
    .gallery-preview-grid { width: 100%; }

    #lightbox-prev { left: 10px; }
    #lightbox-next { right: 10px; }
    #lightbox-prev,
    #lightbox-next { width: 44px; height: 44px; margin-top: -22px; }

    .profile-section { padding: 16px 18px; }
    #profile-names { padding: 0 18px; }
    #profile-top { margin-left: 16px; margin-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .ring > i,
    .sheen::after,
    .reveal,
    .about-logo-star,
    #t-cursor {
        animation: none !important;
    }

    .about-logo-line { animation: none; stroke-dashoffset: 0; }
    .overlay,
    .overlay > .window { transition: none; }
}
