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

:root {
    --white: #ffffff;
    --off-white: rgba(255, 255, 255, 0.88);
    --dim: rgba(255, 255, 255, 0.38);
    --dimmer: rgba(255, 255, 255, 0.2);
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.25);
}

html {
    scrollbar-width: none;
    overflow: hidden;
    height: 100%;
}

html::-webkit-scrollbar { display: none; }

body {
    font-family: 'DM Mono', monospace;
    overflow: hidden;
    background: #000000;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
}


#shader-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        radial-gradient(ellipse 120% 50% at 50% 100%, rgba(0,0,0,0.82) 0%, transparent 65%),
        radial-gradient(ellipse 80% 35% at 50% 0%, rgba(0,0,0,0.5) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 0% 50%, rgba(0,0,0,0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 100% 50%, rgba(0,0,0,0.3) 0%, transparent 60%);
}

/* ── Enter screen ── */
#enter-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#enter-screen.hiding {
    pointer-events: none;
}

#enter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

#enter-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(80px, 14vw, 140px);
    color: var(--white);
    letter-spacing: -0.05em;
    line-height: 0.9;
    opacity: 0;
    transform: translateY(16px);
    animation: enterLogoIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards, logoGlow 4s ease-in-out 1.3s infinite;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

@keyframes enterLogoIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

#enter-logo.exit {
    animation: enterLogoExit 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    transition: none !important;
}

@keyframes enterLogoExit {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(16px); }
}

#enter-btn {
    font-family: 'DM Mono', monospace;
    font-size: clamp(11px, 1.6vw, 13px);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 13px 32px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    animation: enterBtnIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

#enter-btn::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    clip-path: inset(0 100% 0 0);
    animation: btnGlitch 7s ease-in-out infinite;
    letter-spacing: inherit;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    padding: inherit;
}

@keyframes btnGlitch {
    0%, 88%  { clip-path: inset(0 100% 0 0); transform: translate(0); opacity: 1; }
    89%      { clip-path: inset(30% 0 55% 0); transform: translate(-2px); opacity: 0.9; }
    90%      { clip-path: inset(55% 0 20% 0); transform: translate(2px);  opacity: 0.8; }
    91%      { clip-path: inset(20% 0 60% 0); transform: translate(-1px); opacity: 0.95; }
    92%      { clip-path: inset(0 100% 0 0);  transform: translate(0);    opacity: 1; }
    94%      { clip-path: inset(40% 0 40% 0); transform: translate(1px);  opacity: 0.85; }
    95%      { clip-path: inset(0 100% 0 0);  transform: translate(0);    opacity: 1; }
    100%     { clip-path: inset(0 100% 0 0);  transform: translate(0);    opacity: 1; }
}

@keyframes enterBtnIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

#enter-btn:hover {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.09);
    transform: translateY(-2px);
}

#enter-btn:active {
    transform: translateY(0px) scale(0.97);
    transition: transform 0.1s ease;
}

#enter-btn.exit {
    animation: enterBtnExit 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    transition: none !important;
}

@keyframes enterBtnExit {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(16px); }
}

#enter-screen.exit-fade {
    animation: enterScreenOut 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes enterScreenOut {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

.fade-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    animation: fadeOut 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.container {
    position: relative;
    z-index: 3;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 70px;
    opacity: 0;
    overflow: hidden;
}

.container.entered {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(64px, 12vw, 140px);
    color: var(--white);
    letter-spacing: -0.05em;
    line-height: 0.9;
    cursor: default;
    margin-bottom: 14px;
    animation: logoFloat 5s ease-in-out infinite, logoGlow 4s ease-in-out infinite;
    will-change: transform;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}

@keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 50px rgba(255,255,255,0.18), 0 0 100px rgba(255,255,255,0.07); }
    50%       { text-shadow: 0 0 70px rgba(255,255,255,0.32), 0 0 140px rgba(255,255,255,0.14); }
}

.info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.info-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.chip-label {
    font-size: 8.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--dimmer);
    font-weight: 400;
}

.chip-value {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 300;
    color: var(--off-white);
    letter-spacing: 0.06em;
    display: inline-block;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.chip-value.flip {
    opacity: 0;
    transform: translateY(-4px) scale(0.85);
}

.divider-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--dimmer);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Bio tabs ── */
.bio-box {
    max-width: 420px;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
    overflow: hidden;
}

.bio-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
}

.bio-tabs::-webkit-scrollbar { display: none; }

.bio-tab {
    flex: 1;
    min-width: 0;
    font-family: 'DM Mono', monospace;
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: var(--dimmer);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 11px 8px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    white-space: nowrap;
    text-align: center;
}

.bio-tab:hover { color: var(--dim); }

.bio-tab.active {
    color: var(--off-white);
    border-bottom-color: rgba(255,255,255,0.5);
}

.bio-panels {
    padding: 20px 22px;
    min-height: 100px;
    position: relative;
}

.bio-panel {
    display: none;
    flex-direction: column;
    gap: 9px;
    opacity: 0;
    transform: translateY(6px);
}

.bio-panel.active {
    display: flex;
    animation: panelIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bio-panel.exit {
    display: flex;
    animation: panelOut 0.15s ease forwards;
}

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

@keyframes panelOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-4px); }
}

.bio-panel p {
    font-size: clamp(11px, 1.5vw, 12.5px);
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* text emphasis levels */
.t-hi  { color: rgba(255,255,255,0.92); font-weight: 400; }
.t-mid { color: rgba(255,255,255,0.68); }
.t-dim { color: rgba(255,255,255,0.3); }

.social-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 420px;
}

.social-box {
    flex: 1;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 16px 16px;
    font-family: 'DM Mono', monospace;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.social-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255,255,255,0);
    transition: background 0.15s ease;
    pointer-events: none;
}

.social-box:active::after,
.social-box.pressing::after {
    background: rgba(255,255,255,0.06);
}

.social-box:hover,
.social-box.hovered {
    transform: translateY(-3px);
}

.social-box.pressing {
    transform: translateY(-1px) scale(0.97);
    transition:
        border-color 0.1s ease,
        background 0.1s ease,
        box-shadow 0.1s ease,
        transform 0.12s cubic-bezier(0.25, 0, 0.5, 1);
}

.social-icon-wrap {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0.55;
    transition: opacity 0.22s ease, color 0.22s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon-wrap svg {
    width: 100%;
    height: 100%;
}

.social-box:hover .social-icon-wrap,
.social-box.hovered .social-icon-wrap {
    opacity: 1;
    transform: scale(1.1);
}

.social-name {
    font-size: clamp(11px, 1.5vw, 12px);
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--dim);
    transition: color 0.22s ease;
    text-transform: lowercase;
}

.social-handle {
    font-size: clamp(9px, 1.2vw, 10px);
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--dimmer);
    transition: color 0.22s ease;
}

.social-box:hover .social-name,
.social-box.hovered .social-name {
    color: var(--off-white);
}

.social-box:hover .social-handle,
.social-box.hovered .social-handle {
    color: var(--dim);
}

#youtube-box:hover,
#youtube-box.hovered {
    background: rgba(255, 35, 35, 0.1);
    border-color: rgba(255, 60, 60, 0.3);
    box-shadow: 0 6px 24px rgba(220, 0, 0, 0.15);
}

#youtube-box:hover .social-name,
#youtube-box.hovered .social-name { color: #ffaaaa; }
#youtube-box:hover .social-icon-wrap,
#youtube-box.hovered .social-icon-wrap { color: #ffaaaa; }

#steam-box:hover,
#steam-box.hovered {
    background: rgba(100, 155, 220, 0.1);
    border-color: rgba(120, 170, 230, 0.3);
    box-shadow: 0 6px 24px rgba(70, 120, 200, 0.15);
}

#steam-box:hover .social-name,
#steam-box.hovered .social-name { color: #a8c8ff; }
#steam-box:hover .social-icon-wrap,
#steam-box.hovered .social-icon-wrap { color: #a8c8ff; }

#discord-box {
    color: inherit;
}

#discord-box:hover,
#discord-box.hovered {
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(110, 125, 255, 0.3);
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.18);
}

#discord-box:hover .social-name,
#discord-box.hovered .social-name { color: #b0b8ff; }
#discord-box:hover .social-icon-wrap,
#discord-box.hovered .social-icon-wrap { color: #b0b8ff; }

#discord-box.copied {
    border-color: rgba(100, 220, 130, 0.4);
    background: rgba(60, 180, 90, 0.1);
    box-shadow: 0 6px 24px rgba(60, 180, 90, 0.15);
}

#discord-box.copied .social-name { color: #90e0a0; }
#discord-box.copied .social-icon-wrap { color: #90e0a0; }

footer {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    font-family: 'DM Mono', monospace;
    font-size: 9.5px;
    font-weight: 300;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.15);
    white-space: nowrap;
    pointer-events: none;
}

/* ── Language toggle ── */
#lang-btn {
    position: fixed;
    bottom: 16px;
    right: 20px;
    z-index: 10;
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.28);
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    text-transform: lowercase;
}

#lang-btn:hover { color: rgba(255,255,255,0.55); }

/* text fade for language switch */
.lang-fade {
    transition: opacity 0.2s ease;
}

.lang-fade.fading { opacity: 0; }

@media (max-width: 480px) {
    .container { padding: 16px 14px 60px; gap: 0; }
    .logo { margin-bottom: 10px; }
    .info-row { gap: 12px; margin-bottom: 16px; }
    .bio-box { margin-bottom: 16px; }
    .social-row { flex-direction: row; flex-wrap: nowrap; max-width: 100%; gap: 8px; }
    .social-box { min-width: 0; flex: 1; flex-direction: column; gap: 6px; padding: 12px 8px; }
    footer {
        position: fixed;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 8px;
        white-space: nowrap;
    }
    #lang-btn { bottom: 14px; font-size: 11.5px; }
}

@media (pointer: fine) {
    * { cursor: none !important; }

    #cursor-dot {
        position: fixed;
        top: 0; left: 0;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(220, 220, 220, 0.85);
        box-shadow: 0 0 8px 3px rgba(200, 200, 200, 0.25), 0 0 20px 6px rgba(180, 180, 180, 0.1);
        pointer-events: none;
        z-index: 999999;
        transform: translate(-50%, -50%);
        animation: cursorPulse 3s ease-in-out infinite;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        will-change: left, top;
    }

    #cursor-ring { display: none; }

    @keyframes cursorPulse {
        0%, 100% { box-shadow: 0 0 8px 3px rgba(200, 200, 200, 0.25), 0 0 20px 6px rgba(180, 180, 180, 0.1); }
        50%       { box-shadow: 0 0 12px 5px rgba(200, 200, 200, 0.35), 0 0 28px 9px rgba(180, 180, 180, 0.15); }
    }

    #cursor-dot.clicking {
        transform: translate(-50%, -50%) scale(0.45) !important;
        transition: transform 0.08s ease;
    }
}
