:root {
  --felt: #0e3b2e;
  --felt-dark: #0a2a20;
  --bg: #07120e;
  --bg-2: #0b1a14;
  --brass: #c9a24b;
  --brass-soft: #9c7e3a;
  --bone: #ece7d9;
  --bone-dim: #a9a593;
  --red: #a41e22;
  --line: #1c3a30;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--bone);
  background: radial-gradient(120% 70% at 50% -10%, #0f2a20 0%, var(--bg) 60%, #05100c 100%) fixed;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-x: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.page {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px 18px 70px;
}

.topbar {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--bone);
  font: 600 17px/1.2 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  letter-spacing: .01em;
  text-decoration: none;
}

.brand .dot {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1bbf66, var(--felt) 70%);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--bone-dim);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: .15s;
}

.back-link:hover {
  border-color: var(--brass-soft);
  color: var(--bone);
  background: rgba(255, 255, 255, .04);
}

.nav-wrap { position: relative; z-index: 1001; flex-shrink: 0; }

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--bone);
  background: #0c1c16;
  font: 600 13px/1.2 inherit;
  letter-spacing: .02em;
  cursor: pointer;
}

.nav-btn:hover { border-color: var(--brass-soft); background: #102820; }
.nav-icon { display: flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-icon span { display: block; height: 1.5px; border-radius: 2px; background: currentColor; transition: .2s; }
.nav-btn.open .nav-icon span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-btn.open .nav-icon span:nth-child(2) { opacity: 0; }
.nav-btn.open .nav-icon span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1002;
  display: none;
  min-width: 250px;
  padding: 8px;
  border: 1px solid var(--brass-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, #0f2318, #07120e);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}

.nav-dropdown.open { display: block; animation: dropIn .15s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.nav-section { padding: 8px 10px 4px; color: var(--bone-dim); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--bone); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-link:hover { color: var(--brass); background: rgba(201, 162, 75, .1); }
.nav-link .nl-icon { width: 25px; flex-shrink: 0; text-align: center; }
.nav-link .nl-sub { display: block; margin-top: 1px; color: var(--bone-dim); font-size: 11px; font-weight: 500; }
.nav-divider { height: 1px; margin: 6px 0; background: var(--line); }

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 860px;
  margin: 0 0 24px;
  color: var(--bone-dim);
  font-size: 12px;
}

.breadcrumb a { color: var(--bone-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb span[aria-hidden="true"] { color: var(--brass-soft); }

.article-header,
article,
.related {
  width: 100%;
  max-width: 860px;
}

.article-header { margin-bottom: 28px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--brass); font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.eyebrow::before { width: 30px; height: 1px; background: var(--brass-soft); content: ""; }
h1 { max-width: 820px; margin: 0 0 18px; font: 600 clamp(34px, 5.2vw, 54px)/1.06 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; letter-spacing: -.018em; }
.standfirst { max-width: 790px; margin: 0 0 12px; color: #c5c0af; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.6; }
.article-meta { margin: 0; color: var(--bone-dim); font-size: 12.5px; }

.game-dock {
  display: flex;
  gap: 10px;
  max-width: 1120px;
  margin: 24px 0 22px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.game-dock::-webkit-scrollbar { display: none; }
.dock-card { display: flex; flex: 1; min-width: 115px; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 14px; color: var(--bone); background: linear-gradient(180deg, var(--bg-2), #081511); text-align: center; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.dock-card:hover { border-color: var(--brass-soft); box-shadow: 0 0 0 1px var(--brass-soft), 0 4px 16px rgba(0, 0, 0, .35); }
.dock-card.dock-shop { border-color: rgba(91, 191, 123, .22); background: linear-gradient(180deg, rgba(91, 191, 123, .06), #081511); }
.dock-icon.logo-icon,
.dock-icon.logo-icon img { display: block; width: 42px; height: 42px; object-fit: contain; }
.dock-icon.logo-icon img { filter: drop-shadow(0 2px 7px rgba(201, 162, 75, .28)); }
.dock-name { color: var(--bone); font-size: 13px; font-weight: 800; }
.dock-sub { color: var(--bone-dim); font-size: 11px; }
.dock-scroll-hint { display: none; }
.dock-more-trigger { position: relative; appearance: none; font-family: inherit; cursor: pointer; }
.dock-more-trigger.open,
.dock-more-trigger:hover { border-color: var(--brass); background: linear-gradient(180deg, rgba(201, 162, 75, .09), rgba(201, 162, 75, .03)); }
.dock-chevron { margin-top: -2px; color: var(--brass); font-size: 12px; line-height: 1; transition: transform .16s ease; }
.dock-more-trigger.open .dock-chevron { transform: rotate(180deg); }
.dock-more-menu { position: fixed; z-index: 1700; display: none; width: min(330px, calc(100vw - 28px)); padding: 10px; border: 1px solid var(--brass-soft); border-radius: 16px; background: linear-gradient(180deg, #0f2318, #07120e); box-shadow: 0 22px 58px rgba(0, 0, 0, .72); }
.dock-more-menu.open { display: block; animation: dropIn .15s ease; }
.dock-more-title { padding: 8px 10px 6px; color: var(--brass); font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.dock-more-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid transparent; border-radius: 11px; color: var(--bone); text-decoration: none; }
.dock-more-link:hover { border-color: rgba(201, 162, 75, .18); color: var(--brass); background: rgba(201, 162, 75, .1); }
.dock-more-ic { width: 28px; flex-shrink: 0; text-align: center; }
.dock-more-name { font-size: 13px; font-weight: 900; line-height: 1.15; }
.dock-more-sub { display: block; margin-top: 2px; color: var(--bone-dim); font-size: 11px; font-weight: 500; }
.dock-more-divider { height: 1px; margin: 6px 0; background: var(--line); }

article { font-size: 17px; }
article p { margin: 0 0 18px; }
article h2 { margin: 48px 0 14px; padding-top: 23px; border-top: 1px solid var(--line); font: 600 28px/1.2 "Iowan Old Style", Palatino, Georgia, serif; letter-spacing: -.008em; }
article h3 { margin: 31px 0 8px; color: var(--bone); font-size: 19px; line-height: 1.35; }
article a { border-bottom: 1px solid rgba(201, 162, 75, .35); color: var(--brass); text-decoration: none; }
article a:hover { border-bottom-color: var(--brass); }
article strong { color: #fff; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 42px 0 10px;
  padding: 23px 24px;
  border: 1px solid var(--brass-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--bg-2), #081511);
}

.cta-text { min-width: 230px; flex: 1; }
.cta-text b { display: block; margin-bottom: 3px; color: var(--bone); font-size: 17px; }
.cta-text span { color: var(--bone-dim); font-size: 14px; }
.btn-primary { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 21px; border: 1px solid var(--brass); border-radius: 10px; color: #1a1304; background: var(--brass); font-size: 15px; font-weight: 800; text-decoration: none; transition: .15s; }
.btn-primary:hover { background: #d8b262; transform: translateY(-1px); }

.related { margin-top: 48px; padding-top: 27px; border-top: 1px solid var(--line); }
.related h2 { margin: 0 0 17px; color: var(--bone-dim); font: 700 12px/1.3 inherit; letter-spacing: .2em; text-transform: uppercase; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.related-card { display: block; padding: 15px 16px; border: 1px solid var(--line); border-radius: 11px; color: var(--bone); background: rgba(255, 255, 255, .02); text-decoration: none; }
.related-card:hover { border-color: var(--brass-soft); background: rgba(201, 162, 75, .05); }
.related-card b { display: block; margin-bottom: 3px; color: var(--brass); font-size: 14px; }
.related-card span { color: var(--bone-dim); font-size: 12px; line-height: 1.45; }

.site-footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; max-width: 1120px; margin: 42px 0 26px; padding-top: 28px; border-top: 1px solid var(--line); }
.site-footer-nav .sfn-col { min-width: 0; }
.site-footer-nav .sfn-title { margin: 0 0 10px; color: var(--brass); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.site-footer-nav a { display: block; padding: 4px 0; color: var(--bone-dim); font-size: 13px; text-decoration: none; }
.site-footer-nav a:hover { color: var(--bone); }
.rg-footer { max-width: 1120px; margin-top: 20px; padding: 14px 0 4px; border-top: 1px solid var(--line); }
.rg-inner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; color: var(--bone-dim); font-size: 11.5px; }
.rg-18 { flex-shrink: 0; padding: 3px 8px; border-radius: 5px; color: #fff; background: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.rg-inner a { border-bottom: 1px solid rgba(169, 165, 147, .3); color: var(--bone-dim); text-decoration: none; }
.rg-inner a:hover { color: var(--bone); }
.site-footer { max-width: 1120px; margin-top: 45px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--bone-dim); font-size: 12.5px; line-height: 1.7; text-align: center; }

@media (max-width: 900px) {
  .game-dock { max-width: 100%; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 42px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 42px), transparent 100%); }
  .game-dock .dock-card { flex: 0 0 112px; scroll-snap-align: start; }
  .dock-scroll-hint { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: -1px 2px 22px; color: var(--brass); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
  .dock-scroll-hint::after { content: "→"; }
}

@media (max-width: 760px) {
  .site-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
}

@media (max-width: 600px) {
  .page { padding: 20px 16px 60px; }
  .topbar { gap: 12px; }
  .back-link { display: none; }
  .breadcrumb { margin-bottom: 20px; }
  h1 { font-size: clamp(32px, 10.5vw, 44px); }
  article { font-size: 16px; }
  article h2 { font-size: 24px; }
  .game-dock .dock-card { flex-basis: 104px; min-width: 90px; padding: 12px 8px; }
  .dock-icon.logo-icon,
  .dock-icon.logo-icon img { width: 34px; height: 34px; }
  .dock-name { font-size: 11px; }
  .dock-sub { display: none; }
  .dock-more-menu { right: 14px !important; left: 14px !important; width: auto; max-height: min(70vh, 520px); overflow: auto; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .site-footer-nav { grid-template-columns: 1fr; gap: 20px; }
  .rg-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
