:root {
    --bg: #fafafa;
    --card: rgba(255, 255, 255, 0.72);
    --card-solid: rgba(255, 255, 255, 0.9);
    --text: #111;
    --muted: #777;
    --line: #e6e6e6;
    --accent: #111;
    --bubble-opacity: 0.35;
    --graph: rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e0e0f;
        --card: rgba(20, 20, 22, 0.72);
        --card-solid: rgba(20, 20, 22, 0.9);
        --text: #f2f2f2;
        --muted: #8a8a8a;
        --line: #2a2a2d;
        --accent: #fff;
        --bubble-opacity: 0.25;
        --graph: rgba(255, 255, 255, 0.22);
    }
}

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

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-x: hidden;
}

.bubbles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.graph {
    position: absolute;
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
}

.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: auto 0;
    padding: 40px 32px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: fadeIn 0.8s ease both;
}

@media (max-width: 640px), (pointer: coarse) {
    .card {
        background: var(--card-solid);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

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

.hero {
    text-align: center;
    margin-bottom: 32px;
}

.avatar {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    perspective: 600px;
}

.avatar-img,
.avatar-layer,
.avatar canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    background: var(--line);
}

.avatar-layer {
    pointer-events: none;
}

.glitch-r {
    filter: sepia(1) saturate(6) hue-rotate(-40deg);
    mix-blend-mode: screen;
    opacity: 0.8;
}

.glitch-c {
    filter: sepia(1) saturate(6) hue-rotate(150deg);
    mix-blend-mode: screen;
    opacity: 0.8;
}

.name {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.name-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    column-gap: 8px;
}

.handle {
    position: relative;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.handle-text {
    display: inline-block;
}

.handle-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
}

.handle-r {
    color: #ff2d6f;
}

.handle-c {
    color: #00e1ff;
}

.role {
    color: var(--muted);
    font-size: 15px;
}

.lang-switch {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 2px;
    font-size: 12px;
}

.lang-switch a {
    font: inherit;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: none;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a[aria-current="page"] {
    color: var(--text);
}

.block + .block {
    margin-top: 28px;
}

.block-title {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 10px;
}

.block p {
    font-size: 15px;
}

.links {
    list-style: none;
}

.links li {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
}

.links li:first-child {
    border-top: 1px solid var(--line);
}

.links a {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    transition: padding 0.2s ease;
}

.links a > span {
    color: var(--muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.links a:hover {
    padding-left: 6px;
}

.links a:hover > span {
    transform: translateX(4px);
    color: var(--accent);
}

.link-end {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.links a .link-end span {
    transform: none;
}

.link-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    .card { animation: none; }
}
