/* ============================================================
   roster.css v2 — tema "terminal glitch" (acento crimson)
   ============================================================ */

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

:root {
    --bg: #050505;
    --accent: #ff2e43;
    --accent-dim: rgba(255, 46, 67, 0.14);
    --text: #d4d4d4;
    --text-dim: #6f6f6f;
    --line: rgba(255, 255, 255, 0.08);
    --mono: "JetBrains Mono", monospace;
    --grunge: "Special Elite", monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    user-select: none;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

a {
    text-decoration: none;
    color: inherit;
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* ---------------- click to enter ---------------- */

.enter-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-content: center;
    text-align: center;
    cursor: pointer;
    background: rgba(3, 3, 3, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}

.enter-main {
    font-size: 15px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #e6e6e6;
    animation: enterPulse 2.4s ease-in-out infinite;
}

.enter-overlay.gone {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* sessao ja entrou: nem mostra o overlay */
.no-gate .enter-overlay {
    display: none;
}

@keyframes enterPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

/* scanlines + vinheta por cima de tudo */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.022) 0px,
            rgba(255, 255, 255, 0.022) 1px,
            transparent 1px,
            transparent 3px
        ),
        radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------------- status bar ---------------- */

.statusline {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 26px;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    text-transform: lowercase;
    border-bottom: 1px solid var(--line);
    animation: fadeDown 0.8s ease-out both;
}

.statusline .dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 9px;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2.2s ease-in-out infinite;
}

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

/* ---------------- hero ---------------- */

.hero {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 10vh 20px 6vh;
}

.hero h1 {
    font-family: var(--grunge);
    font-weight: 400;
    font-size: clamp(1.4rem, 4.6vw, 2.8rem);
    line-height: 1.35;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #e3e3e3;
    position: relative;
    display: inline-block;
    animation: heroFlicker 6s infinite steps(1);
}

/* glitch tipo tv estatica */
.hero h1::before,
.hero h1::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    white-space: pre-line;
}

.hero h1::before {
    color: var(--accent);
    animation: heroGlitchA 4.2s infinite steps(1);
}

.hero h1::after {
    color: #37e2d5;
    animation: heroGlitchB 4.2s infinite steps(1);
}

@keyframes heroFlicker {
    0%, 100% { opacity: 1; }
    7% { opacity: 1; }
    8% { opacity: 0.75; }
    9% { opacity: 1; }
    37% { opacity: 1; }
    38% { opacity: 0.65; }
    39% { opacity: 0.9; }
    40% { opacity: 1; }
    71% { opacity: 1; }
    72% { opacity: 0.8; }
    73% { opacity: 1; }
}

@keyframes heroGlitchA {
    0%, 91%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
    92% { opacity: 0.85; transform: translate(-4px, 2px); clip-path: inset(12% 0 58% 0); }
    94% { opacity: 0.85; transform: translate(3px, -1px); clip-path: inset(62% 0 8% 0); }
    96% { opacity: 0.85; transform: translate(-2px, 1px); clip-path: inset(38% 0 34% 0); }
    98% { opacity: 0; }
}

@keyframes heroGlitchB {
    0%, 91%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
    93% { opacity: 0.7; transform: translate(4px, -2px); clip-path: inset(48% 0 28% 0); }
    95% { opacity: 0.7; transform: translate(-3px, 2px); clip-path: inset(6% 0 76% 0); }
    97% { opacity: 0.7; transform: translate(2px, 0); clip-path: inset(80% 0 2% 0); }
    99% { opacity: 0; }
}

.hero .sub {
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--text-dim);
    animation: fadeDown 1s 0.35s ease-out both;
}

.hero .sub b {
    color: var(--accent);
    font-weight: 400;
}

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

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

/* ---------------- secções ---------------- */

.section {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 24px 70px;
}

.sec-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 11px;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 26px;
}

.sec-label::before,
.sec-label::after {
    content: "";
    height: 1px;
    flex: 1;
}

.sec-label::before {
    background: linear-gradient(90deg, transparent, var(--line));
}

.sec-label::after {
    flex: 1;
    background: linear-gradient(90deg, var(--line), transparent);
}

/* ---------------- owner cards ---------------- */

.owners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.owners-grid .owner-card {
    flex: 0 1 calc((100% - 40px) / 3);
    min-width: 235px;
}

.owner-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 26px;
    background: linear-gradient(160deg, #0c0c0c 0%, #070707 100%);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.7s ease both;
}

/* brilho que atravessa o card no hover */
.owner-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 46, 67, 0.07), transparent);
    transform: skewX(-18deg);
    transition: left 0.6s ease;
}

.owner-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 46, 67, 0.45);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.65),
        0 0 32px var(--accent-dim),
        inset 0 0 24px rgba(255, 46, 67, 0.03);
}

.owner-card:hover::before {
    left: 130%;
}

.owner-avatar {
    position: relative;
    flex-shrink: 0;
    width: 78px;
    height: 78px;
    border-radius: 50%;
}

/* anel sempre a girar */
.owner-avatar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #222 0 78%, var(--accent) 100%);
    animation: spinRing 5s linear infinite;
}

.owner-avatar img {
    position: absolute;
    inset: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 50%;
    object-fit: cover;
    background: #111;
}

.owner-info {
    min-width: 0;
}

.owner-name {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #f1f1f1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.owner-card:hover .owner-name {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(255, 46, 67, 0.35);
}

.owner-role {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
}

.owner-open {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--text-dim);
    font-size: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.owner-card:hover .owner-open {
    color: #fff;
    transform: translateX(6px);
}

/* ---------------- footer ---------------- */

.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px 20px 42px;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #4b4b4b;
}

.footer b {
    color: var(--accent);
    font-weight: 400;
}

/* ---------------- perfil inline (mesma pagina) ---------------- */

.profile-view {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30;
}

.profile-view.open {
    display: block;
}

body.in-profile {
    overflow: hidden;
}

body.in-profile .statusline,
body.in-profile .hero,
body.in-profile .section,
body.in-profile .footer {
    display: none;
}

/* ---------------- perfil ---------------- */

.profile-body {
    overflow: hidden;
}

.back-btn {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 10;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: #cfcfcf;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.back-btn:hover {
    border-color: var(--accent);
    color: #ffffff;
    transform: translateX(-3px);
    box-shadow: 0 0 22px var(--accent-dim);
}

.stage {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.pcard {
    width: min(480px, 92vw);
    padding: 54px 36px 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(165deg, rgba(13, 13, 13, 0.82), rgba(7, 7, 7, 0.88));
    border: 1px solid var(--line);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
    animation: cardIn 0.8s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(34px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pavatar-wrap {
    position: relative;
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
}

/* halo vermelho atrás */
.pavatar-wrap::before {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 68%);
    animation: pulseHalo 3.2s ease-in-out infinite;
}

@keyframes pulseHalo {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

/* anel a girar */
.pavatar-ring {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 72%, var(--accent) 100%);
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    animation: spinRing 5s linear infinite;
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pavatar {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #111;
}

.ptier {
    margin-top: 24px;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
}

.pusername {
    margin-top: 12px;
    font-family: var(--grunge);
    font-weight: 400;
    font-size: clamp(2rem, 8vw, 2.9rem);
    letter-spacing: 0.12em;
    color: #f3f3f3;
    word-break: break-word;
    line-height: 1.15;
    transition: text-shadow 0.3s ease;
}

.pusername:hover {
    text-shadow: 0 0 26px rgba(255, 46, 67, 0.45);
}

.ptagline {
    margin-top: 14px;
    min-height: 20px;
    font-size: 13px;
    letter-spacing: 0.18em;
    color: #8f8f8f;
}

.typed-cursor {
    color: var(--accent);
}

.plinks {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.plink {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    font-size: 21px;
    color: #dcdcdc;
    background: #0c0c0c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.plink::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 46, 67, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.plink:hover {
    border-color: rgba(255, 46, 67, 0.6);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 22px var(--accent-dim);
}

.plink:hover::after {
    opacity: 1;
}

/* ---------------- responsive ---------------- */

@media only screen and (max-width: 820px) {
    .owners-grid .owner-card {
        flex-basis: 100%;
    }
}

@media only screen and (max-width: 520px) {
    .statusline {
        padding: 14px 16px;
        font-size: 10px;
    }
    .back-btn {
        top: 14px;
        left: 14px;
        width: 40px;
        height: 40px;
    }
}
