:root {
    color-scheme: dark;
    --background: #0a1017;
    --panel: #111a23;
    --line: #2b3944;
    --text: #f3f3ee;
    --muted: #b1bec7;
    --gold: #edb76a;
    --green: #80caad;
    --display: "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
}

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

body {
    min-width: 0;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 1rem/1.55 system-ui, sans-serif;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

h1, h2, h3, p { margin: 0; }

.shell {
    width: min(100% - 4rem, 78rem);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    z-index: 1;
    top: .5rem;
    left: .5rem;
    padding: .65rem 1rem;
    transform: translateY(-150%);
    background: var(--gold);
    color: var(--background);
}

.skip-link:focus { transform: none; }

.site-header {
    position: relative;
    border-bottom: 1px solid #334338;
    background: #0b1218;
}

.header-inner, .header-actions, .brand, .primary-nav, .language {
    display: flex;
    align-items: center;
}

.header-inner {
    min-height: 4.7rem;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand {
    gap: .75rem;
    font: 900 1.34rem/1 var(--display);
    letter-spacing: .055em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.brand-accent { color: var(--gold); }

.brand-mark {
    display: block;
    width: 2.5rem;
    height: auto;
    flex: none;
}

.primary-nav, .header-actions { gap: clamp(1rem, 2.4vw, 2.25rem); }

.primary-nav a, .header-login, .language a {
    color: var(--muted);
    font-size: .83rem;
    font-weight: 650;
    text-decoration: none;
}

.primary-nav a:hover, .header-login:hover { color: var(--gold); }
.primary-nav a, .header-login { display: inline-flex; align-items: center; gap: .4rem; }

.language {
    gap: .1rem;
    padding: .17rem;
    border: 1px solid var(--line);
    border-radius: .3rem;
}

.language a {
    display: grid;
    min-width: 2rem;
    min-height: 1.65rem;
    place-items: center;
    padding: .12rem .38rem;
    border-radius: .15rem;
    font-size: .68rem;
    letter-spacing: .08em;
}

.language a[aria-current], .language a:hover {
    background: #293036;
    color: var(--gold);
}

.header-login { color: var(--text); white-space: nowrap; }

.hero {
    overflow: hidden;
    border-bottom: 1px solid #36413b;
    background-color: #10201d;
    background-image:
        linear-gradient(0deg, rgb(6 12 16 / .86), transparent 38%),
        linear-gradient(90deg, rgb(6 13 17 / .9), rgb(7 15 19 / .35) 49%, transparent 76%),
        url("../img/portada-gwar.webp");
    background-position: center, center, center 49%;
    background-size: cover;
}

.hero-inner {
    display: grid;
    min-height: clamp(33rem, 48vw, 45rem);
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
    align-items: center;
    gap: clamp(1.5rem, 5vw, 5rem);
    padding-block: clamp(3.75rem, 7vw, 7rem) clamp(3rem, 5vw, 5rem);
}

.eyebrow, .hero-note {
    display: flex;
    align-items: center;
    gap: .72rem;
    font: 700 .78rem/1.4 system-ui, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow { color: var(--gold); }

.eyebrow::before {
    width: 1.6rem;
    height: 2px;
    flex: none;
    background: currentColor;
    content: "";
}

h1 {
    margin-top: .82rem;
    color: #fffef7;
    font: 900 clamp(2.6rem, 6.35vw, 6.1rem)/.92 var(--display);
    letter-spacing: -.07em;
    text-wrap: balance;
    text-transform: uppercase;
    text-shadow: 0 .12em .28em rgb(0 0 0 / .3);
}

h1 strong {
    display: block;
    color: #f4c382;
    font-weight: inherit;
}

.lead {
    max-width: 32rem;
    margin-top: 1.55rem;
    color: #d5dedc;
    font-size: clamp(.98rem, 1.6vw, 1.14rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.8rem;
}

.button {
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    gap: .82rem;
    padding: .65rem 1.17rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    font: inherit;
    font-size: .9rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button-primary { background: var(--gold); color: #171610; }
.button-primary:hover { background: #ffd092; }
.button-secondary { border-color: #667879; background: rgb(7 15 20 / .72); }
.button-secondary:hover { border-color: var(--gold); color: var(--gold); }
.button span, .text-link span { font-size: 1.1em; }

.hero-note {
    margin-top: 1.35rem;
    color: #d5e1db;
    font-size: .69rem;
    letter-spacing: .11em;
}

.hero-note::before, .status::before {
    width: .48rem;
    height: .48rem;
    flex: none;
    border-radius: 50%;
    background: var(--green);
    content: "";
}

.login-card {
    align-self: end;
    min-width: 0;
    padding: clamp(1.15rem, 2.6vw, 1.75rem);
    border: 1px solid #495b59;
    border-top: 2px solid var(--gold);
    border-radius: .25rem;
    background: rgb(10 19 24 / .94);
    box-shadow: 0 1rem 2rem rgb(0 0 0 / .22);
}

h2 {
    font: 800 clamp(1.5rem, 3vw, 2.3rem)/1.2 var(--display);
    letter-spacing: -.035em;
}

.login-card h2 { font-size: clamp(1.45rem, 2.65vw, 1.95rem); }
.login-intro { margin-top: .42rem; color: #c1cbd0; font-size: .86rem; }

.login-card label {
    display: block;
    margin: .92rem 0 .29rem;
    color: #dce6e3;
    font-size: .79rem;
    font-weight: 680;
}

.login-card :is(select, input) {
    width: 100%;
    min-height: 2.45rem;
    padding: .44rem .62rem;
    border: 1px solid #465862;
    border-radius: .25rem;
    background: #121f26;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

.login-submit { width: 100%; margin-top: 1.1rem; }

.recovery {
    display: block;
    margin-top: .8rem;
    color: #c5d4d9;
    font-size: .79rem;
    text-align: center;
    text-underline-offset: .19em;
}

.recovery:hover { color: var(--gold); }

.notice {
    margin-top: .9rem;
    padding: .65rem .8rem;
    border-left: 2px solid #b49159;
    background: rgb(238 183 105 / .09);
    color: #e8d7b9;
    font-size: .89rem;
}

.notice-error {
    border-color: #f0a48d;
    background: rgb(239 132 102 / .12);
    color: #ffd2c2;
}

.features, .world-inner { padding-block: clamp(2.4rem, 4.7vw, 4.25rem); }

.section-heading, .world-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .65rem 1.2rem;
}

.text-link {
    color: var(--gold);
    font-size: .86rem;
    font-weight: 680;
    text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.feature-grid, .world-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 1.25rem;
}

.feature-card {
    display: grid;
    grid-template-columns: clamp(4.5rem, 8vw, 7rem) minmax(0, 1fr);
    overflow: hidden;
    min-height: 8.25rem;
    border: 1px solid var(--line);
    border-radius: .25rem;
    background: var(--panel);
}

.feature-card img {
    width: 100%;
    height: 100%;
    border-right: 1px solid var(--line);
    object-fit: cover;
    filter: saturate(.55) brightness(.82);
}

.feature-copy { padding: 1rem; }
h3 { font: 780 1.06rem/1.28 system-ui, sans-serif; }
.feature-copy p, .world-card p { margin-top: .35rem; color: var(--muted); font-size: .85rem; }

.world-section {
    border-block: 1px solid var(--line);
    background: #0e161e;
}

.world-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: .25rem;
    background: var(--panel);
    overflow-wrap: anywhere;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 650;
}

.status::before { background: currentColor; }
.status-online { color: var(--green); }
.status-testing { color: var(--gold); }
.status-offline { color: #eca296; }

.world-card details { margin-top: .7rem; }
.world-card summary { color: #e7c78d; font-size: .84rem; cursor: pointer; }
.world-card iframe { width: 100%; height: 5.5rem; margin-top: .45rem; border: 0; background: #f1f1e9; }

@media (max-width: 59rem) {
    .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem); }
    .feature-card { grid-template-columns: 1fr; }
    .feature-card img { height: 7rem; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 42rem) {
    .shell { width: calc(100% - 2rem); }

    .header-inner {
        min-height: auto;
        flex-wrap: wrap;
        gap: .5rem .75rem;
        padding-top: .65rem;
    }

    .header-actions { margin-left: auto; gap: .75rem; }
    .brand { gap: .4rem; font-size: 1.04rem; }
    .brand-mark { width: 1.85rem; }
    .header-login { font-size: .74rem; }

    .primary-nav {
        width: 100%;
        order: 1;
        justify-content: center;
        gap: clamp(.75rem, 6vw, 2rem);
        border-top: 1px solid var(--line);
    }

    .primary-nav a { padding: .62rem 0; }

    .hero {
        background-image:
            linear-gradient(0deg, #0a151b, rgb(8 15 19 / .28) 55%, rgb(8 15 19 / .52)),
            linear-gradient(90deg, rgb(6 13 17 / .84), rgb(7 15 19 / .32) 78%),
            url("../img/portada-gwar.webp");
        background-position: center, center, 68% top;
    }

    .hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 2.4rem; padding-block: 3.4rem 1.5rem; }
    h1 { font-size: clamp(2.57rem, 9.25vw, 4.2rem); }
    .lead { max-width: 30rem; margin-top: 1rem; }
    .hero-actions { margin-top: 1.2rem; }
    .hero-note { margin-top: 1rem; }
    .login-card { max-width: 30rem; }
    .feature-grid, .world-grid { grid-template-columns: 1fr; }
    .feature-card { grid-template-columns: minmax(4.5rem, 25%) minmax(0, 1fr); min-height: 6.5rem; }
    .feature-card img { height: 100%; border-right: 1px solid var(--line); border-bottom: 0; }
}

@media (max-width: 22rem) {
    .header-login { display: none; }
    .hero-actions { gap: .5rem; }
    .hero-actions .button { padding-inline: .75rem; font-size: .8rem; }
}
