:root {
  color-scheme: dark;
  --background: 220 18% 9%;
  --foreground: 45 25% 94%;
  --card: 220 16% 13%;
  --card-strong: 220 15% 16%;
  --border: 42 20% 25%;
  --primary: 43 92% 58%;
  --primary-light: 44 90% 68%;
  --muted: 218 11% 67%;
  --shadow: 0 26px 70px rgb(0 0 0 / 0.38);
  --max-width: 1460px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: hsl(var(--foreground));
  background:
    radial-gradient(circle at 18% 0%, hsl(var(--primary) / 0.07), transparent 34rem),
    linear-gradient(180deg, #10131a 0%, #12151c 54%, #0c0f14 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-width: 320px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.09;
  background-image: linear-gradient(hsl(var(--primary) / 0.12) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--primary) / 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #111;
  background: hsl(var(--primary-light));
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  border-bottom: 1px solid hsl(var(--border) / 0.62);
  background: hsl(var(--background) / 0.88);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px hsl(var(--primary) / 0.2));
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.025em;
}

.brand small {
  margin-top: 5px;
  color: hsl(var(--primary-light));
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 34px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  color: hsl(var(--muted));
  font-size: 0.87rem;
  font-weight: 650;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: hsl(var(--primary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: hsl(var(--foreground));
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-button,
.menu-button {
  height: 42px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--card));
}

.language-button {
  cursor: default;
}

.language-button {
  min-width: 48px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.menu-button {
  width: 44px;
  display: none;
  padding: 0 11px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: hsl(var(--foreground));
}

.mobile-menu {
  width: min(calc(100% - 32px), 680px);
  margin: 0 auto 16px;
  padding: 10px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: #151921;
  box-shadow: var(--shadow);
}

.mobile-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 7px;
  color: hsl(var(--muted));
  font-weight: 700;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: hsl(var(--foreground));
  background: hsl(var(--primary) / 0.1);
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  align-items: start;
  gap: 18px;
}

main {
  min-width: 0;
}

.hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.82);
  border-radius: 18px;
  background: #10131a;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgb(9 11 15 / 0.97) 0%, rgb(9 11 15 / 0.84) 44%, rgb(9 11 15 / 0.28) 77%, rgb(9 11 15 / 0.62) 100%),
    linear-gradient(0deg, #10131a 0%, transparent 36%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, hsl(var(--primary) / 0.04) 1px, transparent 1px);
  background-size: 72px 100%;
  opacity: 0.45;
}

.hero-content {
  min-height: 628px;
  padding: clamp(64px, 8vw, 112px) clamp(28px, 5.8vw, 82px) 54px;
  display: block;
}

.hero-copy {
  width: 100%;
}

.eyebrow {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--primary-light));
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 23px;
  height: 2px;
  background: hsl(var(--primary));
  box-shadow: 0 0 12px hsl(var(--primary));
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: uppercase;
}

h1 {
  max-width: 930px;
  font-size: clamp(3.25rem, 5.35vw, 5.9rem);
}

h1 em {
  display: block;
  color: hsl(var(--primary-light));
  font-style: normal;
  text-shadow: 0 10px 46px hsl(var(--primary) / 0.2);
}

.hero-description {
  max-width: 630px;
  margin: 0;
  color: #d0d0ca;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.85;
}

.hero-lower {
  margin-top: 38px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  align-items: end;
  gap: clamp(34px, 5vw, 72px);
}

.hero-actions,
.final-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #18140a;
  background: linear-gradient(135deg, hsl(var(--primary-light)), hsl(var(--primary)));
  box-shadow: 0 12px 34px hsl(var(--primary) / 0.18);
}

.button-secondary {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
  background: hsl(var(--card) / 0.78);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: hsl(var(--primary) / 0.62);
}

.text-link {
  padding: 10px 4px;
  color: hsl(var(--primary-light));
  font-size: 0.83rem;
  font-weight: 800;
}

.video-panel {
  align-self: end;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid hsl(var(--primary) / 0.44);
  border-radius: 13px;
  background: #080a0d;
  box-shadow: 0 20px 56px rgb(0 0 0 / 0.55), 0 0 0 6px rgb(9 11 15 / 0.48);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: hsl(var(--muted));
  font-size: 0.72rem;
}

.video-caption span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: hsl(var(--primary-light));
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-caption i,
.panel-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65d47d;
  box-shadow: 0 0 12px #65d47d;
}

.hero-stats {
  min-height: 150px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid hsl(var(--border) / 0.75);
  background: rgb(10 12 16 / 0.84);
  backdrop-filter: blur(14px);
}

.hero-stats div {
  padding: 28px clamp(18px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid hsl(var(--border) / 0.68);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt,
.game-stats dt {
  color: hsl(var(--muted));
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-stats dd,
.game-stats dd {
  margin: 8px 0 0;
  color: hsl(var(--foreground));
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  font-weight: 850;
}

.section {
  padding: clamp(86px, 10vw, 138px) clamp(6px, 3vw, 28px);
}

.section-heading {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 56px;
}

.section-heading h2,
.about-copy h2,
.final-cta h2 {
  font-size: clamp(2.5rem, 4.8vw, 5rem);
}

.section-heading > p {
  max-width: 540px;
  margin: 0 0 4px;
  color: hsl(var(--muted));
  line-height: 1.8;
}

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

.path-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: 14px;
  background: hsl(var(--card));
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.16);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.path-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, rgb(11 13 18 / 0.42) 57%, rgb(11 13 18 / 0.99) 100%);
}

.path-card:hover {
  border-color: hsl(var(--primary) / 0.58);
  box-shadow: 0 26px 70px rgb(0 0 0 / 0.3), inset 0 0 0 1px hsl(var(--primary) / 0.1);
  transform: translateY(-5px);
}

.path-card > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.76;
  transition: transform 500ms ease, opacity 250ms ease;
}

.path-card:hover > img {
  opacity: 0.88;
  transform: scale(1.025);
}

.card-index {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid hsl(var(--primary) / 0.38);
  border-radius: 5px;
  color: hsl(var(--primary-light));
  background: rgb(11 13 18 / 0.78);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.card-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 34px;
}

.card-body h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}

.card-body p {
  max-width: 560px;
  margin: 13px 0 18px;
  color: #bfc0bc;
  font-size: 0.92rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--primary-light));
  font-size: 0.78rem;
  font-weight: 850;
}

.guide-note {
  margin: 18px 0 0;
  color: hsl(var(--muted));
  font-size: 0.75rem;
  text-align: center;
}

.about-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(46px, 7vw, 92px);
  border-top: 1px solid hsl(var(--border) / 0.55);
}

.about-visual {
  position: relative;
}

.about-visual::before {
  position: absolute;
  top: -18px;
  right: 18px;
  bottom: 18px;
  left: -18px;
  z-index: -1;
  content: "";
  border: 1px solid hsl(var(--primary) / 0.25);
  border-radius: 13px;
}

.about-visual img {
  width: 100%;
  min-height: 510px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: var(--shadow);
  filter: saturate(0.9) contrast(1.04);
}

.image-tag {
  position: absolute;
  right: -18px;
  bottom: 26px;
  padding: 13px 16px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  color: hsl(var(--muted));
  background: hsl(var(--card) / 0.94);
  box-shadow: var(--shadow);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.image-tag span {
  margin-right: 8px;
  color: hsl(var(--primary-light));
  font-size: 1.2rem;
}

.about-copy > p:not(.eyebrow) {
  color: hsl(var(--muted));
  line-height: 1.85;
}

.about-copy .button {
  margin-top: 12px;
}

.game-stats {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: 12px;
  background: hsl(var(--card) / 0.75);
}

.game-stats div {
  padding: 24px;
  border-right: 1px solid hsl(var(--border) / 0.58);
  border-bottom: 1px solid hsl(var(--border) / 0.58);
}

.game-stats div:nth-child(3n) {
  border-right: 0;
}

.game-stats div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.official-section {
  border-top: 1px solid hsl(var(--border) / 0.55);
}

.section-heading.compact h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.official-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.official-grid a {
  min-height: 96px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: 10px;
  background: hsl(var(--card) / 0.76);
  transition: border-color 180ms ease, background 180ms ease;
}

.official-grid a:hover,
.official-grid a:focus-visible {
  border-color: hsl(var(--primary) / 0.56);
  background: hsl(var(--card-strong));
}

.official-grid b {
  font-size: 0.95rem;
}

.official-grid span {
  grid-column: 1;
  color: hsl(var(--muted));
  font-size: 0.76rem;
}

.official-grid i {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: hsl(var(--primary-light));
  font-style: normal;
}

.final-cta {
  position: relative;
  min-height: 360px;
  margin: 0 6px 100px;
  padding: clamp(42px, 7vw, 78px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgb(10 12 16 / 0.97), rgb(10 12 16 / 0.62)),
    url("assets/guide-scanner.jpg") center / cover;
  box-shadow: var(--shadow);
}

.final-cta::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, hsl(var(--primary)));
}

.final-cta > div:first-child {
  max-width: 700px;
}

.final-cta p:not(.eyebrow) {
  max-width: 620px;
  color: #c5c5c0;
}

.wiki-panel {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.78);
  border-radius: 16px;
  background: linear-gradient(180deg, #171b24, #11151c);
  box-shadow: var(--shadow);
}

.wiki-panel::after {
  position: absolute;
  top: 14px;
  right: 0;
  bottom: 14px;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, hsl(var(--primary)), transparent);
}

.wiki-panel > p {
  margin: 0;
  padding: 25px 22px 14px;
  color: hsl(var(--primary-light));
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wiki-panel nav {
  padding: 5px 12px 15px;
}

.wiki-panel nav a {
  min-height: 47px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  color: hsl(var(--muted));
  font-size: 0.79rem;
  font-weight: 650;
}

.wiki-panel nav a.active,
.wiki-panel nav a:hover,
.wiki-panel nav a:focus-visible {
  color: hsl(var(--foreground));
  background: linear-gradient(90deg, hsl(var(--primary) / 0.17), transparent);
}

.wiki-panel nav a span {
  color: hsl(var(--primary-light));
  font-size: 1rem;
  text-align: center;
}

.wiki-panel nav a small {
  color: hsl(var(--muted));
  font-size: 0.61rem;
}

.panel-status {
  padding: 17px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid hsl(var(--border) / 0.58);
  background: hsl(var(--primary) / 0.05);
}

.panel-status span {
  display: grid;
  color: hsl(var(--muted));
  font-size: 0.67rem;
}

.panel-status b {
  color: hsl(var(--foreground));
  font-size: 0.76rem;
}

.site-footer {
  border-top: 1px solid hsl(var(--border) / 0.68);
  background: #090b0f;
}

.footer-inner,
.footer-bottom {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.footer-inner {
  padding: 70px 0 54px;
  display: grid;
  grid-template-columns: minmax(300px, 1.6fr) repeat(3, minmax(130px, 0.6fr));
  gap: 54px;
}

.footer-brand p {
  max-width: 510px;
  margin: 22px 0 0;
  color: hsl(var(--muted));
  font-size: 0.82rem;
}

.footer-inner > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-inner h3 {
  margin: 0 0 9px;
  color: hsl(var(--primary-light));
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-inner > div:not(.footer-brand) a,
.footer-inner > div:not(.footer-brand) span {
  color: hsl(var(--muted));
  font-size: 0.78rem;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: hsl(var(--foreground));
}

.footer-bottom {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid hsl(var(--border) / 0.42);
  color: #71747b;
  font-size: 0.67rem;
}

.guide-main {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.guide-hero {
  position: relative;
  min-height: 430px;
  padding: clamp(42px, 7vw, 86px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.76);
  border-radius: 18px;
  background:
    linear-gradient(100deg, rgb(9 11 15 / 0.96), rgb(9 11 15 / 0.62)),
    url("assets/hero.jpg") center / cover;
  box-shadow: var(--shadow);
}

.guide-hero > div {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.guide-hero h1 {
  max-width: 900px;
  margin: 16px 0 20px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.guide-deck {
  max-width: 760px;
  margin: 0;
  color: hsl(var(--foreground) / 0.84);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.guide-layout {
  margin-top: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 54px;
  align-items: start;
}

.guide-article {
  min-width: 0;
}

.guide-article h2 {
  margin: 52px 0 16px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.guide-article h2:first-child {
  margin-top: 0;
}

.guide-article h3 {
  margin: 32px 0 10px;
  font-size: 1.15rem;
}

.guide-article p,
.guide-article li {
  color: hsl(var(--foreground) / 0.78);
}

.guide-article a {
  color: hsl(var(--primary-light));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-article ul,
.guide-article ol {
  padding-left: 1.35rem;
}

.guide-article li + li {
  margin-top: 9px;
}

.answer-box,
.status-box {
  margin: 0 0 30px;
  padding: 24px 26px;
  border: 1px solid hsl(var(--primary) / 0.34);
  border-left: 4px solid hsl(var(--primary));
  border-radius: 8px;
  background: hsl(var(--primary) / 0.065);
}

.answer-box strong,
.status-box strong {
  display: block;
  margin-bottom: 7px;
  color: hsl(var(--primary-light));
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.answer-box p,
.status-box p {
  margin: 0;
  color: hsl(var(--foreground) / 0.88);
}

.guide-table-wrap {
  margin: 24px 0 34px;
  overflow-x: auto;
  border: 1px solid hsl(var(--border) / 0.75);
  border-radius: 10px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.guide-table th,
.guide-table td {
  padding: 14px 16px;
  border-bottom: 1px solid hsl(var(--border) / 0.55);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  color: hsl(var(--primary-light));
  background: hsl(var(--card-strong));
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-table td {
  color: hsl(var(--foreground) / 0.76);
  font-size: 0.9rem;
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.guide-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 22px;
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: 12px;
  background: hsl(var(--card) / 0.86);
}

.guide-sidebar > p {
  margin: 0 0 13px;
  color: hsl(var(--primary-light));
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-sidebar nav {
  display: grid;
  gap: 7px;
}

.guide-sidebar a {
  padding: 8px 0;
  color: hsl(var(--muted));
  font-size: 0.82rem;
}

.guide-sidebar a:hover,
.guide-sidebar a[aria-current="page"] {
  color: hsl(var(--foreground));
}

.related-guides {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid hsl(var(--border) / 0.62);
}

.related-guides h2 {
  margin-top: 0;
}

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

.related-grid a {
  padding: 18px;
  display: grid;
  gap: 4px;
  border: 1px solid hsl(var(--border) / 0.68);
  border-radius: 9px;
  color: hsl(var(--foreground));
  text-decoration: none;
  background: hsl(var(--card));
}

.related-grid a span {
  color: hsl(var(--muted));
  font-size: 0.78rem;
}

:focus-visible {
  outline: 2px solid hsl(var(--primary-light));
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .wiki-panel {
    display: none;
  }

  .hero-lower {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 66px;
  }

  .header-inner,
  .page-shell,
  .footer-inner,
  .footer-bottom {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .page-shell {
    margin-top: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: auto;
    padding: 76px 28px 38px;
  }

  .hero-lower {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero::before {
    background: linear-gradient(180deg, rgb(9 11 15 / 0.88), rgb(9 11 15 / 0.93) 68%, #10131a 100%);
  }

  .video-panel {
    width: min(100%, 640px);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats div:nth-child(2) {
    border-right: 0;
  }

  .hero-stats div:nth-child(-n + 2) {
    border-bottom: 1px solid hsl(var(--border) / 0.68);
  }

  .section-heading,
  .about-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .path-card {
    min-height: 400px;
  }

  .about-copy {
    order: -1;
  }

  .about-visual img {
    min-height: 400px;
  }

  .game-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-stats div:nth-child(3n) {
    border-right: 1px solid hsl(var(--border) / 0.58);
  }

  .game-stats div:nth-child(2n) {
    border-right: 0;
  }

  .game-stats div:nth-last-child(-n + 3) {
    border-bottom: 1px solid hsl(var(--border) / 0.58);
  }

  .game-stats div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1.6fr repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .guide-main {
    width: min(calc(100% - 28px), 1120px);
    padding-top: 28px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .brand strong {
    font-size: 0.88rem;
  }

  .language-button {
    display: none;
  }

  .hero {
    border-radius: 12px;
  }

  .hero-content {
    padding: 62px 20px 30px;
    gap: 42px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .hero-actions,
  .final-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .text-link {
    text-align: center;
  }

  .video-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-stats div {
    padding: 22px 18px;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .path-grid,
  .official-grid {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 420px;
  }

  .card-body {
    padding: 25px;
  }

  .about-visual::before {
    display: none;
  }

  .about-visual img {
    min-height: 330px;
  }

  .image-tag {
    right: 12px;
  }

  .game-stats {
    grid-template-columns: 1fr;
  }

  .game-stats div,
  .game-stats div:nth-child(2n),
  .game-stats div:nth-child(3n),
  .game-stats div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid hsl(var(--border) / 0.58);
  }

  .game-stats div:last-child {
    border-bottom: 0;
  }

  .final-cta {
    min-height: 430px;
    margin: 0 0 78px;
    padding: 42px 24px;
    justify-content: flex-end;
    background:
      linear-gradient(0deg, rgb(10 12 16 / 0.97), rgb(10 12 16 / 0.52)),
      url("assets/guide-scanner.jpg") center / cover;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-hero {
    min-height: 390px;
    padding: 34px 22px;
  }

  .guide-hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .guide-layout {
    margin-top: 34px;
    gap: 34px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
