:root {
  --bg: #0a0705;
  --bg2: #100c09;
  --panel: #17110d;
  --panel2: #1e1712;
  --line: rgba(255, 236, 214, 0.10);
  --line2: rgba(255, 236, 214, 0.20);
  --text: #f6ecdd;
  --muted: #b3a08b;
  --dim: #857361;
  --ember: #ff6a1a;
  --amber: #ffb347;
  --gold: #ffd37a;
  --vip: #cfd8e3;
  --premium: #ffc94d;
  --lux: #d97bff;
  --ultra: #5bd7e8;
  --god: #ff5b4a;
  --mono: "Consolas", "SFMono-Regular", "Cascadia Mono", monospace;
  --sans: "Segoe UI", "Inter", system-ui, -apple-system, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(255, 106, 26, 0.20), transparent 62%),
    radial-gradient(900px 500px at -10% 18%, rgba(255, 179, 71, 0.07), transparent 60%),
    linear-gradient(180deg, #0a0705, #0d0907 40%, #0a0705);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 7, 5, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--line2);
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 2px 6px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav a:hover {
  color: var(--text);
  border-color: var(--ember);
}

.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.035);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.ip-chip:hover {
  border-color: var(--ember);
  background: rgba(255, 106, 26, 0.08);
}

.ip-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65e08a;
  box-shadow: 0 0 10px rgba(101, 224, 138, 0.8);
}

.header-ip {
  margin-left: 4px;
}

.mobile-menu {
  display: none;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: clamp(48px, 7vw, 92px) 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.9rem, 6.1vw, 5.5rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
  font-weight: 900;
  max-width: 13ch;
}

.hero h1 .accent {
  color: var(--amber);
  display: inline-block;
  text-shadow: 0 0 36px rgba(255, 179, 71, 0.22);
}

.lead {
  margin: 0 0 26px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line2);
  background: rgba(255, 255, 255, 0.06);
}

.btn:focus-visible,
.ip-chip:focus-visible,
.nav a:focus-visible,
.faq summary:focus-visible,
.map-btn:focus-visible,
.marker:focus-visible,
.map-item:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #ff8a2a, #ff5a00);
  color: #1b0d05;
  box-shadow: 0 10px 30px rgba(255, 90, 0, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffa04a, #ff6a10);
}

.btn-ghost {
  background: transparent;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 560px;
}

.hero-stats div {
  padding: 12px 20px 12px 0;
  margin-right: 20px;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
  margin-right: 0;
}

.hero-stats b {
  display: block;
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--text);
}

.hero-stats span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero-panel {
  position: relative;
  border: 1px solid var(--line2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--panel);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--amber);
  opacity: 0.7;
}

.hero-panel::before {
  left: -1px;
  top: -1px;
  border-left: 2px solid;
  border-top: 2px solid;
}

.hero-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

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

.panel-title h2 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.panel-title span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
}

.ladder {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  position: relative;
}

.ladder::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--vip), var(--premium), var(--lux), var(--ultra), var(--god));
  opacity: 0.55;
}

.ladder li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ladder li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--rc);
  box-shadow: 0 0 0 3px rgba(10, 7, 5, 0.95), 0 0 14px var(--rc);
}

.ladder li:hover {
  transform: translateX(3px);
  border-color: var(--rc);
  background: rgba(255, 255, 255, 0.05);
}

.ladder .rank-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  color: var(--rc);
}

.ladder .rank-note {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--dim);
  font-weight: 400;
}

.ladder .rank-price {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.section {
  padding: clamp(52px, 7vw, 86px) 0 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.section-head p {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.rank-card {
  --rc: var(--vip);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--rc);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008)),
    var(--panel);
  min-height: 100%;
}

.rank-card::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--rc);
  opacity: 0.65;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.rank-card .rank-kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.rank-card h3 {
  margin: -8px 0 0;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--rc);
  line-height: 1;
}

.rank-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rank-price b {
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.04em;
}

.rank-price span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.rank-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--muted);
}

.rank-card li {
  position: relative;
  padding-left: 16px;
}

.rank-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  background: var(--rc);
  opacity: 0.8;
  transform: rotate(45deg);
}

.rank-card .kit-line {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--dim);
}

.rank-card .kit-line b {
  color: var(--text);
  font-weight: 600;
}

.rank-card .btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.rank-vip { --rc: var(--vip); }
.rank-premium { --rc: var(--premium); }
.rank-lux { --rc: var(--lux); }
.rank-ultra { --rc: var(--ultra); }
.rank-god { --rc: var(--god); }

.note {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--dim);
}

.note code {
  font-family: var(--mono);
  color: var(--amber);
}

.table-wrap {
  border: 1px solid var(--line);
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.015);
}

.kits-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.kits-table th,
.kits-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.84rem;
}

.kits-table th {
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}

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

.kits-table td:first-child {
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.kits-table .cooldown {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--amber);
  white-space: nowrap;
}

.map-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
}

.map-frame {
  position: relative;
  border: 1px solid var(--line2);
  background: #0a1a28;
  padding: 10px;
  box-shadow: var(--shadow);
}

.map-frame::before,
.map-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--amber);
  opacity: 0.65;
}

.map-frame::before {
  left: -1px;
  top: -1px;
  border-left: 2px solid;
  border-top: 2px solid;
}

.map-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.map-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
}

.map-frame .map-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 4px 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--dim);
}

.map-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.map-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 48ch;
}

.map-copy .btn {
  margin-top: 4px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}

.step {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  padding: 22px 20px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--amber);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.step code {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 5px;
}

.faq {
  display: grid;
  gap: 8px;
  max-width: 840px;
}

.faq details {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.faq summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--amber);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  margin-top: clamp(60px, 8vw, 96px);
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 0.78rem;
}

.footer-inner .brand {
  font-size: 0.9rem;
}

.footer-inner .brand img {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  z-index: 90;
  padding: 10px 16px;
  border: 1px solid var(--line2);
  background: #231a14;
  color: var(--text);
  font-size: 0.84rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.map-page {
  overflow: hidden;
}

.map-page .site-header {
  position: relative;
}

.map-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: calc(100vh - 67px);
  min-height: 520px;
}

.map-sidebar {
  border-right: 1px solid var(--line);
  padding: 22px 20px;
  overflow-y: auto;
  background: rgba(12, 9, 7, 0.72);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.map-sidebar h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  letter-spacing: -0.035em;
}

.map-sidebar .map-sub {
  margin: 0 0 18px;
  color: var(--dim);
  font-size: 0.8rem;
}

.map-actions {
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
}

.map-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.map-item:hover,
.map-item.active {
  border-color: var(--mc, var(--amber));
  background: rgba(255, 255, 255, 0.05);
}

.map-item i {
  width: 9px;
  height: 9px;
  background: var(--mc, var(--amber));
  border-radius: 50%;
  box-shadow: 0 0 10px var(--mc, var(--amber));
}

.map-item span {
  font-size: 0.83rem;
  font-weight: 600;
}

.map-item small {
  font-family: var(--mono);
  font-size: 0.63rem;
  color: var(--dim);
}

.map-item-group {
  margin: 18px 0 8px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.map-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 50% 40%, rgba(35, 78, 120, 0.35), transparent 70%),
    #08131f;
}

#mapViewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  outline: none;
}

#mapViewport.dragging {
  cursor: grabbing;
}

#mapLayer {
  position: absolute;
  left: 0;
  top: 0;
  width: 8336px;
  height: 8048px;
  transform-origin: 0 0;
  will-change: transform;
}

#mapLayer > img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 3;
}

.marker .marker-dot {
  display: block;
  width: 13px;
  height: 13px;
  margin: 6px auto;
  border-radius: 50%;
  background: var(--mc);
  border: 2px solid rgba(10, 7, 5, 0.95);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc) 30%, transparent), 0 0 16px var(--mc);
}

.marker .marker-label {
  position: absolute;
  left: 50%;
  bottom: 27px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 9px;
  border: 1px solid var(--line2);
  background: rgba(16, 12, 9, 0.94);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.marker:hover .marker-label,
.marker:focus-visible .marker-label,
.marker.active .marker-label {
  opacity: 1;
}

.marker.active .marker-dot {
  transform: scale(1.25);
}

.coord-chip {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 5;
  display: flex;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line2);
  background: rgba(10, 7, 5, 0.82);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  pointer-events: none;
}

.coord-chip b {
  color: var(--text);
  font-weight: 500;
}

.map-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  gap: 6px;
}

.map-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line2);
  background: rgba(10, 7, 5, 0.86);
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 150ms ease, background 150ms ease;
}

.map-btn:hover {
  border-color: var(--amber);
  background: rgba(255, 179, 71, 0.10);
}

.map-btn.wide {
  width: auto;
  padding: 0 12px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.map-info {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 5;
  width: min(330px, calc(100% - 32px));
  border: 1px solid var(--line2);
  background: rgba(10, 7, 5, 0.9);
  backdrop-filter: blur(10px);
  padding: 14px 16px;
}

.map-info h2 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.map-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.map-info .coords {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--dim);
}

.legend {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 5;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(10, 7, 5, 0.72);
  font-size: 0.66rem;
  color: var(--muted);
  pointer-events: none;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

@media (max-width: 1100px) {
  .rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

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

  .hero-panel {
    max-width: 560px;
  }

  .map-teaser {
    grid-template-columns: 1fr;
  }

  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .map-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(420px, 1fr);
    height: auto;
    min-height: calc(100vh - 67px);
  }

  .map-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 230px;
  }

  .map-stage {
    height: calc(100vh - 300px);
    min-height: 420px;
  }

  .map-sidebar .map-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, 1240px);
  }

  .header-ip {
    display: none;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-stats div {
    padding-right: 14px;
    margin-right: 14px;
  }

  .rank-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    text-align: left;
    margin-top: 10px;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .legend {
    display: none;
  }
}

body.modal-open {
  overflow: hidden;
}

.rank-card .rank-price span {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--amber);
  letter-spacing: 0;
  text-transform: none;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 2, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--line2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    #14100c;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--amber);
}

.modal-card h2 {
  margin: 0 0 2px;
  font-size: 2.4rem;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--amber);
}

.modal-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.modal-price b {
  font-family: var(--mono);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.modal-price span {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--amber);
}

.modal-price small {
  margin-left: auto;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  margin-top: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line2);
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
}

.field input:focus {
  border-color: var(--amber);
}

.field input[aria-invalid="true"] {
  border-color: #ff8b7a;
}

.field-error {
  margin: 8px 0 0;
  color: #ff8b7a;
  font-size: 0.8rem;
}

.pay-note {
  margin: 16px 0;
  padding: 10px 12px;
  border-left: 2px solid var(--amber);
  background: rgba(255, 179, 71, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
}

.modal-submit {
  width: 100%;
}

.order-result {
  margin-top: 18px;
}

.order-ok {
  margin: 0 0 10px;
  color: #65e08a;
  font-size: 0.9rem;
}

.order-result pre {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text);
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-actions .btn {
  flex: 1;
  min-width: 160px;
}

@media (max-width: 520px) {
  .modal {
    padding: 12px;
  }

  .modal-card {
    padding: 22px 18px;
    max-height: calc(100vh - 24px);
  }

  .modal-card h2 {
    font-size: 2rem;
  }

  .order-actions {
    flex-direction: column;
  }

  .order-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
