/* =========================================================
   Creator Ratings — dark naval theme
   Mobile details are at the bottom (max-width: 700px)
   ========================================================= */
:root {
  --bg: #0a1018;
  --panel: #131f2d;
  --panel-2: #1a2a3c;
  --panel-3: #22354b;
  --line: #24384f;
  --text: #e6edf5;
  --muted: #8a9db3;
  /* Theme colours. These defaults are the Warships (blue) theme; the other themes
     are at the bottom of this file (body[data-theme="…"]). */
  --accent: #4fb3ff;
  --accent-rgb: 79, 179, 255;        /* same colour as --accent, for see-through tints */
  --bg-rgb: 10, 16, 24;              /* same as --bg */
  --line-rgb: 36, 56, 79;            /* same as --line */
  --accent-hover: #79c6ff;
  --on-accent: #04121f;               /* text on an --accent button */
  --accent-2: #ffb547;
  --hero-1: #11243a;                  /* big header panels (light → dark) */
  --hero-2: #0b1622;
  --hero-3: #08111b;
  --glow: #16304d;                    /* glow at the top of every page */
  --hover-line: #36506e;
  --well: #0d1825;                    /* sunken boxes behind pictures */
  --brand: linear-gradient(135deg, #4fb3ff 0%, #2ad1a0 36%, #ff8a1f 68%, #ff4d5e 100%);   /* the CR logo, every theme */

  /* rating colours: 5 blue, 4 green, 3 yellow, 2 orange, 1 red */
  --r-5: #3d9bff;
  --r-4: #2fd57a;
  --r-3: #f2c230;
  --r-2: #f08a2b;
  --r-1: #e5484d;
  --r-none: #4a5b70;

  /* rarity colours */
  --rar-C: #9aa7b5;
  --rar-E: #5cc46b;
  --rar-R: #4f9bff;
  --rar-P: #ff9a3c;   /* Epic: orange */
  --rar-L: #b06cff;   /* Legendary: purple */

  --radius: 12px;
  --gap: 14px;
  --header-h: 60px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  background:
    radial-gradient(1200px 500px at 50% -200px, var(--glow) 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.4;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
/* --stick-offset is set by JS: on phones/tablets the logo + links scroll
   away and only the search row stays pinned to the top. */
.site-header {
  position: sticky; top: calc(-1 * var(--stick-offset, 0px)); z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  min-height: var(--header-h);
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(var(--bg-rgb), 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--brand);
  font-family: var(--display); font-weight: 800; font-size: 17px; color: #fff;
  -webkit-text-stroke: 3px #0b0d12; paint-order: stroke fill;     /* thin black outline around white letters */
}
@supports not (paint-order: stroke) {
  .logo-mark { -webkit-text-stroke: 0; text-shadow: 1px 0 #0b0d12, -1px 0 #0b0d12, 0 1px #0b0d12, 0 -1px #0b0d12, 1px 1px #0b0d12, -1px -1px #0b0d12, 1px -1px #0b0d12, -1px 1px #0b0d12; }
}
.logo-text { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: .5px; }
.logo-text b { color: var(--accent); font-weight: 800; }

.header-search { position: relative; flex: 1 1 260px; max-width: 460px; }
.header-search input {
  width: 100%; height: 40px; padding: 0 12px 0 38px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  outline: none; font-size: 15px;
}
.header-search input:focus { border-color: var(--accent); background: var(--panel-2); }
.header-search input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}

.header-nav { display: flex; gap: 20px; margin-left: auto; }
.header-nav a {
  font-family: var(--display); font-size: 17px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .6px;
}
.header-nav a:hover { color: var(--text); }

.game-picker {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px;
}
/* Creator Login: small outlined button at the far right (phones: last item in the link row) */
.hdr-login {
  flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px; white-space: nowrap;
  font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
  color: var(--muted);
}
.hdr-login:hover { color: var(--text); border-color: var(--accent); }
.header-nav .nav-login { display: none; }

/* Ship finder drop-down (rows under the search box) */
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  max-height: min(440px, 70vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,.6);
}
.sr-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 10px 6px 6px; border-radius: 8px;
}
.sr-row.active, .sr-row:hover { background: rgba(var(--accent-rgb), .13); }
.sr-thumb {
  flex: 0 0 64px; height: 36px; border-radius: 6px; overflow: hidden;
  display: grid; place-items: center; background: var(--panel);
}
.sr-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.sr-fallback { font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--muted); }
.sr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-name mark { background: none; color: var(--accent); }
.sr-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge.sr-badge {
  position: static; flex-shrink: 0;
  min-width: 28px; padding: 1px 6px 2px; font-size: 17px; box-shadow: none;
}
.badge.sr-badge.none { font-size: 11px; padding: 3px 6px; }
.sr-empty { padding: 14px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.sr-more {
  margin-top: 4px; padding: 8px 12px 4px; border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: 12px;
}

/* Tablets: search gets its own full-width row under the logo + links */
@media (max-width: 1000px) {
  .header-search { order: 5; flex-basis: 100%; max-width: none; }
}

/* ---------- Page layout: content + right ad column ---------- */
.layout {
  max-width: 1480px; margin: 0 auto;
  padding: 0 16px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
}
.side-ads { display: none; }

@media (min-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 160px; }      /* 160×600 skyscraper */
  .side-ads {
    display: block; align-self: start;
    position: sticky; top: calc(var(--header-h) + 20px);
    margin-top: 20px;
  }
}
@media (min-width: 1320px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }      /* 300×600 half page */
}

/* ---------- Ads ---------- */
.ad-slot {
  display: grid; place-items: center;
  border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}
.ad-banner { height: 90px; margin: 20px 0; }
.ad-sky { height: 600px; }

/* ---------- Section titles ---------- */
.section-title {
  display: block;
  font-family: var(--display); font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}
.section-title::before {
  content: ""; display: inline-block; width: 4px; height: 18px;
  background: var(--accent-2); margin-right: 10px; vertical-align: -2px; border-radius: 2px;
}

/* ---------- Rating badge (shared) ---------- */
.badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  min-width: 32px; padding: 2px 8px 3px;
  border-radius: 8px; text-align: center; white-space: nowrap;
  font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.1;
  color: #06121c; background: var(--r-none);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.badge.r5 { background: var(--r-5); color: #fff; }
.badge.r4 { background: var(--r-4); }
.badge.r3 { background: var(--r-3); }
.badge.r2 { background: var(--r-2); }
.badge.r1 { background: var(--r-1); color: #fff; }
.badge.none { color: var(--text); font-size: 14px; padding: 4px 8px; letter-spacing: .5px; }

.card-img-fallback {
  font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--line);
}

/* ---------- Arrow carousels (Top Picks + ship cards) ---------- */
.carousel { display: flex; align-items: stretch; gap: 8px; }
.carousel-track {
  flex: 1; min-width: 0;
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 10px;          /* room for the hover lift + shadow */
}
.carousel-track::-webkit-scrollbar { display: none; }

.scroll-arrow {
  flex: 0 0 28px;               /* thin bars either side of the cards */
  margin: 4px 0 10px;           /* line up with the cards, not the padding */
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  font-size: 26px; line-height: 1; padding-bottom: 3px; color: var(--text);
  transition: all .12s;
}
.scroll-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.scroll-arrow:disabled { opacity: .3; cursor: default; }

/* ---------- Game title banner ---------- */
.game-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center;
  min-height: 280px; margin-top: 20px;
  border: 1px solid var(--line); border-radius: 16px;
  background:
    radial-gradient(520px 260px at 78% 55%, rgba(var(--accent-rgb), .20), transparent 70%),
    radial-gradient(400px 220px at 8% 0%, rgba(255,181,71,.10), transparent 70%),
    repeating-linear-gradient(0deg, rgba(var(--accent-rgb), .05) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(var(--accent-rgb), .05) 0 1px, transparent 1px 36px),
    linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
}
.gh-text { position: relative; z-index: 2; padding: 30px 12px 46px 32px; }

.gh-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 14px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent-2);
}
.gh-ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--r-4); }
.gh-ping::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--r-4);
  animation: gh-ping 2s ease-out infinite;
}
@keyframes gh-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

.gh-title { margin-top: 10px; font-family: var(--display); text-transform: uppercase; line-height: .86; }
.gh-modern {
  display: block; padding-left: 4px;
  font-size: 30px; font-weight: 700; letter-spacing: .55em; color: var(--accent);
}
.gh-warships {
  display: inline-block; white-space: nowrap;   /* box hugs the word so the metal shine covers every letter */
  font-size: clamp(64px, 8.4vw, 118px); font-weight: 800; letter-spacing: .01em;
  background: linear-gradient(180deg, #ffffff 0%, #dbe9f6 48%, #8fb3d3 52%, #c9ddef 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.55));
}
.gh-tag { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 40ch; }

.gh-stats { list-style: none; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.gh-stats li {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(var(--bg-rgb), .7); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.gh-stats b { font-family: var(--display); font-size: 18px; font-weight: 800; color: var(--text); line-height: 1; }
.gh-stats .gh-updated b { font-size: 15px; color: var(--accent-2); }

.gh-art { position: relative; z-index: 1; height: 100%; display: grid; place-items: center; padding: 16px 24px 40px 0; }
.gh-art img {
  width: 100%; max-height: 220px; object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.6));
  animation: gh-bob 6s ease-in-out infinite;
}
.gh-art.empty img { display: none; }
@keyframes gh-bob { 50% { transform: translateY(-6px) rotate(-.6deg); } }

/* Rolling sea along the bottom edge */
.gh-waves { position: absolute; inset: auto 0 0 0; height: 40px; z-index: 1; pointer-events: none; }
.gh-waves::before, .gh-waves::after { content: ""; position: absolute; inset: 0; background-repeat: repeat-x; background-position: 0 bottom; }
.gh-waves::before, .gh-waves::after { -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-position: 0 bottom; mask-position: 0 bottom; }
.gh-waves::before { background: rgba(var(--accent-rgb), .10); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='40' viewBox='0 0 600 40'%3E%3Cpath d='M0 20 Q75 4 150 20 T300 20 T450 20 T600 20 V40 H0Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='40' viewBox='0 0 600 40'%3E%3Cpath d='M0 20 Q75 4 150 20 T300 20 T450 20 T600 20 V40 H0Z'/%3E%3C/svg%3E"); animation: gh-wave 18s linear infinite; }
.gh-waves::after  { background: rgba(var(--accent-rgb), .16); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='40' viewBox='0 0 420 40'%3E%3Cpath d='M0 26 Q52 12 105 26 T210 26 T315 26 T420 26 V40 H0Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='40' viewBox='0 0 420 40'%3E%3Cpath d='M0 26 Q52 12 105 26 T210 26 T315 26 T420 26 V40 H0Z'/%3E%3C/svg%3E"); animation: gh-wave2 11s linear infinite; }
@keyframes gh-wave  { to { -webkit-mask-position-x: -600px; mask-position-x: -600px; } }
@keyframes gh-wave2 { to { -webkit-mask-position-x: 420px; mask-position-x: 420px; } }

@media (prefers-reduced-motion: reduce) {
  .gh-ping::after, .gh-art img, .gh-waves::before, .gh-waves::after { animation: none; }
}

/* ---------- News: big banner + stacked rows ---------- */
.news { margin-bottom: 24px; }
.news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.news-head .section-title { margin-bottom: 0; }
.news-more { color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }
.news-more:hover { text-decoration: underline; }
.news-stack { display: flex; flex-direction: column; gap: 8px; }

.news-tag {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  background: var(--tag, var(--accent)); color: #06121c;
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; line-height: 1.2;
}
.news-new {
  display: inline-block; padding: 2px 7px; border-radius: 6px;
  border: 1px solid var(--accent-2); color: var(--accent-2);
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .8px; line-height: 1.2;
}

/* Featured banner */
.news-feature {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center;
  min-height: 220px;
  border: 1px solid var(--line); border-radius: 14px;
  background:
    radial-gradient(600px 260px at 85% 60%, color-mix(in srgb, var(--tag, var(--accent)) 22%, transparent), transparent 70%),
    linear-gradient(110deg, var(--panel-3) 0%, var(--panel) 60%, var(--well) 100%);
  transition: border-color .15s;
}
.news-feature::before {   /* coloured edge on the left */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tag, var(--accent));
}
.news-feature:hover { border-color: var(--tag, var(--accent)); }
.nf-text { padding: 24px 12px 24px 28px; position: relative; z-index: 1; }
.nf-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.nf-title {
  font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1.05;
  letter-spacing: .3px;
}
.nf-summary { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 46ch; }
.nf-foot { margin-top: 14px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.nf-read { color: var(--text); font-weight: 600; }
.news-feature:hover .nf-read { color: var(--tag, var(--accent)); }
.nf-art { height: 100%; display: grid; place-items: center; padding: 16px 20px 16px 0; }
.nf-art img { width: 100%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0,0,0,.5)); }
.nf-art .card-img-fallback { font-size: 72px; }

/* Slim rows */
.news-row {
  display: flex; align-items: center; gap: 14px;
  min-height: 68px; padding: 8px 14px 8px 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s, background .15s;
}
.news-row:hover { border-color: var(--tag, var(--accent)); background: var(--panel-2); }
.nr-thumb {
  flex: 0 0 96px; height: 52px; border-radius: 8px; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--tag, var(--accent)) 20%, transparent), var(--panel-2) 75%);
}
.nr-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.nr-thumb .card-img-fallback { font-size: 22px; }
.nr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nr-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); min-width: 0; }
.nr-meta .news-tag { font-size: 11px; padding: 2px 7px; flex-shrink: 0; }
.nr-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-title { font-weight: 600; font-size: 15px; line-height: 1.25; }
.nr-go { color: var(--muted); font-size: 22px; line-height: 1; flex-shrink: 0; }
.news-row:hover .nr-go { color: var(--tag, var(--accent)); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab {
  background: none; border: none;
  padding: 10px 18px;
  font-family: var(--display); font-size: 19px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Controls ---------- */
.controls { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }

/* Filter dropdowns */
.filter-bar { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px 0 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  font-weight: 600; font-size: 14px; color: var(--text);
  white-space: nowrap;
  transition: border-color .12s, background .12s;
}
.dd-btn:hover { border-color: var(--hover-line); }
.dd.open .dd-btn { border-color: var(--accent); }
.dd.has .dd-btn { background: rgba(var(--accent-rgb), .12); border-color: var(--accent); }
.dd-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
.dd-chev { width: 12px; height: 12px; margin-left: 2px; color: var(--muted); transition: transform .15s; }
.dd.open .dd-chev { transform: rotate(180deg); }

.dd-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  min-width: 220px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  overflow: hidden;
}
.dd-options { max-height: 320px; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.dd-panel.cols { min-width: 360px; }
.dd-panel.cols .dd-options { display: grid; grid-template-columns: 1fr 1fr; }

.dd-opt {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 6px 10px; border-radius: 8px;
  font-size: 14px; cursor: pointer; user-select: none;
}
.dd-opt:hover { background: rgba(255,255,255,.05); }
.dd-opt input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 5px;
  border: 2px solid #4a6280; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.dd-opt input:checked { background: var(--accent); border-color: var(--accent); }
.dd-opt input:checked::after {
  content: ""; width: 5px; height: 9px; margin-top: -2px;
  border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.dd-opt .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.dd-foot {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px; border-top: 1px solid var(--line); background: var(--panel);
}
.dd-foot button {
  height: 36px; padding: 0 14px; border-radius: 8px; border: none;
  font-size: 14px; font-weight: 600;
}
.dd-clear { background: none; color: var(--muted); }
.dd-clear:hover { color: var(--text); }
.dd-done { background: var(--accent); color: var(--on-accent); }

/* Active filter tags */
.active-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.active-tags:empty { display: none; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 6px 0 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 13px; color: var(--text);
}
.tag:hover { border-color: var(--r-1); }
.tag-x {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.08); font-size: 14px; line-height: 1; color: var(--muted);
}

.results-bar {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 13px;
  scroll-margin-top: calc(var(--pinned-h, 60px) + 12px);
}
.clear-btn { background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 600; }
.sort {
  margin-left: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  height: 34px; padding: 0 10px; font-size: 13px;
}

/* ---------- Ship cards (one "panel" = one screenful) ---------- */
.ship-panel {
  flex: 0 0 100%; scroll-snap-align: start;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));   /* desktop: 5 across × 2 rows */
  gap: var(--gap); align-content: start;
}

.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(0,0,0,.45);
  }
}
.card:active { border-color: var(--accent); }
.card::before {   /* rarity stripe */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 1;
  background: var(--rar, var(--line));
}
.card-img-wrap {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  overflow: hidden;   /* fixed picture area: odd-shaped or loading images can't stretch the card */
  padding: 12px 10px 6px;
  background: radial-gradient(ellipse at 50% 70%, rgba(var(--accent-rgb), .12), transparent 70%);
}
.card-img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.card-body { padding: 8px 12px 12px; }
/* Always 3 lines tall so every card lines up; longer names get "…" */
.card-name {
  font-weight: 600; font-size: 14px; line-height: 1.25;
  min-height: calc(3 * 1.25em);
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}

.empty { text-align: center; color: var(--muted); padding: 50px 0; }

.coming-soon {
  text-align: center; padding: 70px 20px; margin-top: 4px;
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.coming-soon h3 { font-family: var(--display); font-size: 26px; color: var(--text); margin-bottom: 6px; }

/* ---------- Creators ---------- */
.creators { margin-top: 28px; }
.creators .section-title { margin-bottom: 12px; }
.creator-list { display: flex; flex-wrap: wrap; gap: 12px; }
.creator {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 20px 7px 7px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s, background .15s;
}
.creator:hover { border-color: var(--accent); background: var(--panel-2); }
.creator-avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--c, var(--panel-3));
  font-family: var(--display); font-size: 16px; font-weight: 800; color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
}
.creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 48px;
  background: var(--hero-3);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.footer-inner {
  max-width: 1480px; margin: 0 auto;
  padding: 36px 16px 28px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand p { margin-top: 12px; max-width: 300px; color: var(--muted); font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 {
  font-family: var(--display); font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--text);
  margin-bottom: 2px;
}
.footer-col a { color: var(--muted); font-size: 14px; width: fit-content; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1480px; margin: 0 auto;
  padding: 18px 16px 28px;
  border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: 12px;
}
.footer-bottom p + p { margin-top: 4px; }

/* ---------- 404 page ---------- */
.lost {
  max-width: 640px; margin: 0 auto;
  padding: 56px 16px 24px;
  text-align: center;
}

/* Sonar screen with a sweeping beam */
.sonar {
  position: relative; width: 240px; height: 240px; margin: 0 auto 28px;
  border-radius: 50%; overflow: hidden;
  background:
    linear-gradient(rgba(var(--accent-rgb), .18), rgba(var(--accent-rgb), .18)) center / 1px 100% no-repeat,
    linear-gradient(rgba(var(--accent-rgb), .18), rgba(var(--accent-rgb), .18)) center / 100% 1px no-repeat,
    radial-gradient(circle closest-side, var(--hero-1) 0%, var(--hero-2) 100%);
  border: 2px solid rgba(var(--accent-rgb), .4);
  box-shadow: 0 0 70px rgba(var(--accent-rgb), .16), inset 0 0 40px rgba(0,0,0,.65);
}
.sonar-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .22);
}
.sonar-ring.r1 { inset: 33%; }
.sonar-ring.r2 { inset: 16%; }
.sonar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(var(--accent-rgb), .08) 320deg, rgba(var(--accent-rgb), .5) 360deg);
  animation: sonar-sweep 3.2s linear infinite;
}
.sonar-code {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 76px; font-weight: 800; letter-spacing: 2px;
  color: var(--text);
  text-shadow: 0 0 22px rgba(var(--accent-rgb), .65), 0 2px 0 rgba(0,0,0,.4);
}
@keyframes sonar-sweep { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .sonar-sweep { animation: none; } }

.lost-eyebrow {
  font-family: var(--display); font-size: 15px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-2);
}
.lost-title {
  margin-top: 6px;
  font-family: var(--display); font-size: 46px; font-weight: 800; line-height: 1.05;
  text-wrap: balance;
}
.lost-text { margin: 14px auto 0; max-width: 52ch; color: var(--muted); font-size: 16px; line-height: 1.55; text-wrap: pretty; }

.lost-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

.lost-links {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14px;
}
.lost-links a {
  padding: 6px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 14px;
}
.lost-links a:hover { border-color: var(--accent); color: var(--accent); }
.lost-report { margin-top: 26px; color: var(--muted); font-size: 13px; }
.lost-report a { color: var(--accent); font-weight: 600; }
.lost-report a:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .gh-warships { font-size: clamp(56px, 10vw, 96px); }
}

/* =========================================================
   Ship page
   ========================================================= */
.img-fallback {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--display); font-weight: 800; color: var(--line); font-size: 28px;
}

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 18px 0 10px; font-size: 13px; color: var(--muted);
}
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); }

/* Ship banner */
.ship-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 16px;
  background:
    radial-gradient(500px 240px at 25% 60%, color-mix(in srgb, var(--rar) 22%, transparent), transparent 70%),
    repeating-linear-gradient(0deg, rgba(var(--accent-rgb), .04) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(var(--accent-rgb), .04) 0 1px, transparent 1px 36px),
    linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 60%, var(--hero-3) 100%);
}
.ship-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--rar); }
.sh-art { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 18px 10px 18px 24px; overflow: hidden; }
.sh-art img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(0,0,0,.55)); }
.sh-art .img-fallback { font-size: 72px; }
.sh-info { padding: 24px 28px 24px 8px; }
.sh-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.sh-chips li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 13px;
  background: rgba(var(--bg-rgb), .7); border: 1px solid var(--line); color: var(--text);
}
.sh-chips .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rar); }
.sh-name {
  margin-top: 10px; font-family: var(--display); font-size: 42px; font-weight: 800; line-height: 1.02;
  text-wrap: balance;
}
.sh-rated { margin-top: 8px; color: var(--muted); font-size: 14px; }
.sh-rated b { color: var(--text); }
.sh-rated.none { color: var(--accent-2); }
.sh-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.sh-actions .btn { height: 40px; padding: 0 16px; font-size: 14px; }

/* Creator ratings */
.takes { margin-top: 26px; }
.takes > .section-title { margin-bottom: 12px; }
.creator-bar {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding-bottom: 4px; margin-bottom: 14px;
}
.creator-bar::-webkit-scrollbar { display: none; }
.cbtn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 6px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  font-weight: 600; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.cbtn:hover { border-color: var(--hover-line); }
.cbtn[aria-selected="true"] { background: var(--panel-3); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cbtn .creator-avatar { width: 36px; height: 36px; font-size: 12px; }
.cbtn .badge { position: static; min-width: 26px; padding: 1px 6px 2px; font-size: 16px; box-shadow: none; }

.take {
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 20px 22px;
}
.take-head { display: flex; gap: 18px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.overall { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.overall span:last-child {
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}
.badge.big { position: static; min-width: 64px; padding: 6px 12px; font-size: 44px; border-radius: 12px; }
.take-who { font-size: 14px; color: var(--muted); }
.take-who strong { color: var(--text); }
.take-channel { margin-left: 6px; color: var(--accent); font-weight: 600; }
.verdict { margin-top: 4px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.take-date { margin-top: 4px; font-size: 12px; color: var(--muted); }

.take-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 18px 0 4px; }
.mini-title {
  font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.sub-title {
  font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; margin: 18px 0 10px;
}

.score { display: grid; grid-template-columns: 130px 1fr 18px; align-items: center; gap: 10px; padding: 5px 0; }
.score-name { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.score b { font-family: var(--display); font-size: 17px; text-align: right; }
.info {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--muted); color: var(--muted); font-size: 10px; font-weight: 700; font-style: italic;
  cursor: help;
}
.pips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pips i { height: 8px; border-radius: 3px; background: rgba(255,255,255,.08); }
.pips.p5 i.on { background: var(--r-5); }
.pips.p4 i.on { background: var(--r-4); }
.pips.p3 i.on { background: var(--r-3); }
.pips.p2 i.on { background: var(--r-2); }
.pips.p1 i.on { background: var(--r-1); }
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.role {
  padding: 3px 10px; border-radius: 999px; font-size: 12px;
  border: 1px dashed var(--line); color: #56697f;
}
.role.on { border-style: solid; border-color: var(--accent); color: var(--text); background: rgba(var(--accent-rgb), .12); }

.pros-cons { display: grid; gap: 16px; align-content: start; }
.pros ul, .cons ul { list-style: none; display: grid; gap: 6px; }
.pros li, .cons li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.35; }
.pros li::before, .cons li::before {
  position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.pros li::before { content: "✓"; background: rgba(47,213,122,.16); color: var(--r-4); }
.cons li::before { content: "✕"; background: rgba(229,72,77,.16); color: var(--r-1); }

/* Loadouts */
.lo-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.lo-tab {
  height: 38px; padding: 0 16px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  transition: all .12s;
}
.lo-tab:hover { color: var(--text); border-color: var(--hover-line); }
.lo-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lo-note { margin-bottom: 12px; font-size: 14px; color: var(--muted); font-style: italic; }
.lo-grid { display: grid; gap: 10px; }
.lo-group { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; }
.lo-label {
  font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--muted);
}
.lo-items { display: flex; flex-wrap: wrap; gap: 8px; }
.eq {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 5px 12px 5px 5px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  text-align: left; transition: border-color .12s, background .12s;
}
.eq:hover { border-color: var(--accent); background: var(--panel-2); }
.eq.is-locked { position: relative; padding-right: 30px; }
.eq-lock-ico { display: block; width: 100%; height: 100%; }
.eq .eq-lock {
  position: absolute; top: 6px; right: 7px; width: 16px; height: 16px; padding: 2px;
  border-radius: 5px; background: rgba(255,255,255,.12); color: #fff;
}
.eq-lock-note { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; vertical-align: middle; }
.eq-lock-note .eq-lock { display: inline-block; width: 16px; height: 16px; padding: 2px; border-radius: 5px; background: rgba(255,255,255,.12); color: #fff; }
.eqd-locked { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 13px; line-height: 1.4; color: #fff; }
.eqd-locked .eq-lock-ico { width: 14px; height: 14px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eq-img {
  flex: 0 0 72px; height: 50px; border-radius: 7px; overflow: hidden;
  display: grid; place-items: center; background: var(--well);
}
.eq-img img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 3px; }
.eq-img .img-fallback { font-size: 14px; color: var(--muted); }
.eq-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.eq-count { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--accent-2); }
.eq-hint { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* Videos */
.video-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.video, .video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--hero-3);
}
.video { display: block; padding: 0; text-align: left; color: var(--text); }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.75)); }
.play {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 1;
  width: 62px; height: 44px; border-radius: 12px; background: #e5484d;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
}
.play::after {
  content: ""; position: absolute; left: 26px; top: 13px;
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff;
}
.video:hover .play { background: #ff3b42; }
.video-title { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font-weight: 600; font-size: 14px; line-height: 1.25; }
.video.sample { display: grid; place-items: center; border-style: dashed; background: var(--panel); }
.video.sample .play { background: #3a4a5e; box-shadow: none; }
.video.sample::after { display: none; }
.video.sample .video-title { color: var(--muted); font-weight: 500; text-align: center; }

/* Unrated note */
.unrated {
  margin-top: 22px; padding: 22px 24px; border-radius: 14px;
  border: 1px dashed var(--line); background: var(--panel);
}
.unrated h2 { font-family: var(--display); font-size: 24px; font-weight: 700; }
.unrated p { margin-top: 6px; color: var(--muted); }

/* Full stats */
.full-stats { margin-top: 26px; }
.full-stats details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.full-stats summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px;
}
.full-stats summary::-webkit-details-marker { display: none; }
.full-stats summary .section-title { margin: 0; }
.fs-note { font-size: 13px; color: var(--muted); }
.fs-chev {
  margin-left: auto; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .15s;
}
.full-stats details[open] .fs-chev { transform: rotate(-135deg); }
.fs-body {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  padding: 4px 20px 22px; border-top: 1px solid var(--line); padding-top: 18px;
}
.fs-wide { grid-column: 1 / -1; }
.fs-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(var(--line-rgb), .6); font-size: 14px; }
.fs-list dt { color: var(--muted); }
.fs-list dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.fs-tip { margin-top: 6px; font-size: 12px; color: var(--muted); }
.cons-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.cons-list li { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.cons-img { flex: 0 0 40px; height: 40px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--well); }
.cons-img img { width: 100%; height: 100%; object-fit: contain; }
.cons-img .img-fallback { font-size: 14px; color: var(--muted); }
.cons-list b { display: block; font-size: 14px; }
.cons-list small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.fs-empty { padding: 20px 22px; border: 1px dashed var(--line); border-radius: 14px; background: var(--panel); }
.fs-empty .section-title { margin-bottom: 4px; }
.fs-empty p { color: var(--muted); }

/* Similar ships */
.similar { margin-top: 28px; }
.similar .section-title { margin-bottom: 10px; }
.sim-card { flex: 0 0 calc((100% - 4 * var(--gap)) / 5); scroll-snap-align: start; }
.card-meta { margin-top: 2px; font-size: 12px; color: var(--muted); }

/* Equipment pop-up */
.eq-dialog {
  width: min(440px, calc(100vw - 32px)); margin: auto;
  padding: 22px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
.eq-dialog::backdrop { background: rgba(3,8,14,.7); backdrop-filter: blur(3px); }
.eq-close {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 20px; line-height: 1;
}
.eq-close:hover { border-color: var(--accent); }
.eqd-top { display: flex; gap: 14px; align-items: center; padding-right: 30px; }
.eqd-img {
  flex: 0 0 112px; height: 80px; border-radius: 10px; overflow: hidden; position: relative;
  display: grid; place-items: center; background: var(--well); border: 1px solid var(--line);
}
.eqd-img img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 5px; }
.eqd-img .img-fallback { display: none; font-size: 22px; color: var(--muted); }
.eq-dialog.no-img .eqd-img img { display: none; }
.eq-dialog.no-img .eqd-img .img-fallback { display: grid; }
.eqd-kind { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.eqd-name { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.05; margin-top: 2px; }
.eqd-meta { margin-top: 4px; font-size: 12px; color: var(--muted); }
.eqd-stats { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eqd-stats > div { padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.eqd-stats dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.eqd-stats dd { margin-top: 2px; font-family: var(--display); font-size: 20px; font-weight: 700; }
.eqd-used { margin-top: 12px; font-size: 13px; line-height: 1.4; }
.eqd-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.eq-dialog { max-height: calc(100vh - 32px); overflow-y: auto; }
.eqd-arms { margin-top: 16px; }
.eqd-arms-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.eqd-arms-head h4 { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.eqd-arms-burst { font-size: 12px; font-weight: 700; color: var(--text); padding: 3px 9px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.eqd-arms ul { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.eqd-arms li { padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.eqd-arms .arm-top { display: flex; align-items: baseline; gap: 8px; }
.eqd-arms .arm-top b { font-size: 14px; }
.eqd-arms .arm-count { font-size: 12px; font-weight: 700; color: var(--muted); }
.eqd-arms .arm-sub { margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.4; }

@media (max-width: 1000px) {
  .fs-body { grid-template-columns: 1fr 1fr; }
  .sim-card { flex-basis: calc((100% - 3 * var(--gap)) / 4); }
}

/* Mid-size screens: a little tighter so 5 columns still breathe */
@media (min-width: 701px) and (max-width: 1000px) {
  :root { --gap: 10px; }
  .card-name { font-size: 13px; }
  .badge { font-size: 19px; }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 700px) {
  :root { --gap: 10px; }

  /* Header: logo + game picker, then links, then search (the part that sticks) */
  .site-header { gap: 0 12px; padding-bottom: 10px; }
  .logo-text { font-size: 20px; }
  .logo-mark { width: 30px; height: 30px; font-size: 15px; }
  .game-picker {
    flex: 1 1 0; min-width: 0; max-width: 170px;   /* shrink instead of wrapping */
    margin-left: auto; height: 36px; padding: 0 6px; font-size: 13px;
  }
  .header-nav {
    order: 3; width: 100%; margin: 8px 0 8px;   /* bottom gap = clean space above the pinned search */
    gap: 0; border-top: 1px solid var(--line);
  }
  .header-nav a { flex: 1; text-align: center; padding: 10px 0; font-size: 15px; }
  .hdr-login { display: none; }
  .header-nav .nav-login { display: block; flex: 1.25; white-space: nowrap; }
}
@media (max-width: 480px) {
  .header-nav .nav-login { flex: 1; }
  .header-nav .nav-login .nl-c { display: none; }      /* just "Login" on small phones */
  .header-nav a + a { border-left: 1px solid var(--line); }
  /* 16px stops iPhones zooming in when you tap the search box */
  .header-search input { height: 42px; font-size: 16px; }
  .search-results { max-height: 55vh; }
  .sr-row { min-height: 56px; }

  .layout { padding: 0 12px; }
  .ad-banner { height: 100px; margin: 14px 0; }     /* 320×100 */

  .section-title { font-size: 20px; }
  .carousel { gap: 6px; }
  .scroll-arrow { flex-basis: 24px; font-size: 22px; border-radius: 8px; }
  /* Title banner: ship sits behind the text, top-right */
  .game-hero { grid-template-columns: 1fr; min-height: 0; margin-top: 14px; border-radius: 14px; }
  .gh-text { padding: 20px 16px 44px 18px; }
  .gh-art { position: absolute; top: 6px; right: -36px; width: 72%; height: auto; padding: 0; opacity: .42; }
  .gh-art img { max-height: 120px; }
  .gh-modern { font-size: 20px; letter-spacing: .5em; }
  .gh-warships { font-size: clamp(48px, 15vw, 66px); }
  .gh-tag { font-size: 14px; }
  .gh-stats { gap: 6px; }
  .gh-stats li { padding: 5px 10px; font-size: 12px; }
  .gh-stats b { font-size: 16px; }
  .news { margin-bottom: 20px; }
  .news-feature { grid-template-columns: 1fr; min-height: 0; }
  .nf-art { order: -1; height: auto; padding: 14px 16px 0; }
  .nf-art img { max-height: 120px; }
  .nf-text { padding: 12px 16px 16px 18px; }
  .nf-title { font-size: 26px; }
  .nf-summary { font-size: 14px; }
  .news-row { gap: 10px; padding: 6px 10px 6px 6px; min-height: 62px; }
  .nr-thumb { flex-basis: 72px; height: 46px; }
  .nr-title { font-size: 14px; }

  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tab { flex: 1; padding: 10px 8px; font-size: 17px; }

  /* Four filter buttons in one tidy row; panels open full width */
  .filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .dd { position: static; }
  .dd-btn { width: 100%; justify-content: center; padding: 0 6px; gap: 5px; font-size: 13px; }
  .dd-chev { display: none; }
  .dd-panel, .dd-panel.cols { left: 0; right: 0; min-width: 0; }
  .dd-options { max-height: 50vh; }
  .dd-opt { min-height: 44px; }

  .sort { height: 36px; }

  .ship-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* mobile: 2 across × 2 rows */
  .card-img-wrap { padding: 12px 8px 4px; }
  .card-body { padding: 6px 10px 10px; }
  .card-name { font-size: 13px; }
  .badge { font-size: 18px; top: 8px; right: 8px; padding: 1px 6px 2px; min-width: 28px; }
  .badge.none { font-size: 12px; }

  .creators { margin-top: 22px; }
  .creator-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .creator { padding: 6px 12px 6px 6px; gap: 10px; min-width: 0; }
  .creator-avatar { width: 40px; height: 40px; font-size: 14px; }
  .creator-name { font-size: 14px; }

  .lost { padding: 36px 16px 8px; }
  .sonar { width: 180px; height: 180px; margin-bottom: 22px; }
  .sonar-code { font-size: 58px; }
  .lost-title { font-size: 34px; }
  .lost-text { font-size: 15px; }
  .lost-actions { flex-direction: column; align-items: stretch; }
  .btn { height: 48px; }
  .lost-links span { width: 100%; }

  /* Ship page */
  .crumbs { margin: 12px 0 8px; font-size: 12px; }
  .ship-hero { grid-template-columns: 1fr; gap: 0; border-radius: 14px; }
  .sh-art { padding: 16px 16px 0; }
  .sh-info { padding: 8px 16px 18px; }
  .sh-name { font-size: 32px; }
  .sh-actions .btn { flex: 1; }
  .take { padding: 16px 14px; border-radius: 12px; }
  .take-head { gap: 14px; align-items: flex-start; }
  .badge.big { min-width: 54px; font-size: 36px; padding: 4px 10px; }
  .verdict { font-size: 16px; }
  .take-body { grid-template-columns: 1fr; gap: 18px; }
  .score { grid-template-columns: 112px 1fr 16px; }
  .lo-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .lo-tab { padding: 0 8px; font-size: 15px; }
  .lo-group { grid-template-columns: 1fr; gap: 6px; }
  .eq { flex: 1 1 100%; }
  .video-row { grid-template-columns: 1fr; }
  .fs-body { grid-template-columns: 1fr; padding: 14px 14px 18px; }
  .full-stats summary { padding: 14px; }
  .sim-card { flex-basis: calc((100% - var(--gap)) / 2); }
  .eq-dialog { padding: 18px; }
  .eqd-stats dd { font-size: 18px; }

  .site-footer { margin-top: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 28px 12px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col a { padding: 4px 0; font-size: 15px; }   /* bigger tap targets */
  .footer-bottom { padding: 16px 12px 24px; }
}

@media (max-width: 360px) {
  .logo-text { display: none; }
  .dd-btn { font-size: 12px; }
}

/* ---------- Firepower tiles (full stats + each loadout) ---------- */
.fp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.fp-build { margin-bottom: 14px; }
.fp-tile {
  position: relative; padding: 10px 12px 10px 15px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line); overflow: hidden;
}
.fp-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--fp, var(--accent)); }
.fp-surface { --fp: var(--accent); }
.fp-underwater { --fp: #2fc6c0; }
.fp-aa { --fp: var(--r-4); }
.fp-slbm { --fp: var(--rar-P); }
.fp-air { --fp: #e8c547; }
.fp-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.fp-val { display: block; margin-top: 2px; font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .fp-row { grid-template-columns: 1fr 1fr; }
  .fp-val { font-size: 20px; }
}

/* =========================================================
   News pages (news/*.html)
   ========================================================= */
.nf-art img.is-photo { height: 100%; max-height: 190px; object-fit: cover; border-radius: 10px; filter: none; }
.nr-thumb img.is-photo { object-fit: cover; padding: 0; }

.article { margin-bottom: 8px; }
.art-head {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  border: 1px solid var(--line); border-radius: 16px;
  background:
    radial-gradient(520px 240px at 25% 60%, color-mix(in srgb, var(--tag, var(--accent)) 20%, transparent), transparent 70%),
    linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 60%, var(--hero-3) 100%);
}
.art-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tag, var(--accent)); z-index: 1; }
.art-cover { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 18px 10px 18px 24px; overflow: hidden; }
.art-cover img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(0,0,0,.55)); }
.art-cover.is-photo { padding: 0; }
.art-cover.is-photo img { object-fit: cover; filter: none; }
.art-cover .img-fallback { font-size: 72px; }
.art-headtext { padding: 24px 28px 24px 12px; }
.art-meta { display: flex; align-items: center; gap: 8px; }
.art-title {
  margin-top: 10px; font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1.04;
  text-wrap: balance;
}
.art-summary { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 60ch; }
.art-byline { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.art-byline .creator-avatar { width: 36px; height: 36px; font-size: 12px; flex-shrink: 0; }
.art-byline b, .art-byline a { color: var(--text); font-weight: 600; }
.art-byline a:hover { color: var(--accent); text-decoration: underline; }

.art-body { max-width: 760px; margin: 26px auto 0; font-size: 17px; line-height: 1.7; color: #d7e1ec; }
.art-body > * + * { margin-top: 16px; }
.art-body h2 { margin-top: 30px; font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1.15; color: var(--text); }
.art-body h3 { margin-top: 24px; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.2; color: var(--text); }
.art-body strong { color: var(--text); }
.art-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.art-body ul, .art-body ol { padding-left: 1.4em; }
.art-body li + li { margin-top: 6px; }
.art-body blockquote {
  padding: 12px 18px; border-left: 4px solid var(--tag, var(--accent)); border-radius: 0 10px 10px 0;
  background: var(--panel); color: var(--text); font-style: italic;
}
.art-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.art-figure img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.art-figure figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); text-align: center; }
.art-ships { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.art-ships .card { text-decoration: none; color: var(--text); line-height: 1.3; }
.art-ships .card-name { min-height: 0; }
.art-ship-meta { margin-top: 3px; font-size: 12px; color: var(--muted); }
.art-video { max-width: 640px; }
.art-video .video, .art-video .video-frame { width: 100%; }

.art-more { margin-top: 34px; }
.art-more .section-title { margin-bottom: 12px; }

/* News lists (All news, More news) */
.news-hero { margin: 4px 0 18px; }
.news-hero .art-title { margin-top: 8px; }
.news-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.news-pinned { margin-bottom: 18px; grid-template-columns: minmax(0, 640px); }
.news-card.is-pinned .nc-cover { padding: 8px 14px; }
.news-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .15s, transform .15s;
}
.news-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tag, var(--accent)); z-index: 1; }
.news-card:hover { border-color: var(--tag, var(--accent)); }
@media (hover: hover) { .news-card:hover { transform: translateY(-2px); } }
.news-card.is-pinned { flex-direction: row; align-items: center; }
.news-card.is-pinned .nc-cover { flex: 0 0 38%; }
.nc-cover {
  aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; padding: 12px;
  background: radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--tag, var(--accent)) 18%, transparent), var(--panel-2) 75%);
}
.nc-cover img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.nc-cover.is-photo { padding: 0; }
.nc-cover.is-photo img { object-fit: cover; }
.nc-cover .img-fallback { font-size: 36px; }
.nc-text { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.nc-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.nc-meta .news-tag { font-size: 11px; padding: 2px 7px; }
.nc-title { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.12; }
.nc-summary { font-size: 14px; color: var(--muted); line-height: 1.4; }
.news-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.news-filters button {
  height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.news-filters button:hover { border-color: var(--tag, var(--accent)); }
.news-filters button[aria-pressed="true"] { background: var(--tag, var(--accent)); border-color: var(--tag, var(--accent)); color: #06121c; }

/* Best ships right now */
.best-list { list-style: none; display: grid; gap: 8px; }
.best-row {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 44px 120px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 8px 16px 8px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  transition: border-color .15s, background .15s;
}
.best-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--rar); }
.best-row:hover { border-color: var(--accent); background: var(--panel-2); }
.best-rank { font-family: var(--display); font-size: 28px; font-weight: 800; text-align: center; color: var(--muted); }
.best-list li:nth-child(-n+3) .best-rank { color: var(--accent-2); }
.best-img { height: 64px; display: grid; place-items: center; }
.best-img img { width: 100%; height: 100%; object-fit: contain; }
.best-img .img-fallback { font-size: 22px; }
.best-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.best-name { font-weight: 600; font-size: 16px; }
.best-meta { font-size: 13px; color: var(--muted); }
.best-score { text-align: right; font-size: 13px; color: var(--muted); line-height: 1.3; }
.best-score b { font-family: var(--display); font-size: 26px; color: var(--text); }
.best-score small { display: block; font-size: 12px; }

@media (max-width: 800px) {
  .art-head { grid-template-columns: 1fr; }
  .art-cover { padding: 14px 14px 0; }
  .art-cover.is-photo { padding: 0; }
  .art-headtext { padding: 16px 18px 20px; }
  .art-title { font-size: 31px; }
  .art-body { font-size: 16px; margin-top: 20px; }
  .art-body h2 { font-size: 24px; }
  .news-card.is-pinned { flex-direction: column; align-items: stretch; }
  .news-card.is-pinned .nc-cover { flex: none; }
  .best-row { grid-template-columns: 30px 72px minmax(0, 1fr); gap: 10px; padding: 8px 12px 8px 8px; }
  .best-rank { font-size: 22px; }
  .best-img { height: 44px; }
  .best-score { grid-column: 3; text-align: left; }
  .best-score small { display: inline; margin-left: 4px; }
}

/* =========================================================
   Site pages: About, Help, Contact, legal, Creators
   ========================================================= */
.page-hero { margin: 4px 0 20px; }
.page-eyebrow { font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.page-title { font-family: var(--display); font-size: 42px; font-weight: 800; line-height: 1.05; text-wrap: balance; }
.page-lead { margin-top: 8px; color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 62ch; }
.prose { max-width: 760px; font-size: 16px; line-height: 1.7; color: #d7e1ec; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 28px; font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--text); }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose a:not(.btn), .contact-plain a, .legal-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose b { color: var(--text); }
.legal { font-size: 15px; }
.legal h2 { font-size: 22px; }
.legal-note { margin-top: 30px !important; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 8px 10px; border: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--panel); color: var(--text); }
.mail-text a { color: var(--accent); }

.faq-list .faq { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.faq-list .faq + .faq { margin-top: 8px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; position: relative; font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 16px 14px; color: #c9d5e2; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.contact-card {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
}
.contact-card h2 { font-family: var(--display); font-size: 24px; font-weight: 800; }
.contact-card p { color: var(--muted); line-height: 1.5; flex: 1; }
.contact-card.is-picked { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2); }
.contact-plain { margin-top: 18px; color: var(--muted); font-size: 14px; }

.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.creator-card {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s;
}
.creator-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 14px 0 0 14px; background: var(--c); }
.creator-card:hover { border-color: var(--c); }
.cc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-name { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.cc-team { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--accent); color: var(--accent); }
.cc-meta { font-size: 13px; color: var(--muted); }
.creator-avatar.big { width: 56px; height: 56px; font-size: 18px; }
.creator-avatar.huge { width: 96px; height: 96px; font-size: 30px; }
.creator-hero {
  display: flex; align-items: center; gap: 22px; margin: 4px 0 24px; padding: 22px;
  border-radius: 16px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background: radial-gradient(520px 220px at 10% 50%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), var(--panel);
}
.creator-hero .btn { margin-top: 12px; }
.creator-section { margin-top: 26px; }
.creator-section .section-title { margin-bottom: 12px; }
.creator-ratings .best-row { grid-template-columns: 120px minmax(0, 1fr) auto; }
.cc-tag { font-size: 14px; color: #c9d5e2; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.creator-hero .page-lead { color: #dbe6f2; }
.cp-count { color: var(--muted); font-size: 15px; }
/* Creator About section */
.creator-profile {
  padding: 20px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--c, var(--accent));
}
.creator-profile .section-title { margin-bottom: 10px; }
.cp-about { max-width: 72ch; }
.cp-about p { font-size: 16px; line-height: 1.6; color: #dbe6f2; }
.cp-about p + p { margin-top: 10px; }
.cp-about a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cp-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; }
.cp-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); }
.cp-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 16px; }
.cp-facts a { color: var(--text); border-bottom: 1px solid var(--c, var(--accent)); }
.cp-facts a:hover { color: var(--accent); }
.cp-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cp-link {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px;
  transition: border-color .15s, background .15s;
}
.cp-link:hover { border-color: var(--c, var(--accent)); background: var(--panel-3); }
.cp-link svg { width: 18px; height: 18px; fill: none; stroke: var(--c, var(--accent)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.cp-link svg [fill="currentColor"] { fill: var(--c, var(--accent)); stroke: none; }
.cr-verdict { margin-top: 2px; font-size: 14px; color: #c9d5e2; line-height: 1.4; }

/* =========================================================
   Tier List Maker
   ========================================================= */
.tl-hero .page-title { display: flex; }
.tl-title { outline: none; border-bottom: 2px dashed transparent; cursor: text; }
.tl-title:hover, .tl-title:focus { border-bottom-color: var(--line); }
.tl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.tl-toolbar .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.tl-reset { margin-left: auto; }
.tl-msg { flex-basis: 100%; min-height: 1.3em; font-size: 14px; color: var(--accent-2); }
.tl-board { display: flex; flex-direction: column; gap: 6px; }
.tl-row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; min-height: 96px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel);
}
.tl-label { display: grid; place-items: center; padding: 8px; background: var(--row); }
.tl-labeltext {
  font-family: var(--display); font-size: 32px; font-weight: 800; color: #06121c; text-align: center; line-height: 1;
  word-break: break-word; outline: none; min-width: 1ch; padding: 2px 4px; border-radius: 6px;
}
.tl-labeltext:focus { background: rgba(255,255,255,.35); }
.tl-drop { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; padding: 6px; min-height: 96px; transition: background .12s; }
.tl-drop.drop-over, #tlPool.drop-over { background: color-mix(in srgb, var(--accent) 12%, transparent); }
body.tl-picking .tl-drop { cursor: pointer; background: color-mix(in srgb, var(--row) 7%, transparent); }
body.tl-picking .tl-drop:hover { background: color-mix(in srgb, var(--row) 16%, transparent); }
.tl-hint { align-self: center; margin: auto; font-size: 13px; color: var(--muted); }
.tl-rowtools { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; border-left: 1px solid var(--line); }
.tl-rowtools input[type=color] { width: 30px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.tl-tool { width: 30px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; font-size: 14px; line-height: 1; }
.tl-tool:hover:not(:disabled) { border-color: var(--accent); }
.tl-tool:disabled { opacity: .35; cursor: default; }
.tl-ship {
  position: relative; width: 108px; padding: 6px 4px 4px; border-radius: 8px; cursor: grab; touch-action: manipulation;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); overflow: hidden;
}
.tl-ship::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--rar); }
.tl-ship:hover { border-color: var(--accent); }
.tl-ship img { width: 100%; height: 50px; object-fit: contain; pointer-events: none; }
.tl-fallback { height: 50px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--line); }
.tl-name { width: 100%; font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-ship.picked { border-color: var(--accent-2); box-shadow: 0 0 0 2px var(--accent-2); }
.tl-ship.dragging { opacity: .35; }
.tl-pool-wrap { margin-top: 22px; }
.tl-poolhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tl-poolhead .section-title { margin: 0; }
.tl-poolhead small { font-family: var(--body); font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.tl-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-search, .tl-select {
  height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 14px;
}
.tl-search { width: 180px; }
.tl-select.on { border-color: var(--accent); }
.tl-pool {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; min-height: 120px; max-height: 520px; overflow-y: auto;
  border-radius: 12px; border: 1px dashed var(--line); background: var(--panel);
}
.tl-pool.is-target { border-color: var(--accent-2); cursor: pointer; }

/* =========================================================
   Compare
   ========================================================= */
/* Compare: up to 20 columns. The table scrolls sideways; the row names stay pinned on the left. */
.cmp-pickers { display: block; }
.cmp-add { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--panel);
  border: 1px dashed var(--line); }
.cmp-add:focus-within { border-color: var(--accent); border-style: solid; }
.cmp-plus { font-size: 26px; color: var(--muted); line-height: 1; }
.cmp-input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 15px; }
.cmp-input:focus { outline: none; border-color: var(--accent); }
.cmp-input:disabled { opacity: .6; }
.cmp-count { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 16px; }
.cmp-actions .btn { height: 38px; padding: 0 14px; font-size: 14px; }
.cmp-actions .tl-msg { flex-basis: auto; }
.cmp-wrap { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow-x: auto; overscroll-behavior-x: contain; }
.cmp-wrap[hidden] { display: none; }
.cmp-table { --lab: 180px; --col: minmax(150px, 1fr); min-width: 100%; width: max-content; }
.cmp-row { display: grid; grid-template-columns: var(--lab) repeat(var(--n, 1), var(--col)); border-top: 1px solid var(--line); min-width: 100%; }
.cmp-label { position: sticky; left: 0; z-index: 2; padding: 9px 14px; font-size: 13px; color: var(--muted); background: var(--panel);
  border-right: 1px solid var(--line); }
.cmp-cell { padding: 9px 10px; font-size: 15px; font-weight: 600; text-align: center; border-left: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.cmp-label + .cmp-cell { border-left: 0; }
.cmp-cell.win { color: #2fd57a; background: rgba(47,213,122,.08); }
.cmp-cell.win::after { content: " ▲"; font-size: 10px; vertical-align: 2px; }
.cmp-cell.na { background: rgba(0,0,0,.14); }
.cmp-section { background: var(--panel-2); border-top: 1px solid var(--line); }
.cmp-sechead { position: sticky; left: 0; display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 14px 8px; max-width: 100vw; }
.cmp-sectitle { font-family: var(--display); font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; white-space: nowrap; }
.cmp-note { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cmp-headrow { border-top: 0; }
.cmp-corner { display: flex; align-items: flex-end; font-weight: 600; }
.cmp-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 8px 8px; }
.cmp-item::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--rar, var(--line)); }
.cmp-pic { width: 100%; height: 70px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; overflow: hidden; }
.cmp-pic img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.cmp-pic .img-fallback { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--panel-2); font-size: 22px; }
.cmp-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
a.cmp-name:hover { color: var(--accent); }
.cmp-meta { font-size: 12px; color: var(--muted); font-weight: 500; }
.cmp-x {
  position: absolute; top: 8px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; font-size: 16px; line-height: 1;
}
.cmp-x:hover { border-color: #e5484d; color: #ff8a8d; }
.cmp-move { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 4px; }
.cmp-mv { width: 26px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; line-height: 1; }
.cmp-mv:hover:not(:disabled) { color: var(--text); border-color: var(--accent); }
.cmp-mv:disabled { opacity: .3; cursor: default; }
.cmp-rating b { font-family: var(--display); font-size: 24px; }
.cmp-rating small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.cmp-by, .cmp-eq { list-style: none; font-size: 13px; font-weight: 500; text-align: left; display: inline-flex; flex-direction: column; gap: 3px; }
.cmp-by li { display: flex; justify-content: space-between; gap: 12px; }
.cmp-eqrow .cmp-cell { text-align: left; }
.cmp-small { font-size: 12px; font-weight: 500; color: var(--muted); }
.cmp-addarm { margin-left: 2px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--accent);
  font-size: 11px; cursor: pointer; white-space: nowrap; }
.cmp-addarm:hover { border-color: var(--accent); }
/* Loadout builder */
.cmp-build { margin-top: 2px; max-width: 100%; padding: 2px 8px; border-radius: 999px; border: 1px dashed var(--line); background: transparent;
  color: var(--accent); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-build:hover { border-style: solid; border-color: var(--accent); }
.cmp-rename { width: 100%; margin-top: 2px; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--accent); background: var(--bg);
  color: var(--text); font: inherit; font-size: 12px; text-align: center; }
.cmp-lo { list-style: none; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.cmp-slot { display: flex; align-items: center; gap: 6px; width: 100%; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-align: left; line-height: 1.25; }
button.cmp-slot { cursor: pointer; }
button.cmp-slot:hover { border-color: var(--accent); }
.cmp-slot.changed { border-color: rgba(var(--accent-rgb), .55); }
.cmp-slot.locked { opacity: .85; border-style: dashed; }
.cmp-slot-count { color: var(--muted); font-size: 12px; flex: none; }
.cmp-slot-name { flex: 1; min-width: 0; }
.cmp-slot-ico { flex: none; font-size: 11px; color: var(--muted); }
.cmp-slot.changed .cmp-slot-ico { color: var(--accent); font-size: 16px; line-height: 1; }
.cmp-swap { max-width: 560px; max-height: min(80vh, 720px); display: flex; flex-direction: column; gap: 10px; }
.cmp-swap:not([open]) { display: none; }
.cmp-swap-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cmp-swap-x { position: static; flex: none; }
.cmp-swap-sub { font-size: 13px; color: var(--muted); }
.cmp-swap .cmp-input { flex: none; height: 40px; }
.cmp-swap-list { list-style: none; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin: 0 -4px; padding: 0 4px; min-height: 120px; }
.cmp-swap-opt { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.cmp-swap-opt:hover { border-color: var(--accent); }
.cmp-swap-opt.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.cmp-swap-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.cmp-swap-stats { font-size: 12px; color: var(--muted); }
.cmp-swap-none { color: var(--muted); font-size: 14px; padding: 10px; }
.cmp-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 1px 6px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); }
.lo-cmp { display: inline-flex; margin-top: 10px; }
/* "Different kinds" question */
.cmp-mix { position: fixed; inset: 0; margin: auto; height: fit-content; max-width: 420px; width: calc(100% - 32px); padding: 22px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cmp-mix::backdrop { background: rgba(3,8,14,.7); backdrop-filter: blur(3px); }
.cmp-mix-title { font-family: var(--display); font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.cmp-mix-text { color: var(--muted); line-height: 1.5; margin-bottom: 18px; }
.cmp-mix-btns { display: flex; justify-content: flex-end; gap: 10px; }
/* Compare buttons in equipment pop-ups */
.eqd-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.eqd-btns .eqd-page { margin-top: 0; }
.eqd-btns > [hidden] { display: none; }
.arm-cmp { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.arm-cmp:hover { text-decoration: underline; }

/* =========================================================
   Homepage Weapons tab
   ========================================================= */
.wp-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wp-cat {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 14px var(--body);
}
.wp-cat small { color: var(--muted); font-size: 12px; }
.wp-cat.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.wp-cat.on small { color: var(--on-accent); }
.wp-cats.searching .wp-cat.on { background: var(--panel); border-color: var(--accent); color: var(--text); }
.wp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.wp-bar .sort { margin-left: 0; }
.wp-bar .sort.on { border-color: var(--accent); }
.wp-search { flex: 1 1 200px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 14px; }
.wp-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.wp-tile {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; text-align: left; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); overflow: hidden;
}
.wp-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--rar, var(--line)); }
.wp-tile:hover { border-color: var(--accent); background: var(--panel-2); }
.wp-img { flex: 0 0 64px; height: 48px; display: grid; place-items: center; }
.wp-img img { width: 100%; height: 100%; object-fit: contain; }
.wp-img .card-img-fallback { font-size: 20px; }
.wp-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wp-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.wp-meta { font-size: 12px; color: var(--muted); }
.wp-more { display: block; margin: 14px auto 0; height: 40px; padding: 0 18px; }

@media (max-width: 800px) {
  .page-title { font-size: 32px; }
  .creator-hero { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .creator-avatar.huge { width: 72px; height: 72px; font-size: 24px; }
  .creator-ratings .best-row { grid-template-columns: 72px minmax(0, 1fr); }
  .creator-ratings .best-score { grid-column: 2; }
  .tl-row { grid-template-columns: 64px minmax(0, 1fr) 40px; min-height: 76px; }
  .tl-labeltext { font-size: 22px; }
  .tl-drop { min-height: 76px; padding: 4px; gap: 4px; }
  .tl-ship { width: 74px; padding: 4px 2px 3px; }
  .tl-ship img, .tl-fallback { height: 36px; }
  .tl-name { font-size: 10px; }
  .tl-rowtools { padding: 4px; }
  .tl-tool { width: 28px; }
  .tl-reset { margin-left: 0; }
  .tl-search { width: 100%; }
  .tl-select { flex: 1 1 45%; }
  .tl-pool { max-height: 380px; }
  .cmp-table { --lab: 104px; --col: minmax(118px, 1fr); }
  .cmp-label { padding: 8px 8px; font-size: 12px; }
  .cmp-cell { font-size: 14px; padding: 8px 6px; }
  .cmp-pic { height: 50px; }
  .cmp-name { font-size: 13px; }
  .cmp-count { display: none; }
  .wp-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .wp-img { flex-basis: 48px; height: 38px; }
  .wp-tile { gap: 6px; padding: 6px 8px 6px 6px; }
  .wp-name { font-size: 13px; }
}

/* =========================================================
   Main page (all games)
   ========================================================= */
.hub-page .content { display: flex; flex-direction: column; gap: 30px; }
.hub-hero {
  position: relative; overflow: hidden; padding: 38px 34px; border-radius: 22px;
  background:
    radial-gradient(700px 260px at 85% 0%, rgba(var(--accent-rgb), .22), transparent 70%),
    radial-gradient(500px 240px at 0% 100%, rgba(47,213,122,.10), transparent 70%),
    linear-gradient(160deg, var(--hero-1), var(--hero-3));
  border: 1px solid var(--line);
}
.hub-title {
  margin-top: 12px; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 5vw, 60px); line-height: .98; letter-spacing: .5px; max-width: 16ch;
}
.hub-title span { color: var(--accent); }
.hub-lead { margin-top: 14px; max-width: 54ch; font-size: 18px; color: #c9d5e2; line-height: 1.5; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; list-style: none; padding: 0; }
.hub-stats li {
  padding: 8px 14px; border-radius: 999px; background: rgba(var(--bg-rgb), .55); border: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.hub-stats b { color: var(--text); font-family: var(--display); font-size: 18px; margin-right: 3px; }

.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.game-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: var(--text);
}
.game-card.is-live {
  grid-column: 1 / -1; flex-direction: row; align-items: stretch; min-height: 240px;
  background: linear-gradient(120deg, var(--glow), var(--hero-2) 60%);
  transition: border-color .15s, transform .15s;
}
.game-card.is-live:hover { border-color: var(--accent); transform: translateY(-2px); }
.gc-art { position: relative; display: grid; place-items: center; flex: none; }
.game-card.is-live .gc-art { width: 46%; order: 2; padding: 10px 18px; }
.game-card.is-live .gc-img { width: 100%; max-height: 230px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0,0,0,.55)); }
.game-card.is-live .img-fallback { font-size: 54px; }
.gc-text { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; min-width: 0; }
.game-card.is-live .gc-text { justify-content: center; padding: 28px 30px; }
.gc-status {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
}
.is-live .gc-status { background: rgba(47,213,122,.14); color: #2fd57a; border-color: rgba(47,213,122,.4); }
.gc-name { font-family: var(--display); font-size: 26px; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.is-live .gc-name { font-size: clamp(32px, 4vw, 46px); }
.gc-blurb { color: #c9d5e2; font-size: 15px; line-height: 1.45; }
.gc-meta { color: var(--muted); font-size: 14px; }
.gc-go { align-self: flex-start; margin-top: 10px; pointer-events: none; }
.game-card.is-soon .gc-icon {
  height: 120px; background: repeating-linear-gradient(135deg, var(--panel-2) 0 12px, var(--panel) 12px 24px);
  border-bottom: 1px solid var(--line);
}
.gc-icon svg { width: 140px; height: 70px; fill: none; stroke: var(--hover-line); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.game-card.is-soon .gc-name { color: #dbe6f2; }

.art-game {
  margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--muted);
  border-bottom: 1px dotted currentColor;
}
.art-game:hover { color: var(--accent); }

/* Header on site-wide pages (no ship search) */
.site-header.no-search .header-nav { margin-left: auto; }

@media (max-width: 900px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .hub-hero { padding: 26px 20px; border-radius: 16px; }
  .hub-lead { font-size: 16px; }
  .game-card.is-live { flex-direction: column; }
  .game-card.is-live .gc-art { width: 100%; order: 0; height: 170px; padding: 12px; }
  .game-card.is-live .gc-img { max-height: 160px; }
  .game-card.is-live .gc-text { padding: 18px 20px 22px; }
  .site-header.no-search .header-nav { margin: 8px 0 0; }
}
@media (max-width: 560px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-card.is-soon { flex-direction: row; align-items: center; }
  .game-card.is-soon .gc-icon { width: 96px; height: 100%; min-height: 110px; border-bottom: 0; border-right: 1px solid var(--line); }
  .game-card.is-soon .gc-icon svg { width: 72px; height: 40px; }
  .game-card.is-soon .gc-text { padding: 14px 16px; }
  .game-card.is-soon .gc-name { font-size: 21px; }
}
.site-header.no-search .game-picker { flex: none; width: auto; }

/* =========================================================
   Equipment pages (modern-warships/equipment/<id>.html)
   ========================================================= */
.eq-page .content { display: flex; flex-direction: column; gap: 24px; }
.eq-hero .sh-art { padding: 26px 30px; }
.eq-hero .sh-art img { max-height: 220px; }
.fs-static { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.fs-static > .section-title { margin: 0; padding: 16px 20px; }
.fs-static .fs-body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.fs-static .fs-list { columns: 2; column-gap: 32px; }
.fs-static .fs-list > div { break-inside: avoid; }
.arm-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.arm-head .mini-title { margin: 0; }
.arm-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.arm-item { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.arm-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px;
}
.arm-item summary::-webkit-details-marker { display: none; }
.arm-item summary:hover { background: var(--panel-3); border-radius: 10px; }
.arm-name { font-weight: 700; }
.arm-item .arm-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.arm-item .arm-sub { font-size: 13px; color: var(--muted); }
.arm-item[open] .fs-chev { transform: rotate(-135deg); }
.arm-item .fs-list { padding: 0 14px 10px; columns: 2; column-gap: 28px; }
.eq-on .mini-title { margin: 14px 0 8px; }
.eq-ships { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.eq-ship {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); overflow: hidden;
}
.eq-ship::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--rar, var(--line)); }
.eq-ship:hover { border-color: var(--accent); background: var(--panel-2); }
.eq-ship-img { flex: 0 0 82px; height: 46px; display: grid; place-items: center; }
.eq-ship-img img { width: 100%; height: 100%; object-fit: contain; }
.eq-ship-img .img-fallback { font-size: 16px; }
.eq-ship-text { display: flex; flex-direction: column; min-width: 0; }
.eq-ship-text b { font-size: 14px; line-height: 1.2; }
.eq-ship-text small { font-size: 12px; color: var(--muted); }
.eq-ship .eq-lock { margin-left: auto; }
.eq-similar .wp-grid { margin-top: 4px; }
.eqd-page { display: flex; justify-content: center; margin-top: 14px; }
.eqd-page[hidden] { display: none; }
.take-body.no-scores { grid-template-columns: 1fr; }
@media (max-width: 800px) {
  .eq-hero .sh-art { padding: 18px 18px 0; }
  .eq-hero .sh-art img { max-height: 150px; }
  .fs-static .fs-list, .arm-item .fs-list { columns: 1; }
  .eq-ships { grid-template-columns: 1fr; }
}

/* =========================================================
   Themes. Every page sets <body data-theme="…">:
     spectrum  main page + shared pages (news list, creators, about…)
     blue      warships  (Modern Warships, World of Warships: Legends)
     orange    tanks
     green     planes / simulators
     red       FPS shooters
   Only these colours change. Rating and rarity colours never do.
   ========================================================= */
body[data-theme="spectrum"] {
  --bg-rgb: 11, 13, 18; --line-rgb: 38, 45, 59;
  --bg: #0b0d12; --panel: #141821; --panel-2: #1b2130; --panel-3: #232a3b; --line: #262d3b; --muted: #8f98a8;
  --accent: #eef1f6; --accent-rgb: 238, 241, 246; --accent-hover: #ffffff; --on-accent: #0b0d12; --accent-2: #ffb547;
  --hero-1: #171b25; --hero-2: #10131a; --hero-3: #0b0d12; --glow: #1a2030; --hover-line: #3a4356; --well: #10131a;
}
body[data-theme="orange"] {
  --bg-rgb: 16, 12, 8; --line-rgb: 58, 46, 32;
  --bg: #100c08; --panel: #1d1710; --panel-2: #261e15; --panel-3: #30261a; --line: #3a2e20; --muted: #a89580;
  --accent: #ff8a1f; --accent-rgb: 255, 138, 31; --accent-hover: #ffa552; --on-accent: #1a0d02; --accent-2: #ffd166;
  --hero-1: #2a1d10; --hero-2: #1a130b; --hero-3: #110c07; --glow: #33220f; --hover-line: #5a4630; --well: #18120b;
}
body[data-theme="green"] {
  --bg-rgb: 8, 16, 14; --line-rgb: 34, 54, 47;
  --bg: #08100e; --panel: #111c19; --panel-2: #172623; --panel-3: #1e302c; --line: #22362f; --muted: #86a39a;
  --accent: #2ad1a0; --accent-rgb: 42, 209, 160; --accent-hover: #5fe0bb; --on-accent: #03140f; --accent-2: #ffb547;
  --hero-1: #10261f; --hero-2: #0b1814; --hero-3: #07100d; --glow: #123026; --hover-line: #335a4d; --well: #0c1714;
}
body[data-theme="red"] {
  --bg-rgb: 17, 10, 12; --line-rgb: 59, 37, 43;
  --bg: #110a0c; --panel: #1e1316; --panel-2: #281a1e; --panel-3: #332127; --line: #3b252b; --muted: #a88c92;
  --accent: #ff4d5e; --accent-rgb: 255, 77, 94; --accent-hover: #ff7480; --on-accent: #1a0407; --accent-2: #ffb547;
  --hero-1: #2a1218; --hero-2: #1a0c10; --hero-3: #110709; --glow: #33131b; --hover-line: #5a343c; --well: #180d10;
}

/* Spectrum extras: a thin four-colour line on top, "Ratings" and section bars in all four colours */
body[data-theme="spectrum"] .site-header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, #4fb3ff 0 25%, #ff8a1f 25% 50%, #2ad1a0 50% 75%, #ff4d5e 75%);
}
body[data-theme="spectrum"] .logo-text b,
body[data-theme="spectrum"] .hub-title span {
  background: linear-gradient(90deg, #4fb3ff, #2ad1a0, #ff8a1f, #ff4d5e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body[data-theme="spectrum"] .section-title::before { background: linear-gradient(#4fb3ff, #2ad1a0, #ff8a1f, #ff4d5e); }
body[data-theme="spectrum"] .hub-hero {
  background:
    radial-gradient(600px 240px at 92% 0%, rgba(79,179,255,.16), transparent 70%),
    radial-gradient(520px 220px at 62% 115%, rgba(255,138,31,.12), transparent 70%),
    radial-gradient(420px 200px at 0% 100%, rgba(42,209,160,.10), transparent 70%),
    radial-gradient(380px 180px at 30% -20%, rgba(255,77,94,.08), transparent 70%),
    linear-gradient(160deg, #171b25, #0d1016);
}

/* Game cards on the main page: each in its own game's colour */
.game-card { --gc: var(--accent); --gc-rgb: var(--accent-rgb); }
.game-card[data-theme="blue"]   { --gc: #4fb3ff; --gc-rgb: 79, 179, 255; }
.game-card[data-theme="orange"] { --gc: #ff8a1f; --gc-rgb: 255, 138, 31; }
.game-card[data-theme="green"]  { --gc: #2ad1a0; --gc-rgb: 42, 209, 160; }
.game-card[data-theme="red"]    { --gc: #ff4d5e; --gc-rgb: 255, 77, 94; }
.game-card { border-top: 3px solid var(--gc); }
.game-card.is-live { background: linear-gradient(120deg, rgba(var(--gc-rgb), .16), var(--panel) 62%); border-color: rgba(var(--gc-rgb), .45); border-top-color: var(--gc); }
.game-card.is-live:hover { border-color: var(--gc); }
.game-card .gc-go { background: var(--gc); color: #05080c; }
.game-card.is-soon .gc-icon svg { stroke: rgba(var(--gc-rgb), .55); }
