@font-face {
  font-family: "HYDianHei W";
  src: url("assets/hy-dian-hei.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4e9d5;
  --paper-bright: #fff8ea;
  --ink: #3b2a20;
  --ink-deep: #281d16;
  --muted: #6b5848;
  --jade: #20564a;
  --red: #aa482e;
  --gold: #f7c475;
  --line: #dcccaf;
  --night: #1d1715;
  --on-dark: #fae9cc;
  --dark-muted: #d2bba1;
  --dark-line: #9f7c533d;
  --gutter: 48px;
  --header-height: 72px;
  --display-font: "HYDianHei W", "Microsoft YaHei", "PingFang SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.6;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
section[id], main[id] { scroll-margin-top: calc(var(--header-height) + 22px); }

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

.wrap { width: min(calc(100% - var(--gutter) * 2), 1240px); margin-inline: auto; }
.display { font-family: var(--display-font); font-weight: 400; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 9px 16px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper-bright);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--night);
  color: var(--on-dark);
  border-bottom: 1px solid var(--dark-line);
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  --mark-bg: #9f442d;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #bf6546;
  border-radius: 7px;
  background: var(--mark-bg);
  color: #ffdc8f;
}
.brand-mark .icon { width: 26px; height: 26px; }

.brand-name {
  font-family: var(--display-font);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.25;
}

.brand-version {
  padding-left: 10px;
  border-left: 1px solid var(--dark-line);
  color: #e2b570;
  font-size: 12px;
  font-weight: 700;
}

.site-nav, .header-actions { display: flex; align-items: center; }
.site-nav { gap: clamp(18px, 3.4vw, 50px); align-self: stretch; }
.site-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 54px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-muted);
}
.site-nav a:hover, .site-nav a[aria-current] { color: #fff3db; }
.site-nav a[aria-current]::after {
  position: absolute;
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  bottom: 0;
  background: var(--gold);
}

.header-actions { justify-self: end; gap: 14px; }
.login-button {
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 700;
}
.login-button:hover { color: var(--gold); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 47px;
  padding: 0 18px;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-header {
  min-height: 40px;
  background: #35261e;
  border-color: #9c754c;
  color: #ffe6be;
  font-size: 14px;
  padding-inline: 16px;
}
.button-header:hover { background: #4c3628; border-color: var(--gold); }
.button-primary {
  background: var(--gold);
  border-color: #ffcf86;
  color: #322015;
  box-shadow: 0 5px 15px #23120c30;
}
.button-primary:hover {
  background: #ffda9c;
  box-shadow: 0 7px 20px #23120c45;
}
.button-primary:active { box-shadow: inset 0 1px 3px #69371136; }
.button-outline {
  background: #261d1ab8;
  border-color: #a27e55;
  color: #fff0d5;
}
.button-outline:hover { background: #433125; border-color: #e1af72; }
.button-tail { width: 18px; height: 18px; margin-left: auto; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
}
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 16%;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}
.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--night) 0%, #1d1715ed 12%, #1d171578 31%, transparent 50%),
    linear-gradient(0deg, var(--night), #1d17155c 23%, transparent 48%);
}
.site-header :focus-visible, .hero :focus-visible, .action-strip :focus-visible,
.guide-section :focus-visible, .site-footer :focus-visible { outline-color: #ffdc8f; }

.hero-tools {
  position: absolute;
  z-index: 1;
  inset: auto 0 25px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.cover-switcher {
  display: inline-flex;
  gap: 7px;
  pointer-events: auto;
}
.cover-switcher button {
  position: relative;
  display: grid;
  align-items: end;
  width: 96px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8ad7466;
  border-radius: 5px;
  background: #36291f;
  color: #ffeed2;
  font-size: 13px;
  font-weight: 700;
}
.cover-switcher img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.cover-switcher span { position: relative; padding: 2px 0 3px; background: #211711d9; }
.cover-switcher button:hover img, .cover-switcher button[aria-pressed="true"] img { opacity: 1; }
.cover-switcher button[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.cover-switcher button[aria-pressed="true"] span { color: #ffdd9a; }

.hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(510px, 46vw, 695px);
  padding-block: 56px 81px;
}
.hero-copy { width: min(100%, 510px); }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #e4c7aa;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}
.edition {
  display: inline-block;
  padding: 3px 8px 4px;
  border: 1px solid #c87851;
  border-radius: 3px;
  background: #833e2a;
  color: #fff0d1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .17em;
}
.hero h1 {
  margin-top: 21px;
  color: #fff1d5;
  font-size: clamp(58px, 7.55vw, 112px);
  line-height: 1.03;
  letter-spacing: -.047em;
  text-shadow: 0 6px 26px #17110dc4;
  white-space: nowrap;
}
.hero h1 span { color: var(--gold); }
.hero-tagline {
  margin-top: 16px;
  color: #f8e0b9;
  font-size: clamp(22px, 2.25vw, 34px);
  line-height: 1.35;
  letter-spacing: .045em;
}
.hero-description {
  margin-top: 9px;
  color: var(--dark-muted);
  font-size: 16px;
  line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.hero-actions .button { min-height: 54px; font-size: 16px; }
.hero-actions .button-primary { min-width: clamp(165px, 15.4vw, 191px); }
.hero-actions .button-outline { min-width: clamp(121px, 11.5vw, 148px); }
.hero-note { margin-top: 11px; font-size: 12px; color: var(--dark-muted); font-weight: 600; }

.roster {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  margin-top: -20px;
}
.roster h3 { color: var(--ink-deep); font-size: clamp(25px, 2.65vw, 37px); }
.roster-lineup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 23px);
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}
.general-card {
  --rim: #9c826a;
  --glow: #a97b454a;
  --base: #261c23;
  position: relative;
  isolation: isolate;
  min-width: 0;
  aspect-ratio: 1.82;
  border: 1px solid var(--rim);
  border-radius: 13px;
  overflow: hidden;
  background: var(--base);
  box-shadow: 0 9px 20px #39261730;
}
.general-card-wei { --rim: #7882ab; --glow: #556bba66; --base: #1d202f; }
.general-card-shu { --rim: #97a47b; --glow: #62834966; --base: #262819; }
.general-card-featured {
  --rim: #e2a859;
  --glow: #fca64770;
  --base: #44251b;
}
.general-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--base), transparent 68%),
    radial-gradient(ellipse at 69% 51%, var(--glow), #21151e32 76%);
}
.general-scene {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
}
.general-portrait {
  position: absolute;
  right: 4%;
  bottom: 2%;
  width: auto;
  height: 94%;
  max-width: none;
  filter: drop-shadow(0 8px 9px #160d14b0);
}
.general-caption {
  position: absolute;
  inset: auto auto 15px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffefd3;
  white-space: nowrap;
}
.general-caption strong { font-size: clamp(16px, 1.75vw, 23px); line-height: 1.2; }
.general-faction {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--rim);
  border-radius: 5px;
  color: #f3dbb4;
  font-size: 12px;
  font-weight: 700;
}

.action-strip {
  background: #292019;
  border-block: 1px solid var(--dark-line);
  color: var(--on-dark);
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.quick-link {
  display: flex;
  min-width: 0;
  min-height: 82px;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  padding: 15px clamp(18px, 2.6vw, 38px);
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  color: var(--on-dark);
  transition: background-color .18s ease;
}
.quick-link + .quick-link { border-left: 1px solid var(--dark-line); }
.quick-link:hover { background: #b48d5d18; }
.quick-icon, .dialog-icon, .feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 49px;
  height: 49px;
  border-radius: 12px;
}
.quick-icon .icon, .dialog-icon .icon { width: 23px; height: 23px; }
.quick-link .quick-icon { border: 1px solid #95734c; border-radius: 7px; color: #f1c987; }
.quick-icon-jade { background: #e3ede2; color: #245c48; }
.quick-icon-gold { background: #f6e8c7; color: #805622; }
.quick-icon-coral { background: #f7e5da; color: #963d2b; }
.quick-text { display: grid; gap: 2px; }
.quick-text strong { font-size: 17px; line-height: 1.45; }
.quick-text small { font-size: 13px; color: var(--dark-muted); }
.quick-arrow { width: 17px; height: 17px; margin-left: auto; color: #c6a274; }

.features {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: clamp(32px, 5.1vw, 78px);
  margin-block: 78px 82px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink-deep);
  font-size: clamp(39px, 4.15vw, 60px);
  line-height: 1.25;
  letter-spacing: -.03em;
}
.section-title::before {
  content: "";
  width: 5px;
  height: .72em;
  transform: skewX(-8deg);
  background: var(--red);
}
.section-intro { margin-top: 12px; color: var(--muted); font-size: 16px; }
.feature-list { margin: 25px 0 0; padding: 0; list-style: none; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-icon { width: 42px; height: 42px; border-radius: 7px; background: #e9d8b8; color: #865333; }
.feature-list h3, .steps h3 { font-size: 17px; line-height: 1.4; }
.feature-list p, .steps p { margin-top: 4px; color: var(--muted); font-size: 14px; }

.trials-art {
  position: relative;
  isolation: isolate;
  min-height: 403px;
  margin: 0;
  display: flex;
  align-items: end;
  border: 1px solid #a67a5a;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(ellipse at 58% 40%, #664461, #33263f 57%, #211827);
  box-shadow: 0 12px 28px #3122382b;
  color: #fff4dd;
}
.trials-art::after {
  position: absolute;
  inset: 8px;
  border: 1px solid #d7ae7952;
  border-radius: 4px;
  content: "";
  pointer-events: none;
}
.trials-visual {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 35% 62%, #974d433d, transparent 55%);
}
.trials-visual img { position: absolute; max-width: none; }
.trial-gate { right: 9%; bottom: 6%; width: auto; height: 93%; }
.trial-boss { bottom: 21%; height: auto; filter: drop-shadow(0 10px 14px #191320a6); }
.trial-boss-fire { left: 16%; width: min(41%, 230px); }
.trial-boss-ghost { left: 49%; width: min(34%, 181px); bottom: 22%; }
.trials-art figcaption {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  padding: 38px 25px 20px;
  background: linear-gradient(transparent, #201525ed);
}
.trials-art h3 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.25; }
.trials-art p { margin-top: 5px; font-size: 14px; }

.guide-section {
  border-block: 1px solid var(--dark-line);
  background: radial-gradient(ellipse at 15% 0%, #3e2b20, transparent 72%), #2a211b;
  color: var(--on-dark);
}
.guide-section .section-title { color: var(--on-dark); }
.guide-section .section-title::before { background: var(--gold); }
.steps p { color: var(--dark-muted); }
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  padding-block: 68px 76px;
}
.steps { display: grid; gap: 19px; margin: 25px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 13px; }
.step-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid #a68153;
  border-radius: 50%;
  background: #4b3526;
  color: #fadca5;
  font-size: 15px;
  font-weight: 800;
}
.faq {
  padding: 24px 26px 15px;
  border: 1px solid #a7865d66;
  border-radius: 8px;
  background: #30251e;
}
.faq h3 { margin-bottom: 9px; font-size: 20px; }
.faq details { border-top: 1px solid var(--dark-line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 51px;
  padding: 11px 0;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; color: #e4b776; transition: transform .18s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 24px 15px 0; color: var(--dark-muted); font-size: 14px; }

.site-footer { background: var(--night); color: var(--on-dark); }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 91px;
  padding-block: 16px;
}
.site-footer .brand-mark { --mark-bg: #edc77b; border-color: #dfb574; color: var(--ink-deep); }
.site-footer .brand-version { border-color: #6c7462; color: #efca83; }
.footer-caption, .back-top { color: #dfd6bf; font-size: 13px; }
.back-top { margin-left: auto; white-space: nowrap; }
.back-top span { margin-left: 3px; color: #ffda8b; }
.back-top:hover { color: #fff8e8; }

.dialog {
  width: min(calc(100% - 32px), 450px);
  max-width: none;
  max-height: calc(100dvh - 30px);
  margin: auto;
  padding: 26px;
  border: 1px solid #d8c9ab;
  border-radius: 17px;
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: 0 24px 70px #0b241d52;
  overflow: auto;
}
.dialog::backdrop { background: #0c2823a8; backdrop-filter: blur(3px); }
.dialog-icon { margin-bottom: 12px; }
.dialog h2 { font-size: 25px; line-height: 1.4; }
.dialog-intro { margin-top: 8px; color: var(--muted); font-size: 14px; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}
.dialog-close:hover { background: #efe7d7; }
.dialog-close .icon { width: 20px; height: 20px; }
.notice {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #f8e7ca;
  color: #634925;
  font-size: 13px;
}
.package-info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  padding: 12px;
  border-radius: 7px;
  background: #eeeadd;
  color: #3e5e51;
  font-size: 13px;
  font-weight: 700;
}
.dialog-action { width: 100%; margin-top: 16px; }
.dialog-link {
  display: block;
  width: fit-content;
  padding: 4px 2px;
  margin: 15px auto 0;
  border: 0;
  background: transparent;
  color: var(--jade);
  font-size: 14px;
  text-underline-offset: 3px;
}
.dialog-link:hover { text-decoration: underline; }

.account-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 15px;
  padding: 4px;
  border-radius: 9px;
  background: #eeeadd;
}
.account-modes button {
  min-height: 37px;
  border: none;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}
.account-modes button[aria-pressed="true"] {
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: 0 1px 3px #473b2926;
}
.account-form { display: grid; gap: 7px; margin-top: 14px; }
.account-form label { font-size: 14px; font-weight: 700; }
.account-form > input { margin-bottom: 4px; }
.confirm-field { display: grid; gap: 7px; }
.account-form input, .share-url {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cfc7b1;
  border-radius: 7px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 16px;
}
.account-form .dialog-action { margin-top: 10px; }
.share-url { margin-top: 14px; }
.form-status { margin-top: 6px; color: #295b47; font-size: 14px; }
.form-status:empty { display: none; }
.form-status.form-error { color: var(--red); }
.account-form input[aria-invalid="true"] { border-color: var(--red); }

@media (max-width: 940px) {
  :root { --gutter: 30px; }
  .hero-description { font-size: 15px; }
  .general-caption { gap: 5px; }
  .general-faction { width: 19px; height: 19px; font-size: 11px; }
  .quick-link { gap: 12px; }
  .quick-icon { width: 43px; height: 43px; }
  .quick-text strong { font-size: 16px; }
  .quick-text small { font-size: 12px; }
  .trials-art { min-height: 360px; }
}

@media (max-width: 760px) {
  :root { --gutter: 22px; --header-height: 64px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .header-actions { gap: 5px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-name { font-size: 19px; }
  .brand-version { display: none; }
  .button-header { min-height: 38px; padding-inline: 11px; }
  .login-button { padding-inline: 9px; }

  .hero { --hero-image-height: clamp(205px, 56.25vw, 428px); }
  .hero-art { inset: 0 0 auto; height: var(--hero-image-height); }
  .hero-art::after { background: linear-gradient(0deg, var(--night), #1d171549 22%, transparent 46%); }
  .hero-tools { inset: calc(var(--hero-image-height) - 25px) 0 auto; justify-content: flex-start; }
  .cover-switcher button { width: 74px; height: 45px; font-size: 12px; }
  .hero-inner {
    min-height: auto;
    padding-block: calc(var(--hero-image-height) + 42px) 38px;
  }
  .hero h1 { margin-top: 13px; font-size: clamp(52px, 13vw, 76px); }
  .hero-tagline { margin-top: 12px; font-size: clamp(21px, 5.25vw, 28px); }
  .hero-description { margin-top: 8px; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .button { min-height: 48px; }
  .hero-note { margin-top: 9px; }

  .quick-link {
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    min-height: 78px;
    padding: 12px 4px;
    text-align: center;
  }
  .quick-icon { width: 34px; height: 34px; border-radius: 9px; }
  .quick-icon .icon { width: 19px; height: 19px; }
  .quick-text strong { font-size: 14px; }
  .quick-text small, .quick-arrow { display: none; }

  .features, .guide-grid { grid-template-columns: 1fr; }
  .features { margin-block: 55px 60px; gap: 25px; }
  .feature-list { margin-top: 18px; }
  .roster { margin-top: 5px; }
  .general-card { aspect-ratio: .72; }
  .general-card::before { background: linear-gradient(0deg, var(--base), transparent 60%); }
  .general-portrait {
    right: auto;
    left: 50%;
    bottom: 19%;
    width: min(100%, 185px);
    height: auto;
    transform: translateX(-50%);
  }
  .general-caption { inset: auto 0 0; justify-content: center; padding: 0 4px 10px; }
  .trials-art { min-height: clamp(268px, 66vw, 390px); }
  .trials-art figcaption { padding: 33px 17px 14px; }
  .guide-grid { padding-block: 47px 53px; gap: 25px; }
  .faq { padding: 18px 16px 8px; }
  .footer-inner { flex-wrap: wrap; gap: 8px 13px; }
  .site-footer .brand-name { font-size: 17px; }
  .site-footer .brand { gap: 7px; }
  .footer-caption, .back-top { font-size: 12px; }
}

@media (max-width: 390px) {
  :root { --gutter: 16px; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { gap: 7px; padding-inline: 10px; font-size: 15px; }
  .hero-actions .button-primary { min-width: 145px; }
  .hero-actions .button-outline { min-width: 108px; }
  .roster-lineup { gap: 6px; }
  .general-card { border-radius: 8px; }
  .general-caption { padding-bottom: 7px; }
  .general-caption strong { font-size: 13px; }
  .general-faction { width: 16px; height: 16px; font-size: 10px; }
  .dialog { padding: 19px; }
}

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