/* ==========================================================================
   LongWayDrivers public site
   Retro-modern: the LongWayFM look (framed page, orange title bars,
   three-colour wordmark) with modern spacing, type and a light/dark theme.
   ========================================================================== */

:root {
  --long: #f15a24;
  --long-hi: #ff6d3a;
  --way: #39b54a;
  --way-hi: #2f9e3f;
  --drivers: #006837;
  --bar: #ff6600;
  --bar-ink: #111;
  --discord: #5865f2;

  --page: #e9e8e4;
  --frame: #ffffff;
  --head: #f6f5f2;
  --bg: #fafaf8;
  --bg-2: #f3f2ee;
  --surface: #ffffff;
  --surface-2: #f1f0ec;
  --line: #e2e0da;
  --line-2: #cfccc4;
  --ink: #1d1d1b;
  --muted: #5f5d58;
  --faint: #8f8c85;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --wordmark-shadow: rgba(0, 0, 0, 0.08);
  --scan: rgba(255, 102, 0, 0.035);

  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --radius: 8px;
  --radius-lg: 10px;
  --gutter: 20px;

  /* in-game UI greys (used by the UCP vehicle preview) */
  --g-panel: #121212;
  --g-strip: #262626;
  --g-row: #1b1b1b;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --way-hi: #4cc95c;
  --page: #080808;
  --frame: #101010;
  --head: #141414;
  --bg: #0c0c0c;
  --bg-2: #131313;
  --surface: #151515;
  --surface-2: #1d1d1d;
  --line: #262626;
  --line-2: #363636;
  --ink: #ececea;
  --muted: #a2a09b;
  --faint: #6f6d69;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --wordmark-shadow: rgba(255, 255, 255, 0.06);
  --scan: rgba(255, 102, 0, 0.03);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--page);
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, var(--scan) 3px 4px);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--long); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
code { font-family: var(--mono); }

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--bar);
  color: var(--bar-ink);
  font-weight: 800;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--long); outline-offset: 2px; }

.t-long { color: var(--long); }
.t-way { color: var(--way); }
.t-drivers { color: var(--drivers); }
:root[data-theme="dark"] .t-drivers { color: #0b8a4b; }

/* ---------- Frame ---------- */

.frame {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--bar);
  border-radius: var(--radius-lg);
  background: var(--frame);
  box-shadow: var(--shadow);
}

.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 16px;
  background: var(--bar);
  color: var(--bar-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.strip-left { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.strip-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.theme-toggle {
  padding: 2px 8px;
  border: 1px solid var(--bar-ink);
  border-radius: 4px;
  background: #fff;
  color: var(--bar);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
:root[data-theme="dark"] .theme-toggle { background: #000; border-color: #000; }
.theme-toggle:hover { opacity: 0.85; }

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #00cc44;
  box-shadow: 0 0 6px #00cc44;
  animation: pulse 1.8s ease-in-out infinite;
}
.is-offline .live-dot { background: #d33; box-shadow: none; animation: none; }
@keyframes pulse { 50% { opacity: 0.35; box-shadow: none; } }

.masthead {
  padding: 28px 20px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--head);
  text-align: center;
}
/* Same text logo as LongWayFM */
.wordmark {
  display: inline-block;
  font-family: "Fredoka", var(--body);
  font-size: clamp(42px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.08), 0 0 14px rgba(241, 90, 36, 0.18);
}
.wm-long { color: #f15a24; }
.wm-way { color: #39b54a; }
.wm-drivers { color: #006837; }
.masthead-sub {
  margin-top: 8px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mainnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--bar);
  background: var(--frame);
}
.mainnav-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mainnav-links::-webkit-scrollbar { display: none; }
.mainnav-links a {
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.mainnav-links a:hover { color: var(--ink); background: var(--surface-2); }
.mainnav-links a[aria-current="page"] { color: var(--bar); background: rgba(255, 102, 0, 0.1); }
.mainnav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn .icon { width: 16px; height: 16px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 11px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 34px; }

.btn-long { background: var(--bar); border-color: #d95500; color: var(--bar-ink); }
.btn-long:hover { background: #ff7a1f; }
.btn-way { background: var(--way); border-color: #2c9a3c; color: #08200e; }
.btn-way:hover { background: #45c457; }
.btn-ghost { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-discord { background: var(--discord); border-color: #4752c4; color: #fff; }
.btn-discord:hover { background: #6773f5; }

/* ---------- Small controls ---------- */

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 7px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.segmented button.active,
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }

.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 6px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
}
.ip-chip code { font-size: 13px; }
.ip-chip-action {
  padding: 5px 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inline-copy {
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--bar);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
}

/* ---------- Page + boxes ---------- */

.page { padding: 20px; }

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.page-main,
.page-side { display: grid; gap: 20px; min-width: 0; }
.page > .box + .box { margin-top: 20px; }

.box {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 8px 6px 12px;
  background: var(--bar);
  color: var(--bar-ink);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}
.box-title::before { content: "\25B6"; font-size: 9px; }
.box-title-side { margin-left: auto; }
.box-title .segmented { background: rgba(0, 0, 0, 0.14); box-shadow: none; padding: 2px; }
.box-title .segmented button { padding: 3px 10px; color: var(--bar-ink); font-size: 10px; }
.box-title .segmented button.active,
.box-title .segmented button[aria-pressed="true"] { background: #fff; color: var(--bar-ink); }

.box-body { padding: 18px; }
.box-intro { margin-bottom: 16px; color: var(--muted); }
.page-note { margin-top: 16px; color: var(--faint); font-size: 13px; text-align: center; }
.page-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

/* ---------- Home ---------- */

.hero-banner { position: relative; min-height: 360px; display: flex; align-items: flex-end; }
.hero-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.1) 100%);
}
.hero-banner-copy { position: relative; z-index: 1; padding: 32px; color: #fff; }
.hero-title {
  display: grid;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}
.hero-title .t-drivers { color: #0b8a4b; }
.hero-lede { margin-top: 14px; max-width: 34ch; color: rgba(255, 255, 255, 0.86); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.feature-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-card .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--bar); }
.feature-card h3 { font-size: 15px; font-weight: 800; }
.feature-card p { margin-top: 3px; color: var(--muted); font-size: 14px; }

.play-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.play-steps li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.play-steps li:first-child { border-top: 0; padding-top: 0; }
.step-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 5px;
  background: var(--bar);
  color: var(--bar-ink);
  font-size: 12px;
  font-weight: 800;
}
.play-steps strong { font-size: 15px; font-weight: 800; }
.play-steps p { margin-top: 2px; color: var(--muted); font-size: 14px; }
.play-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.info-list { display: grid; margin: 0; padding: 6px 18px; }
.info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.info-list > div:first-child { border-top: 0; }
.info-list dt { color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.info-list dd { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 600; text-align: right; }
.status-cell { display: inline-flex; align-items: center; gap: 7px; }
.status-text::before { content: "Online"; }
.is-offline .status-text::before { content: "Offline"; }

.side-cta { display: grid; gap: 14px; }
.side-cta p { color: var(--muted); font-size: 14px; }

/* ---------- Shop ---------- */

.vip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vip-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.vip-card.featured { border-color: var(--bar); box-shadow: inset 0 3px 0 var(--bar); }
.vip-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.vip-tag {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bar);
  color: var(--bar-ink);
  font-family: var(--body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.vip-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.vip-price strong { font-family: var(--display); font-size: 3rem; font-weight: 800; line-height: 1; }
.vip-price small { color: var(--muted); font-weight: 700; }
.vip-saving {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(57, 181, 74, 0.14);
  color: var(--way-hi);
  font-size: 11px;
  font-weight: 800;
}
.vip-discount { padding: 10px 12px; border-radius: 6px; background: var(--surface-2); font-weight: 700; }
.vip-discount b { color: var(--bar); }
.check-list { display: grid; align-content: start; gap: 8px; margin: 0; padding: 0; list-style: none; flex: 1; }
.check-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.check-list .icon { width: 16px; height: 16px; color: var(--way); }

.cash-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cash-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.cash-card.featured { border-color: var(--bar); }
.cash-size { color: var(--bar); font-family: var(--display); font-size: 1.3rem; font-weight: 800; }
.cash-amount { font-family: var(--display); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.cash-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-weight: 600;
}

.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.addon-row h3 { font-size: 16px; font-weight: 800; }
.addon-row p { color: var(--muted); }
.addon-buy { display: flex; align-items: center; gap: 14px; }
.addon-buy strong { font-family: var(--display); font-size: 2rem; font-weight: 800; }

/* ---------- Map + 404 ---------- */

.map-banner { position: relative; min-height: 420px; display: flex; align-items: flex-end; }
.map-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.15) 100%);
}
.map-banner-copy { position: relative; z-index: 1; max-width: 560px; padding: 32px; color: #fff; }
.map-banner-copy p { margin-top: 12px; color: rgba(255, 255, 255, 0.85); }

/* ---------- Wiki ---------- */

.wiki-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.wiki-sidebar { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
.wiki-nav { display: grid; gap: 1px; padding: 10px; }
.wiki-nav-section-title {
  margin: 14px 8px 4px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wiki-nav-section-title:first-child { margin-top: 4px; }
.wiki-nav-item { display: grid; gap: 1px; }
.wiki-page-link {
  display: block;
  padding: 6px 8px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.wiki-page-link strong { font-weight: inherit; }
.wiki-page-link:hover { color: var(--ink); background: var(--surface-2); }
.wiki-page-link.active { color: var(--bar); background: rgba(255, 102, 0, 0.1); font-weight: 800; }
.wiki-subnav { display: grid; gap: 1px; margin: 2px 0 6px 12px; padding-left: 8px; border-left: 2px solid var(--line); }
.wiki-subnav-link { padding: 3px 8px; color: var(--faint); font-size: 13px; text-decoration: none; }
.wiki-subnav-link:hover { color: var(--ink); }
.wiki-subnav-link.h3 { padding-left: 16px; }

.wiki-article-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 28px 0;
}
.wiki-article-head h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}
.wiki-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.wiki-edit-link .icon { width: 14px; height: 14px; }
.wiki-edit-link:hover { color: var(--bar); }
.wiki-status { padding: 22px 28px; color: var(--muted); }

.wiki-content { padding: 0 28px 28px; font-size: 15.5px; line-height: 1.75; }
.wiki-content > :first-child { margin-top: 18px; }
.wiki-content h1 { display: none; }
.wiki-content h2,
.wiki-content h3,
.wiki-content h4 { position: relative; scroll-margin-top: 20px; line-height: 1.25; }
.wiki-content h2 {
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--bar);
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.wiki-content h3 { margin: 26px 0 8px; font-size: 1.1rem; font-weight: 800; }
.wiki-content h4 { margin: 20px 0 6px; font-size: 1rem; font-weight: 800; }
.wiki-content p { margin: 12px 0; }
.wiki-content a { color: var(--bar); text-underline-offset: 3px; }
.wiki-content ul,
.wiki-content ol { padding-left: 1.3em; }
.wiki-content li { margin: 4px 0; }
.wiki-content li::marker { color: var(--bar); }
.wiki-content code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.86em;
}
.wiki-content pre {
  margin: 16px 0;
  padding: 14px 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.wiki-content pre code { padding: 0; background: none; color: var(--bar); }
.wiki-content blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--bar);
  background: rgba(255, 102, 0, 0.06);
}
.wiki-content table {
  width: 100%;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-collapse: collapse;
  font-size: 14px;
}
.wiki-content th,
.wiki-content td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wiki-content th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wiki-content tbody tr:nth-child(even) td { background: var(--bg-2); }
.wiki-content img { border-radius: var(--radius); margin: 16px 0; }
.wiki-content hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.heading-anchor {
  position: absolute;
  right: 100%;
  padding-right: 8px;
  color: var(--faint);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.wiki-content :hover > .heading-anchor { opacity: 1; }

.wiki-toggle { display: none; }

/* ---------- Footer ---------- */

.footer {
  padding: 22px 20px 18px;
  border-top: 2px solid var(--bar);
  background: var(--head);
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}
.footer a { color: var(--bar); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-rating { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.rating {
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rating-age { border-color: var(--bar); background: var(--bar); color: var(--bar-ink); }
.footer-legal { max-width: 760px; margin: 14px auto 0; font-size: 11px; line-height: 1.6; }
.footer-year { margin-top: 10px; font-size: 11px; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .page-side { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .cash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .wiki-layout { grid-template-columns: minmax(0, 1fr); }
  .wiki-sidebar { position: static; max-height: none; }
  .wiki-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    font-weight: 800;
    cursor: pointer;
  }
  .wiki-sidebar:not(.is-open) .wiki-nav { display: none; }
}

@media (max-width: 720px) {
  .frame { width: 100%; margin: 0; border-width: 3px 0 0; border-radius: 0; }
  .page { padding: 12px; }
  .page-grid, .page-main, .page-side { gap: 12px; }
  .page > .box + .box { margin-top: 12px; }
  .strip-left { display: none; }
  .strip { justify-content: flex-end; }
  .mainnav { flex-direction: column; align-items: stretch; gap: 8px; }
  .mainnav-links { flex-wrap: wrap; justify-content: center; overflow: visible; }
  .mainnav-links a { padding: 6px 9px; }
  .mainnav-actions { justify-content: stretch; }
  .mainnav-actions > * { flex: 1; }
  .feature-cards,
  .vip-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-banner { min-height: 0; }
  .hero-banner-copy, .map-banner-copy { padding: 22px 18px; }
  .ip-chip code { font-size: 12px; }
  .box-body { padding: 14px; }
  .wiki-article-head { padding: 18px 16px 0; }
  .wiki-status { padding: 18px 16px; }
  .wiki-content { padding: 0 16px 20px; }
  .wiki-content table { display: block; overflow-x: auto; }
}

@media (max-width: 420px) {
  .cash-grid { grid-template-columns: minmax(0, 1fr); }
  .box-title { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.footer-sub { margin-top: 4px; color: var(--faint); font-size: 11px; opacity: 0.75; }

/* Retro hit counter (same as LongWayFM) */
.counter-wrap { display: grid; justify-items: center; gap: 6px; }
.counter-digits {
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: #111;
  color: #00ff00;
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 4px;
  text-shadow: 0 0 6px #00ff00;
}
.counter-label { color: var(--faint); font-size: 11px; letter-spacing: 0.06em; }
