@import url("./scrollbar.css");

@font-face {
    font-family: 'Inter';
    src: url("/files/font/inter/reg.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url("/files/font/inter/italic.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

body {
    background-color: #0a0014;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    text-align: center;
    cursor: default;
}

body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-bottom: env(safe-area-inset-bottom);
}

img,
video {
    max-width: 100%;
    height: auto;
}

#bgstars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(27, 0, 26, 0.8);
    z-index: 1;
    cursor: default;
}

nav ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

nav li {
    display: inline;
    margin: 0 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
}

main {
    width: 80%;
    max-width: none;
    margin-top: 100px;
    margin-left: clamp(16px, 8vw, 120px);
    margin-right: auto;
    margin-bottom: 24px;
    padding: 24px 28px;
    background: rgba(129, 129, 129, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    text-align: left;
    backdrop-filter: blur(6px);
}

section {
    margin-bottom: 60px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

p {
    font-size: 1.2em;
    line-height: 1.6;
}

.projects ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 0;
    margin: 12px 0 0;
}

.projects li {
    margin: 0;
    font-size: 1rem;
}

.projects a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    color: #cbd5e1;
    text-decoration: none;
}

.projects li i {
    color: #b6c2ff;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    main {
        width: 92%;
        margin-left: 4%;
        margin-right: 4%;
        padding: 20px 22px;
    }

    main,
    main * {
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    main {
        width: 96%;
        margin-left: 2%;
        margin-right: 2%;
        padding: 16px 18px;
        margin-top: 72px;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1.05em;
    }

    #projects a,
    .projects a {
        padding: 10px 12px;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

    .song-shuffle {
        font-size: 1.1em;
    }
}

ul {
    list-style: none;
    margin-bottom: 8px;
}

#clocks .clocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

#clocks .clock-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    color: #cbd5e1;
}

#clocks .clock-item[title] {
    cursor: help;
}

#clocks .clock-item i {
    color: #b6c2ff;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

#clocks .clock-item span {
    margin-left: auto;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.4px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (max-width: 480px) {
    .clocks .clock-item {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .clocks .clock-item span {
        margin-left: 0;
        align-self: stretch;
        text-align: center;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 2em 0;
    flex-wrap: wrap;
    user-select: none;
    --webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-links a,
.song-shuffle {
    font-size: 1.4em;
    font-weight: 700;
    padding: 0.5em 1em;
    border-radius: 8px;
    background: #1a1f3b;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.08s ease;
    display: inline-flex;
    gap: 10px;
    border: none;
    cursor: pointer;
    align-items: center;
}

.song-shuffle {
    font-size: 1rem;
    padding: 0.4em 0.9em;
    gap: 8px;
}

@media (max-width: 640px) {
    .nav-links {
        gap: 0.75rem;
    }
    .nav-links a,
    .song-shuffle {
        font-size: 1.2em;
        padding: 0.45em 0.9em;
    }
}

.presence .dc-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.presence .dc-avatar-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: visible;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.2);
    will-change: transform;
    transform: translateZ(0);
}

.presence .dc-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.presence .dc-avatar-deco {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(var(--deco-scale, 1));
    transform-origin: center center;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.presence .dc-ident {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.presence .dc-name {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
}

.presence .dc-handle {
    color: #b6c2ff;
    font-size: 0.95rem;
}

.presence .dc-sub .sub {
    display: block;
}

.presence .dc-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.presence .dc-status {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
}

.presence .dc-right .fa-discord {
    color: #b6c2ff;
    font-size: 1.2rem;
}


@media (max-width: 480px) {
    .presence .dc-card {
        grid-template-columns: 48px 1fr auto;
        gap: 10px;
        padding: 10px 12px;
    }

    .presence .dc-avatar-wrap {
        width: 48px;
        height: 48px;
    }
}

a,
a:visited {
    color: #fff;
}

.current {
    color: #f1ff31;
    font-weight: bold;
}

.site-brand {
    font-size: 0.75rem;
    opacity: 0.8;
    user-select: none;
}

.site-brand a {
    text-decoration: none;
}
