:root {
  --bg: #08111c;
  --panel: rgba(7, 16, 33, 0.9);
  --panel-line: rgba(120, 211, 255, 0.2);
  --text: #eff5ff;
  --muted: #9cafcc;
  --gold: #ffd166;
  --cyan: #7de9ff;
  --green: #aef7c9;
  --rose: #ff8ca8;
  --violet: #7e7cf6;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(125, 233, 255, 0.14), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(255, 140, 168, 0.08), transparent 24%),
    linear-gradient(180deg, #05070d 0%, #091427 44%, #101c29 100%);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  display: flex;
  flex-direction: column;
}

body.auth-background {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  background: #05070d;
}

body.auth-background::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--auth-bg-image, url("/inc/homebackground.webp")) center center / cover no-repeat;
}

body.auth-background::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 6, 14, 0.18), rgba(2, 6, 14, 0.42));
}

body.auth-background .site-header,
body.auth-background .site-main,
body.auth-background .site-footer {
  position: relative;
  z-index: 1;
}

body.layout-game {
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3, 8, 18, 0.86);
  border-bottom: 1px solid var(--panel-line);
  backdrop-filter: blur(18px);
}

.site-header__brand {
  display: grid;
  gap: 4px;
}

.site-header__brand strong {
  color: var(--gold);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header__brand span,
.site-footer {
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav__user {
  color: var(--gold);
  letter-spacing: 0.04em;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.site-language-menu {
  position: relative;
  z-index: 35;
  overflow: visible;
}

.site-language-menu__toggle {
  appearance: none;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-language-menu__toggle strong {
  color: var(--gold);
  font-weight: 600;
}

.menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e54848;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 2px rgba(8, 17, 28, 0.9);
}

.site-language-menu__toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 180ms ease;
}

.site-language-menu[open] .site-language-menu__toggle::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.site-language-menu__panel {
  position: fixed;
  top: var(--menu-top, 90px);
  left: var(--menu-left, auto);
  right: auto;
  display: none;
  gap: 8px;
  min-width: 180px;
  width: min(220px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid var(--panel-line);
  border-radius: 20px;
  background: rgba(8, 16, 32, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  z-index: 9999;
  pointer-events: auto;
  max-height: min(70vh, 420px);
  overflow: auto;
  margin: 0;
}

.site-language-menu__panel[open] {
  display: grid;
}

.site-language-menu.is-open .site-language-menu__panel {
  display: grid;
}

.site-language-menu__panel::backdrop {
  background: transparent;
}

.site-language-menu__link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: auto;
}

.site-nav__news-link:hover .menu-badge,
.site-nav__news-link:focus-visible .menu-badge,
.game-menu__news-link:hover .menu-badge,
.game-menu__news-link:focus-visible .menu-badge,
.site-language-menu__link:hover .menu-badge,
.site-language-menu__link:focus-visible .menu-badge {
  background: #ff5d5d;
}

.site-language-menu__flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.site-language-menu__separator {
  display: block;
  height: 0;
  margin: 4px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-language-menu__link--active {
  color: var(--gold);
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.34);
}

.site-main {
  flex: 1;
}

.layout-game .site-main {
  display: flex;
  flex-direction: column;
}

.flash {
  width: min(1100px, calc(100vw - 28px));
  margin: 18px auto 0;
  border-radius: 18px;
  padding: 14px 18px;
}

.layout-game .flash {
  position: relative;
  z-index: 8;
  width: min(900px, calc(100vw - 36px));
  margin-top: 14px;
}

.flash--success {
  background: rgba(174, 247, 201, 0.12);
  border: 1px solid rgba(174, 247, 201, 0.25);
}

.flash--error {
  background: rgba(255, 120, 120, 0.12);
  border: 1px solid rgba(255, 120, 120, 0.25);
}

.flash-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.flash-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(10px);
}

.flash-popup__card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 28px;
  padding: 24px 24px 22px;
  background:
    linear-gradient(180deg, rgba(7, 16, 33, 0.98), rgba(13, 24, 43, 0.94));
  box-shadow:
    0 24px 60px rgba(2, 6, 14, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.flash-popup__card > * {
  position: relative;
  z-index: 1;
}

.flash-popup__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(125, 233, 255, 0.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 209, 102, 0.12), transparent 34%);
}

.flash-popup__title {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: clamp(1.15rem, 2.5vw, 1.8rem);
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.flash-popup__message {
  margin: 0;
  color: rgba(239, 245, 255, 0.92);
  line-height: 1.7;
}

.flash-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.flash-popup__close:hover,
.flash-popup__close:focus-visible {
  background: rgba(255, 209, 102, 0.1);
  border-color: rgba(255, 209, 102, 0.38);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 28px;
}

.hero--focus {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 92px 18px 36px;
  scroll-margin-top: 92px;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(3, 8, 18, 0.16), rgba(3, 8, 18, 0.34));
}

.game-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(520px, calc(100vw - 36px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 28px 0;
}

.hero__panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  border: 1px solid var(--panel-line);
  border-radius: 28px;
  padding: 28px;
  background: rgba(7, 16, 33, 0.74);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__copy h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero__copy p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hero--login {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: 92px 20px 56px;
  scroll-margin-top: 92px;
}

.hero--login .hero__panel {
  width: min(860px, 100%);
  padding: 18px 20px 16px;
  min-height: 0;
}

.hero--login .hero__copy h1,
.hero--login .hero__copy h2 {
  max-width: 18ch;
  font-size: clamp(1.45rem, 2.55vw, 2.45rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero--login .hero__copy h2 {
  color: var(--gold);
}

.hero--login .hero__copy p {
  max-width: 58ch;
}

.hero--login .auth-grid {
  gap: 14px;
}

.hero--login .auth-card {
  padding: 18px;
}

.hero--login .auth-card h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.hero--focus__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto 4vh;
  padding: 0;
  text-align: center;
}

.hero--focus__glass {
  width: 100%;
  border-radius: 0;
  padding: 24px 0 22px;
  background:
    linear-gradient(180deg, rgba(16, 31, 55, 0.22), rgba(10, 20, 39, 0.08));
  backdrop-filter: blur(6px);
}

.hero--focus__stage h1 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: clamp(1.55rem, 2.2vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 244, 216, 0.24);
}

.hero--focus__stage p {
  max-width: 52ch;
  margin: 0 auto;
  color: rgba(239, 245, 255, 0.82);
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(3, 8, 18, 0.7);
}

.hero-scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 100px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 209, 102, 0.36);
  border-radius: 50%;
  background: rgba(4, 9, 19, 0.34);
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 24px rgba(3, 8, 18, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
  text-decoration: none;
}

.hero-scroll-hint.is-up .hero-scroll-hint__arrow {
  transform: translateY(3px) rotate(225deg);
}

.hero-scroll-hint__arrow {
  display: block;
  width: 16px;
  height: 16px;
  border-right: 4px solid #fff2bf;
  border-bottom: 4px solid #fff2bf;
  transform: translateY(-3px) rotate(45deg);
}

.auth-grid--single {
  grid-template-columns: 1fr;
}

.auth-card,
.game-card {
  border: 1px solid var(--panel-line);
  border-radius: 24px;
  padding: 22px;
  background: var(--panel);
}

.auth-card h2,
.game-card h1 {
  margin: 0 0 16px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form span {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-form input,
.auth-form select {
  width: 100%;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(10, 19, 37, 0.92);
  color: var(--text);
  font: inherit;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #04111a;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav__news-link {
  gap: 8px;
}

button,
.button,
.wiki-card__link,
.site-language-menu__toggle,
.site-nav a {
  transition:
    filter 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

button:hover,
button:focus-visible,
.button:hover,
.button:focus-visible,
.wiki-card__link:hover,
.wiki-card__link:focus-visible,
.site-language-menu__toggle:hover,
.site-language-menu__toggle:focus-visible,
.site-nav a:hover,
.site-nav a:focus-visible {
  filter: brightness(1.06) saturate(1.05);
  box-shadow:
    0 14px 28px rgba(2, 8, 18, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  border-color: rgba(255, 255, 255, 0.18);
  outline: none;
}

button:active,
.button:active,
.wiki-card__link:active,
.site-language-menu__toggle:active,
.site-nav a:active {
  filter: brightness(0.98) saturate(0.98);
  box-shadow:
    0 8px 16px rgba(2, 8, 18, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.auth-form button[type="submit"] {
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(125, 233, 255, 0.18);
}

.auth-form button[type="submit"]:hover,
.auth-form button[type="submit"]:focus-visible {
  filter: brightness(1.05) saturate(1.08);
  box-shadow:
    0 16px 30px rgba(125, 233, 255, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.auth-form button[type="submit"]:active {
  box-shadow:
    0 8px 16px rgba(125, 233, 255, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.auth-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold);
  text-decoration: none;
}

.home-story {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: 92px 20px 56px;
  scroll-margin-top: 92px;
}

.home-story__inner {
  width: min(860px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 28px;
  padding: 20px 22px 22px;
  min-height: 0;
  background:
    linear-gradient(180deg,
      rgba(5, 10, 22, 0.98) 0%,
      rgba(18, 30, 55, 0.9) 44%,
      rgba(255, 209, 102, 0.16) 82%,
      rgba(255, 236, 176, 0.22) 100%);
  box-shadow:
    0 18px 40px rgba(2, 6, 14, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.home-story__eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-story__text {
  margin: 0;
  color: rgba(239, 245, 255, 0.9);
  line-height: 1.8;
  font-size: 1.02rem;
  text-wrap: pretty;
}

.home-story__text--secondary {
  margin-top: 14px;
  color: rgba(239, 245, 255, 0.82);
}

.home-story__inner,
.hero--login .hero__panel {
  display: grid;
  align-content: start;
}

.wiki-page .site-main {
  display: grid;
  gap: 28px;
  padding-bottom: 36px;
}

.wiki-hero {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 92px 20px 36px;
}

.wiki-hero__inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
}

.wiki-hero__glass {
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 28px;
  padding: 22px 24px 24px;
  background: linear-gradient(180deg, rgba(5, 10, 22, 0.94), rgba(18, 30, 55, 0.78));
  box-shadow:
    0 18px 40px rgba(2, 6, 14, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.wiki-hero__glass h1 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.wiki-hero__glass p:last-child {
  margin: 0;
  max-width: 64ch;
  color: rgba(239, 245, 255, 0.88);
  line-height: 1.7;
}

.wiki-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.wiki-shell__intro {
  width: min(760px, 100%);
  margin: 0 auto 22px;
  text-align: center;
}

.wiki-shell__intro h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wiki-shell__intro p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.wiki-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wiki-card {
  border: 1px solid var(--panel-line);
  border-radius: 24px;
  padding: 20px 20px 18px;
  background: rgba(7, 16, 33, 0.78);
  box-shadow: 0 14px 32px rgba(2, 6, 14, 0.2);
}

.wiki-card__label {
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.wiki-card__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wiki-card__text {
  margin: 0;
  color: rgba(239, 245, 255, 0.88);
  line-height: 1.7;
}

.wiki-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wiki-card__link:hover,
.wiki-card__link:focus-visible {
  background: rgba(255, 209, 102, 0.08);
  color: var(--gold);
}

.wiki-card__link:active {
  background: rgba(255, 209, 102, 0.12);
}

.wiki-cta {
  margin-top: 22px;
}

.wiki-cta__panel {
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 28px;
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(5, 10, 22, 0.96), rgba(18, 30, 55, 0.86));
  box-shadow:
    0 18px 40px rgba(2, 6, 14, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wiki-cta__panel p:last-child {
  margin: 0;
  color: rgba(239, 245, 255, 0.88);
  line-height: 1.7;
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-header__brand strong {
    font-size: 1.15rem;
  }

  .flash-popup {
    padding: 12px;
  }

  .flash-popup__card {
    width: min(100%, calc(100vw - 24px));
    padding: 18px 16px 16px;
  }

  .flash-popup__title {
    padding-right: 36px;
  }

  .site-nav {
    width: 100%;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .site-nav a {
    flex: 1 1 0;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 209, 102, 0.16);
    text-align: center;
  }

  .site-header__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero--login .auth-card button,
  .hero--login .auth-card .button {
    width: 100%;
  }

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

  .wiki-shell {
    width: calc(100vw - 24px);
  }
}

@media (max-width: 900px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer,
  .hero,
  .hero__panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    width: 100%;
  }

  .site-language-menu {
    width: 100%;
  }

  .site-language-menu__toggle {
    width: 100%;
    justify-content: space-between;
  }

  .site-language-menu__panel {
    left: 0;
    min-width: 0;
    width: calc(100vw - 24px);
  }

  .hero--focus {
    min-height: 100svh;
    place-items: start center;
    padding-top: 138px;
    padding-bottom: 12px;
  }

  .hero--focus__glass {
    padding: 6px 0 6px;
    background: linear-gradient(180deg, rgba(16, 31, 55, 0.12), rgba(10, 20, 39, 0.04));
    backdrop-filter: blur(3px);
  }

  .hero--focus__stage {
    margin-top: 0;
    margin-bottom: 0;
  }

  .hero--focus__stage h1 {
    font-size: clamp(1rem, 4.4vw, 1.45rem);
  }

  .hero--focus__stage p {
    max-width: 30ch;
    font-size: 0.88rem;
  }

  .hero-scroll-hint {
    bottom: 62px;
    width: 48px;
    height: 48px;
  }

  .hero-scroll-hint__arrow {
    width: 12px;
    height: 12px;
    border-right-width: 2px;
    border-bottom-width: 2px;
  }

  .hero--login {
    min-height: 100svh;
    padding: 74px 12px 24px;
  }

  .hero--login .hero__panel {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 12px 12px 10px;
  }

  .hero--login .hero__copy h1,
  .hero--login .hero__copy h2 {
    max-width: 100%;
    font-size: clamp(1rem, 4vw, 1.55rem);
  }

  .hero--login .hero__copy p {
    max-width: 100%;
    font-size: 0.92rem;
  }

  .hero--login .auth-grid {
    gap: 8px;
  }

  .hero--login .auth-card {
    padding: 12px;
  }

  .home-story {
    padding: 74px 12px 24px;
  }

  .wiki-hero {
    min-height: 100svh;
    padding: 74px 12px 24px;
  }

  .wiki-hero__glass {
    padding: 16px 14px 18px;
  }

  .wiki-hero__glass h1 {
    font-size: clamp(1.2rem, 4.2vw, 1.65rem);
  }

  .wiki-shell__intro h2 {
    font-size: clamp(1rem, 4vw, 1.45rem);
  }

  .wiki-card {
    padding: 16px 14px 16px;
  }

  .wiki-card__title {
    font-size: 1rem;
  }

  .wiki-cta__panel {
    padding: 16px 14px;
  }

  .home-story__inner {
    min-height: 0;
    padding: 16px 14px 16px;
  }

  .home-story__eyebrow {
    margin-bottom: 8px;
    font-size: 0.88rem;
  }

  .home-story__text {
    line-height: 1.7;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    padding: 14px 12px;
  }

  .site-nav a {
    width: auto;
    padding-inline: 9px;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
  }

  .site-header__brand strong {
    font-size: 1rem;
  }

  .hero--focus__glass {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero--focus__stage h1 {
    font-size: clamp(0.9rem, 4vw, 1.15rem);
  }

  .hero--focus__stage {
    margin-top: 0;
    margin-bottom: 0;
  }

  .hero--login .hero__panel {
    width: 100%;
    max-width: 100%;
  }

  .hero--login .hero__copy h2 {
    font-size: clamp(0.92rem, 3.8vw, 1.1rem);
    letter-spacing: 0.03em;
  }

  .hero--login .auth-card {
    padding: 11px;
  }

  .hero--login .auth-form input,
  .hero--login .auth-form select {
    font-size: 16px;
  }

  .home-story__inner {
    padding: 14px 12px 14px;
  }

  .home-story__text {
    font-size: 0.92rem;
    line-height: 1.68;
  }
}
