:root {
  --bg: #090c14;
  --bg-elev: #111624;
  --bg-card: #141a2b;
  --bg-card-hover: #192136;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f3f6fc;
  --text-muted: #9aa7c0;
  --text-dim: #6f7c96;

  --coral: #ff5c8a;
  --amber: #ff9e5e;
  --teal: #2dd4bf;
  --gold: #f5c451;
  --danger: #f87171;

  --grad: linear-gradient(135deg, #ff5c8a 0%, #ff9e5e 100%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(255, 92, 138, 0.14), transparent 62%),
    radial-gradient(760px 380px at 10% -5%, rgba(45, 212, 191, 0.10), transparent 58%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-mark, .ring-pct {
  font-family: "Space Grotesk", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.02em;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

.is-hidden {
  display: none !important;
}

.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

/* ==================== TOPBAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 12, 20, 0.86);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad);
  color: #0b0e17;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 16px rgba(255, 92, 138, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-tabs {
  display: flex;
  gap: 3px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

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

.nav-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.16s ease, color 0.16s ease;
}

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

.nav-tab.is-active {
  background: var(--bg-card-hover);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.tab-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 92, 138, 0.18);
  color: #ff8fb1;
}

.tab-pill-teal {
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
}

.tab-pill-gold {
  background: rgba(245, 196, 81, 0.16);
  color: var(--gold);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.85);
  display: inline-block;
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.lang-globe {
  font-size: 0.82rem;
  line-height: 1;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding-right: 4px;
  cursor: pointer;
  outline: none;
}

.lang-switch select option {
  background: #141a2b;
  color: #f3f6fc;
}

.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  flex-shrink: 0;
}

.save-indicator .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.7);
}

/* ==================== HERO ==================== */
.main-content {
  padding-top: 28px;
  padding-bottom: 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.1vw, 2.45rem);
  line-height: 1.14;
}

.hero-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 64ch;
}

.hero-sub strong {
  color: var(--text);
}

.hero-ring-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.ring-wrap {
  position: relative;
  flex-shrink: 0;
  width: 116px;
  height: 116px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 9;
}

.ring-fg {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 314.16;
  stroke-dashoffset: 314.16;
  transition: stroke-dashoffset 0.35s ease;
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-pct {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.05;
}

.ring-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.ring-meta {
  flex: 1;
  min-width: 0;
}

.trophy-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}

.trophy-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(245, 196, 81, 0.55);
}

.mini-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-cat-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mini-cat-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.mini-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  transition: width 0.3s ease;
}

/* ==================== BADGES & BUTTONS ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-sunset {
  background: rgba(255, 92, 138, 0.16);
  color: #ff99b7;
  border: 1px solid rgba(255, 92, 138, 0.32);
}

.badge-muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-teal {
  background: rgba(45, 212, 191, 0.14);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.badge-coral {
  background: rgba(255, 92, 138, 0.16);
  color: #ff8fb1;
  border: 1px solid rgba(255, 92, 138, 0.34);
}

.badge-gold {
  background: rgba(245, 196, 81, 0.14);
  color: var(--gold);
  border: 1px solid rgba(245, 196, 81, 0.32);
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--grad);
  color: #0b0e17;
  font-weight: 700;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-teal {
  background: rgba(45, 212, 191, 0.18);
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.45);
}

.btn-teal:hover {
  background: rgba(45, 212, 191, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.btn-danger-ghost {
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.25);
}

.btn-danger-ghost:hover {
  background: rgba(248, 113, 113, 0.16);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

/* ==================== TAB PANELS ==================== */
.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

/* ==================== SMART NEXT MOVES ==================== */
.next-panel {
  background: linear-gradient(135deg, rgba(255, 92, 138, 0.08), rgba(45, 212, 191, 0.06));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.next-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.next-header h2 {
  margin: 0 0 3px;
  font-size: 1.1rem;
}

.next-header p {
  margin: 0;
  font-size: 0.85rem;
}

.warning-chip {
  font-size: 0.76rem;
  font-weight: 600;
  color: #fde68a;
  background: rgba(245, 196, 81, 0.12);
  border: 1px solid rgba(245, 196, 81, 0.28);
  padding: 5px 11px;
  border-radius: 999px;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.next-card {
  background: rgba(9, 12, 20, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.next-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.next-card strong {
  font-size: 0.9rem;
}

.next-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.next-jump {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.next-jump:hover {
  text-decoration: underline;
}

/* ==================== TOOLBAR ==================== */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.search-wrap input {
  width: 100%;
  background: rgba(9, 12, 20, 0.72);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  padding: 11px 14px;
  border-radius: 10px;
  outline: none;
}

.search-wrap input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 92, 138, 0.16);
}

.filter-row,
.utility-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.chip.is-active {
  background: rgba(255, 92, 138, 0.18);
  color: #ffc2d4;
  border-color: rgba(255, 92, 138, 0.45);
}

.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(45, 212, 191, 0.10);
  border: 1px solid rgba(45, 212, 191, 0.28);
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle-pill input {
  accent-color: var(--teal);
  width: 15px;
  height: 15px;
}

/* ==================== CHECKLIST ==================== */
.category-section {
  margin-bottom: 28px;
}

.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.category-head h3 {
  margin: 0;
  font-size: 1.18rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.item-card:hover {
  border-color: var(--border-strong);
}

.item-card.is-complete {
  border-color: rgba(45, 212, 191, 0.42);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.065), var(--bg-card));
}

.item-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.check-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 7px;
  border: 2px solid var(--border-strong);
  background: rgba(9, 12, 20, 0.6);
  color: #090c14;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.item-card.is-complete .check-btn {
  background: var(--teal);
  border-color: var(--teal);
}

.item-title-block {
  flex: 1;
  min-width: 0;
}

.item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.item-title {
  margin: 0 0 5px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
}

.item-card.is-complete .item-title {
  color: #99f6e4;
}

.map-mini-btn {
  appearance: none;
  border: 1px solid rgba(45, 212, 191, 0.3);
  background: rgba(45, 212, 191, 0.08);
  color: #5eead4;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.map-mini-btn:hover {
  background: rgba(45, 212, 191, 0.2);
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.tag-partial {
  background: rgba(45, 212, 191, 0.12);
  color: #5eead4;
}

.tag-strict {
  background: rgba(255, 92, 138, 0.14);
  color: #ff99b7;
}

.tag-habit {
  background: rgba(245, 196, 81, 0.13);
  color: var(--gold);
}

.item-tip {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.48;
}

.spoiler-box {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  cursor: pointer;
}

.spoiler-box.is-blurred .spoiler-text {
  filter: blur(5px);
  user-select: none;
}

.item-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.item-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  transition: width 0.2s ease;
}

.item-card.is-complete .item-progress-fill {
  background: var(--teal);
}

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

.counter-readout {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--text);
}

.counter-readout span {
  color: var(--text-dim);
}

.stepper-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.step-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 34px;
  height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  cursor: pointer;
}

.step-btn:hover {
  background: rgba(255, 255, 255, 0.11);
}

.step-btn-max {
  color: var(--teal);
  border-color: rgba(45, 212, 191, 0.35);
}

.step-input {
  width: 78px;
  height: 32px;
  background: rgba(9, 12, 20, 0.75);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  text-align: center;
  padding: 0 6px;
}

/* ==================== SECRETS & COLLECTIBLES VAULT ==================== */
.secrets-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.secrets-view-switch,
.secrets-right-meta,
.egg-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.egg-filter-row {
  margin-bottom: 14px;
}

.vault-block {
  margin-bottom: 30px;
}

.egg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.egg-card:hover {
  border-color: var(--border-strong);
}

.egg-card.is-found {
  border-color: rgba(245, 196, 81, 0.45);
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.065), var(--bg-card));
}

.egg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.egg-loc {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--teal);
}

.egg-reward {
  font-size: 0.8rem;
  color: #fde68a;
  background: rgba(245, 196, 81, 0.08);
  border: 1px solid rgba(245, 196, 81, 0.22);
  border-radius: 8px;
  padding: 7px 10px;
}

.egg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.loot-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.loot-reward-line {
  font-size: 0.8rem;
  color: #fde68a;
  background: rgba(245, 196, 81, 0.08);
  border: 1px solid rgba(245, 196, 81, 0.2);
  border-radius: 8px;
  padding: 7px 10px;
}

/* ==================== INTERACTIVE MAP HUB ==================== */
.map-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.map-canvas-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.svg-map-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.leonida-svg {
  display: block;
  width: 100%;
  height: auto;
}

.svg-ocean {
  fill: rgba(154, 167, 192, 0.25);
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.map-zone {
  cursor: pointer;
  outline: none;
}

.map-zone path:not(.keys-bridge) {
  fill: rgba(255, 255, 255, 0.055);
  stroke: rgba(154, 167, 192, 0.36);
  stroke-width: 1.6;
  transition: fill 0.18s ease, stroke 0.18s ease;
}

.map-zone:hover path:not(.keys-bridge),
.map-zone:focus path:not(.keys-bridge) {
  fill: rgba(255, 92, 138, 0.16);
  stroke: rgba(255, 158, 94, 0.75);
}

.map-zone.is-explored path:not(.keys-bridge) {
  fill: rgba(45, 212, 191, 0.13);
  stroke: rgba(45, 212, 191, 0.55);
}

.map-zone.is-selected path:not(.keys-bridge) {
  fill: rgba(255, 92, 138, 0.26);
  stroke: #ff5c8a;
  stroke-width: 2.4;
}

.zone-title {
  fill: #f3f6fc;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.zone-sub {
  fill: #9aa7c0;
  font-family: "Inter", sans-serif;
  font-size: 9.5px;
  pointer-events: none;
}

.zone-check {
  fill: #2dd4bf;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}

.region-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.map-inspector {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inspector-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inspector-focus-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.focus-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(9, 12, 20, 0.58);
  border: 1px solid var(--border);
}

.focus-item-row strong {
  font-size: 0.86rem;
}

.focus-item-row small {
  display: block;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
}

.inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.ext-maps-block {
  margin-top: 8px;
}

.side-tip-bar {
  margin-top: 14px;
  font-size: 0.84rem;
  color: #99f6e4;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 12px;
  padding: 12px 15px;
}

/* ==================== STORAGE CALCULATOR ==================== */
.section-intro {
  margin-bottom: 18px;
}

.section-intro h2 {
  margin: 0 0 6px;
  font-size: 1.42rem;
}

.section-intro p {
  margin: 0;
  max-width: 72ch;
}

.storage-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.console-btn {
  appearance: none;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 12px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.15s ease;
}

.console-btn small {
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.73rem;
}

.console-btn.is-active {
  background: rgba(255, 92, 138, 0.14);
  border-color: rgba(255, 92, 138, 0.52);
}

.game-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.game-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  padding: 7px 11px;
  border-radius: 9px;
  cursor: pointer;
}

.game-chip.is-active {
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.45);
  color: #99f6e4;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.slider-block input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
}

.verdict-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.verdict-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}

.verdict-ok {
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.verdict-tight {
  background: rgba(245, 196, 81, 0.16);
  color: var(--gold);
  border: 1px solid rgba(245, 196, 81, 0.35);
}

.verdict-short {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.storage-bar-wrap {
  margin: 18px 0;
}

.storage-bar {
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
}

.bar-seg {
  height: 100%;
  transition: width 0.25s ease;
}

.seg-gta { background: var(--grad); }
.seg-games { background: #38bdf8; }

.bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 9px;
}

.swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 4px;
}

.swatch-gta { background: var(--coral); }
.swatch-games { background: #38bdf8; }
.swatch-free { background: rgba(255, 255, 255, 0.22); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.stat-box {
  background: rgba(9, 12, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.usb-warning {
  font-size: 0.82rem;
  color: #fde68a;
  background: rgba(245, 196, 81, 0.09);
  border: 1px solid rgba(245, 196, 81, 0.25);
  border-radius: 10px;
  padding: 11px 13px;
}

.upgrade-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.upgrade-header h3 { margin: 0 0 4px; }
.upgrade-header p { margin: 0; font-size: 0.86rem; }

.affiliate-note {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.upgrade-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upgrade-card h4 {
  margin: 0;
  font-size: 1.02rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.upgrade-specs {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--teal);
}

.upgrade-why {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  flex: 1;
}

/* ==================== SETTINGS ==================== */
.callout-banner {
  background: linear-gradient(135deg, rgba(255, 92, 138, 0.12), rgba(255, 158, 94, 0.07));
  border: 1px solid rgba(255, 92, 138, 0.34);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 20px;
}

.callout-banner h2 {
  margin: 8px 0 8px;
  font-size: 1.35rem;
}

.callout-banner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 82ch;
}

.callout-banner strong { color: var(--text); }

.settings-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.platform-switch,
.settings-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  border-radius: 11px;
  background: rgba(9, 12, 20, 0.55);
  border: 1px solid var(--border);
  cursor: pointer;
}

.setting-row.is-done {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(45, 212, 191, 0.06);
}

.setting-row input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
  flex-shrink: 0;
}

.setting-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 4px;
}

.setting-row p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==================== LIVE NEWS & MESSAGE BOARD ==================== */
.community-hub-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
  align-items: start;
}

.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.panel-title-wrap,
.panel-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-head-row h3 {
  margin: 0;
}

.news-filter-row,
.board-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 680px;
  overflow-y: auto;
  padding-right: 4px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(9, 12, 20, 0.58);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.news-card:hover {
  border-color: rgba(255, 92, 138, 0.48);
  background: rgba(255, 255, 255, 0.045);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.74rem;
}

.news-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-source {
  font-weight: 600;
  color: var(--teal);
}

.news-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.38;
}

.board-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 13px;
  background: rgba(9, 12, 20, 0.55);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.board-form-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 8px;
}

.board-form input,
.board-form select,
.board-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  padding: 9px 11px;
  outline: none;
}

.board-form input:focus,
.board-form select:focus,
.board-form textarea:focus {
  border-color: var(--coral);
}

.board-form textarea {
  resize: vertical;
  min-height: 76px;
}

.board-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.board-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.msg-card {
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(9, 12, 20, 0.58);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.msg-author-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.msg-author {
  font-weight: 700;
  font-size: 0.88rem;
}

.msg-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.msg-body {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.like-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.like-btn:hover {
  color: var(--text);
  border-color: var(--teal);
}

.like-btn.is-liked {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(45, 212, 191, 0.5);
  color: #5eead4;
}

/* ==================== FAQ ==================== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.faq-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--text);
}

.faq-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==================== COMMUNITY / MONETIZATION ==================== */
.community-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.waitlist-card h3,
.support-card h3 {
  margin-top: 10px;
}

.waitlist-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  background: rgba(9, 12, 20, 0.72);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 13px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.form-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--teal);
  min-height: 1.2em;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sponsor-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
}

/* ==================== FOOTER & TOAST ==================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 36px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 4px 0;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  background: #172033;
  color: var(--text);
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .nav-tabs {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 960px) {
  .hero,
  .map-layout,
  .storage-layout,
  .settings-grid,
  .community-hub-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .board-form-row {
    grid-template-columns: 1fr;
  }

  .next-grid,
  .upgrade-grid {
    grid-template-columns: 1fr;
  }

  .items-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .save-indicator {
    display: none;
  }

  .hero-ring-card {
    flex-direction: column;
    text-align: center;
  }

  .ring-meta {
    width: 100%;
  }

  .console-grid {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    flex-direction: column;
  }
}
