/* 饭桶生活 · 玩家中心 */
:root {
  color-scheme: dark;
  --bg: #070b11;
  --bg-2: #0b1119;
  --panel: #0f1620;
  --panel-2: #131c28;
  --panel-3: #182333;
  --line: rgba(125, 165, 205, 0.16);
  --line-strong: rgba(125, 190, 255, 0.32);
  --text: #e8eef6;
  --muted: #8fa1b6;
  --muted-2: #6d8095;
  --accent: #4fc3f7;
  --accent-2: #7c5cff;
  --gold: #f5c45a;
  --ok: #46d39a;
  --bad: #ff6b6b;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --common: #9aa7b4;
  --uncommon: #46d39a;
  --rare: #4fa3ff;
  --epic: #b07cff;
  --legendary: #f5b942;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(1100px 640px at 78% -12%, rgba(46, 130, 190, 0.26), transparent 62%),
    radial-gradient(900px 520px at -8% 18%, rgba(124, 92, 255, 0.14), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #9fe2ff;
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: rgba(79, 195, 247, 0.3);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page {
  padding: 46px 0 72px;
  min-height: calc(100vh - 250px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  height: 68px;
  background: rgba(7, 11, 17, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header .inner {
  width: min(1220px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  flex: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  image-rendering: pixelated;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 22px rgba(79, 195, 247, 0.16);
}

.brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.3;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: none;
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  transition: 0.18s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav a.active {
  color: var(--text);
  background: rgba(79, 195, 247, 0.12);
  box-shadow: inset 0 0 0 1px rgba(79, 195, 247, 0.22);
}

.header-status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(15, 22, 32, 0.7);
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 3px rgba(109, 128, 149, 0.12);
}

.dot.online {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(70, 211, 154, 0.14), 0 0 12px rgba(70, 211, 154, 0.65);
}

.dot.offline {
  background: var(--bad);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.13);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(19, 28, 40, 0.85);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  color: var(--text);
  border-color: rgba(125, 210, 255, 0.55);
  transform: translateY(-1px);
  background: rgba(26, 39, 55, 0.95);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #5bd1ff, #4a8cff 55%, #7c5cff);
  color: #061018;
  box-shadow: 0 10px 30px rgba(58, 154, 255, 0.22);
}

.btn.primary:hover {
  color: #041018;
  filter: brightness(1.05);
}

.btn.gold {
  border-color: rgba(245, 196, 90, 0.4);
  background: linear-gradient(135deg, #f7d27c, #e8a93d);
  color: #201302;
}

.btn.ghost {
  background: transparent;
}

.btn.sm {
  padding: 7px 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn.block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.page-title {
  font-size: clamp(28px, 4vw, 40px);
}

.page-sub {
  margin-top: 10px;
  color: var(--muted);
  max-width: 720px;
  font-size: 15px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12.5px;
}

.mono {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

.gold {
  color: var(--gold);
}

.ok {
  color: var(--ok);
}

.bad {
  color: var(--bad);
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 30, 43, 0.9), rgba(12, 18, 27, 0.92));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.card.pad {
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 52px 0 18px;
}

.section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.section-head p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 5px;
}

.grid {
  display: grid;
  gap: 16px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
  gap: 46px;
  align-items: center;
  padding: 72px 0 36px;
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.06;
  margin: 18px 0 20px;
  letter-spacing: -0.045em;
}

.hero h1 .grad {
  background: linear-gradient(105deg, #9fe8ff 0%, #4fc3f7 38%, #7c9dff 72%, #b58cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-break { display: none; }

.hero-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.server-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 24px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(79, 195, 247, 0.2), transparent 65%),
    linear-gradient(160deg, rgba(22, 34, 50, 0.98), rgba(10, 16, 24, 0.98));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.server-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(125, 190, 255, 0.16);
  border-radius: 15px;
  pointer-events: none;
}

.server-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  z-index: 1;
}

.server-card-top img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  image-rendering: pixelated;
  border: 1px solid var(--line-strong);
}

.server-card-top h2 {
  font-size: 18px;
}

.server-card-top p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.server-address {
  position: relative;
  z-index: 1;
  margin: 20px 0 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 16, 0.6);
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: clamp(15px, 1.8vw, 18px);
  letter-spacing: 0.02em;
  color: #bdeaff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 0;
}

.server-facts div {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.server-facts dt {
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.server-facts dd {
  margin: 3px 0 0;
  font-size: 13.5px;
  font-weight: 600;
}

.player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11.5px;
  color: var(--muted);
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #071018;
  font-weight: 800;
  background: linear-gradient(135deg, hsl(var(--hue, 200) 75% 70%), hsl(calc(var(--hue, 200) + 40) 70% 55%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.avatar.lg {
  --size: 36px;
  width: var(--size);
  height: var(--size);
  font-size: calc(var(--size) * 0.4);
}

/* ---------- Stats ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.stat {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 30, 43, 0.8), rgba(10, 16, 24, 0.75));
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.14), transparent 70%);
}

.stat-value {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.stat-value small {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(21, 32, 46, 0.92), rgba(10, 16, 24, 0.92));
  color: var(--text);
  transition: 0.2s ease;
  min-height: 190px;
}

.feature-card:hover {
  color: var(--text);
  transform: translateY(-4px);
  border-color: rgba(79, 195, 247, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 21px;
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(124, 92, 255, 0.18));
  border: 1px solid rgba(79, 195, 247, 0.24);
}

.feature-card h3 {
  font-size: 17px;
}

.feature-card p {
  color: var(--muted);
  font-size: 13px;
}

.feature-card .go {
  margin-top: auto;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- Two column live ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 16px;
  align-items: start;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  font-size: 16px;
}

.panel-head .small {
  color: var(--muted);
}

.panel-body {
  padding: 8px 20px 16px;
}

.mini-list {
  display: flex;
  flex-direction: column;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(125, 165, 205, 0.08);
}

.mini-row:last-child {
  border-bottom: none;
}

.mini-row .grow {
  min-width: 0;
  flex: 1;
}

.mini-row .name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-row .sub {
  color: var(--muted-2);
  font-size: 11.5px;
}

.mini-row .value {
  text-align: right;
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mini-row .value small {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.spark {
  flex: none;
  width: 96px;
  height: 30px;
  opacity: 0.95;
}

/* ---------- Records ---------- */
.record-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 20px 18px;
}

.record-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.record-card img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  flex: none;
}

.record-card .name {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-card .meta {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

/* ---------- Quick start ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 30, 0.75);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  color: var(--accent);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.step h3 {
  margin: 10px 0 6px;
  font-size: 16px;
}

.step p {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th {
  padding: 11px 12px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 12px;
  border-bottom: 1px solid rgba(125, 165, 205, 0.08);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr {
  transition: 0.15s ease;
}

.table tbody tr:hover {
  background: rgba(79, 195, 247, 0.045);
}

.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.rank {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.rank.top1 {
  background: rgba(245, 185, 66, 0.18);
  color: var(--gold);
}

.rank.top2 {
  background: rgba(200, 214, 230, 0.12);
  color: #cbd8e6;
}

.rank.top3 {
  background: rgba(214, 142, 95, 0.16);
  color: #e0a47a;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.player-cell strong {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.badge.rarity-common { color: var(--common); border-color: rgba(154, 167, 180, 0.3); background: rgba(154, 167, 180, 0.08); }
.badge.rarity-uncommon { color: var(--uncommon); border-color: rgba(70, 211, 154, 0.3); background: rgba(70, 211, 154, 0.08); }
.badge.rarity-rare { color: var(--rare); border-color: rgba(79, 163, 255, 0.32); background: rgba(79, 163, 255, 0.09); }
.badge.rarity-epic { color: var(--epic); border-color: rgba(176, 124, 255, 0.32); background: rgba(176, 124, 255, 0.1); }
.badge.rarity-legendary { color: var(--legendary); border-color: rgba(245, 185, 66, 0.35); background: rgba(245, 185, 66, 0.1); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
  white-space: nowrap;
}

.chip.accent {
  color: var(--accent);
  background: rgba(79, 195, 247, 0.09);
}

.chip.gold {
  color: var(--gold);
  background: rgba(245, 196, 90, 0.09);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 20, 30, 0.8);
  margin-bottom: 16px;
}

.filter-bar label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.input,
.select {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.7);
  color: var(--text);
  outline: none;
  font-size: 13px;
}

.input:focus,
.select:focus {
  border-color: rgba(79, 195, 247, 0.55);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.input {
  width: 210px;
}

.select {
  cursor: pointer;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 190px;
  max-width: 320px;
}

.search-wrap .input {
  width: 100%;
  padding-left: 32px;
}

.search-wrap::before {
  content: "⌕";
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 16px;
  pointer-events: none;
}

.filter-count {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}

/* ---------- Fish grid ---------- */
.fish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
}

.fish-card {
  --rarity: var(--common);
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--rarity);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(21, 32, 46, 0.94), rgba(9, 15, 23, 0.96));
  cursor: pointer;
  overflow: hidden;
  transition: 0.18s ease;
}

.fish-card:hover {
  transform: translateY(-3px);
  border-color: var(--rarity);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 24px color-mix(in srgb, var(--rarity) 12%, transparent);
}

.fish-card.rarity-common { --rarity: var(--common); }
.fish-card.rarity-uncommon { --rarity: var(--uncommon); }
.fish-card.rarity-rare { --rarity: var(--rare); }
.fish-card.rarity-epic { --rarity: var(--epic); }
.fish-card.rarity-legendary { --rarity: var(--legendary); }

.fish-art {
  position: relative;
  height: 106px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--rarity) 20%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  overflow: hidden;
}

.fish-art::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 80%;
  border-radius: 50%;
  border-top: 1px solid color-mix(in srgb, var(--rarity) 20%, transparent);
  opacity: 0.7;
}

.fish-art img {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
  transition: 0.2s ease;
}

.fish-card:hover .fish-art img {
  transform: translateY(-3px) scale(1.06);
}

.fish-info {
  padding: 0 14px 14px;
}

.fish-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fish-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fish-id {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  font-family: ui-monospace, Menlo, monospace;
  margin-top: 1px;
}

.fish-price {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.fish-cond {
  margin: 9px 0 8px;
}

.fish-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-size: 10.5px;
  border-top: 1px solid rgba(125, 165, 205, 0.09);
  padding-top: 8px;
}

.fish-meta b {
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Dialog ---------- */
dialog {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: min(780px, calc(100vw - 28px));
  width: 100%;
  max-height: calc(100vh - 40px);
}

dialog::backdrop {
  background: rgba(2, 5, 9, 0.74);
  backdrop-filter: blur(8px);
}

.dialog-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(700px 260px at 100% -10%, rgba(79, 195, 247, 0.13), transparent 60%),
    linear-gradient(170deg, #121c29, #090e15 70%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(8, 13, 20, 0.8);
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.dialog-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.fish-detail-head {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-right: 36px;
}

.fish-detail-art {
  flex: none;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(79, 195, 247, 0.15), rgba(9, 15, 23, 0.8));
}

.fish-detail-art img {
  width: 82px;
  height: 82px;
  image-rendering: pixelated;
}

.fish-detail-head h2 {
  font-size: 26px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.detail-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.detail-item .k {
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-item .v {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
}

.detail-section {
  margin-top: 20px;
}

.detail-section h3 {
  font-size: 14px;
  margin-bottom: 9px;
}

.record-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.record-box {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(245, 196, 90, 0.07), rgba(255, 255, 255, 0.015));
}

.record-box .label {
  color: var(--muted-2);
  font-size: 10.5px;
}

.record-box .value {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}

.record-box .who {
  color: var(--muted);
  font-size: 11.5px;
}

/* ---------- Leaderboards ---------- */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(5, 10, 16, 0.55);
}

.tab {
  padding: 7px 13px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: #061018;
  background: linear-gradient(135deg, #7bd8ff, #4fc3f7);
  box-shadow: 0 4px 14px rgba(79, 195, 247, 0.2);
}

/* ---------- Legendary ---------- */
.legendary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.legendary-card {
  padding: 16px;
  border: 1px solid rgba(245, 185, 66, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(260px 130px at 50% 0%, rgba(245, 185, 66, 0.12), transparent 70%),
    rgba(16, 22, 30, 0.85);
}

.legendary-card img {
  width: 54px;
  height: 54px;
  image-rendering: pixelated;
  display: block;
  margin-bottom: 8px;
}

.legendary-card h3 {
  font-size: 14px;
  color: var(--legendary);
}

.legendary-card ul {
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

/* ---------- Stocks ---------- */
.stock-table tr {
  cursor: pointer;
}

.stock-id-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.stock-icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 800;
  color: #cfeeff;
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(124, 92, 255, 0.16));
  border: 1px solid rgba(79, 195, 247, 0.2);
}

.stock-name {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.25;
}

.stock-code {
  font-family: ui-monospace, Menlo, monospace;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.stock-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.change {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.change.up {
  color: var(--ok);
}

.change.down {
  color: var(--bad);
}

.change.flat {
  color: var(--muted);
}

.sparkline {
  display: block;
  width: 110px;
  height: 32px;
  overflow: visible;
}

/* ---------- Chart ---------- */
.chart-card {
  padding: 16px 18px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 10, 16, 0.45);
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.chart-head .price {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 190px;
}

.chart-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.chart-tab {
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
}

.chart-tab.active {
  color: var(--text);
  background: rgba(79, 195, 247, 0.15);
}

.ipo-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-top: 7px;
}

.ipo-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------- Map ---------- */
.map-page {
  height: calc(100dvh - 68px);
  min-height: 540px;
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr);
}

.map-side {
  position: relative;
  z-index: 2;
  padding: 24px 20px 28px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.96), rgba(6, 10, 16, 0.94));
  overflow-y: auto;
}

.map-side h1 {
  font-size: 24px;
  margin-top: 6px;
}

.map-side .lead {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 7px;
}

.map-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.map-block {
  margin-top: 20px;
}

.map-block-title {
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.region-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.region-btn {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11.5px;
  text-align: left;
  cursor: pointer;
  transition: 0.15s ease;
}

.region-btn:hover {
  color: var(--text);
  border-color: rgba(79, 195, 247, 0.42);
  background: rgba(79, 195, 247, 0.08);
}

.map-wrap {
  position: relative;
  min-height: 400px;
  background: #06101a;
}

#map {
  position: absolute;
  inset: 0;
  background: #06101a;
  font-family: inherit;
}

.map-overlay {
  position: absolute;
  z-index: 500;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  pointer-events: none;
}

.map-pill {
  pointer-events: auto;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(6, 12, 20, 0.86);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 12px;
}

.map-pill b {
  color: var(--text);
}

.map-coords {
  position: absolute;
  z-index: 500;
  left: 16px;
  bottom: 16px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 12, 20, 0.82);
  color: var(--muted);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  pointer-events: none;
}

.leaflet-container {
  background: #06101a;
  font-family: inherit;
}

.leaflet-control-zoom a {
  background: rgba(9, 19, 31, 0.94) !important;
  color: #d9ecff !important;
  border-color: rgba(120, 190, 255, 0.22) !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(29, 55, 78, 0.96) !important;
}

.leaflet-control-attribution {
  display: none !important;
}

.leaflet-tooltip {
  border: 1px solid rgba(120, 190, 255, 0.3);
  background: rgba(6, 12, 20, 0.92);
  color: #d9ecff;
  box-shadow: none;
  font-size: 11px;
}

.leaflet-tooltip-top::before {
  border-top-color: rgba(120, 190, 255, 0.3);
}

/* ---------- Guide ---------- */
.guide-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 16, 24, 0.75);
}

.guide-toc .title {
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.guide-toc a {
  display: block;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.guide-toc a:hover,
.guide-toc a.active {
  color: var(--text);
  background: rgba(79, 195, 247, 0.08);
}

.guide-content {
  min-width: 0;
}

.guide-section {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 27, 39, 0.82), rgba(9, 14, 21, 0.82));
  margin-bottom: 16px;
}

.guide-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}

.guide-section h2 .n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.22), rgba(124, 92, 255, 0.18));
  border: 1px solid rgba(79, 195, 247, 0.25);
  color: var(--accent);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
}

.guide-section h3 {
  font-size: 15px;
  margin: 20px 0 8px;
  color: #cfe6f8;
}

.guide-section p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 8px 0;
}

.guide-section ul,
.guide-section ol {
  margin: 8px 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13.5px;
}

.guide-section li {
  margin: 4px 0;
}

.guide-section strong {
  color: var(--text);
}

.guide-section code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(79, 195, 247, 0.09);
  color: #a9e5ff;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  white-space: nowrap;
}

.note,
.warn {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(79, 195, 247, 0.2);
  background: rgba(79, 195, 247, 0.06);
  color: var(--muted);
  font-size: 12.5px;
  margin: 12px 0;
}

.warn {
  border-color: rgba(255, 184, 76, 0.25);
  background: rgba(255, 184, 76, 0.06);
}

.note b,
.warn b {
  color: var(--text);
}

.command-table td:first-child {
  white-space: nowrap;
}

.command-table code {
  font-size: 11.5px;
}

details.faq {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.02);
}

details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

details.faq p {
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted-2);
  font-size: 12px;
}

.site-footer .inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer .brand-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.site-footer img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  image-rendering: pixelated;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer .links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 3000;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(8, 14, 22, 0.96);
  color: var(--text);
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: 0.24s ease;
  box-shadow: var(--shadow);
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Empty / loading ---------- */
.empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
  font-size: 13px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .legendary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 44px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .guide-toc {
    position: static;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
  }
  .guide-toc::-webkit-scrollbar {
    display: none;
  }
  .guide-toc .title {
    display: none;
  }
  .guide-toc a {
    flex: none;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.03);
  }
  .map-page {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .map-wrap {
    order: 1;
  }
  .map-side {
    order: 2;
    border-right: none;
    border-top: 1px solid var(--line);
    overflow: visible;
    padding: 20px;
  }
  .region-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .map-wrap {
    height: 62vh;
    min-height: 380px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), 1180px);
  }
  .site-header {
    height: 62px;
  }
  .site-header .inner {
    width: calc(100% - 20px);
    gap: 12px;
  }
  .brand strong {
    font-size: 14px;
  }
  .brand small {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .nav a {
    padding: 7px 9px;
    font-size: 12.5px;
  }
  .header-status {
    display: none;
  }
  .page {
    padding: 30px 0 54px;
  }
  .hero {
    padding-top: 32px;
  }
  .hero h1 {
    font-size: clamp(30px, 8.6vw, 40px);
  }
  .hero-break {
    display: inline;
  }
  .hero-sub {
    font-size: 14px;
  }
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .feature-card {
    min-height: 0;
  }
  .stat-strip {
    gap: 8px;
  }
  .stat {
    padding: 14px;
  }
  .record-list {
    grid-template-columns: 1fr;
  }
  .fish-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 9px;
  }
  .fish-art {
    height: 88px;
  }
  .fish-art img {
    width: 58px;
    height: 58px;
  }
  .fish-info {
    padding: 0 11px 11px;
  }
  .fish-name {
    font-size: 13.5px;
  }
  .fish-meta {
    font-size: 9.5px;
  }
  .detail-grid,
  .record-strip {
    grid-template-columns: 1fr;
  }
  .dialog-card {
    padding: 20px;
  }
  .fish-detail-head {
    gap: 12px;
  }
  .fish-detail-art {
    width: 82px;
    height: 82px;
  }
  .fish-detail-art img {
    width: 62px;
    height: 62px;
  }
  .fish-detail-head h2 {
    font-size: 21px;
  }
  .legendary-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    gap: 8px;
  }
  .filter-count {
    width: 100%;
    margin-left: 0;
  }
  .input {
    width: 100%;
  }
  .search-wrap {
    max-width: none;
  }
  .map-wrap {
    height: 58vh;
    min-height: 340px;
  }
  .region-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-head {
    margin-bottom: 20px;
  }
  .section-head {
    margin-top: 38px;
  }
  .hide-sm {
    display: none;
  }
  .spark {
    width: 74px;
  }
  .site-footer .inner {
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
