/* =========================================================
   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;
  --accent: #4fb3ff;
  --accent-2: #ffb547;

  /* 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, #16304d 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(10, 16, 24, 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: linear-gradient(135deg, var(--accent), #1d6fd1);
  font-family: var(--display); font-weight: 800; font-size: 17px; color: #fff;
}
.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;
}

/* 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(79,179,255,.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(79,179,255,.20), transparent 70%),
    radial-gradient(400px 220px at 8% 0%, rgba(255,181,71,.10), transparent 70%),
    repeating-linear-gradient(0deg, rgba(79,179,255,.05) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(79,179,255,.05) 0 1px, transparent 1px 36px),
    linear-gradient(160deg, #11243a 0%, #0b1622 55%, #08111b 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(10,20,32,.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 { background-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' fill='%234fb3ff' fill-opacity='.10'/%3E%3C/svg%3E"); animation: gh-wave 18s linear infinite; }
.gh-waves::after  { background-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' fill='%234fb3ff' fill-opacity='.16'/%3E%3C/svg%3E"); animation: gh-wave2 11s linear infinite; }
@keyframes gh-wave  { to { background-position-x: -600px; } }
@keyframes gh-wave2 { to { background-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%, #0d1724 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: #36506e; }
.dd.open .dd-btn { border-color: var(--accent); }
.dd.has .dd-btn { background: rgba(79,179,255,.12); border-color: var(--accent); }
.dd-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #04121f;
  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 #04121f; 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: #04121f; }

/* 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(79,179,255,.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: #080d14;
  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(79,179,255,.18), rgba(79,179,255,.18)) center / 1px 100% no-repeat,
    linear-gradient(rgba(79,179,255,.18), rgba(79,179,255,.18)) center / 100% 1px no-repeat,
    radial-gradient(circle closest-side, #10263b 0%, #0a1420 100%);
  border: 2px solid rgba(79,179,255,.4);
  box-shadow: 0 0 70px rgba(79,179,255,.16), inset 0 0 40px rgba(0,0,0,.65);
}
.sonar-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(79,179,255,.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(79,179,255,.08) 320deg, rgba(79,179,255,.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(79,179,255,.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: #04121f; }
.btn-primary:hover { background: #79c6ff; }
.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(79,179,255,.04) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(79,179,255,.04) 0 1px, transparent 1px 36px),
    linear-gradient(160deg, #11243a 0%, #0b1622 60%, #08111b 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(10,20,32,.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: #36506e; }
.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(79,179,255,.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: #36506e; }
.lo-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #04121f; }
.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: #0d1825;
}
.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: #05090f;
}
.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(36,56,79,.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: #0d1825; }
.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: #0d1825; 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; }
  .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, #11243a 0%, #0b1622 60%, #08111b 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
   ========================================================= */
.cmp-pickers { display: grid; grid-template-columns: 180px repeat(3, minmax(0, 1fr)); gap: 10px; }
.cmp-pickers::before { content: ""; }
.cmp-pick {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 12px 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); min-height: 150px;
}
.cmp-pick.has::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 14px 14px 0 0; background: var(--rar); }
.cmp-pick.empty-slot { justify-content: center; border-style: dashed; }
.cmp-pick.dim { opacity: .45; }
.cmp-plus { font-size: 30px; color: var(--muted); line-height: 1; }
.cmp-input { width: 100%; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 14px; }
.cmp-input:focus { outline: none; border-color: var(--accent); }
.cmp-pic { width: 100%; height: 80px; display: grid; place-items: center; margin-bottom: 6px; }
.cmp-pic img { width: 100%; height: 100%; object-fit: contain; }
.cmp-pic .img-fallback { font-size: 28px; }
.cmp-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.cmp-name:hover { color: var(--accent); }
.cmp-meta { font-size: 12px; color: var(--muted); }
.cmp-x {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; font-size: 17px; line-height: 1;
}
.cmp-x:hover { border-color: #e5484d; color: #ff8a8d; }
.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-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.cmp-section { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px 8px; background: var(--panel-2); border-top: 1px solid var(--line); }
.cmp-section:first-child { border-top: 0; }
.cmp-sectitle { font-family: var(--display); font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.cmp-note { font-size: 12px; color: var(--muted); }
.cmp-row { display: grid; grid-template-columns: 180px repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cmp-label { padding: 9px 14px; font-size: 13px; color: var(--muted); }
.cmp-cell { padding: 9px 10px; font-size: 15px; font-weight: 600; text-align: center; border-left: 1px solid var(--line); }
.cmp-cell.win { color: #2fd57a; background: rgba(47,213,122,.08); }
.cmp-cell.win::after { content: " ▲"; font-size: 10px; vertical-align: 2px; }
.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; }

/* =========================================================
   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: #04121f; }
.wp-cat.on small { color: #04121f; }
.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-pickers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cmp-pickers::before { display: none; }
  .cmp-pick { min-height: 120px; padding: 10px 6px; }
  .cmp-pic { height: 54px; }
  .cmp-name { font-size: 13px; }
  .cmp-meta { display: none; }
  .cmp-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cmp-label { grid-column: 1 / -1; padding: 8px 10px 0; font-weight: 600; }
  .cmp-cell { border-left: 0; font-size: 14px; padding: 4px 6px 9px; }
  .cmp-cell + .cmp-cell { border-left: 1px solid var(--line); }
  .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; }
}
.cmp-cell.blank { background: rgba(0,0,0,.12); }
