/* Trix Client — visual do site (página inicial, status, páginas legais e suporte).
   Uma folha só, sem depender dos CSS antigos (styles.css, hero.css, navbar.css, minimal.css, refresh.css,
   client-showcase.css, site-theme.css e site-polish.css continuam na pasta para as cópias antigas).
   Mesmo visual da loja: tema "Trix Escuro" do client, plano, com cantos de 4 px em painéis e 3 px em controles. */

:root {
    /* Todas as cores do site saem daqui. Valores copiados do :root da loja (trixstore-nextjs/app/globals.css). */
    --page: #1d1d1d;
    --well: #171717;
    --line: #303030;
    --raise: #262626;
    --raise-hover: #2e2e2e;
    --active: #333333;
    --text: #f2f2f2;
    --text-2: #a8a8a8;
    --text-3: #8a8a8a;
    --white: #fff;
    --blue: #245be8;
    --blue-hover: #2f68f2;
    --blue-press: #1f50cf;
    --blue-text: #8fadf7;
    --blue-soft: rgba(36, 91, 232, 0.18);
    --ok: #2df06f;
    --ok-text: #8fe0b4;
    --warn: #e2aa58;
    --danger-text: #f39aa5;
    --scrollbar: #3d3d3d;
    --bevel: inset 0 2px 0 #ffffff33, inset 0 -3px 0 #00000052;
    --hud-box: rgba(0, 0, 0, 0.45);
    --key-off: rgba(0, 0, 0, 0.5);
    --key-on: rgba(255, 255, 255, 0.9);
    --radius: 4px;
    --radius-sm: 3px;
    --container: 1200px;
    --gutter: 20px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --font: Poppins, "Segoe UI", Arial, sans-serif;
    color-scheme: dark;
}
/* Fundo do launcher: para usar, tire este bloco do comentário e troque o theme-color no <head> das páginas.
:root {
    --page: #10151d;
    --well: #0c1017;
    --line: #2a3240;
    --raise: #1a212c;
    --raise-hover: #222a36;
    --active: #2a3340;
    --scrollbar: #36404f;
}
*/
@media (max-width: 640px) {
    :root {
        --gutter: 16px;
    }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-color: var(--scrollbar) var(--page);
}
body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    background: var(--page);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img,
svg {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
h1,
h2,
h3,
p,
ul,
figure {
    margin: 0;
}
ul {
    padding: 0;
    list-style: none;
}
button {
    font: inherit;
    color: inherit;
}
::selection {
    background: var(--blue);
    color: var(--white);
}
:focus-visible {
    outline: 2px solid var(--blue-text);
    outline-offset: 3px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.icon,
.head-icon,
.mod-icon,
.mod-star,
.mod-gear svg {
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon {
    width: 18px;
    height: 18px;
}
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
    translate: 0 -160%;
    transition: translate 0.2s var(--ease);
}
.skip-link:focus-visible {
    translate: 0 0;
}

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s var(--ease);
}
.btn:active {
    transform: translateY(1px);
}
.btn-lg {
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
}
.btn-sm {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
}
/* Principal com o relevo do launcher, secundário liso: os mesmos botões da loja. */
.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: var(--bevel);
}
.btn-primary:hover {
    background: var(--blue-hover);
}
.btn-primary:active {
    background: var(--blue-press);
}
.btn-flat {
    background: var(--raise);
    color: var(--text);
}
.btn-flat:hover {
    background: var(--raise-hover);
}
.btn-flat:active {
    background: var(--active);
}
.icon-fill {
    width: 17px;
    height: 17px;
}
/* A seta do download "cai" no hover, como um arquivo descendo. */
.hero-download-btn:hover .btn-arrow,
.hero-download-btn:focus-visible .btn-arrow {
    animation: arrow-drop 1.1s var(--ease) infinite;
}
@keyframes arrow-drop {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    45% {
        transform: translateY(10px);
        opacity: 0;
    }
    46% {
        transform: translateY(-10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
.icon-btn {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--raise);
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.2s ease,
        border-color 0.2s ease;
}
.icon-btn:hover {
    background: var(--raise-hover);
}
.icon-btn .icon {
    width: 20px;
    height: 20px;
}

/* ---------- Navegação: barra plana, na mesma coluna do conteúdo ---------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    padding: 0 var(--gutter);
    border-bottom: 1px solid transparent;
    transition: 
        background-color 0.25s ease,
        border-color 0.25s ease;
}
.nav-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: var(--container);
    height: 64px;
    margin: 0 auto;
    padding: 0;
}
/* Sobre o hero a barra fica transparente; ao rolar (ou com o menu aberto) fica sólida. */
.site-nav.scrolled,
.site-nav.is-solid,
.site-nav.menu-open {
    border-bottom-color: var(--line);
    background: var(--page);
}
.nav-brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.nav-brand img {
    width: 17px;
    height: 28px;
}
.nav-links {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    gap: 4px;
    translate: -50% -50%;
}
.nav-links a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease,
        background-color 0.2s ease;
}
.site-nav:not(.scrolled):not(.is-solid) .nav-links a {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    color: var(--text);
}
.nav-links a:hover,
.nav-links a.is-active {
    color: var(--text);
}
.nav-links a.is-active {
    background: var(--active);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.nav-download .icon {
    width: 17px;
    height: 17px;
    stroke-width: 2;
}
.nav-toggle {
    display: none;
}
.nav-toggle-bars {
    display: grid;
    gap: 5px;
    width: 18px;
}
.nav-toggle-bars i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
        transform 0.25s var(--ease),
        opacity 0.2s ease;
}
.site-nav.menu-open .nav-toggle-bars i:first-child {
    transform: translateY(3.5px) rotate(45deg);
}
.site-nav.menu-open .nav-toggle-bars i:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}
@media (max-width: 860px) {
    .nav-bar {
        height: 58px;
    }
    .nav-toggle {
        display: grid;
    }
    .nav-links {
        top: calc(100% + 6px);
        right: 0;
        left: 0;
        flex-direction: column;
        gap: 2px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--well);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        translate: 0 -6px;
        transition: opacity 0.2s ease,
            translate 0.25s var(--ease),
            visibility 0s linear 0.25s;
    }
    .site-nav.menu-open .nav-links {
        opacity: 1;
        visibility: visible;
        translate: 0 0;
        transition:
            opacity 0.2s ease,
            translate 0.25s var(--ease);
    }
    .nav-links a {
        width: 100%;
        height: 46px;
        padding: 0 12px;
        border-radius: var(--radius-sm);
        font-size: 15px;
        text-shadow: none !important;
    }
    .nav-links a:hover,
    .nav-links a.is-active {
        background: var(--active);
    }
}
@media (max-width: 359px) {
    .nav-download span {
        display: none;
    }
    .nav-download {
        width: 38px;
        padding: 0;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 120px var(--gutter) 150px;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--page) url("/assets/site/hero-bg.webp") 50% 50% / cover no-repeat;
    transform: scale(1.04);
    filter: saturate(0.62) brightness(0.78);
}
@media (max-width: 640px) {
    .hero-bg {
        background-image: url("/assets/site/hero-bg-mobile.webp");
    }
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: 
        linear-gradient(180deg, transparent 50%, var(--page) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12) 38%);
    pointer-events: none;
}
.hero-inner {
    width: min(1180px, 100%);
}
.hero-title {
    color: var(--text);
    font-size: clamp(22px, 7.1vw, 84px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero-line {
    display: block;
    text-wrap: balance;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}
.hero-note {
    margin-top: 18px;
    color: var(--text);
    font-size: 14px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.scroll-pill {
    position: absolute;
    bottom: 28px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px 0 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--raise);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    translate: -50% 0;
    transition: background-color 0.2s ease,
        border-color 0.2s ease;
}
.scroll-pill:hover {
    background: var(--raise-hover);
    color: var(--text);
}
.scroll-pill .icon {
    width: 16px;
    height: 16px;
    animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge {
    0%,
    60%,
    100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(3px);
    }
}
/* Entrada do hero em cascata. */
.hero .hero-title,
.hero .hero-actions,
.hero .hero-note {
    animation: rise 0.9s var(--ease) both;
}
.hero .hero-actions {
    animation-delay: 0.12s;
}
.hero .hero-note {
    animation-delay: 0.2s;
}
.scroll-pill {
    animation: rise-pill 0.9s var(--ease) 0.35s both;
}
@keyframes rise {
    from {
        opacity: 0;
        translate: 0 22px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}
@keyframes rise-pill {
    from {
        opacity: 0;
        translate: -50% 14px;
    }
    to {
        opacity: 1;
        translate: -50% 0;
    }
}
@media (max-width: 560px) {
    .hero {
        padding-top: 104px;
        padding-bottom: 132px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        margin-top: 32px;
    }
    .hero-actions .btn {
        width: min(100%, 320px);
    }
}
@media (max-height: 640px) and (min-width: 561px) {
    .hero {
        padding-top: 104px;
        padding-bottom: 96px;
    }
}

/* ---------- Seções: ícone + título grande + uma frase + uma peça da interface ---------- */
.section {
    position: relative;
    padding: clamp(72px, 7vw, 104px) var(--gutter);
}
.section-head {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
/* Ícone ao lado do título quando ele cabe numa linha; em telas menores o ícone vai para cima. */
.section-head h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    font-size: clamp(26px, 3.4vw, 44px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
}
.section-head h2 span {
    text-wrap: balance;
}
.head-icon {
    width: 0.8em;
    height: 0.8em;
    color: var(--blue-text);
    stroke-width: 1.5;
}
.section-head p {
    max-width: 620px;
    margin: 18px auto 0;
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.65;
    text-wrap: pretty;
}
@media (max-width: 1023px) {
    .section-head h2 {
        flex-direction: column;
        gap: 16px;
    }
    .section-head h2 span {
        max-width: 760px;
    }
    .head-icon {
        width: 38px;
        height: 38px;
    }
}
@media (max-width: 640px) {
    .head-icon {
        width: 34px;
        height: 34px;
    }
    .section-head p {
        font-size: 15px;
    }
}
.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}
.fine-print {
    max-width: 640px;
    margin: 28px auto 0;
    color: var(--text-3);
    font-size: 12.5px;
    line-height: 1.6;
    text-align: center;
}

/* ---------- Diagrama: o que o Trix junta ---------- */
.flow-diagram {
    display: grid;
    grid-template-columns: 236px 240px 210px;
    align-items: center;
    justify-content: center;
    margin-top: 64px;
}
.flow-sources li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-content: center;
    height: 80px;
}
.flow-icon {
    display: grid;
    grid-row: 1 / 3;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: var(--radius);
    background: var(--raise);
    color: var(--text);
}
.flow-sources strong {
    align-self: end;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}
.flow-sources small {
    align-self: start;
    color: var(--text-3);
    font-size: 12.5px;
    line-height: 1.4;
}
.flow-lines {
    position: relative;
    width: 240px;
    height: 240px;
}
.flow-lines svg:first-child {
    width: 240px;
    height: 240px;
    overflow: visible;
}
.flow-lines path {
    fill: none;
    stroke: var(--text-3);
    stroke-width: 1.5;
    stroke-dasharray: 5 6;
    animation: dash-flow 1.4s linear infinite;
}
.flow-arrow {
    position: absolute;
    top: 112px;
    right: 6px;
    width: 12px;
    height: 16px;
    fill: none;
    stroke: var(--text-2);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.flow-arrow path {
    animation: none;
    stroke-dasharray: none;
    stroke: inherit;
}
@keyframes dash-flow {
    to {
        stroke-dashoffset: -22;
    }
}
.flow-result {
    display: grid;
    justify-items: center;
    gap: 2px;
    text-align: center;
    align-self: start;
    padding-top: 76px;
}
/* O canto bem arredondado vem na própria imagem: o recorte deixa o ícone com o mesmo canto dos painéis. */
.flow-result img {
    width: auto;
    height: 76px;
    margin-bottom: 8px;
}
.flow-result strong {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.flow-result small {
    color: var(--text-3);
    font-size: 12.5px;
}
@media (max-width: 760px) {
    .flow-diagram {
        grid-template-columns: minmax(0, 300px);
        justify-content: center;
        margin-top: 48px;
    }
    .flow-sources {
        display: grid;
        gap: 10px;
    }
    .flow-sources li {
        height: auto;
        padding: 12px 14px;
        border: 0;
        border-radius: var(--radius);
        background: var(--well);
    }
    .flow-lines {
        width: 2px;
        height: 56px;
        margin: 6px auto;
        background: repeating-linear-gradient(180deg, var(--text-3) 0 5px, transparent 5px 11px);
    }
    .flow-lines svg {
        display: none;
    }
    .flow-result {
        padding-top: 0;
    }
}

/* ---------- Mods: cartões do painel com as bordas esmaecidas ---------- */
.mod-marquee {
    display: flex;
    max-width: 1440px;
    margin: 64px auto 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.mod-track {
    display: flex;
    flex: none;
    gap: 16px;
    padding: 4px 16px 4px 0;
    animation: marquee 64s linear infinite;
}
.mod-marquee:hover .mod-track {
    animation-play-state: paused;
}
@keyframes marquee {
    to {
        transform: translateX(-100%);
    }
}
.mod-card {
    position: relative;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    width: 210px;
    height: 162px;
    padding: 16px 10px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--well);
}
.mod-star {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 15px;
    height: 15px;
    color: var(--text-3);
    stroke-width: 1.6;
}
.mod-icon {
    width: 30px;
    height: 30px;
    margin-top: 10px;
    color: var(--text);
    stroke-width: 1.5;
}
.mod-name {
    margin: 8px 0 auto;
    overflow: hidden;
    max-width: 100%;
    color: var(--text-2);
    font-size: 12.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.mod-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    gap: 6px;
    width: 100%;
}
.mod-btn {
    display: grid;
    place-items: center;
    height: 30px;
    border-radius: var(--radius-sm);
    background: var(--blue);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: var(--bevel);
}
.mod-btn.is-off {
    background: var(--raise);
    color: var(--text);
    box-shadow: none;
}
.mod-gear {
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--raise);
    color: var(--text-2);
}
.mod-gear svg {
    width: 15px;
    height: 15px;
}
.kbd-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    color: var(--text-3);
    font-size: 14px;
}
kbd {
    padding: 6px 9px 5px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm);
    background: var(--raise);
    color: var(--text);
    font: 600 12px/1 var(--font);
    letter-spacing: 0.06em;
}
@media (max-width: 640px) {
    .mod-marquee {
        margin-top: 48px;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    }
    .mod-card {
        width: 176px;
        height: 148px;
    }
    .mod-track {
        gap: 12px;
        padding-right: 12px;
        animation-duration: 52s;
    }
}

/* ---------- HUD: partida de exemplo com os elementos do HUD ---------- */
@property --fps {
    syntax: "<integer>";
    inherits: false;
    initial-value: 144;
}
@property --cps {
    syntax: "<integer>";
    inherits: false;
    initial-value: 12;
}
.hud-frame {
    position: relative;
    max-width: 1040px;
    margin: 64px auto 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--well);
    container-type: inline-size;
}
.hud-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hud-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.04) 40%, rgba(0, 0, 0, 0.26));
    pointer-events: none;
}
.hud-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    color: var(--white);
    font-family: var(--font);
    font-size: 14px;
    font-size: clamp(7px, 1.36cqi, 14px);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0.08em 0.08em 0 rgba(0, 0, 0, 0.45);
}
.hud-stats {
    position: absolute;
    top: 5%;
    left: 3.6%;
    display: grid;
    justify-items: start;
    gap: 0.55em;
}
.hud-box {
    position: relative;
    padding: 0.42em 0.62em 0.36em;
    background: var(--hud-box);
    color: var(--text);
    white-space: nowrap;
}
.hud-box b {
    color: var(--white);
    font-weight: 700;
}
.hud-fps {
    --fps: 144;
    counter-reset: fps var(--fps);
    animation: fps-tick 3.6s steps(1, end) infinite;
}
.hud-fps::after {
    content: counter(fps);
}
.hud-cps {
    --cps: 12;
    counter-reset: cps var(--cps);
    animation: cps-tick 2.4s steps(1, end) infinite;
}
.hud-cps::after {
    content: counter(cps);
}
@keyframes fps-tick {
    0% {
        --fps: 144;
    }
    20% {
        --fps: 141;
    }
    40% {
        --fps: 147;
    }
    60% {
        --fps: 143;
    }
    80% {
        --fps: 146;
    }
}
@keyframes cps-tick {
    0% {
        --cps: 12;
    }
    25% {
        --cps: 13;
    }
    50% {
        --cps: 11;
    }
    75% {
        --cps: 9;
    }
}
/* Só indicadores que existem no HUD do Trix Client, com o texto que ele mostra no jogo. */
.hud-stats-right {
    right: 3.6%;
    left: auto;
    justify-items: end;
}
.hud-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.2em;
    height: 1.2em;
    translate: -50% -50%;
    background:
        linear-gradient(var(--white), var(--white)) 50% 50% / 100% 0.14em no-repeat,
        linear-gradient(var(--white), var(--white)) 50% 50% / 0.14em 100% no-repeat;
    opacity: 0.85;
}
.hud-keys {
    position: absolute;
    bottom: 6%;
    left: 3.6%;
    display: grid;
    grid-template-columns: repeat(6, 1.5em);
    grid-auto-rows: 2.9em;
    gap: 0.3em;
}
.k {
    display: grid;
    place-items: center;
    background: var(--key-off);
    color: var(--white);
}
.k-w {
    grid-column: 3 / span 2;
    animation: press-w 3.2s steps(1, end) infinite;
}
.k-a {
    grid-row: 2;
    grid-column: 1 / span 2;
    animation: press-a 3.2s steps(1, end) infinite;
}
.k-s {
    grid-row: 2;
    grid-column: 3 / span 2;
}
.k-d {
    grid-row: 2;
    grid-column: 5 / span 2;
    animation: press-d 3.2s steps(1, end) infinite;
}
.k-lmb {
    grid-row: 3;
    grid-column: 1 / span 3;
    animation: press-lmb 3.2s steps(1, end) infinite;
}
.k-rmb {
    grid-row: 3;
    grid-column: 4 / span 3;
}
.k-space {
    grid-row: 4;
    grid-column: 1 / span 6;
    height: 1.7em;
    animation: press-space 3.2s steps(1, end) infinite;
}
.k-space i {
    width: 45%;
    height: 0.14em;
    background: currentColor;
}
@keyframes press-w {
    0% {
        background: var(--key-on);
        color: var(--well);
    }
    72% {
        background: var(--key-off);
        color: var(--white);
    }
}
@keyframes press-a {
    0% {
        background: var(--key-off);
        color: var(--white);
    }
    10% {
        background: var(--key-on);
        color: var(--well);
    }
    28% {
        background: var(--key-off);
        color: var(--white);
    }
    54% {
        background: var(--key-on);
        color: var(--well);
    }
    66% {
        background: var(--key-off);
        color: var(--white);
    }
}
@keyframes press-d {
    0% {
        background: var(--key-off);
        color: var(--white);
    }
    30% {
        background: var(--key-on);
        color: var(--well);
    }
    48% {
        background: var(--key-off);
        color: var(--white);
    }
    74% {
        background: var(--key-on);
        color: var(--well);
    }
    90% {
        background: var(--key-off);
        color: var(--white);
    }
}
@keyframes press-lmb {
    0%,
    9%,
    17%,
    25%,
    33%,
    55%,
    63%,
    71% {
        background: var(--key-off);
        color: var(--white);
    }
    6%,
    14%,
    22%,
    30%,
    52%,
    60%,
    68% {
        background: var(--key-on);
        color: var(--well);
    }
}
@keyframes press-space {
    0% {
        background: var(--key-off);
        color: var(--white);
    }
    80% {
        background: var(--key-on);
        color: var(--well);
    }
    87% {
        background: var(--key-off);
        color: var(--white);
    }
}
@media (max-width: 640px) {
    .hud-frame {
        margin-top: 48px;
        aspect-ratio: 4 / 3;
    }
    .hud-layer {
        font-size: clamp(7px, 2.3cqi, 11px);
    }
}

/* ---------- Cosméticos ---------- */
.cosmetic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 64px auto 0;
}
.cosmetic-card {
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: var(--well);
}
.cosmetic-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 280 / 315;
    object-fit: contain;
    background: var(--well);
}
.cosmetic-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 15px 15px;
    border-top: 1px solid var(--line);
    background: var(--well);
}
.cosmetic-meta strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.cosmetic-meta small {
    flex: none;
    color: var(--text-3);
    font-size: 12px;
}
@media (max-width: 820px) {
    .cosmetic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 520px;
        gap: 12px;
        margin-top: 48px;
    }
}
@media (max-width: 520px) {
    .cosmetic-meta {
        flex-direction: column;
        gap: 2px;
        padding: 11px 12px 12px;
    }
}

/* ---------- Booster: janela de opções ---------- */
.booster-window {
    max-width: 640px;
    margin: 64px auto 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: var(--well);
}
.bw-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.bw-head .icon {
    color: var(--blue-text);
}
.bw-head strong {
    font-weight: 600;
}
.bw-head .bw-close {
    margin-left: auto;
    color: var(--text-3);
}
.bw-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
}
.bw-row + .bw-row {
    border-top: 1px solid var(--line);
}
.bw-label {
    min-width: 0;
}
.bw-label strong {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}
.bw-label small {
    display: block;
    margin-top: 4px;
    color: var(--text-3);
    font-size: 12.5px;
    line-height: 1.45;
}
.tag {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--blue-soft);
    color: var(--blue-text);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
}
.seg {
    display: inline-flex;
    flex: none;
    padding: 3px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--raise);
}
.seg span {
    padding: 7px 12px;
    border-radius: 2px;
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
}
.seg .is-on {
    background: var(--blue);
    color: var(--white);
}
.seg .is-muted {
    color: var(--text-3);
}
.frame-strip {
    display: flex;
    flex: none;
    align-items: center;
    gap: 5px;
}
.frame-strip i {
    width: 14px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: var(--text-2);
}
.frame-strip i.gen {
    border: 1px dashed var(--blue-text);
    background: var(--blue-soft);
}
@media (max-width: 600px) {
    .booster-window {
        margin-top: 48px;
    }
    .bw-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }
    .seg {
        max-width: 100%;
    }
}

/* ---------- Chamada final ---------- */
.final-cta {
    padding-top: clamp(96px, 9vw, 136px);
    padding-bottom: clamp(104px, 10vw, 148px);
    overflow: hidden;
    text-align: center;
}
.final-cta {
    isolation: isolate;
}
.final-icon {
    width: auto;
    height: 92px;
    margin: 0 auto 22px;
}
.final-cta h2 {
    font-size: clamp(30px, 4.2vw, 54px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.final-cta p {
    max-width: 520px;
    margin: 18px auto 0;
    color: var(--text-2);
    font-size: 16px;
    text-wrap: pretty;
}
.final-cta .hero-actions {
    margin-top: 34px;
}
@media (max-width: 560px) {
    .final-cta .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .final-cta .btn {
        width: min(100%, 320px);
    }
}

/* ---------- Rodapé ---------- */
.site-footer {
    padding: 56px var(--gutter) 32px;
    background: var(--well);
}
.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 40px;
    max-width: var(--container);
    margin: 0 auto;
}
.footer-brand p {
    max-width: 320px;
    margin-top: 14px;
    color: var(--text-2);
    font-size: 13.5px;
}
.footer-col {
    display: grid;
    justify-items: start;
    gap: 4px;
}
.footer-community {
    gap: 10px;
}
.footer-col h2 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}
.footer-col > a:not(.btn) {
    padding: 3px 0;
    color: var(--text-2);
    font-size: 14px;
    transition: color 0.2s ease;
}
.footer-col > a:not(.btn):hover {
    color: var(--text);
}
.footer-discord .icon:last-child {
    width: 15px;
    height: 15px;
    opacity: 0.7;
}
.back-top .icon {
    width: 16px;
    height: 16px;
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 32px;
    max-width: var(--container);
    margin: 44px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--text-3);
    font-size: 12px;
}
@media (max-width: 860px) {
    .footer-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 36px 24px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-community {
        grid-column: 1 / -1;
        grid-auto-flow: column;
        justify-content: start;
        align-items: center;
    }
    .footer-community h2 {
        display: none;
    }
}
@media (max-width: 420px) {
    .footer-community {
        grid-auto-flow: row;
    }
}

/* ---------- Aparecer ao rolar (motion.js marca só o que ainda está fora da tela) ---------- */
.reveal {
    opacity: 0;
    translate: 0 26px;
    transition:
        opacity 0.8s var(--ease),
        translate 0.8s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-revealed {
    opacity: 1;
    translate: 0 0;
}

/* ---------- Status ---------- */
/* Quadro no estilo da lista de servidores do Minecraft: ícone, nome, endereço e as barrinhas de sinal.
   O título, o "5/5 online" e as barras seguem as classes de cada <li> (ver o comentário no status.html), sem JS. */
.st-page {
    position: relative;
    padding: 164px var(--gutter) 140px;
    overflow-x: hidden;
    overflow-x: clip;
}
.status-page main {
    isolation: isolate;
}
.st-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 72px;
    max-width: var(--container);
    margin: 0 auto;
}
.st-intro {
    padding-top: 4px;
}
.st-eyebrow {
    display: block;
    margin-bottom: 16px;
    color: var(--blue-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
.st-title {
    margin: 0 0 22px;
    color: var(--text);
    font-size: clamp(32px, 3.6vw, 50px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.st-title em {
    display: block;
    color: var(--blue-text);
    font-style: normal;
}
.st-title-warn {
    display: none;
}
.st-title-warn em {
    color: var(--warn);
}
.st-lede {
    max-width: 430px;
    margin: 0 0 32px;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.7;
}
.st-discord {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 0 20px 0 16px;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
    background: var(--raise);
}
.st-discord svg {
    width: 20px;
    height: 20px;
    color: var(--text-2);
}
.st-discord:hover {
    background: var(--raise-hover);
    color: var(--text);
}
.st-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 0;
    border-radius: var(--radius);
    background: var(--well);
    counter-reset: st-total st-online;
}
.st-board h2 {
    margin: 0;
    padding: 18px 24px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.04em;
}
.st-list {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}
/* Vem depois da lista no HTML (o contador precisa ter passado por ela) e é posta no canto do cabeçalho. */
.st-count {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    padding: 18px 24px;
    color: var(--text-3);
    font-size: 13px;
    line-height: 1.4;
}
.st-count::before {
    content: counter(st-online) "/" counter(st-total) " ";
    color: var(--ok);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.st-count::after {
    content: "online";
}
.st-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    counter-increment: st-total st-online;
}
.st-row + .st-row {
    border-top: 1px solid var(--line);
}
.st-row:is(.is-unstable, .is-off, .is-down) {
    counter-increment: st-total;
}
.st-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius);
    background: var(--raise);
    color: var(--text-2);
}
.st-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.st-icon img {
    width: 17px;
    height: 28px;
    object-fit: contain;
}
.st-icon--discord {
    color: var(--text);
}
.st-icon--discord svg {
    fill: currentColor;
    stroke: none;
}
.st-name {
    display: grid;
    gap: 3px;
    min-width: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.st-name small {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}
.st-state {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ok-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
/* As 5 barrinhas de sinal do jogo, da menor para a maior. */
.st-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 17px;
    color: var(--ok);
}
.st-bars i {
    width: 3px;
    height: 5px;
    background: currentColor;
}
.st-bars i:nth-child(2) {
    --st-bar: 1;
    height: 8px;
}
.st-bars i:nth-child(3) {
    --st-bar: 2;
    height: 11px;
}
.st-bars i:nth-child(4) {
    --st-bar: 3;
    height: 14px;
}
.st-bars i:nth-child(5) {
    --st-bar: 4;
    height: 17px;
}
/* Instável: 3 barras; manutenção: 1 barra (ambos amarelos); fora do ar: vermelho, sem barras. */
.st-row.is-unstable .st-state,
.st-row.is-off .st-state {
    color: var(--warn);
}
.st-row.is-unstable .st-bars,
.st-row.is-off .st-bars {
    color: var(--warn);
}
.st-row.is-down .st-state {
    color: var(--danger-text);
}
.st-row.is-unstable .st-bars i:nth-child(n + 4),
.st-row.is-off .st-bars i:nth-child(n + 2),
.st-row.is-down .st-bars i {
    background: var(--active);
}
.st-page:has(.st-row:is(.is-unstable, .is-off, .is-down)) .st-title-ok {
    display: none;
}
.st-page:has(.st-row:is(.is-unstable, .is-off, .is-down)) .st-title-warn {
    display: block;
}
.st-board:has(.st-row:is(.is-unstable, .is-off, .is-down)) .st-count::before {
    color: var(--warn);
}
/* Entrada: o texto sobe de leve e as barras acendem uma a uma, como o "ping" da lista de servidores. */
.st-intro > *,
.st-board {
    animation: rise 0.8s var(--ease) both;
}
.st-intro > :nth-child(2) {
    animation-delay: 0.06s;
}
.st-intro > :nth-child(3) {
    animation-delay: 0.12s;
}
.st-intro > :nth-child(4) {
    animation-delay: 0.18s;
}
.st-board {
    animation-delay: 0.14s;
}
.st-bars i {
    animation: status-bar 0.35s ease both;
    animation-delay: calc(0.55s + var(--st-row, 0) * 0.1s + var(--st-bar, 0) * 0.06s);
}
.st-row:nth-child(2) {
    --st-row: 1;
}
.st-row:nth-child(3) {
    --st-row: 2;
}
.st-row:nth-child(4) {
    --st-row: 3;
}
.st-row:nth-child(5) {
    --st-row: 4;
}
.st-row:nth-child(6) {
    --st-row: 5;
}
@keyframes status-bar {
    from {
        background: var(--active);
    }
}
@media (max-width: 1100px) {
    .st-layout {
        gap: 48px;
    }
}
@media (max-width: 900px) {
    .st-page {
        padding: 128px var(--gutter) 110px;
    }
    .st-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
    .st-intro {
        padding-top: 0;
    }
    .st-lede {
        max-width: 520px;
    }
}
@media (max-width: 560px) {
    .st-page {
        padding: 112px var(--gutter) 96px;
    }
    .st-board h2,
    .st-count {
        padding: 16px 18px;
    }
    .st-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 14px;
        padding: 16px 18px;
    }
    .st-icon {
        width: 40px;
        height: 40px;
    }
    .st-name {
        font-size: 14.5px;
    }
    .st-name small {
        font-size: 12.5px;
    }
}
/* Telas bem estreitas: sem os ícones, para o nome e o status caberem na linha. */
@media (max-width: 380px) {
    .st-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .st-icon {
        display: none;
    }
}

/* ---------- Páginas legais (termos, privacidade, compras, regras) ---------- */
.legal-page {
    position: relative;
    isolation: isolate;
    padding: 148px var(--gutter) 104px;
    overflow-x: hidden;
    overflow-x: clip;
}
.legal-head {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.legal-head h1 {
    font-size: clamp(30px, 4.2vw, 50px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.legal-updated {
    margin-top: 14px;
    color: var(--text-3);
    font-size: 13px;
}
.legal-intro {
    max-width: 640px;
    margin: 18px auto 0;
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.65;
    text-wrap: pretty;
}
.legal-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}
.legal-tabs a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
    background: var(--raise);
    justify-content: center;
}
.legal-tabs a:hover {
    color: var(--text);
    background: var(--raise-hover);
}
.legal-tabs a[aria-current="page"] {
    background: var(--active);
    color: var(--text);
    font-weight: 600;
}
.legal-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 720px);
    justify-content: center;
    gap: 64px;
    max-width: var(--container);
    margin: 64px auto 0;
}
.legal-toc {
    position: sticky;
    top: 100px;
    align-self: start;
}
.legal-toc h2 {
    margin-bottom: 12px;
    color: var(--text-3);
    font-size: 12.5px;
    font-weight: 600;
}
.legal-toc ol {
    display: grid;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--line);
    list-style: none;
}
.legal-toc a {
    display: block;
    margin-left: -1px;
    padding: 6px 0 6px 14px;
    border-left: 1px solid transparent;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.4;
    transition: color 0.2s ease,
        border-color 0.2s ease;
}
.legal-toc a:hover {
    border-left-color: var(--blue-text);
    color: var(--text);
}
.legal-summary {
    margin-bottom: 52px;
    padding: 22px 24px;
    border: 0;
    border-radius: var(--radius);
    background: var(--well);
}
.legal-doc .legal-summary h2 {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
}
.legal-doc .legal-summary ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.legal-summary li {
    position: relative;
    padding-left: 22px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.6;
}
.legal-summary li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 4px;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--blue-text);
}
.legal-doc section {
    scroll-margin-top: 96px;
}
.legal-doc section + section {
    margin-top: 44px;
}
.legal-doc h2 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.legal-doc h3 {
    margin: 22px 0 8px;
    font-size: 15px;
    font-weight: 600;
}
.legal-doc p,
.legal-doc li,
.legal-doc dd {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.75;
}
.legal-doc p + p {
    margin-top: 12px;
}
.legal-doc ul {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
    padding-left: 22px;
    list-style: disc;
}
.legal-doc li::marker {
    color: var(--blue-text);
}
.legal-doc ul + p {
    margin-top: 14px;
}
.legal-doc strong {
    color: var(--text);
    font-weight: 600;
}
/* Só os links do texto: o botão do quadro de contato mantém a cor de botão. */
.legal-doc a:not(.btn),
.legal-summary a {
    color: var(--blue-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.legal-doc a:not(.btn):hover,
.legal-summary a:hover {
    color: var(--text);
}
.legal-list {
    display: grid;
    margin: 14px 0 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--well);
}
.legal-list > div {
    display: grid;
    grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
    gap: 4px 20px;
    padding: 14px 18px;
}
.legal-list > div + div {
    border-top: 1px solid var(--line);
}
.legal-list dt {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}
.legal-list dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
.legal-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 56px;
    padding: 22px 24px;
    border: 0;
    border-radius: var(--radius);
    background: var(--well);
}
.legal-contact p {
    margin: 0;
    color: var(--text-2);
    font-size: 14px;
}
.legal-contact strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}
@media (max-width: 960px) {
    .legal-layout {
        grid-template-columns: minmax(0, 720px);
        gap: 0;
        margin-top: 48px;
    }
    .legal-toc {
        display: none;
    }
}
@media (max-width: 560px) {
    .legal-page {
        padding-top: 120px;
        padding-bottom: 80px;
    }
    .legal-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .legal-tabs a {
        padding: 0 8px;
    }
    .legal-summary,
    .legal-contact {
        padding: 18px;
    }
    .legal-doc h2 {
        font-size: 18px;
    }
    .legal-list > div {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px 14px;
    }
}

/* ---------- Changelog: uma linha por versão; os textos vêm de changelog.json ---------- */
.cl-list {
    display: grid;
    gap: 8px;
    max-width: 780px;
    margin: 48px auto 0;
}
.cl-item {
    scroll-margin-top: 84px;
    border-radius: var(--radius);
    background: var(--well);
}
.cl-item summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
}
.cl-item summary::-webkit-details-marker {
    display: none;
}
.cl-item summary:hover {
    background: var(--raise);
}
.cl-version {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}
.cl-title {
    color: var(--text-2);
    font-size: 14px;
}
.cl-date {
    color: var(--text-3);
    font-size: 12.5px;
    white-space: nowrap;
}
.cl-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-3);
    transition: transform 0.2s var(--ease);
}
.cl-item details[open] .cl-chevron {
    transform: rotate(180deg);
}
.cl-changes {
    display: grid;
    gap: 8px;
    padding: 4px 18px 18px 80px;
}
.cl-changes li {
    position: relative;
    padding-left: 16px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.6;
}
.cl-changes li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--blue-text);
}
.cl-status {
    margin-top: 48px;
    color: var(--text-3);
    font-size: 14px;
    text-align: center;
}
.cl-status:empty {
    display: none;
}
@media (max-width: 560px) {
    .cl-list {
        margin-top: 32px;
    }
    .cl-item summary {
        grid-template-columns: auto minmax(0, 1fr) 16px;
        gap: 2px 10px;
        padding: 12px 14px;
    }
    .cl-date {
        justify-self: end;
    }
    .cl-title {
        grid-row: 2;
        grid-column: 1 / -1;
    }
    .cl-changes {
        padding: 4px 14px 14px;
    }
}

/* ---------- Suporte: página de passagem para o Discord ---------- */
.redirect-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: var(--gutter);
}
.redirect-card {
    display: grid;
    justify-items: center;
    gap: 16px;
    width: min(100%, 420px);
    padding: 32px 24px;
    border-radius: var(--radius);
    background: var(--well);
    text-align: center;
}
.redirect-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.redirect-card p {
    color: var(--text-2);
    font-size: 14px;
}

/* ---------- Movimento reduzido: tudo parado e visível ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        translate: none;
    }
    .mod-marquee {
        overflow-x: auto;
        scrollbar-width: none;
    }
}
