:root {
    --bg: #1a1a1a;
    --text-main: #ffffff;
    --text-dim: #777777;
    --text-soft: #5f5f5f;
    --border: #2a2a2a;
    --accent: #93a9be;
    --wave-line-1: rgba(255, 255, 255, 0.14);
    --wave-line-2: rgba(255, 255, 255, 0.11);
    --wave-line-3: rgba(255, 255, 255, 0.09);
    --wave-line-4: rgba(255, 255, 255, 0.075);
    --wave-line-5: rgba(255, 255, 255, 0.06);
    --wave-line-6: rgba(255, 255, 255, 0.05);
}

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

.material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    min-width: 1em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: normal;
    font-style: normal;
    font-weight: normal;
    visibility: hidden;
}

a:focus-visible,
button:focus-visible,
.resource-main:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

html.icons-ready .material-symbols-outlined {
    visibility: visible;
}

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    padding: 84px 24px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    isolation: isolate;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle 380px at 16% 14%, rgba(135, 206, 250, 0.22) 0%, rgba(135, 206, 250, 0.15) 42%, rgba(135, 206, 250, 0) 100%);
    filter: blur(72px) saturate(1.1);
    opacity: 0.5;
    animation: frosted-float-a 24s ease-in-out infinite alternate;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle 380px at 84% 82%, rgba(135, 206, 250, 0.2) 0%, rgba(135, 206, 250, 0.12) 42%, rgba(135, 206, 250, 0) 100%);
    filter: blur(72px) saturate(1.1);
    opacity: 0.45;
    animation: frosted-float-b 28s ease-in-out infinite alternate;
}

@keyframes frosted-float-a {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(34px, 22px, 0);
    }

    100% {
        transform: translate3d(-18px, 40px, 0);
    }
}

@keyframes frosted-float-b {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-30px, -20px, 0);
    }

    100% {
        transform: translate3d(16px, -38px, 0);
    }
}

.container {
    width: 100%;
    max-width: 750px;
    z-index: 2;
}

header {
    margin-bottom: 56px;
    padding: 22px 22px 18px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
}

.name-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 8px;
}

h1 {
    font-size: 3.25rem;
    font-weight: 650;
    letter-spacing: -2px;
    color: #f4f4f4;
}

.alias {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.location span {
    font-size: 18px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 350;
    color: #d2d2d2;
    max-width: 650px;
}

.about-sub {
    display: block;
    margin-top: 6px;
    color: #9f9f9f;
    font-size: 0.95rem;
}

.info-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 68px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    color: var(--text-soft);
}

.value-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #eee;
}

.lang-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.interests-value {
    font-size: 1rem;
    color: #eee;
    font-weight: 400;
    padding-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.interest-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #dbe4ef;
    border: 1px solid #3a3a3a;
    background: rgba(147, 169, 190, 0.08);
    padding: 4px 8px;
    letter-spacing: 0.01em;
}

.interest-join {
    color: #738295;
    font-size: 0.82rem;
    font-family: 'JetBrains Mono', monospace;
}

.resources-section {
    margin-bottom: 96px;
}

.section-icon {
    font-size: 14px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-soft);
    margin-bottom: 18px;
}

.resource-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-btn {
    border: 1px solid var(--border);
    background: #1f1f1f;
    color: var(--text-dim);
    padding: 4px 10px;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.filter-btn.active {
    border-color: #4a5767;
    color: #dde7f2;
    background: #242a32;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.resource-item {
    background: var(--bg);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    position: relative;
    overflow: visible;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.resource-item:hover {
    background: #212121;
    transform: translateY(-1px);
    border-color: #3a3a3a;
}

.resource-main {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    display: block;
}

.res-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.res-name {
    font-weight: 600;
    font-size: 1rem;
    color: #ececec;
}

.res-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 2px 6px;
}

.res-type.type-hpp {
    border-color: rgba(132, 154, 198, 0.5);
    color: #b4c3df;
    background: rgba(132, 154, 198, 0.08);
}

.res-type.type-luau {
    border-color: rgba(125, 176, 159, 0.52);
    color: #abd8c8;
    background: rgba(125, 176, 159, 0.08);
}

.res-top {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.res-updated {
    width: 100%;
    margin-top: -2px;
    color: #8f8f8f;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.res-tooltip {
    position: absolute;
    left: 12px;
    bottom: calc(100% + 8px);
    width: min(420px, 62vw);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    border: 1px solid #3a3a3a;
    background: #1a1a1a;
    padding: 10px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #a8b2bf;
    line-height: 1.45;
    z-index: 6;
    white-space: pre-wrap;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.resource-main:hover .res-tooltip,
.resource-main:focus-visible .res-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.resource-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
}

.docs-btn {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #3a3a3a;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.docs-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(147, 169, 190, 0.08);
}

.copy-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #3a3a3a;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.copy-btn .material-symbols-outlined {
    font-size: 16px;
}

.copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(147, 169, 190, 0.08);
}

.res-open-icon {
    color: var(--text-dim);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.res-open-icon .material-symbols-outlined {
    font-size: 19px;
}

.resource-item:hover .res-open-icon {
    color: var(--accent);
    transform: translateX(1px);
    border-color: #3a3a3a;
    background: rgba(147, 169, 190, 0.06);
}

footer {
    padding-top: 40px;
    display: flex;
    justify-content: flex-start;
}

.social-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: 0.2s ease;
    cursor: pointer;
}

.social-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(0.5);
    transition: 0.2s ease;
}

.social-links a:hover {
    color: #fff;
}

.social-links a:hover .social-icon {
    filter: brightness(0) invert(1);
}

.social-links a:hover {
    text-shadow: 0 0 12px rgba(147, 169, 190, 0.18);
}

.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(140px, 34vh, 380px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.4) 62%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.4) 62%, rgba(0, 0, 0, 0) 100%);
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -7px;
}

.parallax {
    animation: none;
}

.parallax>use {
    stroke-linecap: round;
    stroke-dasharray: 10 16;
    vector-effect: non-scaling-stroke;
    animation: flow-wave 6.8s linear infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -0.5s;
    animation-duration: 5.3s;
}

.parallax>use:nth-child(2) {
    animation-delay: -1.1s;
    animation-duration: 5.8s;
}

.parallax>use:nth-child(3) {
    animation-delay: -1.7s;
    animation-duration: 6.3s;
}

.parallax>use:nth-child(4) {
    animation-delay: -2.3s;
    animation-duration: 6.8s;
}

.parallax>use:nth-child(5) {
    animation-delay: -2.9s;
    animation-duration: 7.3s;
}

.parallax>use:nth-child(6) {
    animation-delay: -3.5s;
    animation-duration: 7.8s;
}

@keyframes flow-wave {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -52;
    }
}

@media (max-width: 700px) {
    .wave-container {
        height: clamp(110px, 26vh, 240px);
    }
}

#toast {
    visibility: visible;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.98);
    min-width: 220px;
    max-width: min(92vw, 420px);
    padding: 12px 16px;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.9);
    color: #e8e8e8;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    opacity: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

#toast.success {
    border-color: rgba(120, 180, 135, 0.45);
}

#toast.error {
    border-color: rgba(210, 110, 110, 0.55);
}


.audio-control {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.72);
    color: #cfcfcf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.audio-control:hover {
    background: rgba(34, 34, 34, 0.92);
    color: #ffffff;
    border-color: #3a3a3a;
}

.audio-control.is-active {
    border-color: rgba(147, 169, 190, 0.7);
    color: #dce7f0;
    box-shadow: 0 0 0 2px rgba(147, 169, 190, 0.12);
}

.audio-control .material-symbols-outlined {
    font-size: 22px;
}

.reveal-card {
    opacity: 0;
    transform: translateY(5px);
    animation: rise-in 0.18s ease forwards;
}

.resource-list.reveal-card {
    animation-delay: 0.06s;
}

@keyframes rise-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (prefers-reduced-motion: reduce) {
    .parallax>use {
        animation: none !important;
    }

    .resource-item,
    .docs-btn,
    .copy-btn,
    .res-open-icon,
    .social-links a,
    .social-icon,
    .audio-control {
        transition: none !important;
    }
}

@media (max-width: 700px) {
    body {
        padding: 70px 16px;
        overflow-y: auto;
    }

    header {
        padding: 18px 16px 14px;
        margin-bottom: 40px;
    }

    h1 {
        font-size: 2.65rem;
    }

    .about-sub {
        font-size: 0.9rem;
    }

    .info-bar {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .resource-item {
        padding: 16px;
    }

    .res-tooltip {
        display: none;
    }

    .resource-filters {
        flex-wrap: wrap;
    }

    .audio-control {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
    }
}