@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

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

:root {
    --bg: #0a0d14;
    --surface: #111827;
    --card: #1a2235;
    --border: #1f2d45;
    --accent: #3b82f6;
    --accent2: #6366f1;
    --text: #e2e8f0;
    --muted: #64748b;
    --green: #10b981;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    animation: drift 12s ease-in-out infinite alternate;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #3b82f6, transparent);
    top: -200px;
    left: -200px;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1, transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: -6s;
}

@keyframes drift {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(60px, 40px) scale(1.1);
    }
}

.wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header {
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, .12);
    border: 1px solid rgba(16, 185, 129, .3);
    color: var(--green);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 1.2rem;
}

.badge::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -.02em;
    background: linear-gradient(135deg, #e2e8f0 30%, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
}

.subtitle {
    margin-top: .6rem;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 300;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width:560px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
    transition: border-color .25s, transform .25s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.card-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5rem;
}

.card-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.card-value.mono {
    font-family: "Courier New", monospace;
    font-size: .9rem;
    color: #93c5fd;
}

.section-title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .8rem;
}

.endpoints {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.ep {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .88rem;
}

.method {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 2px 7px;
    border-radius: 5px;
    min-width: 36px;
    text-align: center;
}

.get {
    background: rgba(59, 130, 246, .2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, .3);
}

.post {
    background: rgba(16, 185, 129, .2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, .3);
}

.put {
    background: rgba(245, 158, 11, .2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, .3);
}

.delete {
    background: rgba(239, 68, 68, .2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, .3);
}

.path {
    color: #cbd5e1;
    font-family: "Courier New", monospace;
}

.ep-desc {
    color: var(--muted);
    margin-left: auto;
    font-size: .8rem;
}

.devs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.discord-card {
    grid-column: 1 / -1;
}

@media (max-width:560px) {
    .devs {
        grid-template-columns: 1fr;
    }
}

.discord-card {
    grid-column: 1 / -1;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.discord-banner-wrap {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.discord-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    display: block;
}

.discord-body {
    position: relative;
    padding: 0 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* was flex-start — this was starving the bio box's width */
}

.discord-avatar-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin-top: -50px;
    flex-shrink: 0;
}

.discord-avatar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--card);
    background: var(--card);
    overflow: hidden;
}

.discord-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discord-decoration {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 10;
}

.discord-status-dot {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--muted);
    border: 3px solid var(--card);
    z-index: 11;
    transition: background .3s;
}

.discord-status-dot.online { background: var(--green); }
.discord-status-dot.idle { background: #f5a623; }
.discord-status-dot.dnd { background: #ef4444; }
.discord-status-dot.offline { background: var(--muted); }

.discord-names {
    margin-top: .7rem;
}

.discord-display-name {
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
}

.discord-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-top: .3rem;
}

.discord-username {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
}

.discord-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 8px 2px 4px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--text);
}

.discord-tag-badge {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.discord-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.discord-badge-item {
    position: relative;
    display: inline-flex;
    width: 20px;
    height: 20px;
}

.discord-badge-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.discord-badge-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0b0e17;
    color: var(--text);
    font-size: .72rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 20;
}

.discord-badge-item::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #0b0e17;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 20;
}

.discord-badge-item:hover::after,
.discord-badge-item:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.discord-divider {
    width: 100%;
    height: 1px;
    margin: 1rem 0 .9rem;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.discord-bio-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5rem;
}

.discord-bio {
    padding: .7rem .9rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    white-space: pre-wrap;
}

footer {
    text-align: center;
    color: var(--muted);
    font-size: .78rem;
}

footer span {
    color: var(--accent);
}