@font-face {
  font-family: "Pangolin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/pangolin-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Pangolin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/pangolin-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Pangolin", "Segoe UI", system-ui, sans-serif;
  --slab-x: 9px;
  --slab-y: 9px;
  --slab-side: #5a6a78;
  --slab-bottom: #2a3540;
  --slab-highlight: rgba(255,255,255,0.55);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  min-width: 1400px;
  background: #081018;
  color: #e8f0f6;
  font-family: var(--font);
}
body.embed,
body.map-walk {
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
}
html:has(body.embed) {
  height: 100%;
  min-width: 0;
}
body.embed {
  height: 100%;
  overflow: auto;
  background: transparent;
}
body.embed .picker { display: none !important; }
body.embed .stage-map { display: none !important; }
body.embed .stage {
  min-height: 100%;
  height: auto;
  padding: 8px 10px 16px;
  overflow: visible;
  place-items: start center;
}
body.embed .console { min-height: min(820px, 100%); }
body.embed .hw-round.close-x { cursor: pointer; }
button, a { font-family: inherit; }

.picker {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: #0b141c;
  border-bottom: 1px solid rgba(228, 193, 106, 0.35);
}
.picker a {
  font-size: 15px;
  color: #d5e7ef;
  background: #14222c;
  border: 1px solid rgba(130, 190, 210, 0.25);
  padding: 6px 10px;
  text-decoration: none;
}
body.shot .picker { display: none !important; }
body.shot { overflow: hidden; }
body.shot .stage {
  width: 1400px;
  height: 900px;
  min-height: 900px;
  padding: 16px 20px;
}

.stage {
  min-height: calc(100vh - 46px);
  display: grid;
  place-items: center;
  padding: 20px 16px 28px;
  position: relative;
  overflow: hidden;
}
.stage-map {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(5px) saturate(0.95) brightness(0.62);
  pointer-events: none;
}

.grommet {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 5px #7d8d9a, 0 0 0 6px #c8d4de, 0 3px 0 #3e4a54;
}
.grommet.lg { width: 28px; height: 28px; }
.grommet.mid { margin: 6px auto; display: block; }

.hw-round {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #24303a;
  text-decoration: none;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 28%, #f7fbff, #9aa9b6 52%, #667684 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.75), inset 0 -4px 0 rgba(0,0,0,0.22), 0 5px 0 #3d4a54;
}
.hw-round.close-x { font-size: 26px; line-height: 1; }
.hw-pill {
  cursor: pointer;
  border: 0;
  color: #1c242c;
  padding: 8px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #e8eef4 0%, #9aa8b6 48%, #6d7c8a 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.7), inset 0 -3px 0 rgba(0,0,0,0.22), 0 5px 0 #3d4a54;
}

.tile, .eq-slot, .stat-row, .weight-bar, .relations, .vitals, .quick, .console-head, .ride-foot {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background-color: #8a9aaa;
  background-image:
    radial-gradient(circle at 11px 11px, #eef3f7 0 2.2px, #8a969e 2.8px, #3a4650 3.7px, transparent 4.1px),
    radial-gradient(circle at calc(100% - 11px) 11px, #eef3f7 0 2.2px, #8a969e 2.8px, #3a4650 3.7px, transparent 4.1px),
    radial-gradient(circle at 11px calc(100% - 11px), #d8e0e8 0 2px, #6a7884 2.6px, #2a3540 3.5px, transparent 3.9px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), #d8e0e8 0 2px, #6a7884 2.6px, #2a3540 3.5px, transparent 3.9px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(18,26,34,0.16) 21px 22px, transparent 22px 43px),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 0 8px, transparent 18px),
    linear-gradient(180deg, transparent 0 10px, rgba(0,0,0,0.12) 10px 11px, transparent 11px),
    url("assets/pult-metal-grain.png"),
    linear-gradient(160deg, rgba(255,255,255,0.42) 0%, transparent 36%),
    linear-gradient(180deg, #c5d4e2 0%, #7e8fa0 48%, #4a5a68 100%);
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, cover, auto, auto;
  background-blend-mode: normal, normal, normal, normal, multiply, overlay, overlay, multiply, overlay, normal, normal;
  box-shadow:
    inset 0 2px 0 var(--slab-highlight),
    inset 0 -5px 0 rgba(0,0,0,0.24),
    inset 8px 0 10px rgba(255,255,255,0.06),
    var(--slab-x) 0 0 var(--slab-side),
    0 var(--slab-y) 0 var(--slab-bottom),
    var(--slab-x) var(--slab-y) 0 var(--slab-bottom),
    12px 16px 14px rgba(0,0,0,0.3);
}

.console {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  display: grid;
  grid-template-columns: 80px 1fr 268px;
  gap: 14px;
  align-items: stretch;
  min-height: 820px;
}
.console-ear {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 6px;
  color: #24303a;
  border-radius: 18px 8px 18px 28px;
}
.console-ear small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.console-main { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0; }
.console-head {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 16px;
}
.console-head .surf-row { grid-column: 1 / -1; margin-bottom: 0; }
.name-stamp small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3a4650;
}
.name-stamp strong { font-size: 18px; font-weight: 400; color: #24313c; }
.tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.tabs button {
  border: 0;
  cursor: pointer;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
  color: #24313c;
  background: linear-gradient(180deg, #dfe6ee, #7d8b98);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #3e4a54;
}
.tabs button[aria-selected="true"] {
  background: linear-gradient(180deg, #9be7c2, #2f8a62);
  color: #102018;
}
.head-coins { display: flex; gap: 8px; color: #2c3842; font-size: 12px; }

.console-side { display: flex; flex-direction: column; gap: 10px; }
.person-head { border-radius: 22px; padding: 12px; color: #24313c; }
.portrait {
  overflow: hidden;
  background: transparent;
}
.id-well img,
.body-well .body-shot img,
.char-well img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
  background: transparent;
  filter: drop-shadow(3px 7px 5px rgba(0,0,0,0.45));
}
.id-well,
.body-well.char-well {
  background: transparent;
  box-shadow:
    0 0 0 3px #1c2228,
    0 0 0 7px #c5d0da,
    0 0 0 9px #5a6b78,
    8px 0 0 #4a5864,
    0 8px 0 #2a3540,
    8px 8px 0 #2a3540;
}
.id-well {
  height: 168px;
  border-radius: 14px;
}
.name-plate, .info-plate {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: inset 0 6px 10px rgba(0,0,0,0.4), 0 0 0 1px #6a7884;
}
.name-plate {
  background: linear-gradient(180deg, #d8e0e8, #9aa8b4);
}
.name-plate h1 { margin: 0; font-size: 20px; font-weight: 400; color: #24313c; }
.name-plate p { margin: 2px 0 0; color: #3a4650; }
.name-plate .sector { color: #3a5a30; }
.info-plate {
  background: linear-gradient(180deg, #3a4650, #1a2228);
  color: #d7e6ef;
}
.info-plate p { margin: 0; font-size: 13px; line-height: 1.35; }

.slab-title, .recess-label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2c3842;
  background: linear-gradient(180deg, #d5dee6, #9aa8b4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 0 0 1px #6a7884;
}
.vitals, .quick { border-radius: 16px; padding: 12px; color: #24313c; }
.vitals label { display: flex; justify-content: space-between; font-size: 12px; margin: 6px 0 2px; }
.bar {
  height: 10px;
  border-radius: 6px;
  background: #1a2228;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.55);
}
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #5ec0dc, #2f8a62); }
.bar.energy i { background: linear-gradient(90deg, #e4c16a, #a87828); }
.bar.warm i { background: linear-gradient(90deg, #e07050, #a04028); }
.quick { list-style: none; margin: 0; }
.quick li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(42,53,64,0.25); }

.panel[hidden] { display: none !important; }
.panel { min-height: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.stat-well {
  min-height: 78px;
  padding: 8px 10px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 0%, rgba(94,192,220,0.12), transparent 55%), linear-gradient(180deg, #2a3540, #10161c);
  box-shadow: inset 0 8px 12px rgba(0,0,0,0.55), 0 0 0 2px #7d8d9a, 0 3px 0 #2a3540;
  color: #e8f4ff;
}
.stat-well small { display: block; color: #9ec0d0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.stat-well b { font-size: 28px; font-weight: 400; color: #f0d27a; }
.stat-well em { display: block; font-style: normal; color: #8eacb8; font-size: 12px; }
.relations { border-radius: 16px; padding: 12px 14px; }
.reps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.reps li {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  gap: 8px;
  align-items: center;
  color: #24313c;
}
.reps i {
  height: 10px;
  border-radius: 6px;
  background: #1a2228;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.5);
  position: relative;
}
.reps i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 6px;
  background: linear-gradient(90deg, #5ec0dc, #e4c16a);
}
.reps b { text-align: right; }

.eq-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px 8px;
  border-radius: 16px;
  color: #24313c;
}
.eq-slot[data-slot]::before {
  content: attr(data-slot);
  align-self: stretch;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #2c3842;
  background: linear-gradient(180deg, #d5dee6, #9aa8b4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 0 0 1px #6a7884;
}
.well {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 34%, rgba(0,0,0,0.28) 36% 42%, transparent 44%),
    repeating-conic-gradient(from 0deg, rgba(200,214,222,0.18) 0 8deg, transparent 8deg 16deg),
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.08), transparent 42%),
    radial-gradient(circle at 50% 36%, #243038 0%, #10161c 78%);
  box-shadow:
    inset 0 10px 14px rgba(0,0,0,0.62),
    inset 0 -3px 0 rgba(255,255,255,0.08),
    6px 0 0 #4a5864,
    0 6px 0 #2a3540,
    6px 6px 0 #2a3540,
    0 0 0 4px #1a1c1e,
    0 0 0 7px #c5d0da;
}
.eq-slot.filled .well {
  box-shadow:
    inset 0 10px 14px rgba(0,0,0,0.5),
    0 0 0 2px #5ec0dc,
    0 0 0 5px #1a1c1e,
    0 0 0 8px #c5d0da,
    0 4px 0 #2a3540;
}
.well img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; display: block; }
.eq-slot b {
  margin: 0;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 400;
  color: #3a3220;
  background: linear-gradient(180deg, #e8d7a4, #c4a45a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
.eq-slot small { font-size: 11px; color: #4a5a66; text-transform: uppercase; letter-spacing: 0.06em; }
.eq-slot.tiny { padding: 6px 4px; }
.eq-slot.tiny .well { width: 52px; height: 52px; }
.eq-slot.tiny b { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gear-orbit {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  gap: 10px;
  min-height: 520px;
}
.gear-orbit .eq-slot:nth-child(1) { grid-column: 1; grid-row: 1; }
.gear-orbit .eq-slot:nth-child(2) { grid-column: 3; grid-row: 1; }
.gear-orbit .eq-slot:nth-child(3) { grid-column: 1; grid-row: 2; }
.gear-orbit .body-well { grid-column: 2; grid-row: 1 / 4; }
.gear-orbit .eq-slot:nth-child(5) { grid-column: 3; grid-row: 2; }
.gear-orbit .eq-slot:nth-child(6) { grid-column: 1; grid-row: 3; }
.gear-orbit .eq-slot:nth-child(7) { grid-column: 3; grid-row: 3; }

.body-well, .vehicle-well {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  min-height: 240px;
  max-height: 420px;
  background:
    repeating-conic-gradient(from 0deg, rgba(180,196,208,0.12) 0 6deg, transparent 6deg 14deg),
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.05), transparent 46%),
    #0d1418;
  box-shadow:
    inset 0 18px 32px rgba(0,0,0,0.45),
    0 0 0 7px #1a1c1e,
    0 0 0 14px #c8d4de,
    0 0 0 16px #5a6b78,
    9px 0 0 #4a5864,
    0 12px 0 #2a3540,
    9px 12px 0 #2a3540;
}
.body-well.char-well,
.vehicle-well.char-well {
  background: transparent;
  box-shadow:
    0 0 0 7px #1a1c1e,
    0 0 0 14px #c8d4de,
    0 0 0 16px #5a6b78,
    9px 0 0 #4a5864,
    0 12px 0 #2a3540,
    9px 12px 0 #2a3540;
}
.body-well .body-shot { height: 100%; min-height: 240px; }
.body-well p, .vehicle-well p {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  padding: 3px 12px 2px;
  border-radius: 4px;
  font-size: 13px;
  color: #2c3842;
  background: linear-gradient(180deg, #d8e0e8, #9aa8b4);
  box-shadow: 0 0 0 1px #6a7884, 1px 2px 0 #2a3540;
  white-space: nowrap;
}
.veh-photo, .exo-photo {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center 48%;
  display: block;
}

.weight-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  color: #24313c;
}
.weight-bar b { font-weight: 400; color: #3a3220; background: linear-gradient(180deg, #e8d7a4, #c4a45a); padding: 2px 8px; border-radius: 3px; }
.weight-bar em { font-style: normal; color: #3a4650; }
.well-grid { display: grid; gap: 8px; }
.pack-grid { grid-template-columns: repeat(6, 1fr); }
.store-grid { grid-template-columns: repeat(8, 1fr); }
.store-grid .eq-slot.tiny .well { width: 44px; height: 44px; }

.exo-board {
  display: grid;
  grid-template-columns: 140px 1fr 140px 200px;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 520px;
}
.exo-board .eq-slot:nth-child(1) { grid-column: 2; }
.exo-board .eq-slot:nth-child(2) { grid-column: 1; grid-row: 2; }
.exo-well { grid-column: 2; grid-row: 2; min-height: 220px; }
.exo-board .eq-slot:nth-child(4) { grid-column: 3; grid-row: 2; }
.exo-board .eq-slot:nth-child(5) { grid-column: 2; grid-row: 3; }
.exo-board .eq-slot:nth-child(6) { grid-column: 1; grid-row: 3; }
.exo-board .eq-slot:nth-child(7) { grid-column: 3; grid-row: 3; }
.exo-info { grid-column: 4; grid-row: 1 / 4; border-radius: 16px; padding: 12px; color: #24313c; }
.exo-info p { display: flex; justify-content: space-between; margin: 6px 0; }
.exo-info .info-plate { display: block; }

#panel-camp:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.camp-board {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px 12px 14px;
  border-radius: 16px;
  margin-bottom: 10px;
  min-height: 0;
  overflow: visible;
}
.camp-board .surf-row { width: 100%; margin: 0; }
.camp-board-stage {
  position: relative;
  width: min(100%, 420px, 44vh);
  aspect-ratio: 1 / 1;
}
.camp-board-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 10px;
  background: transparent;
  pointer-events: none;
}
.camp-zone {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  appearance: none;
  box-shadow: none;
}
.camp-zone span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.camp-zone-rest { left: 28%; top: 5%; width: 44%; height: 34%; }
.camp-zone-cook { left: 13%; top: 47%; width: 34%; height: 33%; }
.camp-zone-craft { left: 55%; top: 50%; width: 34%; height: 30%; }
.camp-zone:hover,
.camp-zone:focus-visible {
  border-color: rgba(200, 220, 228, 0.7);
  box-shadow: 0 0 0 1px rgba(26, 30, 36, 0.55);
  outline: none;
}
.camp-zone.selected,
.camp-zone[aria-pressed="true"] {
  border-color: #e8f6f8;
  box-shadow:
    0 0 0 2px #1a1e24,
    0 0 0 4px rgba(168, 208, 216, 0.9);
}
.camp-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.camp-grid .eq-slot { padding: 4px 2px 6px; }
.camp-grid .eq-slot .well { width: 40px; height: 40px; }
.camp-grid .eq-slot[data-slot]::before { font-size: 8px; padding: 1px 3px; }
.camp-grid .eq-slot b { font-size: 9px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp-grid .eq-slot small { font-size: 9px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  margin-bottom: 10px;
}
.orbit {
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  grid-template-rows: 130px minmax(220px, 1fr) 130px;
  gap: 10px;
  min-height: 460px;
}
.hole-plate {
  align-self: center;
  justify-self: center;
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 40px;
  background-image: url("assets/pult-metal-grain.png"), linear-gradient(180deg, #c9d6e4, #6a7b8a);
  background-size: cover, auto;
  background-blend-mode: overlay, normal;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.55), 0 6px 0 #2a3540;
}
.ride-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 16px;
  margin-top: 10px;
}
.mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #1a2228, #05080b);
  box-shadow: inset 0 8px 10px rgba(0,0,0,0.7), 0 0 0 3px #1a1c1e, 0 0 0 6px #c5d0da;
}
.mini.filled {
  background: radial-gradient(circle at 34% 28%, #e8eef4, #8a9aaa 55%, #4a5a68);
  box-shadow: 0 0 0 2px #5ec0dc, 0 0 0 5px #1a1c1e, 0 0 0 8px #c5d0da;
}

/* ===== tab materials: wood / leather / fabric / plastic / stone ===== */
.mat-wood,
body[data-tab="stats"] .console-ear,
body[data-tab="stats"] .console-head,
body[data-tab="stats"] .console-side .tile {
  --slab-side: #6a4420;
  --slab-bottom: #2e1a0c;
  background-color: #8a6238;
  background-image:
    radial-gradient(circle at 12px 12px, #e8d090 0 2px, #8a6230 2.6px, #3a2410 3.5px, transparent 4px),
    radial-gradient(circle at calc(100% - 12px) 12px, #e8d090 0 2px, #8a6230 2.6px, #3a2410 3.5px, transparent 4px),
    radial-gradient(circle at 12px calc(100% - 12px), #c8a060 0 1.8px, #5a3818 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #c8a060 0 1.8px, #5a3818 2.5px, transparent 3px),
    radial-gradient(ellipse 18px 8px at 38% 42%, rgba(40,20,8,0.35), transparent 70%),
    repeating-linear-gradient(92deg, transparent 0 13px, rgba(90,50,16,0.18) 13px 14px, transparent 14px 27px),
    repeating-linear-gradient(180deg, rgba(255,220,160,0.1) 0 1px, transparent 1px 4px),
    url("assets/pult-mat-wood.png"),
    linear-gradient(180deg, rgba(255,220,160,0.18), transparent 40%);
  background-size: auto, auto, auto, auto, 80px 40px, auto, auto, cover, auto;
  background-blend-mode: normal, normal, normal, normal, multiply, multiply, overlay, multiply, normal;
  box-shadow:
    inset 0 2px 0 rgba(255,230,180,0.35),
    inset 0 -6px 0 rgba(40,20,8,0.4),
    9px 0 0 #6a4420,
    0 9px 0 #2e1a0c,
    9px 9px 0 #2e1a0c,
    12px 14px 16px rgba(0,0,0,0.35);
  color: #2a180c;
}
.mat-wood .eq-slot,
.mat-wood .stat-well,
.mat-wood .relations,
.mat-wood .weight-bar,
.mat-wood .tile {
  background-image:
    radial-gradient(circle at 10px 10px, #e8d090 0 2px, #8a6230 2.6px, #3a2410 3.5px, transparent 4px),
    repeating-linear-gradient(88deg, transparent 0 11px, rgba(70,38,12,0.16) 11px 12px),
    url("assets/pult-mat-wood.png"),
    linear-gradient(180deg, rgba(255,220,160,0.12), transparent 50%);
  background-size: auto, auto, cover, auto;
  background-blend-mode: normal, multiply, multiply, normal;
  box-shadow:
    inset 0 2px 0 rgba(255,230,180,0.3),
    inset 0 -4px 0 rgba(40,20,8,0.35),
    8px 0 0 #6a4420,
    0 8px 0 #2e1a0c,
    8px 8px 0 #2e1a0c;
}
.mat-wood .stat-well {
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(232,200,120,0.08) 14px 15px),
    radial-gradient(circle at 50% 0%, rgba(232,200,120,0.12), transparent 50%),
    linear-gradient(180deg, #3a2414, #140c08);
  color: #f3e2b8;
  box-shadow:
    inset 0 8px 12px rgba(0,0,0,0.55),
    0 0 0 3px #8a6230,
    8px 0 0 #6a4420,
    0 8px 0 #2e1a0c,
    8px 8px 0 #2e1a0c;
}
.mat-wood .stat-well small { color: #c8a060; }
.mat-wood .stat-well b { color: #f0d27a; }
.mat-wood .stat-well em { color: #b89460; }
.mat-wood .slab-title,
.mat-wood .eq-slot[data-slot]::before,
.mat-wood .recess-label {
  color: #3a2410;
  background: linear-gradient(180deg, #d4a050, #8a5a20);
  box-shadow: inset 0 1px 0 rgba(255,230,160,0.45), 0 0 0 1px #5a3810;
}
.mat-wood .reps li { color: #2a180c; }
.mat-wood .reps i { background: #1a1008; }
.mat-wood .reps i::after { background: linear-gradient(90deg, #c87828, #e8c060); }

.mat-leather,
body[data-tab="gear"] .console-ear,
body[data-tab="gear"] .console-head,
body[data-tab="gear"] .console-side .tile {
  --slab-side: #4a2818;
  --slab-bottom: #241208;
  background-color: #6a3e28;
  background-image:
    radial-gradient(circle at 12px 12px, #c8a070 0 2.2px, #5a3018 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 12px) 12px, #c8a070 0 2.2px, #5a3018 3px, transparent 3.5px),
    radial-gradient(circle at 12px calc(100% - 12px), #a07040 0 2px, #3a1c10 2.8px, transparent 3.3px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #a07040 0 2px, #3a1c10 2.8px, transparent 3.3px),
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(40,16,8,0.28) 9px 10px, transparent 10px 11px, rgba(40,16,8,0.18) 11px 12px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(40,16,8,0.2) 18px 19px),
    url("assets/pult-mat-leather.png"),
    linear-gradient(180deg, rgba(200,150,90,0.2), transparent 42%);
  background-size: auto, auto, auto, auto, auto, auto, cover, auto;
  background-blend-mode: normal, normal, normal, normal, multiply, multiply, multiply, normal;
  box-shadow:
    inset 0 2px 0 rgba(230,190,140,0.35),
    inset 0 -6px 0 rgba(40,18,8,0.45),
    9px 0 0 #4a2818,
    0 9px 0 #241208,
    9px 9px 0 #241208;
  color: #2a160c;
}
.mat-leather .eq-slot,
.mat-leather .tile {
  background-image:
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(40,16,8,0.22) 10px 11px),
    url("assets/pult-mat-leather.png"),
    linear-gradient(180deg, rgba(200,150,90,0.12), transparent 50%);
  background-size: auto, cover, auto;
  background-blend-mode: multiply, multiply, normal;
  box-shadow:
    inset 0 2px 0 rgba(230,190,140,0.28),
    8px 0 0 #4a2818,
    0 8px 0 #241208,
    8px 8px 0 #241208;
}
.mat-leather .eq-slot[data-slot]::before,
.mat-leather .slab-title {
  color: #3a2010;
  background: linear-gradient(180deg, #c4a070, #7a4a28);
  box-shadow: inset 0 1px 0 rgba(255,220,180,0.4), 0 0 0 1px #4a2814;
}
.mat-leather .well {
  box-shadow:
    inset 0 10px 14px rgba(0,0,0,0.7),
    0 0 0 4px #2a140c,
    0 0 0 7px #8a5a38,
    0 4px 0 #3a1c10;
}
.mat-leather .eq-slot.filled .well {
  box-shadow:
    inset 0 10px 14px rgba(0,0,0,0.5),
    0 0 0 2px #c47838,
    0 0 0 5px #2a140c,
    0 0 0 8px #8a5a38,
    0 4px 0 #3a1c10;
}
.mat-leather .body-well {
  box-shadow:
    0 0 0 7px #2a140c,
    0 0 0 14px #8a5a38,
    0 0 0 16px #4a2818,
    9px 0 0 #4a2818,
    0 12px 0 #241208,
    9px 12px 0 #241208;
}
.mat-leather .body-well:not(.char-well) {
  box-shadow:
    inset 0 18px 32px rgba(0,0,0,0.55),
    0 0 0 7px #2a140c,
    0 0 0 14px #8a5a38,
    0 0 0 16px #4a2818,
    9px 0 0 #4a2818,
    0 12px 0 #241208,
    9px 12px 0 #241208;
}
.mat-leather .body-well p {
  background: linear-gradient(180deg, #c4a070, #7a4a28);
  color: #2a160c;
}

.mat-fabric,
body[data-tab="pack"] .console-ear,
body[data-tab="pack"] .console-head,
body[data-tab="pack"] .console-side .tile {
  --slab-side: #4a4c30;
  --slab-bottom: #262818;
  background-color: #6a7048;
  background-image:
    radial-gradient(circle at 12px 12px, #d0d4a0 0 2px, #5a5c30 2.8px, transparent 3.3px),
    radial-gradient(circle at calc(100% - 12px) 12px, #d0d4a0 0 2px, #5a5c30 2.8px, transparent 3.3px),
    repeating-linear-gradient(45deg, rgba(20,24,8,0.1) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(255,255,220,0.07) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(30,32,12,0.2) 16px 17px),
    url("assets/pult-mat-fabric.png"),
    linear-gradient(180deg, rgba(200,210,150,0.15), transparent 40%);
  background-size: auto, auto, auto, auto, auto, cover, auto;
  background-blend-mode: normal, normal, multiply, overlay, multiply, multiply, normal;
  box-shadow:
    inset 0 2px 0 rgba(220,230,180,0.28),
    inset 0 -6px 0 rgba(30,32,16,0.4),
    9px 0 0 #4a4c30,
    0 9px 0 #262818,
    9px 9px 0 #262818;
  color: #242810;
}
.mat-fabric .eq-slot,
.mat-fabric .weight-bar,
.mat-fabric .tile {
  background-image:
    repeating-linear-gradient(45deg, rgba(20,24,8,0.08) 0 2px, transparent 2px 4px),
    url("assets/pult-mat-fabric.png");
  background-size: auto, cover;
  box-shadow:
    inset 0 2px 0 rgba(220,230,180,0.25),
    8px 0 0 #4a4c30,
    0 7px 0 #262818,
    8px 7px 0 #262818;
}
.mat-fabric .eq-slot[data-slot]::before,
.mat-fabric .recess-label,
.mat-fabric .slab-title {
  color: #2a2c14;
  background: linear-gradient(180deg, #c8c070, #6a6c38);
  box-shadow: 0 0 0 1px #4a4c28;
}
.mat-fabric .well {
  border-radius: 12px;
  box-shadow:
    inset 0 10px 14px rgba(0,0,0,0.65),
    0 0 0 3px #2a2c14,
    0 0 0 6px #8a8c58,
    0 3px 0 #3a3c24;
}
.mat-fabric .eq-slot.filled .well {
  box-shadow:
    inset 0 10px 12px rgba(0,0,0,0.5),
    0 0 0 2px #b8c060,
    0 0 0 5px #2a2c14,
    0 0 0 8px #8a8c58,
    0 3px 0 #3a3c24;
}
.mat-fabric .weight-bar b {
  background: linear-gradient(180deg, #c8c070, #8a8c40);
  color: #2a2c14;
}

.mat-plastic,
body[data-tab="exo"] .console-ear,
body[data-tab="exo"] .console-head,
body[data-tab="exo"] .console-side .tile {
  --slab-side: #3a4c58;
  --slab-bottom: #1a2830;
  background-color: #7a8a96;
  background-image:
    radial-gradient(circle at 12px 12px, #e8f4f8 0 2.2px, #4a6a78 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 12px) 12px, #e8f4f8 0 2.2px, #4a6a78 3px, transparent 3.5px),
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.28) 46%, transparent 54%),
    repeating-linear-gradient(90deg, transparent 0 19px, rgba(20,40,50,0.12) 19px 20px),
    url("assets/pult-mat-plastic.png"),
    linear-gradient(180deg, rgba(180,230,240,0.22), transparent 40%);
  background-size: auto, auto, auto, auto, cover, auto;
  background-blend-mode: normal, normal, overlay, multiply, overlay, normal;
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,0.45),
    inset 0 -5px 0 rgba(20,30,40,0.25),
    9px 0 0 #3a4c58,
    0 9px 0 #1a2830,
    9px 9px 0 #1a2830;
  color: #1c2830;
}
.mat-plastic .eq-slot,
.mat-plastic .tile,
.mat-plastic .exo-info {
  background-image:
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.18) 47%, transparent 54%),
    url("assets/pult-mat-plastic.png");
  background-size: auto, cover;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.4),
    8px 0 0 #3a4c58,
    0 8px 0 #1a2830,
    8px 8px 0 #1a2830;
}
.mat-plastic .eq-slot[data-slot]::before,
.mat-plastic .slab-title {
  color: #102028;
  background: linear-gradient(180deg, #b8e8f0, #4aa0b0);
  box-shadow: 0 0 0 1px #2a6070;
}
.mat-plastic .well {
  border-radius: 14px;
  box-shadow:
    inset 0 8px 12px rgba(0,0,0,0.55),
    0 0 0 2px #7ce8f4,
    0 0 0 5px #1a2830,
    0 0 0 8px #8ab0bc;
}
.mat-plastic .exo-well {
  border-radius: 28px;
  box-shadow:
    inset 0 18px 28px rgba(0,0,0,0.5),
    0 0 0 4px #7ce8f4,
    0 0 0 12px #8ab0bc,
    0 10px 0 #2a3844;
}
.mat-plastic .exo-well p,
.mat-plastic .info-plate {
  background: linear-gradient(180deg, #2a3844, #101820);
  color: #d0f0f6;
}

.mat-stone,
body[data-tab="camp"] .console-ear,
body[data-tab="camp"] .console-head,
body[data-tab="camp"] .console-side .tile {
  --slab-side: #3a4048;
  --slab-bottom: #1a1e24;
  background-color: #5a6068;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(220,224,228,0.18) 0 3px, transparent 4px),
    radial-gradient(circle at 72% 62%, rgba(20,22,26,0.35) 0 4px, transparent 6px),
    radial-gradient(circle at 44% 78%, rgba(180,186,192,0.2) 0 2px, transparent 3px),
    repeating-linear-gradient(12deg, transparent 0 22px, rgba(0,0,0,0.12) 22px 23px),
    url("assets/pult-mat-stone.png"),
    linear-gradient(180deg, rgba(200,210,220,0.12), transparent 40%);
  background-size: auto, auto, auto, auto, cover, auto;
  background-blend-mode: overlay, multiply, overlay, multiply, multiply, normal;
  box-shadow:
    inset 0 2px 0 rgba(220,230,236,0.25),
    inset 0 -6px 0 rgba(16,18,22,0.5),
    9px 0 0 #3a4048,
    0 9px 0 #1a1e24,
    9px 9px 0 #1a1e24;
  color: #e8eef2;
}
.mat-stone .eq-slot,
.mat-stone .weight-bar,
.mat-stone .tile,
.mat-stone .info-plate {
  background-image:
    radial-gradient(circle at 30% 40%, rgba(0,0,0,0.18) 0 3px, transparent 5px),
    url("assets/pult-mat-stone.png");
  background-size: auto, cover;
  color: #e8eef2;
  box-shadow:
    inset 0 2px 0 rgba(220,230,236,0.2),
    8px 0 0 #3a4048,
    0 8px 0 #1a1e24,
    8px 8px 0 #1a1e24;
}
.mat-stone .eq-slot[data-slot]::before,
.mat-stone .recess-label,
.mat-stone .slab-title {
  color: #e8eef2;
  background: linear-gradient(180deg, #6a7078, #3a4048);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 0 1px #1a1e24;
}
.mat-stone .eq-slot b {
  background: linear-gradient(180deg, #c8ccd0, #8a9098);
  color: #1a1e24;
}
.mat-stone .eq-slot small { color: #c0c8d0; }
.mat-stone .well {
  border-radius: 8px;
  box-shadow:
    inset 0 12px 16px rgba(0,0,0,0.75),
    0 0 0 4px #1a1e24,
    0 0 0 7px #8a9098,
    0 4px 0 #2a2e34;
}
.mat-stone .eq-slot.filled .well {
  box-shadow:
    inset 0 10px 14px rgba(0,0,0,0.6),
    0 0 0 2px #a8d0d8,
    0 0 0 5px #1a1e24,
    0 0 0 8px #8a9098,
    0 4px 0 #2a2e34;
}
.mat-stone .info-plate {
  color: #d8e0e6;
}
.mat-stone .weight-bar b {
  background: linear-gradient(180deg, #c8ccd0, #8a9098);
  color: #1a1e24;
}

.mat-crate .eq-slot,
.mat-crate .weight-bar {
  background-image: url("assets/pult-mat-wood.png"), url("assets/pult-metal-grain.png");
  background-size: cover, cover;
  background-blend-mode: multiply, overlay;
}

.camp-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }

body[data-tab="stats"] .tabs button[aria-selected="true"] { background: linear-gradient(180deg, #e0b060, #8a5a20); color: #2a180c; }
body[data-tab="gear"] .tabs button[aria-selected="true"] { background: linear-gradient(180deg, #c48850, #6a3a20); color: #2a160c; }
body[data-tab="pack"] .tabs button[aria-selected="true"] { background: linear-gradient(180deg, #b8bc70, #5a5c30); color: #242810; }
body[data-tab="exo"] .tabs button[aria-selected="true"] { background: linear-gradient(180deg, #8ee0ec, #3a8898); color: #102028; }
body[data-tab="camp"] .tabs button[aria-selected="true"] { background: linear-gradient(180deg, #8a9098, #3a4048); color: #e8eef2; }
body[data-tab="ride"] .tabs button[aria-selected="true"],
#pult-overlay[data-tab="ride"] .tabs button[aria-selected="true"] {
  background: linear-gradient(180deg, #d5dee8, #6a7b8a);
  color: #1c242c;
}
body[data-tab="store"] .tabs button[aria-selected="true"],
#pult-overlay[data-tab="store"] .tabs button[aria-selected="true"] {
  background: linear-gradient(180deg, #d4a050, #8a5a20);
  color: #2a180c;
}

body[data-tab="ride"] .console-ear,
body[data-tab="ride"] .console-head,
body[data-tab="ride"] .console-side .tile,
#pult-overlay[data-tab="ride"] .console-ear,
#pult-overlay[data-tab="ride"] .console-head,
#pult-overlay[data-tab="ride"] .console-side .tile {
  --slab-side: #4a5864;
  --slab-bottom: #243038;
  background-color: #8a9aaa;
  background-image:
    radial-gradient(circle at 11px 11px, #eef3f7 0 2px, #8a969e 2.6px, #3a4650 3.5px, transparent 4px),
    radial-gradient(circle at calc(100% - 11px) 11px, #eef3f7 0 2px, #8a969e 2.6px, #3a4650 3.5px, transparent 4px),
    repeating-linear-gradient(90deg, transparent 0 17px, rgba(20,28,36,0.18) 17px 18px),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.1) 0 1px, transparent 1px 4px),
    url("assets/pult-metal-grain.png"),
    linear-gradient(180deg, rgba(255,255,255,0.28) 0%, transparent 36%),
    linear-gradient(180deg, #c5d4e2 0%, #7e8fa0 48%, #4a5a68 100%);
  background-size: auto, auto, auto, auto, cover, auto, auto;
  background-blend-mode: normal, normal, multiply, overlay, overlay, normal, normal;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.5),
    inset 0 -5px 0 rgba(0,0,0,0.22),
    9px 0 0 #4a5864,
    0 9px 0 #243038,
    9px 9px 0 #243038;
}

body[data-tab="store"] .console-ear,
body[data-tab="store"] .console-head,
body[data-tab="store"] .console-side .tile,
#pult-overlay[data-tab="store"] .console-ear,
#pult-overlay[data-tab="store"] .console-head,
#pult-overlay[data-tab="store"] .console-side .tile {
  --slab-side: #6a4420;
  --slab-bottom: #2e1a0c;
  background-color: #8a6238;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(40,20,8,0.2) 22px 23px),
    url("assets/pult-mat-wood.png"),
    url("assets/pult-metal-grain.png"),
    linear-gradient(180deg, rgba(255,220,160,0.16), transparent 40%);
  background-size: auto, cover, cover, auto;
  background-blend-mode: multiply, multiply, overlay, normal;
  box-shadow:
    inset 0 2px 0 rgba(255,230,180,0.28),
    9px 0 0 #6a4420,
    0 9px 0 #2e1a0c,
    9px 9px 0 #2e1a0c;
}

.console {
  padding-bottom: 14px;
  padding-right: 8px;
}

.tile::before,
.console-ear::before,
.stat-well::before,
.exo-info::before,
.hole-plate::before {
  content: "";
  position: absolute;
  top: 7px;
  right: -9px;
  width: 9px;
  bottom: 1px;
  background: linear-gradient(180deg, var(--slab-side), var(--slab-bottom));
  transform: skewY(-26deg);
  transform-origin: top right;
  pointer-events: none;
  border-radius: 0 3px 2px 0;
}

.tile::after,
.console-ear::after,
.eq-slot::after,
.stat-well::after,
.exo-info::after,
.hole-plate::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 0;
  bottom: -9px;
  height: 9px;
  background: var(--slab-bottom);
  transform: skewX(-26deg);
  transform-origin: top left;
  pointer-events: none;
  border-radius: 0 0 4px 2px;
}

.surf-row {
  display: flex;
  gap: 5px;
  margin: 0 0 8px;
}
.surf-row i {
  flex: 1;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(255,255,255,0.12) 45%, rgba(0,0,0,0.35));
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.22);
}
.surf-screws {
  display: flex;
  justify-content: space-between;
  margin: 6px 0 0;
  pointer-events: none;
}
.surf-screws i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8eef4, #8a969e 55%, #3a4650);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 0 #1a2228;
}
.tabs button {
  position: relative;
  box-shadow:
    inset 0 1px 0 #fff,
    4px 0 0 #3e4a54,
    0 3px 0 #3e4a54,
    4px 3px 0 #3e4a54;
}
