/* Halo-Scape — shared stylesheet.
   Vintage original-Xbox dashboard + Halo: CE menus + classic RuneScape layouts. */

:root {
  --bg: #040704;
  --bg-2: #08120a;
  --bg-3: #0e1d10;
  --panel: rgba(10, 22, 11, 0.78);
  --panel-solid: #0b170c;
  --panel-hi: rgba(26, 52, 22, 0.85);
  --line: rgba(154, 205, 50, 0.32);
  --line-strong: rgba(154, 205, 50, 0.7);
  --green: #9acd32;
  --green-hot: #7cfc00;
  --green-deep: #2f5d12;
  --blue: #4fb8ff;
  --blue-soft: rgba(79, 184, 255, 0.18);
  --gold: #e8b830;
  --red: #ff5d4f;
  --text: #dbe8d2;
  --text-dim: #9db394;
  --chrome: linear-gradient(180deg, #f4f7f2 0%, #b9c2b6 38%, #6b7568 52%, #c9d1c5 70%, #eef2ec 100%);
  --steel-text: linear-gradient(180deg, #ffffff 0%, #dfe7ea 35%, #8f9ca3 50%, #c5d0d6 68%, #f5fbff 100%);
  --radius: 18px;
  --font-head: "Orbitron", "Michroma", "Segoe UI", sans-serif;
  --font-body: "Exo 2", "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --maxw: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(124, 252, 0, 0.13), transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(79, 184, 255, 0.07), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* CRT scanlines + vignette over everything, never interactive. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.18) 3px, rgba(0, 0, 0, 0) 4px),
    radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, 0.45) 100%);
  mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-hot); text-shadow: 0 0 8px rgba(124, 252, 0, 0.55); }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(79, 184, 255, 0.25);
  border-radius: 6px;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.06em; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); text-transform: uppercase; }
h3 { font-size: 1.05rem; text-transform: uppercase; }
p { margin: 0 0 1em; }
.small { font-size: 0.9rem; color: var(--text-dim); }
.mono { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green); color: #031000; padding: 10px 16px; border-radius: 0 0 10px 10px;
  font-family: var(--font-head); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(4, 10, 4, 0.94), rgba(6, 14, 6, 0.86));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(124, 252, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
}
.brand:hover { text-shadow: none; }
.brand-orb {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #eaffc0 0%, #a5f03a 22%, #3f8f0a 55%, #0e2a04 100%);
  box-shadow: 0 0 14px rgba(124, 252, 0, 0.75), inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  border: 2px solid #c9d1c5;
}
.logo-text {
  font-family: var(--font-head); font-weight: 900; letter-spacing: 0.08em;
  background: var(--steel-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgba(79, 184, 255, 0.55));
}
.brand .logo-text { font-size: 1.25rem; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); text-decoration: none; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.main-nav a:hover { color: #fff; border-color: var(--line-strong); background: rgba(124, 252, 0, 0.08); }
.main-nav a[aria-current="page"] {
  color: #061200; background: linear-gradient(180deg, #d7ff8a, #9acd32 55%, #5c8f16);
  border-color: #e9ffc0; box-shadow: 0 0 12px rgba(124, 252, 0, 0.45); text-shadow: none;
}
.main-nav a.nav-play { color: var(--gold); border-color: rgba(232, 184, 48, 0.45); }
.main-nav a.nav-play:hover { background: rgba(232, 184, 48, 0.12); color: #ffe08a; text-shadow: 0 0 8px rgba(232, 184, 48, 0.6); }

@media (max-width: 720px) {
  .site-header { position: static; }
  .site-header .wrap { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .brand { justify-content: center; }
  .main-nav ul { justify-content: center; gap: 4px; }
  .main-nav a { padding: 7px 10px; font-size: 0.7rem; letter-spacing: 0.08em; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; color: #061200;
  border: 2px solid #e8f2e0;
  background: linear-gradient(180deg, #e2ffa6 0%, #a6e03a 40%, #5e9a12 60%, #8ccf2a 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 18px rgba(124, 252, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
}
.btn:hover { color: #031000; text-shadow: none; filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 30px rgba(124, 252, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.7); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; filter: grayscale(0.85) brightness(0.7); transform: none; box-shadow: none; }
.btn-ghost {
  color: var(--text); background: linear-gradient(180deg, rgba(40, 60, 40, 0.75), rgba(10, 20, 10, 0.85));
  border-color: rgba(201, 209, 197, 0.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover { color: #fff; box-shadow: 0 0 18px rgba(79, 184, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-blue {
  color: #00142a; border-color: #e6f6ff;
  background: linear-gradient(180deg, #d6f0ff 0%, #6cc6ff 42%, #1a78c2 60%, #4fb8ff 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 18px rgba(79, 184, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-blue:hover { color: #00142a; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 30px rgba(79, 184, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: 0.74rem; }
.btn-xl { min-height: 64px; padding: 14px 48px; font-size: 1.25rem; letter-spacing: 0.2em; }

/* ---------- Panels / pods (Xbox-blade style) ---------- */
.pod {
  position: relative;
  border: 2px solid transparent;
  border-radius: var(--radius) 6px var(--radius) 6px;
  background:
    linear-gradient(160deg, rgba(20, 42, 20, 0.88), rgba(6, 14, 7, 0.9)) padding-box,
    linear-gradient(180deg, rgba(235, 242, 230, 0.75), rgba(90, 110, 88, 0.45) 45%, rgba(154, 205, 50, 0.6)) border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(124, 252, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 22px 22px 20px;
}
.pod::before {
  /* glassy top sheen */
  content: ""; position: absolute; left: 10px; right: 10px; top: 4px; height: 38%;
  border-radius: 14px 4px 40% 40% / 14px 4px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.pod > * { position: relative; }
.pod-blue {
  background:
    linear-gradient(160deg, rgba(12, 32, 48, 0.88), rgba(4, 10, 16, 0.92)) padding-box,
    linear-gradient(180deg, rgba(230, 246, 255, 0.75), rgba(70, 100, 120, 0.4) 45%, rgba(79, 184, 255, 0.65)) border-box;
}
.pod-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); color: var(--green); text-shadow: 0 0 10px rgba(124, 252, 0, 0.35);
}
.pod-blue .pod-title { color: var(--blue); text-shadow: 0 0 10px rgba(79, 184, 255, 0.45); }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; color: #f0f6ea; }
.section-head h2 span { color: var(--green); text-shadow: 0 0 12px rgba(124, 252, 0, 0.5); }
.section-head::after {
  content: ""; flex: 1 1 120px; height: 2px; align-self: center;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.eyebrow {
  font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--blue);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(86vh, 760px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 72px 16px 96px;
  background: #0a0f08 url("../img/halo-scape-wallpaper.jpg") center 30% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(2, 6, 4, 0.62), rgba(2, 6, 4, 0.12) 70%, transparent),
    linear-gradient(180deg, rgba(4, 7, 4, 0.35) 0%, rgba(4, 7, 4, 0) 30%, rgba(4, 7, 4, 0.2) 65%, var(--bg) 100%);
}
.hero::after {
  /* HUD frame corners */
  content: ""; position: absolute; inset: 18px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--green), var(--green)) left top / 46px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) left top / 2px 46px no-repeat,
    linear-gradient(var(--green), var(--green)) right top / 46px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) right top / 2px 46px no-repeat,
    linear-gradient(var(--green), var(--green)) left bottom / 46px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) left bottom / 2px 46px no-repeat,
    linear-gradient(var(--green), var(--green)) right bottom / 46px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) right bottom / 2px 46px no-repeat;
  opacity: 0.7; filter: drop-shadow(0 0 6px var(--green-hot));
}
.hero-inner { max-width: 900px; }
.hero-logo {
  margin: 8px 0 6px; line-height: 1;
  font-size: clamp(2.6rem, 11vw, 7.4rem);
}
.hero-logo .logo-text {
  display: inline-block;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 18px rgba(79, 184, 255, 0.85)) drop-shadow(0 4px 0 rgba(0, 0, 0, 0.8));
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.45rem); font-weight: 600; color: #f3f7ee;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9); margin: 14px auto 28px; max-width: 34em;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px;
}
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-head); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid rgba(79, 184, 255, 0.55); color: #cfeaff; background: rgba(4, 20, 34, 0.65);
}
.chip-gold { border-color: rgba(232, 184, 48, 0.6); color: #ffe7a0; background: rgba(40, 28, 4, 0.65); }
.hero-note {
  margin: 22px auto 0; max-width: 30em; font-size: 0.95rem; color: #e6eee0;
  background: rgba(4, 10, 4, 0.6); border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px;
}
@media (max-width: 720px) {
  .hero { min-height: 0; padding: 56px 16px 64px; background-position: 18% 30%; }
  .hero::after { inset: 10px; }
  .btn-xl { min-height: 56px; padding: 12px 34px; font-size: 1.05rem; }
}

/* ---------- Feature blades ---------- */
.blades { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
@media (max-width: 420px) { .blades { grid-template-columns: 1fr; } }
.blade { padding-left: 28px; }
.blade::after {
  content: ""; position: absolute; left: -2px; top: 18px; bottom: 18px; width: 5px; border-radius: 4px;
  background: linear-gradient(180deg, var(--green-hot), var(--green-deep));
  box-shadow: 0 0 12px var(--green-hot);
}
.blade.pod-blue::after { background: linear-gradient(180deg, #9ad8ff, #1a5f99); box-shadow: 0 0 12px var(--blue); }
.blade.blade-gold::after { background: linear-gradient(180deg, #ffe68a, #8a6510); box-shadow: 0 0 12px var(--gold); }
.blade h3 { margin-bottom: 0.5em; }
.blade p:last-child, .blade ul:last-child { margin-bottom: 0; }
.blade ul { margin: 0 0 1em; padding-left: 1.1em; }
.blade li { margin: 0.2em 0; }
.blade li::marker { color: var(--green); }
.blade .glyph {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 900; color: #061200;
  background: radial-gradient(circle at 35% 30%, #f1ffd2, #9acd32 50%, #3d6e0c);
  box-shadow: 0 0 10px rgba(124, 252, 0, 0.55);
}
.pod-blue .glyph { color: #001830; background: radial-gradient(circle at 35% 30%, #e8f7ff, #4fb8ff 50%, #105088); box-shadow: 0 0 10px rgba(79, 184, 255, 0.6); }
.blade-gold .glyph { color: #2a1c00; background: radial-gradient(circle at 35% 30%, #fff4c8, #e8b830 50%, #7a5608); box-shadow: 0 0 10px rgba(232, 184, 48, 0.6); }
.blade-wide { grid-column: 1 / -1; }

.gun-chips, .tier-ladder { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0 !important; margin: 0 0 1em; }
.gun-chips li {
  padding: 3px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(201, 209, 197, 0.3);
}
.gun-chips li.cov { border-color: rgba(190, 120, 255, 0.55); color: #e3cbff; }
.gun-chips li.unsc { border-color: rgba(154, 205, 50, 0.55); color: #e2f5c8; }
.tier-ladder li {
  position: relative; padding: 4px 12px 4px 10px; border-radius: 4px; font-family: var(--font-head);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #0a0a0a;
  background: var(--tier); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 8px color-mix(in srgb, var(--tier) 60%, transparent);
}
.tier-ladder li + li::before { content: "\203A"; position: absolute; left: -7px; top: 2px; color: var(--text-dim); font-size: 0.9rem; }
.t-crude { --tier: #8c8172; }
.t-bronze { --tier: #c07a3c; }
.t-iron { --tier: #9a9692; }
.t-steel { --tier: #c9ced4; }
.t-mithril { --tier: #6f7fd8; }
.t-adamant { --tier: #5fa86a; }
.t-rune { --tier: #5fd0e0; }
.t-dragon { --tier: #e04a3a; }

/* ---------- Controls ---------- */
.controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px 22px; margin: 0; }
.controls div { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(154, 205, 50, 0.18); }
.controls dt { flex: none; min-width: 108px; display: flex; gap: 4px; flex-wrap: wrap; }
.controls dd { margin: 0; color: var(--text); }
kbd {
  display: inline-block; min-width: 30px; padding: 3px 8px; text-align: center;
  font-family: var(--font-head); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; color: #10200a;
  border-radius: 7px; border: 1px solid #f2f6ee;
  background: linear-gradient(180deg, #ffffff, #c8d0c4 60%, #9aa595);
  box-shadow: 0 2px 0 #4c5649, 0 0 8px rgba(124, 252, 0, 0.2);
}
kbd.mouse { color: #00203a; background: linear-gradient(180deg, #f2fbff, #9fd7ff 60%, #5aa6dd); }

/* ---------- News ---------- */
.news { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 420px) { .news { grid-template-columns: 1fr; } }
.news article h3 { color: #f4f8ef; font-size: 1rem; }
.news time { display: block; margin-bottom: 8px; font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.news p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px; padding: 30px 0 40px; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 18, 8, 0.6), rgba(2, 4, 2, 0.95));
  font-size: 0.9rem; color: var(--text-dim); text-align: center;
}
.site-footer .footer-nav { display: flex; gap: 6px 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer p { margin: 0.4em 0; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  position: relative; padding: 44px 0 30px; text-align: center; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 7, 4, 0.55), var(--bg) 100%),
    url("../img/halo-scape-wallpaper.jpg") center 38% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 0.2em 0 0.25em; text-shadow: 0 0 16px rgba(124, 252, 0, 0.4), 0 2px 6px #000; }
.page-hero p { margin: 0 auto; max-width: 40em; color: #e3ecdc; text-shadow: 0 1px 4px #000; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; margin: 24px 0 18px; flex-wrap: wrap; }
.tab {
  min-height: 44px; padding: 8px 26px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); border-radius: 14px 14px 4px 4px;
  border: 1px solid rgba(201, 209, 197, 0.45); border-bottom-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(40, 60, 40, 0.8), rgba(8, 16, 8, 0.9));
}
.tab:hover { color: #fff; box-shadow: 0 0 14px rgba(124, 252, 0, 0.3); }
.tab[aria-selected="true"] {
  color: #061200; border-color: #e9ffc0;
  background: linear-gradient(180deg, #d7ff8a, #9acd32 55%, #5c8f16); box-shadow: 0 0 16px rgba(124, 252, 0, 0.5);
}

/* ---------- Hiscores (RuneScape layout) ---------- */
.hs-layout { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .hs-layout { grid-template-columns: 1fr; } }
.hs-side { padding: 16px 14px; }
.hs-side h2 { font-size: 0.85rem; margin-bottom: 10px; color: var(--green); }
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.skill-list button {
  width: 100%; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; background: transparent;
  color: var(--text); font: 600 0.95rem var(--font-body);
}
.skill-list button:hover { background: rgba(124, 252, 0, 0.08); border-color: var(--line); }
.skill-list button[aria-current="true"] {
  color: #061200; background: linear-gradient(90deg, #b8f05a, #6fa81c); border-color: #e9ffc0;
  box-shadow: 0 0 10px rgba(124, 252, 0, 0.35);
}
.skill-list .sk-ico {
  flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px;
  font: 900 0.62rem var(--font-head); color: #dff3ff; background: rgba(79, 184, 255, 0.18); border: 1px solid rgba(79, 184, 255, 0.4);
}
.skill-list button[aria-current="true"] .sk-ico { color: #061200; background: rgba(255, 255, 255, 0.45); border-color: rgba(0, 0, 0, 0.25); }
@media (max-width: 860px) {
  .skill-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .skill-list button { font-size: 0.88rem; padding: 6px 8px; }
}
.lookup { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.lookup label, .field label { display: block; font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }

input[type="text"], input[type="search"], select {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  font: 600 1rem var(--font-body); color: #f2fbe8;
  background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(201, 209, 197, 0.45);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}
input::placeholder { color: #71866b; }
input:focus-visible, select:focus-visible { border-color: var(--blue); }
select option { background: #0b170c; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1 1 auto; min-width: 0; }

.hs-main { padding: 18px; min-width: 0; }
.hs-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.hs-toolbar h2 { margin: 0; font-size: 1.15rem; color: #f2f8ec; }
.hs-toolbar .inline-form { flex: 0 1 340px; }
@media (max-width: 560px) { .hs-toolbar .inline-form { flex: 1 1 100%; } }

.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(154, 205, 50, 0.25); }
table.hs {
  width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.32);
}
table.hs th, table.hs td { padding: 9px 14px; text-align: left; white-space: nowrap; }
table.hs thead th {
  font: 700 0.7rem var(--font-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  background: linear-gradient(180deg, rgba(60, 50, 14, 0.55), rgba(20, 16, 4, 0.75));
  border-bottom: 1px solid rgba(232, 184, 48, 0.45);
}
table.hs tbody tr:nth-child(even) { background: rgba(124, 252, 0, 0.035); }
table.hs tbody tr:hover { background: rgba(79, 184, 255, 0.1); }
table.hs tbody td { border-bottom: 1px solid rgba(154, 205, 50, 0.1); }
table.hs .num { text-align: right; }
table.hs .rank { color: var(--text-dim); width: 1%; }
table.hs .name a { font-weight: 700; color: #e9ffd0; text-decoration: none; }
table.hs .name a:hover { color: var(--green-hot); text-decoration: underline; }
table.hs tr.top-1 .rank { color: var(--gold); font-weight: 700; }
table.hs tr.top-2 .rank { color: #dfe7ea; font-weight: 700; }
table.hs tr.top-3 .rank { color: #d08a4a; font-weight: 700; }
table.hs .acc { color: var(--blue); font-weight: 700; }
@media (max-width: 560px) {
  table.hs th, table.hs td { padding: 8px 9px; font-size: 0.92rem; }
  table.hs .hide-sm { display: none; }
}
.acc-bar { display: inline-block; vertical-align: middle; width: 70px; height: 6px; margin-left: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.acc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1a78c2, var(--blue)); box-shadow: 0 0 6px var(--blue); }
@media (max-width: 560px) { .acc-bar { display: none; } }

.state-msg { padding: 26px 16px; text-align: center; color: var(--text-dim); }
.state-msg.error { color: #ffc2b8; }
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.pager button {
  min-width: 40px; min-height: 40px; padding: 4px 12px; cursor: pointer; border-radius: 10px;
  font: 700 0.8rem var(--font-head); color: var(--text);
  background: linear-gradient(180deg, rgba(40, 60, 40, 0.8), rgba(8, 16, 8, 0.9)); border: 1px solid rgba(201, 209, 197, 0.4);
}
.pager button:hover:not(:disabled) { border-color: var(--green); color: #fff; }
.pager button[aria-current="page"] { color: #061200; background: linear-gradient(180deg, #d7ff8a, #8cc02a); border-color: #e9ffc0; }
.pager button:disabled { opacity: 0.4; cursor: default; }
.pager .gap { color: var(--text-dim); padding: 0 4px; }
.updated { margin: 12px 0 0; text-align: center; }

.explain {
  margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 0.95rem;
  background: var(--blue-soft); border: 1px solid rgba(79, 184, 255, 0.4); color: #d6efff;
}
.gun-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.gun-picker button {
  cursor: pointer; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  font: 600 0.92rem var(--font-body); color: var(--text);
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(201, 209, 197, 0.35);
}
.gun-picker button:hover { border-color: var(--blue); color: #fff; }
.gun-picker button[aria-pressed="true"] {
  color: #00142a; border-color: #e6f6ff; font-weight: 700;
  background: linear-gradient(180deg, #d6f0ff, #4fb8ff); box-shadow: 0 0 12px rgba(79, 184, 255, 0.55);
}

/* Player page */
.player-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; justify-content: space-between; margin-bottom: 18px; }
.player-head h2 { margin: 0; font-size: clamp(1.3rem, 4vw, 2rem); text-transform: none; color: #f4fbe9; text-shadow: 0 0 14px rgba(124, 252, 0, 0.35); }
.player-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-box { min-width: 110px; padding: 8px 14px; border-radius: 12px; text-align: center; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); }
.stat-box b { display: block; font: 900 1.2rem var(--font-head); color: var(--green); }
.stat-box span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Vote ---------- */
.vote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .vote-grid { grid-template-columns: 1fr; } }
.reward { display: flex; gap: 16px; align-items: flex-start; }
.reward-crate {
  flex: none; width: 76px; height: 76px; border-radius: 14px; position: relative;
  background:
    linear-gradient(90deg, transparent 44%, rgba(0, 0, 0, 0.45) 44%, rgba(0, 0, 0, 0.45) 56%, transparent 56%),
    linear-gradient(180deg, #8aa25a, #4b5f26 60%, #2d3a16);
  border: 2px solid #cfd8c6; box-shadow: 0 0 18px rgba(232, 184, 48, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.reward-crate::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%) rotate(45deg);
  border: 3px solid var(--gold); box-shadow: 0 0 10px var(--gold);
}
.reward ul { margin: 0.4em 0 0.6em; padding-left: 1.1em; }
.reward li::marker { color: var(--gold); }
.vote-form { display: grid; gap: 10px; }
.vote-form .inline-form { flex-wrap: wrap; }
.vote-form .inline-form input { flex: 1 1 180px; }
.alert {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-weight: 600;
  color: #ffd9d2; background: rgba(120, 20, 10, 0.35); border: 1px solid rgba(255, 93, 79, 0.55);
}
.notice {
  padding: 14px 16px; border-radius: 12px; text-align: center; font-family: var(--font-head); letter-spacing: 0.08em;
  color: #ffe7a0; background: rgba(40, 28, 4, 0.55); border: 1px solid rgba(232, 184, 48, 0.5);
}
.vote-hub { margin-top: 22px; }
.vote-hub-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; margin-bottom: 12px; }
.vote-hub-head h2 { margin: 0; }
.vote-for b { color: var(--green); font-family: var(--font-head); letter-spacing: 0.06em; }
.vote-providers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 420px) { .vote-providers { grid-template-columns: 1fr; } }
.vote-provider h3 { color: #f4f9ee; margin-bottom: 4px; text-transform: none; font-size: 1.1rem; }
.vote-status {
  display: inline-block; margin: 6px 0 8px; padding: 4px 12px; border-radius: 999px;
  font: 700 0.72rem var(--font-head); letter-spacing: 0.12em; text-transform: uppercase;
  color: #cfeaff; background: rgba(4, 20, 34, 0.7); border: 1px solid rgba(79, 184, 255, 0.55);
}
.vote-status[data-state="confirmed"] { color: #061200; background: linear-gradient(180deg, #d7ff8a, #8cc02a); border-color: #e9ffc0; box-shadow: 0 0 14px rgba(124, 252, 0, 0.55); }
.vote-status[data-state="pending"] { color: #ffe7a0; background: rgba(40, 28, 4, 0.7); border-color: rgba(232, 184, 48, 0.65); }
.vote-status[data-state="cooldown"] { color: #d6d6d6; background: rgba(40, 40, 40, 0.7); border-color: rgba(200, 200, 200, 0.45); }
.vote-status[data-state="expired"], .vote-status[data-state="unavailable"] { color: #ffd9d2; background: rgba(60, 10, 6, 0.6); border-color: rgba(255, 93, 79, 0.55); }
.vote-confirmed { color: var(--green); font-weight: 700; margin-bottom: 4px; }
.vote-next { color: var(--gold); margin-bottom: 4px; }
.vote-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.vote-provider-error { margin: 8px 0 0; color: #ffc2b8; font-weight: 600; }
.vote-checked { margin: 6px 0 0; }

/* ---------- Fixes after screenshot review ---------- */
.btn { white-space: nowrap; }
.hero-inner { max-width: 1120px; }
.hero-logo { white-space: nowrap; font-size: clamp(2.1rem, 8.6vw, 6.6rem); }
.player-two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
@media (max-width: 960px) { .player-two-col { grid-template-columns: 1fr; } }
table.hs.compact th, table.hs.compact td { padding-left: 10px; padding-right: 10px; }
table.hs .unranked { font-size: 0.85rem; color: var(--text-dim); }
.tier-ladder { gap: 6px 14px; }
.tier-ladder li + li::before { left: -11px; }
@media (max-width: 420px) {
  .main-nav ul { gap: 2px; flex-wrap: nowrap; }
  .main-nav a { padding: 6px 8px; font-size: 0.64rem; letter-spacing: 0.04em; }
}
@media (max-width: 560px) {
  .hs-main { padding: 12px 10px; }
  table.hs th, table.hs td, table.hs.compact th, table.hs.compact td { padding: 8px 6px; font-size: 0.86rem; }
  table.hs thead th { font-size: 0.6rem; letter-spacing: 0.08em; }
  table.hs th:first-child, table.hs td:first-child { padding-left: 10px; }
  table.hs th:last-child, table.hs td:last-child { padding-right: 10px; }
}
@media (max-width: 560px) {
  table.hs td.name { white-space: normal; min-width: 7.5em; }
  .player-stats .stat-box { min-width: 0; flex: 1 1 30%; padding: 8px 6px; }
  .stat-box span { font-size: 0.62rem; letter-spacing: 0.06em; }
}
.show-sm { display: none; }
abbr.show-sm { text-decoration: none; }
@media (max-width: 560px) { .hide-sm { display: none; } .show-sm { display: inline; } }
body { display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
