:root {
  color-scheme: dark;
  --bg: #1b1a2e;
  --bg-2: #22203a;
  --panel: #2c2947;
  --panel-2: #3a3661;
  --panel-hi: #4d4880;
  --panel-lo: #1c1a31;
  --line: #4b4778;
  --text: #f4f1ff;
  --muted: #a9a3d6;
  --yellow: #ffd23f;
  --yellow-hi: #fff09a;
  --yellow-lo: #c99a00;
  --danger: #ff5c7a;
  --wood: #7a4a22;
  --wood-hi: #a8703c;
  --wood-lo: #4e2c10;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: "VT323", monospace;
  font-size: 20px;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255, 210, 63, 0.08), transparent 45%),
    linear-gradient(45deg, var(--bg-2) 25%, transparent 25%, transparent 75%, var(--bg-2) 75%),
    linear-gradient(45deg, var(--bg-2) 25%, transparent 25%, transparent 75%, var(--bg-2) 75%);
  background-size: auto, 16px 16px, 16px 16px;
  background-position: 0 0, 0 0, 8px 8px;
}

h1, h2, h3, button, .stat, .park-title {
  font-family: "Press Start 2P", monospace;
}

/* ---------- Pixel icons ---------- */
.ico {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  vertical-align: middle;
}
.ico.logo { width: 44px; height: 44px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background:
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255, 255, 255, 0.02) 30px 32px),
    linear-gradient(#17162b, #100f20);
  border-bottom: 4px solid #000;
  box-shadow: inset 0 -4px 0 var(--yellow), 0 4px 0 rgba(0, 0, 0, 0.4);
  padding-bottom: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.topbar h1 {
  margin: 0;
  font-size: 18px;
  color: var(--yellow);
  text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 4px 4px 0 var(--yellow-lo);
  letter-spacing: 1px;
}
.tagline { margin: 4px 0 0; color: var(--muted); font-size: 18px; }

.stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--panel-lo);
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 var(--panel-2), inset -2px -2px 0 #0c0b18;
  min-width: 108px;
}
.stat > div { display: flex; flex-direction: column; gap: 4px; }
.stat .label { font-size: 7px; color: var(--muted); }
.stat .value { font-size: 12px; color: var(--yellow); }
.stat .ico { width: 24px; height: 24px; }
.stat.coins .value { color: var(--yellow-hi); }
.stat .value.bump { animation: bump 0.25s ease-out; }
@keyframes bump { 50% { transform: scale(1.15); } }

/* ---------- Layout ---------- */
.layout {
  display: flex;
  gap: 18px;
  padding: 18px;
  align-items: flex-start;
}

.park { flex: 1; min-width: 0; }

.park-frame {
  padding: 8px;
  background: var(--wood);
  border: 4px solid #000;
  box-shadow:
    inset 3px 3px 0 var(--wood-hi),
    inset -3px -3px 0 var(--wood-lo),
    6px 6px 0 rgba(0, 0, 0, 0.6);
  background-image: repeating-linear-gradient(0deg, transparent 0 6px, rgba(0, 0, 0, 0.12) 6px 7px);
}
.park-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: #ffe9c4;
  text-shadow: 2px 2px 0 var(--wood-lo);
  padding: 2px 4px 8px;
}
.park-info { color: #ffe9c4; opacity: 0.85; }

#game {
  display: block;
  width: 100%;
  height: clamp(360px, 64vh, 760px);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 3px solid #000;
  background: #3f8a3a;
  touch-action: none;
  cursor: crosshair;
}

.hint-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--panel-lo);
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 var(--panel-2), 4px 4px 0 rgba(0, 0, 0, 0.5);
}
.hint { color: var(--text); margin: 0; min-height: 1.2em; }
.hint-bar { cursor: pointer; }
.tip-tag {
  display: inline-block; margin-right: 8px; padding: 2px 4px; vertical-align: 2px;
  font-family: "Press Start 2P", monospace; font-size: 7px; font-weight: normal; color: #000; background: #7df9ff; border: 2px solid #000;
}
.hint.tip-in { animation: tip-in 0.4s ease-out; }
@keyframes tip-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hint.tip-in { animation: none; } }
/* hover explanations */
.tooltip {
  position: fixed; z-index: 1000; max-width: 280px; padding: 6px 9px; pointer-events: none;
  font-size: 17px; line-height: 1.1; color: var(--text); background: var(--panel-lo);
  border: 3px solid #000; box-shadow: inset 2px 2px 0 var(--panel-2), 4px 4px 0 rgba(0, 0, 0, 0.5);
}
.tooltip b { display: block; margin-bottom: 3px; font-family: "Press Start 2P", monospace; font-size: 8px; font-weight: normal; color: var(--yellow); }
.tooltip span { display: block; }

/* ---------- Side panel ---------- */
.panel {
  width: 350px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--panel);
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 4px;
  border: 3px solid #000;
  box-shadow:
    inset 3px 3px 0 var(--panel-hi),
    inset -3px -3px 0 var(--panel-lo),
    5px 5px 0 rgba(0, 0, 0, 0.6);
  padding: 0 12px 12px;
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  margin: 0 -12px 12px;
  padding: 9px 12px;
  color: #1b1400;
  background:
    repeating-linear-gradient(-45deg, transparent 0 6px, rgba(0, 0, 0, 0.07) 6px 12px),
    var(--yellow);
  border-bottom: 3px solid #000;
  box-shadow: inset 3px 3px 0 var(--yellow-hi), inset -3px -3px 0 var(--yellow-lo);
}
.card h2 small { margin-left: auto; color: #3a2a00; font-size: 9px; }
/* collapsible cards: click the header to fold one away */
.page > .card > h2 { cursor: pointer; user-select: none; }
.page > .card > h2::after { content: "\25BE"; margin-left: 8px; font-family: "VT323", monospace; font-size: 22px; line-height: 0; color: #3a2a00; }
.page > .card > h2:not(:has(small))::after { margin-left: auto; }
.page > .card.collapsed > h2::after { content: "\25B8"; }
.page > .card > h2:focus-visible { outline: 3px solid #7df9ff; outline-offset: -3px; }
.page > .card.collapsed { padding-bottom: 0; }
.page > .card.collapsed > h2 { margin-bottom: 0; border-bottom: none; }
.page > .card.collapsed > :not(h2) { display: none !important; }
.card h3 { font-size: 8px; margin: 14px 0 8px; color: var(--muted); display: flex; justify-content: space-between; }
.small { font-size: 18px; color: var(--muted); margin: 0 0 8px; }

.progress {
  height: 12px;
  margin-bottom: 10px;
  background: var(--panel-lo);
  border: 2px solid #000;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 6px, var(--yellow-lo) 6px 8px);
  transition: width 0.4s;
}

/* ---------- Buttons ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; }

button {
  font-size: 9px;
  line-height: 1.4;
  color: var(--text);
  background: var(--panel-2);
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 var(--panel-hi), inset -2px -2px 0 var(--panel-lo), 3px 3px 0 #000;
  padding: 8px 10px;
  cursor: pointer;
}
button small { display: block; font-size: 7px; color: var(--yellow); margin-top: 4px; }
button:hover:not(:disabled) { background: var(--panel-hi); }
button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: inset 2px 2px 0 var(--panel-lo), 1px 1px 0 #000; }
button:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.6); }

button.tool {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  text-align: left;
  padding: 8px;
}
button.tool .ico { grid-row: 1 / 3; width: 24px; height: 24px; }
button.tool small { margin-top: 2px; }
button.tool.active {
  background: var(--yellow);
  color: #000;
  box-shadow: inset 2px 2px 0 var(--yellow-hi), inset -2px -2px 0 var(--yellow-lo), 3px 3px 0 #000;
}
button.tool.active small { color: #3a2a00; }

button.big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: var(--yellow);
  color: #000;
  font-size: 12px;
  box-shadow: inset 3px 3px 0 var(--yellow-hi), inset -3px -3px 0 var(--yellow-lo), 4px 4px 0 #000;
}
button.big:hover:not(:disabled) { background: #ffdc66; }
button.big small { color: #3a2a00; font-size: 8px; }
button.big .egg-ico { width: 32px; height: 32px; }
button.big:not(:disabled) .egg-ico { animation: wobble 1.4s ease-in-out infinite; }
@keyframes wobble { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-12deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }
button.danger { background: #6a2438; box-shadow: inset 2px 2px 0 #9a3a55, inset -2px -2px 0 #3a1220, 3px 3px 0 #000; }

/* ---------- Slots ---------- */
.inventory, .index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 6px;
}

.slot {
  --rc: #c9c5e8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px 5px;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%), var(--panel-lo);
  border: 2px solid #000;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 55%, transparent);
  font-size: 15px;
  text-align: center;
  line-height: 1;
}
.slot.locked { background: var(--panel-lo); box-shadow: inset 0 0 0 2px #2a2745; color: var(--muted); }
button.slot { font-family: "VT323", monospace; font-size: 15px; color: var(--text); }
button.slot:hover { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 40%, transparent), transparent 70%), var(--panel-2); }
button.slot.selected { background: var(--yellow); color: #000; box-shadow: inset 0 0 0 2px var(--yellow-hi); }
.slot canvas { width: 36px; height: 36px; image-rendering: pixelated; }
.slot .rar { font-size: 12px; }
.slot .new {
  position: absolute;
  top: -6px;
  right: -4px;
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  padding: 2px 3px;
  background: var(--danger);
  color: #fff;
  border: 2px solid #000;
}
.empty {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  grid-column: 1 / -1;
  padding: 10px;
  border: 2px dashed var(--line);
  text-align: center;
}

/* ---------- Enclosure inspector ---------- */
.enc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.enc-stat {
  background: var(--panel-lo);
  border: 2px solid #000;
  padding: 6px 8px;
  font-size: 18px;
}
.enc-stat b { display: block; font-family: "Press Start 2P", monospace; font-size: 10px; color: var(--yellow); margin-top: 4px; font-weight: normal; }
.enc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  margin-bottom: 4px;
  background: var(--panel-lo);
  border: 2px solid #000;
}
.enc-row canvas { width: 32px; height: 32px; image-rendering: pixelated; }
.enc-row span { flex: 1; }
.enc-row span em { display: block; font-style: normal; font-size: 15px; }
.enc-row button { padding: 6px 8px; font-size: 8px; }
.warn { color: var(--danger); font-size: 18px; margin: 8px 0 0; }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
  width: min(440px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #121124;
  border: 3px solid #000;
  box-shadow: inset 0 0 0 3px var(--yellow), 5px 5px 0 rgba(0, 0, 0, 0.6);
  padding: 12px 14px;
  font-size: 20px;
  animation: pop 0.25s ease-out;
}
.toast canvas { width: 32px; height: 32px; image-rendering: pixelated; flex-shrink: 0; }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }
@keyframes pop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Dialog ---------- */
dialog {
  background: var(--panel);
  color: var(--text);
  border: 4px solid #000;
  box-shadow: inset 3px 3px 0 var(--panel-hi), inset -3px -3px 0 var(--panel-lo), 6px 6px 0 #000;
  width: min(480px, calc(100vw - 32px));
}
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
dialog h2 { font-family: "Press Start 2P", monospace; font-size: 12px; color: var(--yellow); }
dialog textarea {
  width: 100%;
  font-family: monospace;
  font-size: 12px;
  background: #121124;
  color: var(--text);
  border: 2px solid #000;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .layout { flex-direction: column; align-items: stretch; padding: 16px; }
  .park { width: 100%; }
  .panel { width: 100%; }
  .topbar { padding: 12px 16px 16px; }
  .topbar h1 { font-size: 13px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .stat { min-width: 0; }
}

/* ---------- Tabs ---------- */
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 2px; font-size: 7px;
}
.tab .ico { width: 22px; height: 22px; }
.tab.active {
  background: var(--yellow); color: #000;
  box-shadow: inset 2px 2px 0 var(--yellow-hi), inset -2px -2px 0 var(--yellow-lo), 3px 3px 0 #000;
}
.tab .dot { width: 6px; height: 6px; background: var(--danger); border: 1px solid #000; }
.page { display: flex; flex-direction: column; gap: 14px; }
.page[hidden] { display: none; }
.center { text-align: center; justify-content: center; }
.card h3 span { color: var(--muted); font-family: "VT323", monospace; font-size: 15px; }
.icon-btn { padding: 6px; align-self: center; }
.icon-btn .ico { width: 24px; height: 24px; }
.icon-btn.muted { opacity: 0.5; }
.stars { letter-spacing: 1px; }
.stars .off { color: #4b4778; }

/* ---------- Shop ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.shop-item {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px;
  padding: 6px; text-align: left; font-size: 7px;
}
.shop-item canvas { width: 32px; height: 40px; image-rendering: pixelated; grid-row: 1 / 3; }
.shop-item small { margin-top: 0; }
.shop-item.active { background: var(--yellow); color: #000; box-shadow: inset 2px 2px 0 var(--yellow-hi), inset -2px -2px 0 var(--yellow-lo), 3px 3px 0 #000; }
.shop-item.active small { color: #3a2a00; }
.shop-item.poor small { color: var(--danger); }

/* ---------- Slots extras ---------- */
.slot .zoom {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  background-size: contain; image-rendering: pixelated; cursor: zoom-in; opacity: 0.85;
}
.slot .shiny-tag { position: absolute; top: 2px; right: 3px; color: #fff09a; font-size: 14px; text-shadow: 1px 1px 0 #000; }
.slot .lvl { font-size: 12px; color: var(--muted); }
button.slot.picked { outline: 3px solid var(--yellow); outline-offset: -3px; }

/* ---------- Lab ---------- */
.fuse-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 10px; }
.fuse-slot {
  width: 74px; height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--panel-lo); border: 3px dashed var(--line); box-shadow: none; padding: 4px;
  font-family: "VT323", monospace; font-size: 15px; color: var(--muted); text-align: center; line-height: 1;
}
.fuse-slot.filled { border-style: solid; border-color: #000; color: var(--text); box-shadow: inset 0 0 0 2px var(--rc, #c9c5e8); }
.fuse-slot canvas { width: 44px; height: 48px; image-rendering: pixelated; }
.fuse-slot.result { border-color: var(--yellow-lo); }
.fuse-plus { font-family: "Press Start 2P", monospace; font-size: 14px; color: var(--yellow); }
.fuse-info { font-size: 18px; color: var(--muted); margin-bottom: 10px; min-height: 2.4em; }
.fuse-info b { color: var(--text); font-weight: normal; }
button.wide { width: 100%; margin-top: 8px; }
.recipes { display: flex; flex-direction: column; gap: 4px; }
.recipe { display: flex; align-items: center; gap: 4px; padding: 4px 6px; background: var(--panel-lo); border: 2px solid #000; font-size: 16px; }
.recipe canvas { width: 24px; height: 26px; image-rendering: pixelated; }
.recipe .op { color: var(--yellow); font-family: "Press Start 2P", monospace; font-size: 8px; }

/* ---------- Index detail ---------- */
.index .slot { cursor: pointer; }
.index .slot.sel { outline: 3px solid var(--yellow); outline-offset: -3px; }
.index-detail { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; padding: 8px; background: var(--panel-lo); border: 2px solid #000; min-height: 80px; }
.index-detail:empty { display: none; }
.index-detail canvas { width: 54px; height: 60px; image-rendering: pixelated; flex-shrink: 0; }
.index-detail h4 { margin: 0 0 4px; font-family: "Press Start 2P", monospace; font-size: 9px; }
.index-detail p { margin: 0 0 4px; font-size: 17px; line-height: 1.1; }

/* ---------- Goals & achievements ---------- */
.goal-strip { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 12px; }
.goal-strip .ico { width: 24px; height: 24px; }
.goal-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.goal-text .label { font-family: "Press Start 2P", monospace; font-size: 7px; color: var(--muted); }
.goal-strip .progress { width: 30%; margin: 0; }
.goal-big { font-size: 22px; margin: 0 0 8px; }
.goal-reward { color: var(--yellow); }
.achievements { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ach { display: flex; gap: 6px; align-items: center; padding: 6px; background: var(--panel-lo); border: 2px solid #000; font-size: 15px; line-height: 1.05; }
.ach .ico { width: 22px; height: 22px; }
.ach b { display: block; font-family: "Press Start 2P", monospace; font-size: 7px; font-weight: normal; margin-bottom: 3px; color: var(--yellow); }
.ach.locked { opacity: 0.45; filter: grayscale(1); }

/* ---------- Event bar ---------- */
.event-bar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 6px 10px;
  background: #3a1030; border: 3px solid #000; box-shadow: inset 0 0 0 2px var(--danger);
  font-size: 19px; animation: flash 1s steps(2) infinite;
}
.event-bar span { flex: 1; }
.event-timer { width: 90px; height: 10px; background: #000; border: 2px solid #000; }
.event-timer div { height: 100%; background: var(--yellow); }
@keyframes flash { 50% { box-shadow: inset 0 0 0 2px var(--yellow); } }

/* ---------- Overlay (hatch / fusion) ---------- */
.overlay { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(8, 6, 20, 0.75); padding: 16px; }
.overlay[hidden] { display: none; }
.fx-box {
  width: min(420px, 100%); padding: 14px; text-align: center;
  background: var(--panel); border: 4px solid #000;
  box-shadow: inset 3px 3px 0 var(--panel-hi), inset -3px -3px 0 var(--panel-lo), 8px 8px 0 #000;
}
#fx-canvas { width: 100%; image-rendering: pixelated; background: #120f24; border: 3px solid #000; display: block; cursor: pointer; }
.fx-title { font-family: "Press Start 2P", monospace; font-size: 14px; margin: 12px 0 6px; min-height: 1em; }
.fx-sub { color: var(--muted); min-height: 2.2em; margin-bottom: 10px; }
button.primary { background: var(--yellow); color: #000; box-shadow: inset 2px 2px 0 var(--yellow-hi), inset -2px -2px 0 var(--yellow-lo), 3px 3px 0 #000; }
button.primary:hover:not(:disabled) { background: #ffdc66; }

/* ---------- Variant close-up card ---------- */
.card-dialog { width: min(560px, calc(100vw - 24px)); padding: 14px; }
.vc { display: flex; gap: 14px; }
.vc-art { flex-shrink: 0; width: 200px; }
#card-canvas { width: 200px; height: 200px; image-rendering: pixelated; border: 3px solid #000; display: block; }
.vc-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.badge { font-family: "Press Start 2P", monospace; font-size: 7px; padding: 3px 5px; border: 2px solid #000; background: var(--panel-lo); }
.vc-info { flex: 1; min-width: 0; }
.vc-info h2 { margin: 0 0 4px; font-size: 13px; }
.vc-species { margin: 0 0 8px; font-size: 18px; }
.vc-level { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: "Press Start 2P", monospace; font-size: 8px; }
.vc-level .progress { flex: 1; margin: 0; }
.vc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px; }
.vc-stats div { background: var(--panel-lo); border: 2px solid #000; padding: 3px 6px; font-size: 15px; color: var(--muted); line-height: 1.05; }
.vc-stats b { display: block; color: var(--text); font-weight: normal; font-size: 17px; }
.vc-ability { margin: 0 0 6px; font-size: 17px; line-height: 1.1; color: var(--yellow-hi); }
.vc-desc { margin: 0; font-size: 17px; line-height: 1.1; color: var(--muted); font-style: italic; }
.vc-actions { margin-top: 12px; }
label.check { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--yellow); }

@media (max-width: 560px) {
  .vc { flex-direction: column; align-items: center; }
  .vc-info { width: 100%; }
  .goal-strip .progress { width: 25%; }
}
.event-bar[hidden], [hidden] { display: none !important; }
.slot .nm, .fuse-slot .nm, .slot .lvl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot, .fuse-slot { min-width: 0; }

/* ---------- Park level ---------- */
.lvl-box {
  display: flex; align-items: center; gap: 8px; margin-left: 8px;
  padding: 4px 10px 4px 4px; background: var(--panel-lo); border: 3px solid #000;
  box-shadow: inset 2px 2px 0 var(--panel-2), inset -2px -2px 0 #0c0b18;
}
.lvl-badge {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; font-family: "Press Start 2P", monospace; font-size: 12px; color: #000;
  background: var(--yellow); border: 3px solid #000;
  box-shadow: inset 2px 2px 0 var(--yellow-hi), inset -2px -2px 0 var(--yellow-lo);
}
.lvl-badge.pop { animation: bump 0.5s ease-out 3; }
.lvl-meta { display: flex; flex-direction: column; gap: 3px; width: 140px; }
.lvl-meta .label { font-family: "Press Start 2P", monospace; font-size: 7px; color: var(--muted); }
.progress.xp { height: 10px; margin: 0; }
.progress.xp .progress-fill { background: repeating-linear-gradient(90deg, #7df9ff 0 6px, #2bb5c4 6px 8px); }
.xp-text { font-size: 15px; color: var(--muted); line-height: 1; }
.locked-note { margin: 10px 0 0; text-align: center; font-size: 16px; }
.level-next { padding: 8px; background: var(--panel-lo); border: 2px dashed var(--line); margin: 8px 0; font-size: 18px; color: var(--muted); }
.level-next b { color: var(--yellow); font-weight: normal; font-family: "Press Start 2P", monospace; font-size: 9px; }
.xp-list { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 17px; line-height: 1.15; }
@media (max-width: 900px) {
  .brand { flex-wrap: wrap; }
  .lvl-box { margin-left: 0; }
}

/* ---------- New systems UI ---------- */
.park-title { align-items: center; }
.world-info { display: flex; align-items: center; gap: 6px; }
.world-info .ico { width: 16px; height: 16px; }
button.mini { padding: 3px 5px; box-shadow: inset 1px 1px 0 var(--panel-hi), 2px 2px 0 #000; }
button.mini .ico { width: 16px; height: 16px; }
.build-options { margin-top: 10px; padding: 8px; background: var(--panel-lo); border: 2px solid #000; }
.build-options h4 { margin: 0 0 6px; font-family: "Press Start 2P", monospace; font-size: 7px; color: var(--muted); }
.build-options h4 + .chips { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 7px; padding: 6px 7px; box-shadow: inset 1px 1px 0 var(--panel-hi), 2px 2px 0 #000; }
.chip small { font-size: 6px; }
.chip.active { background: var(--yellow); color: #000; }
.chip.active small { color: #3a2a00; }
.chip canvas { width: 24px; height: 24px; image-rendering: pixelated; display: block; margin: 0 auto 3px; }
.opt-desc { font-size: 16px; color: var(--muted); margin: 2px 0 0; }
.row-item { display: flex; align-items: center; gap: 8px; padding: 6px; margin-bottom: 6px; background: var(--panel-lo); border: 2px solid #000; font-size: 17px; line-height: 1.1; }
.row-item canvas { width: 28px; height: 36px; image-rendering: pixelated; flex-shrink: 0; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item b { display: block; font-family: "Press Start 2P", monospace; font-size: 8px; font-weight: normal; color: var(--yellow); margin-bottom: 3px; }
.row-item button { padding: 6px 8px; font-size: 8px; }
.special-eggs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.special-eggs button { display: flex; align-items: center; gap: 6px; text-align: left; font-size: 8px; padding: 8px 6px; }
.special-eggs .ico { width: 24px; height: 24px; }
.special-eggs .gold { background: #6b5410; }
.special-eggs .curse { background: #3a1a50; }
.bars { display: flex; flex-direction: column; gap: 3px; margin: 4px 0; }
.bar { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.bar .progress { flex: 1; height: 8px; margin: 0; }
.bar.food .progress-fill { background: #e8913a; }
.bar.joy .progress-fill { background: #ff7eb6; }
.request-text { font-size: 20px; margin: 0 0 6px; }
label.range { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0; font-size: 18px; }
label.range input { flex: 1; max-width: 160px; accent-color: var(--yellow); }
.fx-box.shake { animation: shake 0.5s steps(2) 2; }
@keyframes shake { 0% { transform: translate(4px, -3px); } 25% { transform: translate(-5px, 2px); } 50% { transform: translate(3px, 4px); } 75% { transform: translate(-3px, -4px); } 100% { transform: translate(0, 0); } }

/* ---------- Loading screen ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: #120f24; overflow: hidden;
  transition: opacity 0.6s ease;
}
.loader.done { opacity: 0; pointer-events: none; }
.loader-box {
  position: relative; width: min(540px, 100%); max-height: calc(100% - 8px); overflow: auto; padding: 28px 24px 22px; text-align: center;
  background: var(--panel); border: 4px solid #000;
  box-shadow: inset 4px 4px 0 var(--panel-hi), inset -4px -4px 0 var(--panel-lo), 8px 8px 0 #000;
}
#loader-verity { width: 104px; height: 104px; image-rendering: pixelated; animation: bob 1.2s ease-in-out infinite; filter: drop-shadow(0 6px 0 rgba(0,0,0,0.35)); }
.loader-scene { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.loader-box::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  border: 2px solid rgba(255, 210, 63, 0.18);
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 4px);
}
.rivet { position: absolute; width: 8px; height: 8px; background: #8a86b8; border: 2px solid #000; box-shadow: inset 2px 2px 0 #d6d3f5; }
.rivet.tl { top: 10px; left: 10px; } .rivet.tr { top: 10px; right: 10px; }
.rivet.bl { bottom: 10px; left: 10px; } .rivet.br { bottom: 10px; right: 10px; }
.loader-roster { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: -6px 0 14px; }
.loader-roster canvas { width: 252px; height: 39px; max-width: 100%; image-rendering: pixelated; }
.loader-roster span { font-size: 16px; color: var(--muted); letter-spacing: 1px; }
.loader-ticks {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 3px), rgba(0,0,0,0.45) calc(10% - 3px) 10%);
}
.loader-tip {
  display: flex; gap: 10px; align-items: center; min-height: 44px; margin: 0 0 14px; padding: 6px 10px; text-align: left;
  font-size: 18px; line-height: 1.1; color: var(--text); background: var(--panel-lo); border: 2px solid #000;
}
.loader-tip b {
  flex-shrink: 0; font-family: "Press Start 2P", monospace; font-size: 8px; font-weight: normal;
  color: #000; background: #7df9ff; padding: 4px 5px; border: 2px solid #000;
}
.loader-title {
  margin: 12px 0 6px; font-size: clamp(18px, 6vw, 30px); line-height: 1.3; color: var(--yellow);
  text-shadow: 3px 0 0 #000, -3px 0 0 #000, 0 3px 0 #000, 0 -3px 0 #000, 6px 6px 0 var(--yellow-lo);
}
.loader-tag { margin: 0 0 22px; color: var(--muted); font-size: 20px; }
/* a tilted update notice, like a sticker slapped on the corner of the sign */
.loader-splash {
  position: absolute; top: 46px; right: 22px; z-index: 1; margin: 0; padding: 7px 9px;
  font-family: "Press Start 2P", monospace; font-size: 9px; line-height: 1.5; color: #000;
  background: #7df9ff; border: 3px solid #000; box-shadow: 4px 4px 0 #000;
  transform: rotate(12deg); animation: splash 1.1s ease-in-out infinite;
}
@keyframes splash { 0%, 100% { transform: rotate(12deg) scale(1); } 50% { transform: rotate(12deg) scale(1.07); } }
@media (max-width: 480px) {
  .loader-splash { position: static; display: inline-block; margin: 2px 0 10px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { .loader-splash { animation: none; } }
.loader-bar { margin: 0 auto 18px; }
.loader-track {
  position: relative; height: 28px; background: #0c0b18; border: 4px solid #000;
  box-shadow: inset 0 3px 0 #000, 0 0 0 3px var(--yellow-lo);
}
.loader-fill {
  height: 100%; width: 0;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, #ffe066 8px 16px);
  box-shadow: inset 0 3px 0 var(--yellow-hi), inset 0 -4px 0 var(--yellow-lo);
  animation: stripes 0.6s linear infinite;
}
@keyframes stripes { to { background-position: 22px 0; } }
.loader-roller {
  position: absolute; top: -8px; left: -18px; width: 36px; height: 36px; image-rendering: pixelated; z-index: 1;
  animation: roll 0.8s linear infinite;
}
@keyframes roll { to { transform: rotate(360deg); } }
.loader-pct { display: flex; justify-content: space-between; margin-top: 8px; font-size: 18px; color: var(--muted); }
.loader-pct #loader-num { font-family: "Press Start 2P", monospace; font-size: 10px; color: var(--yellow); }
.loader-start { margin: 4px 0 16px; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.04); } }
.loader-credits { border-top: 3px dashed var(--line); padding-top: 12px; }
.loader-credits p { margin: 4px 0; font-size: 20px; }
.loader-credits b { font-family: "Press Start 2P", monospace; font-size: 11px; color: var(--yellow); font-weight: normal; }
.loader-credits .small-credit { font-size: 17px; color: var(--muted); }
.loader-credits .small-credit b { font-size: 9px; color: #ff7eb6; }
.credit-line { margin: 4px 0; font-size: 20px; }
.credit-line b { font-family: "Press Start 2P", monospace; font-size: 10px; color: var(--yellow); font-weight: normal; }

/* ---------- In-game dialogs ---------- */
.ask-dialog { width: min(420px, calc(100vw - 32px)); }
.mode-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mode-option { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; padding: 12px; white-space: normal; height: auto; font-family: "VT323", monospace; background: var(--panel-lo); color: var(--text); }
.mode-option:hover, .mode-option:focus-visible { box-shadow: inset 0 0 0 2px var(--yellow); }
.mode-option b { font-family: "Press Start 2P", monospace; font-size: 11px; color: var(--yellow); font-weight: normal; }
.mode-option span { font-size: 18px; color: var(--text); }
.mode-option ul { margin: 0; padding-left: 18px; font-size: 16px; color: var(--muted); line-height: 1.15; }
.mode-option .pick { margin-top: auto; padding-top: 6px; font-family: "Press Start 2P", monospace; font-size: 8px; color: #7df9ff; }
.mode-tag { background: #7df9ff; }
@media (max-width: 560px) { .mode-options { grid-template-columns: 1fr; } }
.ask-text { white-space: pre-line; font-size: 19px; line-height: 1.2; margin: 0 0 12px; }
#ask-input {
  width: 100%; margin-bottom: 12px; padding: 8px; font-family: "VT323", monospace; font-size: 20px;
  background: #121124; color: var(--text); border: 3px solid #000; box-shadow: inset 0 0 0 2px var(--line);
}
#ask-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--yellow); }
.ask-actions { justify-content: flex-end; }
.snap-dialog { width: min(760px, calc(100vw - 24px)); }
#snap-img { display: block; width: 100%; image-rendering: pixelated; border: 3px solid #000; margin-bottom: 8px; }
button:focus-visible, .tab:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- v1.1: map, hours, parking, reports, notes ---------- */
.map-wrap { position: relative; }
#game { outline: none; }
#game:focus-visible { box-shadow: 0 0 0 3px var(--yellow); }
#minimap {
  position: absolute; top: 10px; right: 10px; width: 144px; height: 96px;
  image-rendering: pixelated; border: 3px solid #000; box-shadow: 0 0 0 2px var(--wood-hi), 4px 4px 0 rgba(0,0,0,0.5);
  cursor: pointer; background: #1c3a1a;
}
.map-controls {
  position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 4px;
  padding: 4px; background: rgba(18, 17, 36, 0.85); border: 2px solid #000;
}
.map-controls .mini { width: 26px; height: 26px; padding: 0; font-size: 12px; }
#zoom-label { font-family: "Press Start 2P", monospace; font-size: 7px; color: var(--muted); min-width: 34px; text-align: center; }
.map-help {
  position: absolute; left: 10px; bottom: 10px; margin: 0; padding: 3px 8px; font-size: 15px;
  background: rgba(18, 17, 36, 0.75); border: 2px solid #000; color: var(--muted); pointer-events: none;
}
.hours-bar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 5px 10px;
  border: 3px solid #000; font-size: 19px; background: #1d3a5a; box-shadow: inset 0 0 0 2px #5fb4ff;
}
.hours-bar.night { background: #1a1638; box-shadow: inset 0 0 0 2px #c77dff; }
.hours-bar span { flex: 1; }
button.mini-text { padding: 5px 8px; font-size: 7px; }
.build-lock {
  margin: 10px 0 0; padding: 8px; font-size: 17px; line-height: 1.15;
  background: #1d3a5a; border: 2px solid #000; box-shadow: inset 0 0 0 2px #5fb4ff;
}
button.tool.locked, .shop-item.locked { opacity: 0.5; filter: grayscale(0.7); }
.ver { font-family: "Press Start 2P", monospace; font-size: 7px; color: #000; background: var(--yellow); padding: 2px 4px; border: 2px solid #000; vertical-align: middle; }
.loader-version { margin: -14px 0 18px; font-size: 18px; color: var(--muted); }
.loader-version span { font-family: "Press Start 2P", monospace; font-size: 9px; color: var(--yellow); }
button.linkish { background: none; border: none; box-shadow: none; padding: 0; font-family: "VT323", monospace; font-size: 18px; color: #7df9ff; text-decoration: underline; }
.day-dialog, .notes-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; }
.report-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.report-stat { background: var(--panel-lo); border: 2px solid #000; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; color: var(--muted); }
.report-stat b { font-family: "Press Start 2P", monospace; font-size: 10px; font-weight: normal; color: var(--text); }
.report-stat.good b { color: #6ee07a; }
.report-stat.bad b { color: var(--danger); }
.report-stat.big { box-shadow: inset 0 0 0 2px var(--yellow); }
.report-stat.big b { font-size: 12px; }
.report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.report-col, .report-growth { background: var(--panel-lo); border: 2px solid #000; padding: 8px; }
.report-col h4, .report-growth h4 { margin: 0 0 6px; font-family: "Press Start 2P", monospace; font-size: 8px; color: var(--yellow); }
.report-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-size: 17px; padding: 2px 0; border-bottom: 1px solid var(--line); }
.report-row b { font-weight: normal; color: var(--text); font-family: "Press Start 2P", monospace; font-size: 8px; white-space: nowrap; }
.report-row.variant span { flex: 1; }
.report-row canvas { width: 26px; height: 30px; image-rendering: pixelated; }
.report-growth + .report-growth, .report-cols + .report-growth { margin-bottom: 12px; }
.feedback-score { font-size: 18px; margin: 0 0 6px; color: var(--text); }
.feedback-score.good { color: #6ee07a; }
.feedback-score.bad { color: var(--danger); }
.feedback-row { padding: 4px 0; border-bottom: 1px solid var(--line); }
.feedback-head { display: flex; justify-content: space-between; gap: 8px; font-size: 18px; }
.feedback-head b { font-weight: normal; font-family: "Press Start 2P", monospace; font-size: 8px; white-space: nowrap; color: var(--danger); align-self: center; }
.feedback-quote { color: var(--text); }
.feedback-fix { margin: 2px 0 0; font-size: 16px; color: #7df9ff; }
.feedback-recent h3 { margin-top: 10px; }
.feedback-recent p { margin: 0 0 2px; }
.note-version { margin-bottom: 12px; }
.note-version h4 { margin: 0 0 6px; font-family: "Press Start 2P", monospace; font-size: 9px; color: var(--yellow); }
.note-version ul { margin: 0; padding-left: 20px; font-size: 18px; line-height: 1.2; }
.note-version li { margin-bottom: 4px; }
.park-title { flex-wrap: wrap; }
@media (max-width: 900px) {
  .park-info { display: none; }
  .hours-bar { font-size: 16px; }
  #game { height: 56vh; min-height: 300px; }
  #minimap { width: 96px; height: 64px; top: 8px; right: 8px; }
  .map-help { display: none; }
  .report-top { grid-template-columns: 1fr 1fr; }
  .report-cols { grid-template-columns: 1fr; }
}

/* ---------- Tutorial ---------- */
.tutorial {
  position: fixed; z-index: 15; width: 330px; padding: 12px 14px 12px;
  background: var(--panel); border: 4px solid #000;
  box-shadow: inset 3px 3px 0 var(--panel-hi), inset -3px -3px 0 var(--panel-lo), 6px 6px 0 #000, 0 0 0 3px #7df9ff;
  transition: left 0.25s ease, top 0.25s ease;
}
.tutorial.docked { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
.tut-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tut-head .ico { width: 24px; height: 24px; }
.tut-step { font-family: "Press Start 2P", monospace; font-size: 8px; color: #7df9ff; }
.tut-head .linkish { margin-left: auto; font-size: 17px; color: var(--muted); }
.tutorial h3 { margin: 0 0 6px; font-family: "Press Start 2P", monospace; font-size: 12px; font-weight: normal; color: var(--yellow); text-wrap: balance; }
.tutorial p { margin: 0 0 10px; font-size: 19px; line-height: 1.15; }
.tut-task { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--panel-lo); border: 2px solid #000; }
.tut-task b, .tut-task em {
  flex-shrink: 0; font-family: "Press Start 2P", monospace; font-size: 7px; font-weight: normal; font-style: normal;
  color: #000; background: #ffd23f; padding: 3px 4px; border: 2px solid #000;
}
.tut-task em { display: none; margin-left: auto; background: #6ee07a; }
.tut-task.done em { display: inline-block; animation: pulse 0.6s ease-in-out infinite; }
.tut-task.done span { text-decoration: line-through; color: var(--muted); }
.tut-nav { display: flex; justify-content: space-between; gap: 8px; }
.tut-nav button { min-width: 86px; }
#tut-next.ready { animation: pulse 0.6s ease-in-out infinite; }
.tut-target { outline: 3px solid #7df9ff !important; outline-offset: 2px; animation: tutglow 1s ease-in-out infinite; }
@keyframes tutglow { 50% { outline-color: #ffd23f; } }
.archive-link { color: #7df9ff; }

/* ---------- Full-height map (desktop) ---------- */
@media (min-width: 901px) {
  .park {
    position: sticky; top: 18px;
    display: flex; flex-direction: column;
    height: calc(100dvh - var(--topbar-h, 64px) - 36px); min-height: 480px;
  }
  .park-frame { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .park-frame .map-wrap { flex: 1; min-height: 0; }
  #game { height: 100%; }
}

/* ---------- Top bar: patch notes and Instagram ---------- */
.text-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 8px; padding: 6px 10px 6px 6px; }
a.icon-btn {
  font-family: "Press Start 2P", monospace; line-height: 1.4;
  color: var(--text); text-decoration: none; background: var(--panel-2); border: 3px solid #000;
  box-shadow: inset 2px 2px 0 var(--panel-hi), inset -2px -2px 0 var(--panel-lo), 3px 3px 0 #000;
}
a.icon-btn:hover { background: var(--panel-hi); }
a.icon-btn:active { transform: translate(2px, 2px); box-shadow: inset 2px 2px 0 var(--panel-lo), 1px 1px 0 #000; }
.insta-btn span { color: #ff8fc0; }
.insta-credit { font-size: 17px; color: var(--muted); }
.insta-credit a { font-family: "Press Start 2P", monospace; font-size: 9px; color: #ff8fc0; }
@media (max-width: 900px) { .text-btn { justify-content: center; font-size: 7px; } }

/* ---------- Locked (not yet unlocked) items: visible but greyed out ---------- */
.is-locked { opacity: 0.5; filter: grayscale(0.9); }
button.is-locked { cursor: help; }
button.is-locked:hover:not(:disabled) { background: var(--panel-2); }
.tab.is-locked { opacity: 0.45; }
.lock-tag { color: var(--muted) !important; letter-spacing: 1px; }
.card-locked > :not(h2) { opacity: 0.55; filter: grayscale(0.9); }
#land { max-height: 440px; overflow-y: auto; padding-right: 4px; }

/* ---------- Custom pens and remodelling ---------- */
.pen-draft { margin: 6px 0 10px; padding: 8px; background: var(--panel-lo); border: 2px solid #000; }
.pen-draft .tools { margin-top: 6px; }
.opt-desc.warn, .small.warn { color: #ff8a3c; }
.remodel { margin: 8px 0; padding: 6px 8px; background: var(--panel-lo); border: 2px solid #000; }
.remodel summary { cursor: pointer; font-family: "Press Start 2P", monospace; font-size: 8px; color: var(--yellow); padding: 2px 0; }
.remodel h4 { margin: 8px 0 4px; }

/* ---------- Patch notes: one collapsible section per version ---------- */
details.note-version { margin: 0 0 8px; background: var(--panel-lo); border: 2px solid #000; }
details.note-version summary { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; cursor: pointer; list-style: none; }
details.note-version summary::-webkit-details-marker { display: none; }
details.note-version summary::before { content: "+"; font-family: "Press Start 2P", monospace; font-size: 9px; color: var(--yellow); width: 10px; }
details.note-version[open] summary::before { content: "-"; }
details.note-version summary b { font-family: "Press Start 2P", monospace; font-size: 9px; font-weight: normal; color: var(--yellow); }
details.note-version summary span { font-size: 18px; color: var(--text); }
details.note-version summary small { margin-left: auto; font-size: 15px; color: var(--muted); }
details.note-version h5 { margin: 6px 12px 2px; font-family: "Press Start 2P", monospace; font-size: 7px; font-weight: normal; color: #7df9ff; letter-spacing: 1px; text-transform: uppercase; }
details.note-version ul { margin: 0 0 6px; padding: 0 14px 0 30px; font-size: 17px; line-height: 1.15; }
details.note-version li { margin-bottom: 2px; }

/* ---------- Admin panel ---------- */
.admin-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; }
.admin-sec { margin: 0 0 10px; padding: 8px; background: var(--panel-lo); border: 2px solid #000; }
.admin-sec h4 { margin: 0 0 6px; font-family: "Press Start 2P", monospace; font-size: 8px; font-weight: normal; color: var(--yellow); }
.admin-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-row button { font-size: 8px; padding: 6px 8px; }
.admin-row select { font-family: "VT323", monospace; font-size: 17px; background: #121124; color: var(--text); border: 2px solid #000; padding: 3px 4px; }
.admin-row .check { font-size: 17px; }

/* ---------- Day mode: building and editing controls disappear while the park is open ---------- */
body.park-open .build-only { display: none !important; }

#money.bank-full { color: #ff8a3c; }
#bank .progress { margin: 6px 0; }

/* ---------- Feedback links ---------- */
.feedback-btn span { color: #7df9ff; }
.insta-credit a.feedback-link { color: #7df9ff; }
a.feedback-wide {
  display: block; margin-top: 8px; padding: 8px 10px; text-align: center; text-decoration: none;
  font-family: "Press Start 2P", monospace; font-size: 8px; color: #000; background: #7df9ff;
  border: 3px solid #000; box-shadow: 3px 3px 0 #000;
}
a.feedback-wide:hover { background: #a8fbff; }

.feedback-toast { border-color: #7df9ff; }
.feedback-toast a { color: #7df9ff; pointer-events: auto; }
.toasts .toast.feedback-toast { pointer-events: auto; }

.feedback-toast { position: relative; padding-right: 28px; }
.feedback-close {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; padding: 0; line-height: 1;
  font-family: "VT323", monospace; font-size: 18px; box-shadow: 2px 2px 0 #000; border-width: 2px;
}
.feedback-toast .feedback-never { font-size: inherit; color: var(--muted); }
