@layer reset, base, components, pages, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { color-scheme: dark; scroll-behavior: smooth; }
  body { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  button, input, select { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
}

@layer base {
  :root {
    --ink: #05080d;
    --ink-blue: #07111e;
    --steel: #0d1d2e;
    --steel-light: #172b42;
    --gold: #f2c35b;
    --gold-bright: #ffe8a2;
    --gold-deep: #9b591a;
    --crystal: #32b9ff;
    --crystal-bright: #8adeff;
    --ember: #c92d21;
    --ember-bright: #ff5f38;
    --text: #f6f1e8;
    --muted: #b8c8da;
    --danger: #ff8a78;
    --content: min(1280px, calc(100vw - 48px));
    --shadow-deep: 0 24px 54px rgba(0, 0, 0, .42);
    --shadow-gold: 0 12px 32px rgba(136, 68, 15, .28);
    --display: "Marcellus SC", Georgia, serif;
    --body: "Saira Condensed", "Arial Narrow", sans-serif;
  }

  body {
    min-width: 320px;
    color: var(--text);
    background: var(--ink);
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.45;
    overflow-x: hidden;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(rgba(4, 9, 15, .94), rgba(4, 9, 15, .94)), url("/bg/b2.png") center top / cover;
  }

  h1, h2, h3, p { margin-top: 0; }
  h1, h2, h3 { text-wrap: balance; }
  h1, h2 { font-family: var(--display); font-weight: 400; }
  p { color: var(--muted); }
  a { color: inherit; text-decoration: none; }
  button { color: inherit; }

  :focus-visible {
    outline: 3px solid var(--crystal-bright);
    outline-offset: 4px;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 100;
    transform: translateY(-160%);
    padding: 10px 16px;
    color: #08111c;
    background: var(--gold-bright);
  }
  .skip-link:focus { transform: translateY(0); }
  .icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
}

@layer components {
  .command-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: 74px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 0 max(24px, calc((100vw - 1440px) / 2));
    border-bottom: 1px solid rgba(242, 195, 91, .28);
    background: linear-gradient(180deg, rgba(2, 6, 11, .94), rgba(4, 10, 17, .74));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
  }

  .command-bar::after {
    content: "";
    position: absolute;
    inset: auto 7% -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--crystal), var(--gold), transparent);
    opacity: .65;
  }

  .wordmark {
    display: inline-flex;
    align-items: baseline;
    width: 126px;
    height: 68px;
    align-items: center;
  }
  .wordmark img { width: 100%; max-height: 66px; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .5)); }

  .primary-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;
  }
  .primary-nav > a {
    position: relative;
    display: grid;
    place-items: center;
    padding: 0 17px;
    color: #c9d5e2;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition: color 220ms ease-out, background 220ms ease-out;
  }
  .primary-nav > a::after {
    content: "";
    position: absolute;
    inset: auto 22px 0;
    height: 3px;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
    transition: transform 260ms ease-out;
  }
  .primary-nav > a:hover, .primary-nav > a.is-active { color: var(--gold-bright); background: rgba(255, 255, 255, .025); }
  .primary-nav > a.is-active::after { transform: scaleX(1); }

  .header-session { min-width: 214px; display: flex; justify-content: flex-end; }
  .guest-session-controls { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
  .session-controls { display: flex; align-items: center; gap: 7px; }
  .welcome-account { width: 92px; display: grid; justify-items: center; gap: 2px; color: #fff2c4; text-align: center; }
  .welcome-account img { width: 90px; }
  .welcome-account strong { max-width: 92px; overflow: hidden; font-family: Georgia, serif; font-size: 14px; font-weight: 400; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
  .session-asset { display: block; width: 106px; padding: 0; border: 0; background: none; cursor: pointer; transition: filter 180ms ease-out, transform 180ms ease-out; }
  .session-asset:hover { filter: brightness(1.14); transform: translateY(-2px); }
  .session-asset:disabled { opacity: .55; pointer-events: none; }
  .login-nav-asset { display: block; width: 104px; transition: filter 180ms ease-out, transform 180ms ease-out; }
  .login-nav-asset:hover { filter: brightness(1.14); transform: translateY(-2px); }
  .create-account-asset { display: block; width: 214px; transition: filter 180ms ease-out, transform 180ms ease-out; }
  .create-account-asset:hover { filter: brightness(1.12); transform: translateY(-2px); }
  .nav-session-mobile { display: none; }

  .header-cta, .blade-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 22px;
    color: #fff7df;
    border: 1px solid #d88a2d;
    background: linear-gradient(180deg, #c53a21, #74150f);
    box-shadow: 0 10px 24px rgba(126, 20, 12, .32), inset 0 1px rgba(255, 226, 143, .52);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
    transition: filter 220ms ease-out, transform 220ms ease-out, box-shadow 220ms ease-out;
  }
  .header-cta:hover, .blade-button:hover { filter: brightness(1.16); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(126, 20, 12, .42), inset 0 1px rgba(255, 226, 143, .62); }

  .menu-toggle { display: none; }

  .content-section { width: var(--content); margin-inline: auto; }

  .section-heading { max-width: 760px; margin-bottom: 32px; }
  .section-heading h2 {
    margin-bottom: 12px;
    color: var(--gold-bright);
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.05;
    letter-spacing: -.025em;
  }
  .section-heading p { max-width: 68ch; margin-bottom: 0; font-size: 20px; }
  .section-heading.compact { max-width: none; text-align: center; }

  .inner-hero {
    position: relative;
    min-height: 410px;
    display: flex;
    align-items: flex-end;
    padding: 130px max(24px, calc((100vw - 1280px) / 2)) 56px;
    overflow: hidden;
    border-bottom: 1px solid rgba(242, 195, 91, .3);
    isolation: isolate;
  }
  .inner-hero-art {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("/bg/full__big_clean.jpg") center 31% / cover;
    transform: scale(1.035);
    filter: saturate(.9) contrast(1.05);
  }
  .inner-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(2, 7, 13, .95) 0%, rgba(2, 7, 13, .7) 44%, rgba(2, 7, 13, .28)), linear-gradient(0deg, #05090f 0%, transparent 70%);
  }
  .inner-hero-copy { width: min(740px, 100%); }
  .inner-hero h1 { margin: 16px 0 10px; color: var(--gold-bright); font-size: clamp(46px, 7vw, 86px); line-height: .98; letter-spacing: -.035em; text-shadow: 0 6px 18px #000; }
  .inner-hero p { max-width: 62ch; margin-bottom: 0; color: #d6e1ed; font-size: 21px; }
  .back-link { display: inline-flex; align-items: center; gap: 9px; color: var(--crystal-bright); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
  .back-link .icon { transform: rotate(180deg); }

  .page-section { padding-block: 64px 100px; }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    padding: 34px max(24px, calc((100vw - 1280px) / 2));
    border-top: 1px solid rgba(242, 195, 91, .25);
    background: #03070c;
  }
  .footer-mark { font-family: var(--display); letter-spacing: .07em; }
  .footer-mark span { color: var(--gold); }
  .site-footer p { margin: 0; font-size: 15px; }
  .footer-links { display: flex; justify-content: flex-end; gap: 20px; color: var(--gold-bright); font-size: 15px; text-transform: uppercase; }

  .toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    max-width: min(420px, calc(100vw - 48px));
    padding: 16px 18px;
    color: #f5faff;
    border: 1px solid rgba(94, 198, 255, .62);
    background: #0b2135;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
    transform: translateY(140%);
    opacity: 0;
    transition: transform 300ms ease-out, opacity 300ms ease-out;
  }
  .toast.is-visible { transform: translateY(0); opacity: 1; }
}

@layer pages {
  .hero-home {
    position: relative;
    min-height: max(760px, 100svh);
    overflow: hidden;
    isolation: isolate;
  }
  .hero-art {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: url("/bg/full__big_clean.jpg") center top / cover no-repeat;
  }
  .hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(0deg, rgba(5, 9, 15, .84) 0%, rgba(5, 9, 15, .16) 18%, transparent 36%);
  }
  .status-ribbon {
    justify-self: center;
    position: absolute;
    inset: auto auto 22px 50%;
    width: max-content;
    max-width: calc(100% - 48px);
    transform: translateX(-50%);
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 28px;
    padding: 12px 22px;
    border: 1px solid rgba(207, 149, 52, .5);
    background: linear-gradient(180deg, rgba(7, 19, 33, .94), rgba(4, 11, 19, .96));
    box-shadow: 0 18px 42px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 223, 146, .16);
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
    font-size: 15px;
  }
  .status-ribbon > div { display: flex; align-items: center; gap: 10px; color: #eff7ff; }
  .status-ribbon > span { text-align: center; color: var(--muted); }
  .status-ribbon a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-bright); text-transform: uppercase; letter-spacing: .05em; }
  .status-dot { width: 10px; height: 10px; border-radius: 50%; background: #8e9aab; box-shadow: 0 2px 9px rgba(0, 0, 0, .6); }
  .status-dot.is-pending { background: #f3aa38; animation: status-pulse 1.8s ease-in-out infinite; }
  .status-dot.is-live { background: #52d36f; box-shadow: 0 0 14px rgba(82, 211, 111, .55); }

  .dispatches { padding-block: 92px 78px; }
  .dispatch-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
  .dispatch-card { position: relative; min-width: 0; background: #07111d; box-shadow: var(--shadow-deep); overflow: hidden; }
  .dispatch-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(230, 169, 68, .58); }
  .dispatch-card--announcement { background: radial-gradient(circle at 18% 16%, rgba(35, 102, 151, .2), transparent 31%), linear-gradient(145deg, #081728, #050c15 72%); }
  .dispatch-lead { display: grid; grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr); align-items: stretch; }
  .dispatch-art { min-height: 100%; margin: 0; overflow: hidden; border-right: 1px solid rgba(230, 169, 68, .34); background: radial-gradient(circle at 50% 38%, rgba(33, 101, 151, .22), transparent 55%), #030811; }
  .dispatch-art img { width: 100%; height: 100%; min-height: 620px; object-fit: contain; object-position: center; transition: transform 700ms ease-out; }
  .dispatch-card:hover .dispatch-art img { transform: scale(1.025); }
  .dispatch-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 68px); }
  .dispatch-copy span { color: var(--crystal-bright); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
  .dispatch-copy h3 { margin: 8px 0 24px; color: var(--gold-bright); font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.02; }
  .dispatch-copy p { margin: 0 0 16px; color: #bac8d6; font-size: 16px; line-height: 1.72; }
  .dispatch-copy p:last-child { margin-bottom: 0; }
  .dispatch-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid rgba(230, 169, 68, .36); }
  .dispatch-details > section { padding: clamp(34px, 5vw, 58px); }
  .opening-callout { background: linear-gradient(145deg, rgba(22, 66, 101, .32), rgba(3, 10, 18, .28)); }
  .season-highlights { border-left: 1px solid rgba(230, 169, 68, .3); }
  .dispatch-kicker { margin: 0 0 8px; color: var(--crystal-bright); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .dispatch-details h4 { margin: 0 0 18px; color: var(--gold-bright); font-family: var(--display); font-size: clamp(27px, 3vw, 38px); font-weight: 400; line-height: 1.08; }
  .opening-callout > p:not(.dispatch-kicker) { margin: 0 0 28px; color: #c5d2df; font-size: 17px; line-height: 1.65; }
  .opening-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: rgba(231, 177, 74, .18); border: 1px solid rgba(231, 177, 74, .18); }
  .opening-times div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 12px 14px; background: rgba(4, 13, 23, .94); }
  .opening-times div.is-local { background: linear-gradient(90deg, rgba(17, 79, 119, .78), rgba(9, 37, 60, .9)); }
  .opening-times dt { min-width: 0; color: #aebdca; font-size: 13px; }
  .opening-times dd { flex: 0 0 auto; margin: 0; color: #f4d486; font-weight: 700; font-variant-numeric: tabular-nums; }
  .season-highlights ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 24px; margin: 0; padding: 0; list-style: none; }
  .season-highlights li { position: relative; padding-left: 18px; color: #c5d2df; line-height: 1.48; }
  .season-highlights li::before { content: ""; position: absolute; top: .62em; left: 0; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 8px rgba(230, 169, 68, .45); }
  .dispatch-rally { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid rgba(230, 169, 68, .24); color: #e5edf4; font-size: 17px; line-height: 1.6; }
  .dispatch-signoff { margin: 14px 0 0; color: var(--gold-bright); font-family: var(--display); font-size: 20px; }

  .war-table { position: relative; min-height: 640px; margin-block: 24px 100px; padding: 130px 10% 100px; isolation: isolate; }
  .war-table-frame { position: absolute; inset: 0; z-index: -1; background: url("/khungmenu/khungmenu.png") center / 100% 100% no-repeat; filter: drop-shadow(0 24px 42px rgba(0, 0, 0, .48)); }
  .war-table-content { max-width: 980px; margin-inline: auto; }
  .journey-list { margin: 34px 0 0; padding: 0; list-style: none; }
  .journey-list li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 20px; padding: 20px 16px; border-top: 1px solid rgba(229, 175, 77, .28); }
  .journey-list li:last-child { border-bottom: 1px solid rgba(229, 175, 77, .28); }
  .journey-list li > span { display: grid; place-items: center; width: 42px; height: 42px; color: #06111f; background: var(--gold); clip-path: polygon(50% 0, 92% 22%, 92% 78%, 50% 100%, 8% 78%, 8% 22%); font-weight: 700; }
  .journey-list h3 { margin: 0 0 3px; color: #f5dfa9; font-family: var(--display); font-weight: 400; font-size: 22px; }
  .journey-list p { margin: 0; }
  .journey-list a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--crystal-bright); border: 1px solid rgba(72, 174, 234, .42); background: #0a1d30; transition: background 220ms ease-out, color 220ms ease-out; }
  .journey-list a:hover { color: #fff; background: #124b72; }

  .closing-gate { display: flex; align-items: center; justify-content: space-between; gap: 36px; margin-bottom: 100px; padding: 46px 52px; border-top: 1px solid rgba(242, 195, 91, .45); border-bottom: 1px solid rgba(242, 195, 91, .45); background: linear-gradient(90deg, rgba(128, 23, 16, .26), rgba(8, 33, 54, .78)); box-shadow: var(--shadow-deep); }
  .closing-gate h2 { margin-bottom: 8px; color: var(--gold-bright); font-size: clamp(32px, 4vw, 54px); }
  .closing-gate p { margin: 0; }

  .register-panel { position: relative; width: 100%; aspect-ratio: 1847 / 1140; filter: drop-shadow(0 24px 52px rgba(0, 0, 0, .48)); }
  .register-art { position: absolute; inset: 0; background: url("/reg/Layer%2084%20copy%203.png") center / contain no-repeat; }
  .register-form { position: absolute; left: 35.6%; top: 20%; width: 60.5%; min-height: 70%; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 18px 24px; padding: 48px 52px 32px; border: 1px solid rgba(240, 188, 81, .42); background: #050d17; box-shadow: 0 20px 50px rgba(0, 0, 0, .38), inset 0 0 70px rgba(23, 57, 88, .15); }
  .form-field label { display: block; margin-bottom: 7px; color: var(--gold-bright); font-family: var(--display); font-size: 15px; }
  .input-wrap { display: grid; grid-template-columns: 44px 1fr; align-items: center; min-height: 50px; border: 1px solid rgba(230, 184, 99, .56); background: #091523; box-shadow: inset 0 3px 12px rgba(0, 0, 0, .42); }
  .input-wrap .icon { justify-self: center; color: var(--gold); }
  .input-wrap input, .input-wrap select { width: 100%; height: 48px; color: #f3f7fb; border: 0; border-left: 1px solid rgba(230, 184, 99, .2); outline: 0; background: transparent; padding: 0 14px; }
  .input-wrap select { color-scheme: dark; cursor: pointer; }
  .input-wrap select option { color: #f3f7fb; background: #081523; }
  .captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
  .captcha-image { width: 124px; height: 42px; object-fit: cover; border: 1px solid rgba(232, 176, 77, .48); background: #fff; }
  .captcha-refresh { width: 42px; height: 42px; color: var(--gold-bright); border: 1px solid rgba(232, 176, 77, .48); background: #071522; cursor: pointer; font-size: 20px; }
  .field-error { min-height: 15px; color: var(--danger); font-size: 12px; }
  [aria-invalid="true"] { outline: 1px solid var(--danger); outline-offset: -1px; }
  .terms-row a, .account-login-link { color: var(--gold-bright); }
  .asset-submit.is-busy, .login-submit.is-busy { opacity: .55; pointer-events: none; }
  .input-wrap input::placeholder { color: #8fa4b9; }
  .input-wrap input:disabled { color: #8fa4b9; cursor: not-allowed; }
  .terms-row { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 12px; color: #d7e0e8; font-size: 15px; }
  .terms-row input { width: 20px; height: 20px; accent-color: var(--gold); }
  .asset-submit { grid-column: 1 / -1; width: min(520px, 86%); margin: 4px auto 0; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 12px 18px rgba(119, 24, 13, .5)); transition: filter 220ms ease-out, transform 220ms ease-out; }
  .asset-submit:hover { transform: translateY(-3px); filter: drop-shadow(0 16px 24px rgba(217, 52, 30, .48)) brightness(1.08); }
  .form-feedback { grid-column: 1 / -1; margin: 0; color: #adc6da; text-align: center; font-size: 14px; }
  .form-feedback.is-error { color: var(--danger); }
  .login-row { grid-column: 1 / -1; margin: 0; color: #d7e1eb; text-align: center; font-size: 16px; }
  .login-row a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 4px; }

  .login-section { display: grid; place-items: center; min-height: 660px; }
  .login-panel { position: relative; width: min(620px, 100%); padding: 68px 72px 52px; border: 1px solid rgba(237, 181, 80, .68); background: linear-gradient(rgba(5, 15, 26, .96), rgba(5, 12, 21, .98)), url("/bg/b2.png") center / cover; box-shadow: var(--shadow-deep), inset 0 0 78px rgba(38, 104, 154, .14); }
  .login-panel::before, .login-panel::after { content: ""; position: absolute; width: 58px; height: 58px; border: solid var(--gold-deep); pointer-events: none; }
  .login-panel::before { top: -8px; left: -8px; border-width: 2px 0 0 2px; }
  .login-panel::after { right: -8px; bottom: -8px; border-width: 0 2px 2px 0; }
  .login-emblem { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; color: var(--crystal-bright); border: 1px solid rgba(242, 195, 91, .64); background: #0b2237; transform: rotate(45deg); box-shadow: 0 14px 28px rgba(0, 0, 0, .34); }
  .login-emblem .icon { width: 34px; height: 34px; transform: rotate(-45deg); }
  .login-panel h2 { margin-bottom: 8px; color: var(--gold-bright); font-size: 40px; text-align: center; }
  .login-panel > p { max-width: 52ch; margin-inline: auto; text-align: center; }
  .login-panel .form-field { margin-top: 18px; }
  .login-submit { width: 100%; margin-top: 26px; cursor: pointer; }
  .login-asset-submit { display: block; width: min(228px, 78%); min-height: 0; margin-inline: auto; padding: 0; border: 0; background: none; transition: filter 180ms ease-out, transform 180ms ease-out; }
  .login-asset-submit:hover { filter: brightness(1.14); transform: translateY(-3px); }

  .download-board { position: relative; width: 100%; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .5)); }
  .download-art { width: 100%; }
  .download-actions { position: absolute; inset: 0; pointer-events: none; }
  .download-mirror-stack { position: absolute; left: 74.2%; width: 22.2%; display: grid; gap: 6px; pointer-events: auto; }
  .download-mirror-stack.normal-client { top: 41.3%; }
  .download-mirror-stack.lite-client { top: 74.4%; }
  .mirror-download-button { display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; border: 0; background: none; transition: filter 220ms ease-out, transform 220ms ease-out; }
  .mirror-download-button img { width: 108%; max-width: none; height: auto; clip-path: inset(7px 9px 7px 9px); transform: scale(1.04); }
  .mirror-download-button:hover { filter: brightness(1.12) drop-shadow(0 8px 14px rgba(219, 39, 25, .42)); transform: translateX(-4px); }
  .asset-download { position: absolute; left: 73.8%; width: 24.8%; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; transition: filter 220ms ease-out, transform 220ms ease-out; }
  .asset-download:first-child { top: 40.1%; }
  .asset-download:last-child { top: 73.2%; }
  .asset-download:hover { filter: brightness(1.12) drop-shadow(0 10px 18px rgba(219, 39, 25, .48)); transform: translateX(-5px); }
  .font-fix-download { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: 30px; padding: 18px 22px; border: 1px solid rgba(229, 175, 77, .42); background: linear-gradient(135deg, rgba(8, 23, 38, .94), rgba(4, 13, 23, .98)); box-shadow: inset 0 0 44px rgba(34, 90, 135, .1); }
  .font-fix-download img { width: 96px; height: 96px; object-fit: cover; border: 1px solid rgba(229, 175, 77, .36); background: #06111d; }
  .download-kicker { display: block; margin-bottom: 5px; color: var(--crystal-bright); font-family: var(--body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
  .font-fix-download h2 { margin: 0 0 6px; color: var(--gold-bright); font-family: var(--display); font-size: 28px; font-weight: 400; }
  .font-fix-download p { margin: 0; color: var(--muted); font-size: 16px; }
  .font-fix-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; color: var(--gold-bright); border: 1px solid rgba(229, 175, 77, .68); background: linear-gradient(180deg, rgba(116, 18, 13, .96), rgba(56, 9, 8, .98)); font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; transition: filter 220ms ease-out, transform 220ms ease-out; }
  .font-fix-button:hover { filter: brightness(1.14) drop-shadow(0 10px 18px rgba(219, 39, 25, .42)); transform: translateX(-4px); }
  .font-fix-button .icon { width: 18px; height: 18px; }
  .windows-11-help { margin-top: 22px; padding: 26px 30px 28px; border: 1px solid rgba(84, 178, 220, .38); background: linear-gradient(135deg, rgba(7, 29, 46, .96), rgba(4, 14, 25, .98)); box-shadow: inset 0 0 44px rgba(34, 90, 135, .12); }
  .windows-11-help h2 { max-width: 30ch; margin: 0 0 20px; color: var(--gold-bright); font-family: var(--display); font-size: clamp(25px, 3vw, 35px); font-weight: 400; line-height: 1.12; }
  .windows-11-help ol { display: grid; gap: 12px; max-width: 100ch; margin: 0; padding-left: 25px; color: #cbd8e5; font-size: 16px; line-height: 1.58; }
  .windows-11-help li { padding-left: 6px; }
  .windows-11-help li::marker { color: var(--crystal-bright); font-weight: 700; }
  .windows-11-help strong { color: #f3d58d; font-weight: 600; }
  .integrity-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 34px; background: rgba(229, 175, 77, .22); border-block: 1px solid rgba(229, 175, 77, .28); }
  .integrity-row > div { padding: 28px; background: #08131f; }
  .integrity-row .icon { width: 28px; height: 28px; color: var(--crystal-bright); margin-bottom: 14px; }
  .integrity-row h3 { margin-bottom: 7px; color: var(--gold-bright); font-family: var(--display); font-weight: 400; }
  .integrity-row p { margin: 0; font-size: 16px; }

  .rank-shell { position: relative; margin-top: 70px; padding: 120px 28px 28px; border: 1px solid rgba(226, 161, 53, .68); background: linear-gradient(rgba(5, 15, 26, .96), rgba(8, 19, 31, .98)), url("/bg/b2.png") center / cover; box-shadow: var(--shadow-deep), inset 0 0 80px rgba(34, 90, 135, .13); }
  .rank-crown { position: absolute; top: -50px; left: 2%; width: 96%; height: auto; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .45)); }
  .rank-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; color: #d7e5f1; }
  .rank-toolbar > div { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
  .rank-toolbar label { display: flex; align-items: center; gap: 12px; color: var(--gold-bright); }
  .rank-toolbar select { min-height: 42px; padding: 0 34px 0 14px; color: #fff; border: 1px solid rgba(225, 158, 46, .58); background: #071321; }
  .table-wrap { overflow-x: auto; }
  .rank-shell table { width: 100%; min-width: 1080px; border-collapse: collapse; }
  .rank-shell th { padding: 14px 16px; color: var(--gold-bright); border-bottom: 1px solid rgba(226, 161, 53, .45); background: rgba(2, 7, 12, .82); font-family: var(--display); font-size: 15px; text-align: left; }
  .rank-shell td { padding: 14px 16px; color: #dce7f0; border-bottom: 1px solid rgba(226, 161, 53, .24); background: rgba(5, 12, 19, .72); }
  .rank-shell tr:hover td { background: rgba(17, 41, 64, .9); }
  .rank-shell td:first-child { width: 80px; text-align: center; }
  .rank-shell td:first-child img { width: 54px; margin: auto; }
  .rank-shell strong { color: #fff1be; font-weight: 600; }
  .rank-meta, .level-score small, .player-location small { display: block; margin-top: 4px; color: #8fa6ba; font-size: 12px; font-weight: 400; }
  .level-score { color: var(--crystal-bright); font-variant-numeric: tabular-nums; }
  .level-score strong { color: var(--crystal-bright); font-size: 20px; }
  .player-location { white-space: nowrap; }
  .online-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #82e899; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
  .online-badge .status-dot { width: 7px; height: 7px; }
  .loadout-details { position: relative; min-width: 190px; }
  .loadout-details summary { color: #f4cc73; cursor: pointer; list-style: none; white-space: nowrap; }
  .loadout-details summary::-webkit-details-marker { display: none; }
  .loadout-details summary::after { content: "+"; display: inline-grid; width: 20px; height: 20px; margin-left: 9px; place-items: center; border: 1px solid rgba(226, 161, 53, .44); }
  .loadout-details[open] summary::after { content: "−"; }
  .loadout-details ul { position: absolute; z-index: 8; top: calc(100% + 10px); right: 0; width: min(420px, 70vw); max-height: 340px; margin: 0; padding: 10px; overflow-y: auto; border: 1px solid rgba(226, 161, 53, .6); background: #05111d; box-shadow: 0 18px 42px rgba(0, 0, 0, .65); list-style: none; }
  .loadout-details li { display: grid; grid-template-columns: 90px 1fr; gap: 2px 10px; padding: 10px; border-bottom: 1px solid rgba(226, 161, 53, .18); }
  .loadout-details li:last-child { border-bottom: 0; }
  .loadout-details li > strong { grid-row: 1 / 3; color: #d7a94d; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
  .loadout-details li > span { color: #f6f0df; }
  .loadout-details li > small { color: #95abc0; line-height: 1.45; }
  .empty-loadout { color: #73889b; font-size: 13px; }
  .ranking-state-row td { padding-block: 36px; color: var(--muted); text-align: center; }
  .ranking-state-row td .status-dot { display: inline-block; margin-right: 9px; }
  .ranking-state-row.is-error td { color: var(--danger); }
  .ranking-source-note { max-width: 76ch; margin: 18px 4px 0; color: #91a8bc; font-size: 14px; }

  .donate-banner { width: 100%; margin: 18px 0 28px; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .42)); }
  .donation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .donation-grid-single { grid-template-columns: minmax(280px, 420px); justify-content: center; }
  .donation-grid article { position: relative; min-width: 0; text-align: center; }
  .donation-grid article > img { width: 100%; }
  .donation-grid button { position: absolute; left: 12%; right: 12%; bottom: 7.5%; width: 76%; padding: 0; border: 0; background: none; cursor: pointer; transition: filter 220ms ease-out, transform 220ms ease-out; }
  .donation-grid button:hover { filter: brightness(1.14) drop-shadow(0 10px 18px rgba(211, 42, 23, .44)); transform: translateY(-4px); }
  .donation-grid .payment-provider-card { transition: filter 180ms ease-out, transform 180ms ease-out; }
  .donation-grid .payment-provider-card.is-selected { filter: drop-shadow(0 0 20px rgba(92, 113, 246, .46)); transform: translateY(-5px); }
  .payment-label { position: absolute; top: 33%; left: 0; right: 0; color: var(--gold-bright); font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.3vw, 34px); }
  .topup-panel { display: grid; grid-template-columns: minmax(250px, .7fr) 1.3fr; gap: 34px; margin-top: 38px; padding: 34px; border: 1px solid rgba(232, 176, 77, .48); background: linear-gradient(135deg, rgba(9, 26, 43, .96), rgba(4, 13, 23, .98)); }
  .topup-panel h2 { margin: 3px 0 8px; color: var(--gold-bright); font-size: clamp(30px, 4vw, 52px); }
  .eyebrow { color: var(--crystal); font-family: var(--body); font-size: 13px; letter-spacing: .16em; }
  .package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .package-card { min-height: 104px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 18px; color: #eff7ff; border: 1px solid rgba(232, 176, 77, .36); background: rgba(5, 17, 29, .86); cursor: pointer; text-align: left; transition: transform 180ms ease-out, border-color 180ms ease-out, background 180ms ease-out; }
  .package-card:hover, .package-card:focus-visible { transform: translateY(-3px); border-color: var(--gold-bright); background: rgba(18, 36, 52, .98); outline: none; }
  .package-card strong { color: var(--gold-bright); font-family: var(--display); font-size: 22px; }
  .package-card span, .empty-state { color: var(--muted); }
  .package-price { display: inline-flex; align-items: baseline; gap: 8px; color: inherit; }
  .package-price del { color: rgba(186, 199, 213, .72); text-decoration-color: rgba(226, 184, 104, .86); }
  .package-price b { color: var(--gold-bright); font-weight: 700; }
  .topup-panel > .form-feedback { grid-column: 1 / -1; }

  .information-page { display: grid; gap: 40px; }
  .information-dashboard { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(310px, .52fr); gap: 26px; align-items: stretch; }
  .account-board { position: relative; min-width: 0; aspect-ratio: 1319 / 1146; filter: drop-shadow(0 24px 42px rgba(0, 0, 0, .5)); }
  .account-board-art { position: absolute; inset: 0; width: 100%; height: 100%; }
  .account-stat { position: absolute; z-index: 1; max-width: 31%; overflow: hidden; color: #f7fbff; font-size: clamp(13px, 1.35vw, 21px); font-weight: 500; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 4px #000; }
  .account-stat small { display: block; margin-top: 4px; font-size: .68em; }
  .account-stat .is-online, .is-online { color: #38e34f; }
  .stat-wcoin, .stat-goblin, .stat-account, .stat-rank, .stat-discord { left: 17.7%; }
  .stat-server, .stat-email, .stat-login, .stat-member { left: 65%; }
  .stat-wcoin, .stat-server { top: 29.5%; }
  .stat-goblin, .stat-email { top: 44.5%; }
  .stat-account, .stat-login { top: 59.7%; }
  .stat-rank, .stat-member { top: 75%; }
  .stat-rank { color: #ff6250; }
  .stat-discord { top: 89%; color: #ff6250; }
  .discord-sync { position: absolute; z-index: 2; right: 7.2%; top: 84.1%; width: 16%; transition: filter 180ms ease-out, transform 180ms ease-out; }
  .discord-sync:hover { filter: brightness(1.15); transform: translateY(-3px); }
  .account-panel-page { display: grid; gap: 52px; }
  .account-panel-page .account-board { width: min(1060px, 100%); margin-inline: auto; }
  .account-support { display: grid; gap: 28px; padding-top: 10px; border-top: 1px solid rgba(232, 176, 77, .34); }

  .ornate-panel { position: relative; border: 1px solid rgba(230, 172, 72, .6); background: linear-gradient(rgba(6, 18, 31, .96), rgba(4, 12, 21, .98)), url("/bg/b2.png") center / cover; box-shadow: 0 22px 44px rgba(0, 0, 0, .42), inset 0 0 66px rgba(31, 96, 145, .1); }
  .ornate-panel::before, .ornate-panel::after { content: ""; position: absolute; width: 42px; height: 42px; pointer-events: none; }
  .ornate-panel::before { top: -6px; left: -6px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
  .ornate-panel::after { right: -6px; bottom: -6px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
  .panel-kicker { margin: 0 0 4px; color: var(--crystal-bright); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .server-info { padding: 38px 30px 30px; }
  .server-info h2, .commands-intro h2 { margin-bottom: 22px; color: var(--gold-bright); font-size: clamp(32px, 3.4vw, 48px); }
  .server-info dl { margin: 0; }
  .server-info dl div { padding: 13px 0; border-bottom: 1px solid rgba(229, 171, 69, .24); }
  .server-info dt { color: #eebc57; font-family: var(--display); font-size: 14px; }
  .server-info dd { margin: 3px 0 0; color: #eef6fc; font-size: 17px; line-height: 1.25; }
  .discord-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; color: var(--gold-bright); font-weight: 700; text-transform: uppercase; }
  .server-info-wide { padding: 44px 48px 48px; }
  .server-info-wide dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; }
  .server-info-wide dl div { min-width: 0; }

  .server-overview-section { padding: 48px; }
  .information-heading { max-width: 900px; }
  .overview-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-block: 1px solid rgba(231, 174, 75, .28); background: rgba(231, 174, 75, .24); }
  .overview-columns article { padding: 30px; background: rgba(5, 15, 26, .97); }
  .overview-columns h3 { margin-bottom: 12px; color: var(--gold-bright); font-family: var(--display); font-size: 23px; font-weight: 400; }
  .overview-columns p { font-size: 16px; }
  .overview-columns ul { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
  .overview-columns li { position: relative; padding-left: 18px; color: #dce8f2; }
  .overview-columns li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 8px rgba(242, 195, 91, .5); }

  .commands-section { display: grid; grid-template-columns: 310px 1fr; gap: 38px; padding: 44px 48px 50px; }
  .commands-intro { position: sticky; top: 100px; align-self: start; }
  .commands-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(231, 174, 75, .22); }
  .commands-list article { min-width: 0; padding: 18px 20px; background: #071522; }
  .commands-list code { display: block; overflow-wrap: anywhere; color: var(--gold-bright); font-family: Consolas, monospace; font-size: 15px; font-weight: 700; }
  .commands-list p { margin: 6px 0 0; font-size: 15px; line-height: 1.35; }

  .guides-page { display: grid; gap: 34px; }
  .guide-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; min-height: 720px; padding: 26px; }
  .guide-tab-control { position: absolute; opacity: 0; pointer-events: none; }
  .guide-sidebar { min-width: 0; padding: 18px; border-right: 1px solid rgba(229, 175, 77, .28); background: rgba(3, 9, 16, .54); }
  .guide-sidebar h2 { margin-bottom: 5px; color: var(--gold-bright); font-size: 28px; }
  .guide-sidebar p { margin-bottom: 16px; font-size: 15px; line-height: 1.35; }
  .guide-category-card { display: grid; gap: 7px; margin-bottom: 12px; padding: 14px 13px; border: 1px solid rgba(229, 175, 77, .24); background: linear-gradient(180deg, rgba(10, 22, 36, .78), rgba(4, 10, 18, .9)); }
  .guide-category-card h3 { margin: 0 0 3px; color: #f3dfad; font-size: 16px; font-weight: 700; }
  .guide-category-card label { position: relative; display: block; min-width: 0; padding-left: 18px; color: #cfd9e2; cursor: pointer; font-size: 15px; line-height: 1.3; transition: color 180ms ease-out; }
  .guide-category-card label::before { content: ""; position: absolute; left: 1px; top: .52em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 9px rgba(242, 195, 91, .42); }
  .guide-category-card label:hover { color: var(--gold-bright); }
  #guide-tab-event-rewards:checked ~ .guide-sidebar label[for="guide-tab-event-rewards"],
  #guide-tab-event-1:checked ~ .guide-sidebar label[for="guide-tab-event-1"],
  #guide-tab-event-2:checked ~ .guide-sidebar label[for="guide-tab-event-2"],
  #guide-tab-event-3:checked ~ .guide-sidebar label[for="guide-tab-event-3"],
  #guide-tab-event-4:checked ~ .guide-sidebar label[for="guide-tab-event-4"],
  #guide-tab-vip:checked ~ .guide-sidebar label[for="guide-tab-vip"]
  {
    color: var(--gold-bright);
  }
  .guide-content { min-width: 0; padding: 18px; background: rgba(2, 6, 12, .42); }
  .guide-content-header { display: flex; align-items: center; justify-content: flex-start; gap: 24px; margin-bottom: 16px; }
  .guide-content-header h2 { margin: 0; color: var(--gold-bright); font-size: 30px; }
  .guide-tab-panel { display: none; min-height: 560px; padding: 24px; border: 1px dashed rgba(229, 175, 77, .22); background: rgba(3, 8, 15, .48); }
  #guide-tab-event-rewards:checked ~ .guide-content .guide-tab-panel-event-rewards,
  #guide-tab-event-1:checked ~ .guide-content .guide-tab-panel-event-1,
  #guide-tab-event-2:checked ~ .guide-content .guide-tab-panel-event-2,
  #guide-tab-event-3:checked ~ .guide-content .guide-tab-panel-event-3,
  #guide-tab-event-4:checked ~ .guide-content .guide-tab-panel-event-4,
  #guide-tab-vip:checked ~ .guide-content .guide-tab-panel-vip
  {
    display: block;
  }
  .guide-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid rgba(231, 174, 75, .32); }
  .guide-panel-heading h2 { margin: 0; color: var(--gold-bright); font-size: clamp(32px, 4vw, 48px); }
  .guide-event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .guide-event { min-width: 0; border: 1px solid rgba(229, 175, 77, .34); background: rgba(5, 15, 26, .78); transition: border-color 180ms ease-out, background 180ms ease-out; }
  .guide-event[open] { border-color: rgba(255, 232, 162, .72); background: rgba(9, 25, 42, .95); }
  .guide-event summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 14px 16px; cursor: pointer; list-style: none; }
  .guide-event summary::-webkit-details-marker { display: none; }
  .guide-event summary span { min-width: 0; overflow: hidden; color: #fff1be; font-family: var(--display); font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
  .guide-event summary small { flex: 0 0 auto; color: var(--crystal-bright); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
  .guide-reward-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
  .guide-reward-grid span { display: inline-flex; align-items: baseline; gap: 5px; min-height: 32px; padding: 5px 10px; color: #dce9f4; border: 1px solid rgba(72, 174, 234, .3); background: rgba(3, 10, 18, .82); font-size: 15px; }
  .guide-reward-grid strong { color: var(--gold-bright); font-weight: 600; }
  .guide-article-panel { max-width: 760px; margin: 160px auto 0; text-align: center; }
  .guide-article-panel h3 { margin-bottom: 14px; color: var(--gold-bright); font-family: var(--display); font-size: clamp(28px, 3vw, 42px); font-weight: 400; }
  .guide-article-panel p { margin-inline: auto; }
  .guide-article-panel ul { display: inline-grid; gap: 10px; margin: 0; padding: 0; color: #dce9f4; list-style: none; text-align: left; }
  .guide-article-panel li { position: relative; padding-left: 18px; }
  .guide-article-panel li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
  .guide-category-card-vip { border-color: rgba(82, 185, 234, .42); background: linear-gradient(135deg, rgba(11, 40, 61, .88), rgba(5, 12, 22, .96)); box-shadow: inset 3px 0 0 var(--crystal-bright); }
  .guide-category-card-vip h3 { color: #fff0bb; }
  .vip-panel-note { max-width: 38ch; margin: 0; color: #aebfd0; font-size: 15px; line-height: 1.4; text-align: right; }
  .vip-comparison-tables { display: grid; gap: 18px; }
  .vip-rate-table-wrap { overflow-x: auto; border: 1px solid rgba(229, 175, 77, .34); background: rgba(2, 10, 18, .72); box-shadow: inset 0 0 34px rgba(33, 108, 157, .1); }
  .vip-rate-table { width: 100%; min-width: 680px; border-collapse: collapse; color: #d9e3ed; font-size: 15px; text-align: center; }
  .vip-rate-table caption { padding: 11px 16px; color: #fff0b4; background: linear-gradient(90deg, #70410d, #c08427 48%, #70410d); font-family: var(--display); font-size: 21px; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
  .vip-rate-table caption span { margin-left: 10px; color: #1a1205; font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: 0; }
  .vip-rate-table th, .vip-rate-table td { padding: 10px 12px; border: 1px solid rgba(229, 175, 77, .22); }
  .vip-rate-table thead th { color: #f9e4a5; background: rgba(87, 46, 9, .58); font-family: var(--display); font-size: 16px; font-weight: 400; }
  .vip-rate-table tbody th { min-width: 132px; color: #f2f6fa; background: rgba(7, 24, 40, .86); font-weight: 600; text-align: left; }
  .vip-rate-table tbody td { font-variant-numeric: tabular-nums; }
  .vip-rate-table .is-platinum th { color: #fff2b7; background: linear-gradient(90deg, rgba(112, 65, 13, .78), rgba(43, 31, 9, .86)); }
  .vip-rate-table .is-platinum td { color: #f4d486; background: rgba(10, 29, 45, .84); font-weight: 700; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
  .vip-exp-table { min-width: 620px; }

  @keyframes hero-breathe { from { transform: scale(1.01); } to { transform: scale(1.045); } }
  @keyframes status-pulse { 0%, 100% { transform: scale(.85); opacity: .65; } 50% { transform: scale(1.12); opacity: 1; } }
}

@layer responsive {
  @media (max-width: 1050px) {
    .command-bar { grid-template-columns: auto 1fr auto; gap: 14px; }
    .primary-nav { justify-content: flex-end; }
    .primary-nav > a { padding-inline: 9px; font-size: 13px; }
    .welcome-account { display: none; }
    .session-asset { width: 88px; }
    .login-nav-asset { width: 82px; }
    .create-account-asset { width: 172px; }
    .register-form { left: 33%; width: 64%; top: 16%; min-height: 77%; padding: 30px; gap: 12px 16px; }
    .input-wrap { min-height: 42px; grid-template-columns: 36px 1fr; }
    .input-wrap input, .input-wrap select { height: 40px; }
    .information-dashboard { grid-template-columns: minmax(0, 1fr); }
    .server-info { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; }
    .server-info > .panel-kicker, .server-info > h2, .server-info > .discord-link { grid-column: 1 / -1; }
    .server-info dl { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
    .commands-section { grid-template-columns: 250px 1fr; }
  }

  @media (max-width: 800px) {
    :root { --content: min(100% - 32px, 680px); }
    body { font-size: 17px; }
    .command-bar { grid-template-columns: 1fr auto; height: 66px; padding-inline: 18px; }
    .header-session { display: none; }
    .menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; padding: 0; border: 1px solid rgba(242, 195, 91, .38); background: rgba(4, 12, 21, .86); }
    .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; background: var(--gold-bright); }
    .primary-nav { position: fixed; inset: 66px 0 auto; height: auto; display: grid; transform: translateY(-125%); padding: 10px 18px 18px; border-bottom: 1px solid rgba(242, 195, 91, .32); background: rgba(3, 8, 14, .98); opacity: 0; transition: transform 260ms ease-out, opacity 260ms ease-out; }
    .primary-nav.is-open { transform: translateY(0); opacity: 1; }
    .primary-nav > a { min-height: 46px; justify-content: start; padding-inline: 14px; }
    .primary-nav > a::after { inset: auto 14px 0; transform-origin: left; }
    .nav-session-mobile { display: block; padding: 16px 14px 4px; border-top: 1px solid rgba(242, 195, 91, .24); }
    .nav-session-mobile .session-controls { justify-content: flex-start; }
    .nav-session-mobile .welcome-account { display: grid; width: 100px; }
    .nav-session-mobile .session-asset { width: 112px; }
    .nav-session-mobile .guest-session-controls { justify-content: flex-start; }
    .nav-session-mobile .login-nav-asset { width: 116px; }
    .nav-session-mobile .create-account-asset { width: min(260px, 82vw); }

    .hero-home { min-height: 760px; }
    .wordmark { width: 104px; height: 62px; }
    .hero-art { background-image: url("/bg/sm__full_clean.jpg"); background-position: center top; }
    .hero-home::before { background: linear-gradient(0deg, rgba(5, 9, 15, .88) 0%, rgba(5, 9, 15, .14) 18%, transparent 34%); }
    .status-ribbon { inset: auto 12px 14px; width: auto; max-width: none; transform: none; grid-template-columns: 1fr; gap: 5px; padding: 13px 20px; text-align: center; }
    .status-ribbon > div, .status-ribbon a { justify-content: center; }
    .status-ribbon > span { font-size: 13px; }

    .dispatches { padding-top: 68px; }
    .dispatch-lead, .dispatch-details { grid-template-columns: minmax(0, 1fr); }
    .dispatch-art { border-right: 0; border-bottom: 1px solid rgba(230, 169, 68, .34); }
    .dispatch-art img { min-height: 0; aspect-ratio: 1; }
    .season-highlights { border-top: 1px solid rgba(230, 169, 68, .3); border-left: 0; }
    .war-table { min-height: auto; padding: 84px 36px 70px; background: #081525; border: 1px solid rgba(223, 163, 59, .42); }
    .war-table-frame { opacity: .45; background-size: cover; }
    .journey-list li { grid-template-columns: 42px 1fr; }
    .journey-list li a { grid-column: 2; }
    .closing-gate { align-items: flex-start; flex-direction: column; padding: 34px 28px; }

    .inner-hero { min-height: 360px; padding-top: 110px; }
    .page-section { padding-block: 44px 72px; }
    .register-panel { aspect-ratio: auto; }
    .register-art { display: none; }
    .register-form { position: relative; inset: auto; width: 100%; min-height: 0; grid-template-columns: 1fr; padding: 32px 22px; border-color: rgba(234, 177, 77, .58); background: linear-gradient(rgba(7, 18, 31, .96), rgba(5, 12, 21, .98)), url("/bg/b2.png") center / cover; }

    .download-art { display: none; }
    .download-board { padding: 70px 22px 28px; border: 1px solid rgba(231, 174, 75, .56); background: linear-gradient(rgba(5, 14, 24, .94), rgba(5, 13, 22, .98)), url("/bg/b2.png") center / cover; }
    .download-mirror-stack { position: static; width: 100%; gap: 10px; }
    .mirror-download-button img { width: min(454px, 100%); margin-inline: auto; }
    .download-board::before { content: "Download packages"; position: absolute; top: 22px; left: 22px; color: var(--gold-bright); font-family: var(--display); font-size: 28px; }
    .download-actions { position: static; display: grid; gap: 18px; pointer-events: auto; }
    .asset-download { position: static; width: 100%; }
    .asset-download:hover { transform: translateY(-3px); }
    .font-fix-download { grid-template-columns: 76px 1fr; }
    .font-fix-download img { width: 76px; height: 76px; }
    .font-fix-button { grid-column: 1 / -1; width: 100%; }
    .font-fix-button:hover { transform: translateY(-3px); }
    .windows-11-help { padding: 24px 20px; }
    .windows-11-help h2 { font-size: 27px; }
    .windows-11-help ol { padding-left: 22px; font-size: 15px; }
    .integrity-row { grid-template-columns: 1fr; }

    .rank-shell { margin-top: 42px; padding: 84px 14px 16px; }
    .rank-crown { top: -20px; }
    .rank-toolbar { align-items: flex-start; flex-direction: column; }
    .rank-shell .table-wrap { overflow: visible; }
    .rank-shell table, .rank-shell tbody, .rank-shell tr, .rank-shell td { display: block; width: 100%; min-width: 0; }
    .rank-shell thead { display: none; }
    .rank-shell tbody { display: grid; gap: 14px; }
    .rank-shell tr { border: 1px solid rgba(226, 161, 53, .28); background: rgba(3, 10, 17, .8); }
    .rank-shell td { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 14px; border-bottom-color: rgba(226, 161, 53, .15); background: transparent; }
    .rank-shell td::before { content: attr(data-label); color: #c99843; font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
    .rank-shell td:first-child { width: 100%; text-align: left; }
    .rank-shell td:first-child img { width: 48px; margin: 0; }
    .rank-shell .ranking-state-row td { display: block; }
    .rank-shell .ranking-state-row td::before { content: none; }
    .loadout-details { min-width: 0; }
    .loadout-details ul { position: static; width: 100%; max-height: none; margin-top: 10px; }
    .donate-banner { display: none; }
    .donation-grid { grid-template-columns: 1fr; width: min(480px, 100%); margin-inline: auto; }
    .topup-panel { grid-template-columns: 1fr; padding: 26px 22px; }

    .information-page { gap: 28px; }
    .server-info { display: block; padding: 32px 24px; }
    .server-info dl { display: block; }
    .account-panel-page { gap: 34px; }
    .account-support { gap: 20px; }
    .server-overview-section { padding: 34px 24px; }
    .overview-columns { grid-template-columns: minmax(0, 1fr); }
    .overview-columns article { padding: 24px; }
    .commands-section { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 34px 24px; }
    .commands-intro { position: static; }
    .guide-shell { grid-template-columns: minmax(0, 1fr); padding: 18px; }
    .guide-sidebar { border-right: 0; border-bottom: 1px solid rgba(229, 175, 77, .28); }
    .guide-content { padding: 0; background: transparent; }
    .guide-content-header { align-items: flex-start; flex-direction: column; }
    .guide-tab-panel { min-height: 420px; padding: 18px; }
    .guide-panel-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .guide-event-list { grid-template-columns: minmax(0, 1fr); }
    .vip-panel-note { text-align: left; }
    .vip-rate-table caption { font-size: 19px; }

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

  @media (max-width: 520px) {
    .captcha-row { grid-template-columns: 1fr auto; }
    .captcha-row .input-wrap { grid-column: 1 / -1; }
    .package-grid { grid-template-columns: 1fr; }
    .hero-home { min-height: 700px; }
    .section-heading h2 { font-size: 34px; }
    .dispatch-copy, .dispatch-details > section { padding: 28px 22px; }
    .opening-times, .season-highlights ul { grid-template-columns: minmax(0, 1fr); }
    .war-table { padding-inline: 20px; }
    .journey-list li { padding-inline: 4px; }
    .register-form { padding-inline: 16px; }
    .account-stat { font-size: clamp(9px, 3.2vw, 14px); }
    .account-board { width: 100%; max-width: 100%; overflow: hidden; }
    .commands-list { grid-template-columns: minmax(0, 1fr); }
    .inner-hero h1 { font-size: 45px; }
    .inner-hero p { font-size: 18px; }
    .login-panel { padding: 54px 20px 38px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }
}
