:root {
    --bg: #070c10;
    --panel: rgba(12, 19, 25, 0.86);
    --line: rgba(186, 205, 224, 0.16);
    --text: #f5f7fb;
    --muted: #aeb9c4;
    --yellow: #ffd514;
    --green: #18dd72;
    --red: #ff5964;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: radial-gradient(circle at top, #122231 0, var(--bg) 38rem);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

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

button,
input {
    font: inherit;
}

h1:focus {
    outline: none;
}

.site-shell {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(5, 9, 13, 0.2), #071016 72%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    min-height: 4.35rem;
    padding: 0 clamp(1.4rem, 3vw, 3rem);
    border-bottom: 1px solid var(--line);
    background: rgba(5, 9, 13, 0.91);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: clamp(8.5rem, 10.6vw, 10rem);
    height: 3.05rem;
    object-fit: cover;
    object-position: center;
}

.brand.small img {
    width: 8.8rem;
    height: 2.7rem;
}

.main-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(1rem, 2.1vw, 2.1rem);
    min-height: 4.35rem;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    color: #f6f7fa;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-button,
.language-button,
.outline-action,
.solid-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-weight: 800;
    text-transform: uppercase;
}

.icon-button {
    width: 2.45rem;
    border-color: transparent;
    font-size: 1.8rem;
}

.language-button {
    min-width: 3rem;
}

.outline-action,
.solid-action {
    padding: 0 1rem;
    border-radius: 4px;
    font-size: 0.78rem;
}

.outline-action {
    border-color: var(--yellow);
    color: var(--yellow);
}

.solid-action,
.primary-action,
.form-submit {
    border: 1px solid var(--yellow);
    background: linear-gradient(180deg, #ffe45b, var(--yellow));
    color: #171713 !important;
    box-shadow: 0 9px 22px rgba(255, 213, 20, 0.2);
    text-shadow: none;
}

.solid-action,
.solid-action *,
.primary-action,
.primary-action *,
.form-submit,
.form-submit * {
    color: #171713 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #171713;
}

.hero {
    position: relative;
    min-height: 25rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #071016;
}

.hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right 18%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 9, 13, 0.96) 0%, rgba(5, 9, 13, 0.78) 26%, rgba(5, 9, 13, 0.34) 48%, rgba(5, 9, 13, 0.12) 72%, rgba(5, 9, 13, 0.72) 100%),
        linear-gradient(180deg, rgba(5, 9, 13, 0.02), rgba(5, 9, 13, 0.62));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(34rem, 92vw);
    padding: 3.5rem 0 3rem clamp(1.25rem, 5.4vw, 5.25rem);
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 30rem;
    margin: 0;
    font-style: italic;
    font-weight: 950;
    line-height: 0.94;
    text-transform: uppercase;
    text-shadow: 0 5px 0 rgba(0, 0, 0, 0.25);
}

.hero h1 span,
.hero h1 strong {
    display: block;
    letter-spacing: 0;
}

.hero h1 span {
    color: #f5f7fb;
    font-size: clamp(1.8rem, 3.2vw, 3.05rem);
}

.hero h1 strong {
    color: var(--yellow);
    font-size: clamp(3.3rem, 6vw, 5.25rem);
}

.hero-copy {
    max-width: 28rem;
    margin: 1.15rem 0 0;
    color: #d4dce4;
    font-size: clamp(0.95rem, 1.2vw, 1.06rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12.5rem;
    min-height: 2.9rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 950;
    text-transform: uppercase;
}

.primary-action span {
    margin-left: 0.7rem;
    font-size: 1.25rem;
    line-height: 1;
}

.secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(5, 9, 13, 0.4);
    color: var(--text);
}

.download-action {
    gap: 0.55rem;
}

.download-action svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-dots {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hero-dots span {
    width: 1.15rem;
    height: 0.28rem;
    border-radius: 999px;
    background: #9aa6b2;
}

.hero-dots span.active {
    width: 1.55rem;
    background: var(--yellow);
}

.hero-shade {
    position: absolute;
    inset: auto 0 0;
    height: 4.5rem;
    background: linear-gradient(180deg, transparent, rgba(5, 9, 13, 0.9));
    pointer-events: none;
}

.quick-links,
.content-grid {
    width: min(91rem, calc(100% - 2rem));
    margin: 0 auto;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    padding: 0.85rem 0 1.35rem;
}

.quick-link,
.panel,
.account-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(17, 27, 36, 0.86), rgba(9, 15, 21, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.quick-link {
    display: grid;
    grid-template-columns: 3.3rem 1fr;
    align-items: center;
    gap: 0.8rem;
    min-height: 5.25rem;
    padding: 0.95rem 1.1rem;
}

.quick-icon {
    color: #c6d1dc;
    display: grid;
    place-items: center;
    opacity: 0.82;
}

.quick-icon svg {
    width: 2.7rem;
    height: 2.7rem;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(165, 192, 214, 0.14));
}

.quick-link:hover .quick-icon {
    color: #f3f8ff;
    opacity: 1;
}

.quick-link strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--yellow);
    font-size: 0.86rem;
    text-transform: uppercase;
}

.quick-link small {
    color: #c5ced8;
    line-height: 1.35;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.7fr 1fr;
    gap: 1rem;
    padding-bottom: 1rem;
}

.panel {
    padding: 1.45rem;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.panel h2,
.account-copy h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 900;
    text-transform: uppercase;
}

.panel-heading a {
    color: #f7f9fb;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.news-item {
    display: grid;
    grid-template-columns: 10.3rem 1fr;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(186, 205, 224, 0.09);
}

.news-item:first-of-type {
    padding-top: 0;
}

.news-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.news-item img {
    width: 100%;
    aspect-ratio: 2.35 / 1;
    object-fit: cover;
    border-radius: 5px;
}

.tag {
    display: inline-flex;
    margin-bottom: 0.35rem;
    padding: 0.18rem 0.48rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tag.event {
    background: rgba(255, 213, 20, 0.25);
    color: #ffe45b;
}

.tag.patch {
    background: rgba(177, 92, 255, 0.23);
    color: #d9b0ff;
}

.tag.info {
    background: rgba(32, 167, 255, 0.24);
    color: #76caff;
}

.news-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.news-item p,
.server-status p,
.account-copy p,
.news-item time {
    color: var(--muted);
}

.news-item p {
    margin: 0 0 0.25rem;
    font-size: 0.82rem;
}

.news-item time {
    font-size: 0.78rem;
}

.side-stack {
    display: grid;
    gap: 1rem;
}

.server-status strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    color: var(--green);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.server-status strong span {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(24, 221, 114, 0.8);
}

.server-status p {
    margin: 0.45rem 0 0;
    font-size: 0.86rem;
}

.playtime {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.playtime strong {
    display: block;
    margin-top: 0.9rem;
    font-size: 2.3rem;
    font-weight: 300;
}

.weather-mark {
    display: grid;
    justify-items: end;
    gap: 0.35rem;
    color: #dce4ec;
}

.weather-mark span {
    font-size: 2rem;
}

.weather-mark small {
    color: var(--muted);
    text-align: right;
}

.socials div {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-top: 1.2rem;
}

.socials a {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.socials a:hover {
    transform: translateY(-1px);
    filter: brightness(1.12);
}

.socials img {
    display: block;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(111, 191, 255, 0.18));
}

.ranking-row {
    display: grid;
    grid-template-columns: 2rem 2.6rem 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.78rem 0;
    border-bottom: 1px solid rgba(186, 205, 224, 0.09);
}

.ranking-row:last-child {
    border-bottom: 0;
}

.rank-position {
    color: #aeb9c4;
    font-weight: 900;
}

.rank-position.gold {
    color: var(--yellow);
}

.rank-position.silver {
    color: #dce4ec;
}

.rank-position.bronze {
    color: #ff9f4a;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: linear-gradient(135deg, #1d344b, #6a2633);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
}

.ranking-row small {
    color: var(--muted);
}

.auth-page {
    position: relative;
    min-height: calc(100vh - 4.35rem);
    overflow: hidden;
    border-top: 1px solid rgba(186, 205, 224, 0.08);
    background: #05090d;
}

.auth-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.24;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 9, 13, 0.98), rgba(5, 9, 13, 0.78) 48%, rgba(5, 9, 13, 0.92)),
        radial-gradient(circle at 72% 30%, rgba(255, 213, 20, 0.12), transparent 24rem);
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(76rem, calc(100% - 2rem));
    min-height: calc(100vh - 4.35rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(18rem, 0.85fr) minmax(22rem, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    padding: 3.5rem 0;
}

.auth-copy h1 {
    max-width: 30rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem, 4.2vw, 4.4rem);
    font-weight: 950;
    line-height: 0.98;
    text-transform: uppercase;
}

.auth-copy p:last-child {
    max-width: 33rem;
    margin: 1.4rem 0 0;
    color: #d4dce4;
    font-size: 1rem;
    line-height: 1.7;
}

.auth-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(17, 27, 36, 0.9), rgba(5, 9, 13, 0.92));
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.36);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.18);
}

.auth-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
}

.auth-tabs a.active {
    background: var(--yellow);
    color: #171713 !important;
    text-shadow: none;
}

.form-field {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.form-field.two-columns {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.form-field.two-columns span {
    display: grid;
    gap: 0.4rem;
}

.form-field label {
    color: #dce4ec;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.form-field input {
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid rgba(186, 205, 224, 0.22);
    border-radius: 5px;
    background: rgba(3, 7, 10, 0.78);
    color: var(--text);
    padding: 0 0.85rem;
    outline: 0;
}

.form-field input:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 213, 20, 0.14);
}

.validation-message {
    color: #ff8c93;
    font-size: 0.78rem;
}

.form-submit {
    width: 100%;
    min-height: 3rem;
    border-radius: 5px;
    font-weight: 950;
    text-transform: uppercase;
}

.form-submit:disabled {
    cursor: progress;
    filter: grayscale(0.65);
    opacity: 0.72;
}

.form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 750;
}

.form-status.success {
    border: 1px solid rgba(24, 221, 114, 0.35);
    background: rgba(24, 221, 114, 0.12);
    color: #8cffc0;
}

.form-status.error {
    border: 1px solid rgba(255, 89, 100, 0.35);
    background: rgba(255, 89, 100, 0.12);
    color: #ffb5ba;
}

.download-page {
    position: relative;
    overflow: hidden;
}

.download-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 5.8rem 5.8rem;
    mask-image: linear-gradient(180deg, transparent 0, black 8rem, black 72%, transparent 100%);
    pointer-events: none;
}

.download-hero,
.download-shell {
    position: relative;
    z-index: 1;
}

.download-hero {
    min-height: 29rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: #060b0f;
}

.download-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right 18%;
    opacity: 0.5;
}

.download-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 9, 13, 0.98) 0%, rgba(5, 9, 13, 0.82) 34%, rgba(5, 9, 13, 0.24) 70%, rgba(5, 9, 13, 0.76) 100%),
        linear-gradient(180deg, rgba(5, 9, 13, 0.05), rgba(5, 9, 13, 0.9));
}

.download-hero-content {
    position: relative;
    width: min(46rem, calc(100% - 2rem));
    margin-left: clamp(1.25rem, 5.4vw, 5.25rem);
    padding: 4rem 0;
}

.download-hero h1 {
    max-width: 42rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2.7rem, 5.6vw, 5.9rem);
    font-style: italic;
    font-weight: 950;
    line-height: 0.92;
    text-transform: uppercase;
    text-shadow: 0 5px 0 rgba(0, 0, 0, 0.26);
}

.download-hero p:not(.eyebrow) {
    max-width: 38rem;
    margin: 1.25rem 0 0;
    color: #d7e0e8;
    font-size: 1.05rem;
    line-height: 1.7;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.download-primary,
.download-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    border-radius: 5px;
    font-size: 0.92rem;
    font-weight: 950;
    text-transform: uppercase;
}

.download-primary {
    gap: 0.65rem;
    min-width: 13.8rem;
    border: 1px solid var(--yellow);
    background: linear-gradient(180deg, #ffe45b, var(--yellow));
    color: #171713 !important;
    box-shadow: 0 13px 32px rgba(255, 213, 20, 0.22);
}

.download-primary svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.download-secondary {
    min-width: 11rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(5, 9, 13, 0.45);
    color: var(--text);
}

.download-shell {
    width: min(91rem, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.34fr);
    gap: 1rem;
    padding: 1rem 0 1.5rem;
}

.download-main {
    display: grid;
    gap: 1rem;
}

.download-panel,
.download-grid article {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(17, 27, 36, 0.86), rgba(9, 15, 21, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.download-panel {
    padding: 1.45rem;
}

.download-release {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.download-label {
    display: inline-flex;
    margin-bottom: 0.55rem;
    color: var(--yellow);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.download-panel h2,
.download-grid h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 950;
    text-transform: uppercase;
}

.download-panel p,
.download-grid p {
    margin: 0.65rem 0 0;
    color: #c5ced8;
    line-height: 1.55;
}

.release-meta {
    min-width: 7.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 213, 20, 0.25);
    border-radius: 6px;
    background: rgba(255, 213, 20, 0.08);
    text-align: center;
}

.release-meta strong,
.release-meta small {
    display: block;
    text-transform: uppercase;
}

.release-meta strong {
    color: var(--yellow);
    font-size: 1.4rem;
    font-weight: 950;
}

.release-meta small {
    color: #e6edf3;
    font-size: 0.72rem;
    font-weight: 900;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.download-grid article {
    min-height: 11rem;
    padding: 1.35rem;
}

.download-grid span {
    display: inline-flex;
    margin-bottom: 1.8rem;
    color: var(--yellow);
    font-size: 2.1rem;
    font-weight: 950;
    line-height: 1;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading a {
    color: var(--yellow);
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.install-steps ol {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.install-steps li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.28rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(186, 205, 224, 0.1);
}

.install-steps li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.install-steps strong {
    color: #fff;
    font-size: 0.96rem;
    text-transform: uppercase;
}

.install-steps span {
    color: #c5ced8;
    line-height: 1.5;
}

.download-aside {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.download-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.15rem;
    color: var(--green);
    font-size: 1.08rem;
    font-weight: 950;
    text-transform: uppercase;
}

.download-status span {
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 18px rgba(24, 221, 114, 0.5);
}

.support-box ul {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    color: #c5ced8;
    line-height: 1.45;
}

.support-box li {
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 213, 20, 0.48);
}

.site-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.4rem clamp(1.25rem, 5.6vw, 5.5rem);
    border-top: 1px solid var(--line);
    background: rgba(6, 10, 14, 0.92);
    color: var(--muted);
}

.site-footer div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
}

.site-footer p {
    margin: 0;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    max-width: 28rem;
    padding: 0.85rem 2.5rem 0.85rem 1rem;
    border: 1px solid rgba(255, 89, 100, 0.45);
    border-radius: 6px;
    background: #2a0f14;
    color: #fff;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.55rem;
    right: 0.75rem;
    cursor: pointer;
}

.loading-progress {
    display: block;
    width: 6rem;
    height: 6rem;
    margin: 30vh auto 1rem;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 0.55rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--yellow);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
}

.loading-progress-text {
    color: var(--muted);
    text-align: center;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Carregando");
}

@media (max-width: 1180px) {
    .site-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .main-nav {
        display: none;
    }

    .quick-links,
    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .download-shell {
        grid-template-columns: 1fr;
    }

    .news-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .site-header {
        padding: 0 1rem;
    }

    .header-actions {
        gap: 0.45rem;
    }

    .icon-button,
    .language-button {
        display: none;
    }

    .outline-action,
    .solid-action {
        min-height: 2.25rem;
        padding: 0 0.7rem;
    }

    .hero {
        min-height: 31rem;
    }

    .hero-art {
        object-position: center 18%;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(5, 9, 13, 0.88), rgba(5, 9, 13, 0.62));
    }

    .hero-content {
        padding: 3.5rem 1rem;
    }

    .download-hero {
        min-height: 34rem;
    }

    .download-art {
        object-position: center 18%;
    }

    .download-hero-overlay {
        background: linear-gradient(180deg, rgba(5, 9, 13, 0.86), rgba(5, 9, 13, 0.72));
    }

    .download-hero-content {
        width: calc(100% - 2rem);
        margin: 0 auto;
        padding: 4rem 0;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .download-release,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .quick-links,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        grid-template-columns: 1fr;
    }

    .news-item img {
        aspect-ratio: 16 / 7;
    }

    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }

    .auth-copy h1 {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .brand img {
        width: 6.6rem;
        height: 2.2rem;
    }

    .outline-action {
        display: none;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }

    .panel {
        padding: 1rem;
    }

    .form-field.two-columns {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 1.5rem 2.3rem 1fr;
    }

    .ranking-row small {
        grid-column: 3;
    }
}
