:root {
    color-scheme: dark;
    font-family: "Segoe UI", sans-serif;
    color: #e8f2ff;
    background: #0a1526;
    --ink: #0a1526;
    --line: #334e70;
    --muted: #b6c9e0;
    --ice: #9ed3fd;
    --frost: #b9d9f1;
    --serif: Cormorant Garamond, Georgia, serif;
    --runes: "Segoe UI Historic", "Noto Sans Runic", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid #bce4ff; outline-offset: 4px; }
section[id] { scroll-margin-top: 24px; }
.shell { width: min(1210px, calc(100% - 92px)); margin-inline: auto; }
.runes { font-family: var(--runes); font-weight: 400; }
.sr-only, .skip:not(:focus) {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; white-space: nowrap; clip-path: inset(50%);
}
.skip { position: absolute; z-index: 10; inset: 10px auto auto 10px; background: var(--ice); color: var(--ink); padding: 9px 14px; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 1; text-shadow: 0 1px 5px #000e; }
.header-inner { min-height: 73px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.home-link { justify-self: start; color: #d7e9fb; font: 700 .9rem var(--serif); letter-spacing: .08em; }
.home-link:hover { color: var(--ice); }
.navigation { display: flex; align-items: center; gap: clamp(15px, 3vw, 38px); color: #c9ddf6; font: 700 .87rem var(--serif); letter-spacing: .08em; }
.navigation a { padding-block: 7px; }
.navigation a:hover, .site-footer a:hover { color: #eff8ff; }
.navigation a span { color: var(--ice); margin-inline-start: 2px; }
.header-action { justify-self: end; }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 11px;
    min-height: 48px; padding: 10px 18px; border: 1px solid #729fc9; border-radius: 2px;
    font: 700 .92rem/1.25 var(--serif); letter-spacing: .035em; text-align: center; cursor: pointer;
    box-shadow: inset 0 0 0 2px #102138, 0 4px 15px #0005;
    transition: background-color .2s, border-color .2s, color .2s;
}
.button-primary {
    color: #061629; background: linear-gradient(166deg, #c1e7ff, #79addc);
    border-color: #c7e6fc; box-shadow: inset 0 0 0 2px #4b7ca7, 0 4px 15px #0005;
}
.button-primary:hover { background: linear-gradient(166deg, #e3f3ff, #9dccf7); }
.button-outline { color: #e0edff; background: #122844df; }
.button-outline:hover { border-color: #afd8fd; background: #233e60; }
.button .runes { font-size: .92em; letter-spacing: .12em; }
.header-action { min-height: 40px; padding-inline: 13px; }

.hero {
    --header-space: 73px;
    position: relative; display: grid; min-height: calc(clamp(510px, 65vh, 700px) + var(--header-space)); isolation: isolate;
    background: #0b192a;
}
.hero-video, .hero::after {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
}
.hero-video { object-fit: cover; object-position: 74% 48%; opacity: 0; transition: opacity .35s; }
.hero-video.has-frame { opacity: 1; }
.hero::after {
    content: ""; pointer-events: none;
    background:
        linear-gradient(180deg, #071120a8, transparent 23%),
        linear-gradient(0deg, #0a1526 0%, #0a15261a 32%, transparent 70%),
        linear-gradient(90deg, #071120e0 0%, #071120ad 28%, #0a193032 54%, transparent 86%);
}
.hero-inner { position: relative; display: flex; align-items: center; padding-block: calc(66px + var(--header-space)) 90px; }
.hero-content { width: min(100%, 520px); }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 13px; margin: 0 0 12px; }
.hero-kicker .runes { color: var(--ice); font-size: 1.18rem; line-height: 1; letter-spacing: .18em; }
.hero-kicker span:last-child { color: var(--frost); font: 700 .72rem var(--serif); letter-spacing: .135em; text-transform: uppercase; }
.hero-wordmark { width: min(100%, 480px); margin: 0 0 8px; }
.hero-wordmark img {
    display: block;
    width: 100%;
    height: auto;
    /* Align the visible lettering past the PNG's transparent left margin. */
    translate: -8.7% 0;
    filter: drop-shadow(0 4px 14px #000e);
}
.hero-description { max-width: 450px; margin: 0; color: #e0eeff; font: 1.12rem/1.65 var(--serif); text-shadow: 0 2px 6px #000; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 23px; }
.hero-actions .button { min-height: 52px; }
.runic-divider {
    width: min(850px, calc(100% - 50px)); margin: -1px auto 0; display: grid;
    grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; color: var(--ice);
}
.runic-divider .runes { letter-spacing: .24em; line-height: 1.5; font-size: 1.1rem; }
.runic-divider span:first-child, .runic-divider span:last-child { height: 1px; background: linear-gradient(90deg, transparent, #597da5); }
.runic-divider span:last-child { transform: rotate(180deg); }

.portal { padding-block: 25px 64px; }
.download-card, .signup-card {
    border: 1px solid var(--line); border-radius: 2px;
    background: linear-gradient(130deg, #172e4a, #101e32 65%);
    box-shadow: inset 0 0 0 3px #0c182a, 0 8px 30px #0003;
}
.download-card {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    gap: 18px; padding: 19px 25px; border-color: #4a729d;
}
.platform-icon {
    display: grid; grid-template: repeat(2, 8px) / repeat(2, 8px); place-content: center; gap: 3px;
    width: 48px; aspect-ratio: 1; border: 1px solid #6387af; background: #1c3754; transform: rotate(45deg) scale(.86);
}
.platform-icon span { background: #b5defb; border-radius: 1px; }
.download-copy h2 { margin: 0; font: 700 1.16rem var(--serif); }
.download-copy p { margin: 2px 0 0; color: var(--muted); font-size: .84rem; }
.download-copy .platform-name { color: #bbdaf7; }
.download-card .button { justify-self: end; }

.server-overview { margin-bottom: clamp(16px, 2vw, 28px); }
.server-overview h2 { margin: 0 0 14px; font: 700 clamp(1.25rem, 2.5vw, 1.65rem) var(--serif); }
.server-overview dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.server-overview dl div { display: flex; flex-direction: column-reverse; gap: 4px; padding: clamp(12px, 2vw, 20px); background: #102034; }
.server-overview dl div + div { border-left: 1px solid var(--line); }
.server-overview dt { color: var(--muted); font-size: .85rem; }
.server-overview dd { margin: 0; color: #deecfc; font: 700 clamp(1.2rem, 3vw, 2rem) var(--serif); }

.world-boss-card {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: clamp(460px, 33vw, 720px);
    display: grid; align-items: center;
    border-bottom: 1px solid #5f5774; background: var(--ink);
}
.world-boss-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.world-boss-card::before {
    content: ''; position: absolute; z-index: -1; inset: 0;
    background: linear-gradient(90deg, #0a0b17f5, #0d1020db 30%, #10132738 66%, transparent),
                linear-gradient(0deg, #0a0b19bc, transparent 42%);
}
.world-boss-card::after {
    content: ''; position: absolute; z-index: -1; inset: 0 0 auto;
    height: clamp(18px, 2.6vw, 42px); pointer-events: none;
    background: linear-gradient(var(--ink), transparent);
}
.world-boss-inner { padding-block: clamp(36px, 5vw, 66px); }
.world-boss-content { max-width: 32rem; }
.world-boss-label { margin: 0 0 12px; color: #c8b6ef; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; }
.world-boss-content h2 { margin: 0; color: #f4ecff; font: 700 clamp(2.5rem, 5.7vw, 5.2rem)/1 var(--serif); }
.world-boss-schedule { margin-top: 24px; border-left: 2px solid #9a80c2; padding-inline-start: 13px; }
.world-boss-time { margin: 0; color: #ddcce7; font-size: .9rem; }
.world-boss-time span { white-space: nowrap; }
#world-boss-countdown { margin: 2px 0 0; color: #eddbff; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; font-variant-numeric: tabular-nums; }
#world-boss-countdown:empty { display: none; }
.boss-guide-link { margin-top: 22px; border-color: #a592bd; background: #241e38; color: #f4edff; }
.boss-guide-link:hover { background: #3b2c51; }

.registration-page { min-height: 100vh; background: radial-gradient(ellipse at top, #182d48, #0a1526 70%); }
.registration-header { border-bottom: 1px solid var(--line); }
.registration-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; }
.registration-main { display: grid; place-items: center; padding-block: clamp(24px, 6vw, 64px); }
.registration-main .signup-card { width: min(100%, 720px); }
.account-switch { margin: 20px 0 0; color: var(--muted); }
.account-switch a { color: var(--ice); text-decoration: underline; }
.signup-card { padding: clamp(20px, 3.1vw, 36px); }
.section-heading { margin-bottom: 20px; }
.section-heading :is(h1, h2) { margin: 0; font: 700 clamp(1.65rem, 3.3vw, 2.35rem)/1.18 var(--serif); }
.section-heading p { margin: 7px 0 0; color: var(--muted); }
fieldset { display: grid; gap: 15px; padding: 0; margin: 0; min-width: 0; border: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { min-width: 0; }
label { display: block; margin-bottom: 5px; color: #d8e8fb; font-size: .86rem; font-weight: 650; }
input, select { width: 100%; min-height: 44px; padding: 7px 11px; color: #eaf5ff; background: #0a1729; border: 1px solid #486a91; border-radius: 2px; }
input:disabled, select:disabled { color: #a1b7d0; background: #0c182a; border-color: #355170; }
.button:disabled { cursor: default; color: #bdcfe3; background: #293d55; border-color: #4d6581; box-shadow: none; }
small { display: block; color: var(--muted); font-size: .78rem; }
.field small { margin-top: 5px; }
.account-sex { max-width: 270px; }
.signup-action { justify-self: start; }
.notice {
    margin: 0 0 18px; padding: 10px 12px; color: #d8eafe; background: #1b3553;
    border-left: 2px solid #7ba8ce; font-size: .85rem; white-space: pre-line;
}
.notice.error { border-color: #ffab8f; background: #43231d; color: #ffdfcf; }
.notice.success { border-color: #87cbb4; background: #202f27; color: #d8f7e9; }

.midgard, .commerce { margin-block: clamp(32px, 5vw, 62px); }
.commerce { border-top: 1px solid var(--line); padding-top: 24px; }
.commerce a, .world-grid a { margin-top: 12px; }
.commerce a:not(.button), .world-grid a:not(.button) { display: inline-block; color: var(--ice); text-decoration: underline; }
.world-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.world-grid article { min-width: 0; border: 1px solid var(--line); background: #13243a; }
.world-grid img { display: block; width: 100%; height: auto; aspect-ratio: 12 / 7; object-fit: cover; }
.world-card-copy { padding: 17px 18px; }
.world-grid h3 { margin: 0; font: 700 1.1rem var(--serif); }
.world-grid p { margin: 7px 0 0; color: var(--muted); font-size: .88rem; }
.world-grid a { font-size: .88rem; }

.site-footer { border-top: 1px solid var(--line); background: #081120; color: #b2c6de; font: .88rem var(--serif); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 19px 24px; }

@media (max-width: 920px) {
    .shell { width: calc(100% - 54px); }
    .header-inner { gap: 13px; }
    .navigation { gap: 16px; }
}
@media (max-width: 720px) {
    .shell { width: calc(100% - 36px); }
    .header-inner { display: flex; flex-wrap: wrap; gap: 0 10px; padding-block: 5px 9px; }
    .home-link { margin-inline-end: auto; padding-block: 8px; }
    .navigation { order: 2; width: 100%; padding-top: 3px; flex-wrap: wrap; gap: 6px 15px; }
    .hero { --header-space: 88px; min-height: calc(550px + var(--header-space)); }
    .hero-video { object-position: 81% 50%; }
    .hero::after {
        background: linear-gradient(180deg, #071120a8, transparent 27%),
            linear-gradient(0deg, #0a1526 0%, #0a172bc9 40%, #0a172b10 100%),
            linear-gradient(90deg, #09182da9, #09182d17);
    }
    .hero-inner { padding-block: calc(75px + var(--header-space)) 80px; align-items: end; }
    .hero-wordmark { width: min(100%, 440px); }
    .world-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .world-boss-card { min-height: 0; }
    .world-boss-inner { padding-block: clamp(225px, 54vw, 340px) 26px; }
    .world-boss-art { height: 100%; object-position: 70% top; }
    .world-boss-card::before { background: linear-gradient(0deg, #0b0b18 18%, #0b0c1af4 40%, #0b0c1a12 74%, transparent); }
}
@media (max-width: 440px) {
    .shell { width: calc(100% - 32px); }
    .navigation { font-size: .79rem; gap: 12px; }
    .hero-actions { gap: 8px; }
    .hero-actions .button { flex: 1 1 auto; min-height: 44px; padding-inline: 10px; font-size: .84rem; }
    .hero-description { font-size: 1rem; }
    .download-card { grid-template-columns: auto minmax(0, 1fr); padding: 14px; gap: 11px; }
    .download-card .button { grid-column: 1 / -1; justify-self: stretch; }
    .platform-icon { width: 39px; }
    .form-row { grid-template-columns: minmax(0, 1fr); }
    .server-overview dl div { padding-inline: 9px; }
    .server-overview dt { font-size: .76rem; }
    .portal { padding-block: 20px 40px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
