/* Layout: full-bleed living lake canvas; HUD pills float on the sky, a 3-button dock floats at the bottom; panels slide up as a bottom sheet over the lower part of the scene. Single committed dark "tackle box" UI. */
:root {
  --ink: #0b1e21;
  --panel: #132d2e;
  --panel2: #1b3b3b;
  --line: #285350;
  --text: #ecf4ef;
  --muted: #93b3aa;
  --coin: #f4b942;
  --coin-ink: #3a2600;
  --bite: #ff6b57;
  --pearl: #d6ecff;
  --ok: #74d8a0;
  --glass: rgba(9, 24, 28, 0.62);
  --font-d: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-b: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
}
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-b);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
}
@media (min-width: 560px) {
  .app {
    left: 50%;
    right: auto;
    width: 480px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px var(--line);
  }
}
#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}
#cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: pointer;
}
.hud {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}
.hr {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pill {
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 6px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.money b {
  display: block;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 19px;
  color: var(--coin);
  line-height: 1.1;
}
.money small {
  display: block;
  font-size: 11px;
  color: #d6e6e0;
}
.money.pop {
  animation: pop 0.22s ease-out;
}
@keyframes pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
.coin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff0a8, var(--coin) 55%, #b9801c);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.16);
  flex: none;
}
.pearlp b {
  font-family: var(--font-d);
  font-size: 14px;
  color: var(--pearl);
}
.pearl {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #bcd6ee 60%, #7f9dbb);
}
.rb {
  pointer-events: auto;
  border: 0;
  color: var(--text);
  width: 38px;
  height: 38px;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.rb svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.envchip {
  position: absolute;
  left: 12px;
  top: calc(env(safe-area-inset-top, 0px) + 62px);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  max-width: calc(100% - 204px);
}
.envchip canvas {
  width: 28px;
  height: 28px;
  flex: none;
}
.envchip b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.envchip small {
  display: block;
  font-size: 10.5px;
  color: var(--ok);
  line-height: 1.2;
}
.boosts {
  position: absolute;
  right: 12px;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  display: flex;
  gap: 10px;
}
.bst {
  --p: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  display: grid;
  place-items: center;
  color: var(--coin);
  background: radial-gradient(circle at 34% 24%, #4a8f8c 0, #1d4a4c 48%, #0a2226 100%);
  box-shadow:
    0 0 0 2.5px var(--coin),
    0 0 0 4.5px rgba(52, 30, 0, 0.6),
    0 7px 12px rgba(0, 0, 0, 0.45),
    inset 0 2px 3px rgba(255, 255, 255, 0.4),
    inset 0 -6px 9px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s;
}
.bst svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bst canvas {
  width: 44px;
  height: 44px;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45));
}
.bst:active {
  transform: scale(0.9);
}
.bst::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(rgba(3, 12, 16, 0.74) calc(var(--p) * 1turn), transparent 0);
  pointer-events: none;
}
.bst span {
  position: absolute;
  z-index: 1;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font: 700 9.5px var(--font-d);
  letter-spacing: 0.02em;
  background: #0a2226;
  color: var(--text);
  padding: 2px 7px;
  border-radius: 9px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow:
    0 0 0 1.5px rgba(244, 185, 66, 0.75),
    0 2px 4px rgba(0, 0, 0, 0.4);
}
.bst.cd {
  box-shadow:
    0 0 0 2.5px #5a736f,
    0 0 0 4.5px rgba(0, 0, 0, 0.4),
    0 7px 12px rgba(0, 0, 0, 0.45),
    inset 0 2px 3px rgba(255, 255, 255, 0.2),
    inset 0 -6px 9px rgba(0, 0, 0, 0.5);
}
.bst.cd canvas,
.bst.cd svg {
  filter: grayscale(0.9) brightness(0.8);
}
.bst.cd span {
  box-shadow: 0 0 0 1.5px #5a736f;
  color: var(--muted);
}
.bst.act {
  box-shadow:
    0 0 0 2.5px #fff,
    0 0 20px 5px rgba(244, 185, 66, 0.9),
    inset 0 2px 3px rgba(255, 255, 255, 0.4),
    inset 0 -6px 9px rgba(0, 0, 0, 0.5);
  animation: bpulse 1s ease-in-out infinite;
}
.bst.act span {
  background: var(--coin);
  color: var(--coin-ink);
  box-shadow: 0 0 0 1.5px #fff;
}
@keyframes bpulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}
.place {
  position: absolute;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 136px);
  transform: translateX(-50%);
  font-family: var(--font-d);
  font-size: 12px;
  color: #fff;
  background: var(--glass);
  padding: 6px 14px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.8s;
}
.place.fade {
  opacity: 0;
}
.flash {
  position: absolute;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 172px);
  transform: translateX(-50%) scale(0.92);
  font-family: var(--font-d);
  font-size: 13px;
  color: #fff;
  background: var(--bite);
  padding: 7px 14px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  white-space: nowrap;
  max-width: 88%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flash.on {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.flash.gold {
  background: #b8841a;
}
.hint {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 98px);
  transform: translateX(-50%);
  font-size: 12.5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 7px 14px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
  animation: hb 1.6s ease-in-out infinite;
}
@keyframes hb {
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

.dock {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 9px);
  height: 72px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: end;
  background: linear-gradient(180deg, rgba(34, 74, 76, 0.94), rgba(10, 30, 34, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  padding: 0 8px 9px;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.5),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -4px 0 rgba(0, 0, 0, 0.32);
  z-index: 3;
}
.dk {
  position: relative;
  border: 0;
  background: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font: 500 10.5px var(--font-d);
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.dk canvas {
  width: 60px;
  height: 60px;
  margin-top: -24px;
  display: block;
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.25, 1.4);
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.45));
}
.dk:active canvas {
  transform: scale(0.9);
}
.dk.on canvas {
  transform: translateY(-5px) scale(1.08);
}
.dk.main canvas {
  width: 82px;
  height: 82px;
  margin-top: -42px;
  border-radius: 50%;
  filter: none;
  box-shadow:
    0 0 0 3px var(--coin),
    0 0 0 6px rgba(52, 30, 0, 0.55),
    0 9px 18px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.dk.on span {
  color: var(--coin);
}
.dot {
  position: absolute;
  top: -20px;
  right: calc(50% - 32px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bite);
  box-shadow: 0 0 0 2px var(--ink);
}
.dk.main .dot {
  top: -38px;
  right: calc(50% - 42px);
}
button:focus-visible {
  outline: 2px solid var(--coin);
  outline-offset: 2px;
}

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 4;
}
.scrim.on {
  opacity: 1;
  pointer-events: auto;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(74%, 640px);
  background: var(--panel);
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
  transform: translateY(104%);
  transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.25, 1);
  z-index: 5;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sheet.on {
  transform: translateY(0);
}
.sh-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 6px 16px;
  position: relative;
  touch-action: none;
}
.grab {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.sh-head h2 {
  margin: 0;
  font-family: var(--font-d);
  font-size: 17px;
  flex: 1;
  min-width: 0;
}
.x {
  border: 0;
  background: var(--panel2);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  flex: none;
}
.seg2 {
  flex: none;
  display: flex;
  gap: 6px;
  padding: 4px 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg2 button {
  flex: 1;
  border: 1px solid var(--line);
  background: none;
  color: var(--muted);
  border-radius: 12px;
  padding: 8px 10px;
  font: 600 13px var(--font-b);
  cursor: pointer;
  white-space: nowrap;
}
.seg2 button.on {
  background: var(--text);
  color: var(--ink);
  border-color: var(--text);
}
.pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline: 16px;
  padding-block: 6px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.h {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.sec {
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 6px 0 0;
}
.sub {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.seg {
  display: flex;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
  flex: none;
}
.seg button {
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 13px var(--font-b);
  min-width: 42px;
  min-height: 32px;
  border-radius: 9px;
  cursor: pointer;
}
.seg button.on {
  background: var(--panel2);
  color: var(--text);
}
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: var(--panel2);
  border-radius: 14px;
  padding: 10px;
}
.ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.info {
  min-width: 0;
}
.info b {
  font-weight: 600;
  font-size: 15px;
}
.info .lv {
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.info p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.info em {
  font-style: normal;
  color: var(--ok);
}
.ms {
  margin-top: 6px;
  height: 4px;
  border-radius: 4px;
  background: var(--ink);
  overflow: hidden;
}
.ms i {
  display: block;
  height: 100%;
  background: var(--coin);
  border-radius: 4px;
}
.mt {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.mt b {
  font-weight: 600;
  font-size: 11px;
  color: var(--coin);
}
.btn {
  border: 0;
  border-radius: 12px;
  min-width: 96px;
  min-height: 48px;
  padding: 6px 10px;
  background: var(--coin);
  color: var(--coin-ink);
  font: 600 14px var(--font-b);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-variant-numeric: tabular-nums;
  touch-action: manipulation;
}
.btn small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
}
.btn:active:not(:disabled) {
  transform: scale(0.96);
}
.btn:disabled {
  background: var(--ink);
  color: var(--muted);
  cursor: default;
}
.btn.ghost {
  background: var(--ink);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.sm {
  min-width: 84px;
  min-height: 40px;
  font-size: 13px;
}
#pane-places {
  padding: 0;
  gap: 0;
  display: block;
}
#places {
  display: block;
}
.map {
  position: relative;
  overflow: hidden;
}
.mapbg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.isl {
  position: absolute;
  width: 150px;
  height: 150px;
  margin: -92px 0 0 -75px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  touch-action: manipulation;
}
.isl canvas {
  width: 150px;
  height: 150px;
  display: block;
  filter: drop-shadow(0 7px 5px rgba(0, 18, 36, 0.4));
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.isl.sel canvas {
  transform: translateY(-4px) scale(1.09);
}
.isl.lock canvas {
  filter: grayscale(0.8) brightness(0.62) drop-shadow(0 7px 5px rgba(0, 18, 36, 0.4));
}
.isl .tag {
  z-index: 2;
  position: absolute;
  left: 50%;
  top: 121px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  pointer-events: none;
}
.tag b {
  font: 600 11.5px var(--font-d);
  background: rgba(6, 22, 28, 0.8);
  padding: 3px 10px 3px 3px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tag b em {
  font-style: normal;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--text);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 9.5px;
  flex: none;
}
.tag small {
  margin-top: 3px;
  font: 600 11px var(--font-b);
  color: var(--ok);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.isl.on .tag b em {
  background: var(--coin);
}
.isl.on .tag small {
  color: var(--coin);
}
.isl.sel .tag b {
  box-shadow: 0 0 0 2px var(--coin);
}
.isl.lock .tag small,
.isl.hid .tag small {
  color: var(--muted);
}
.isl.can .tag small {
  color: var(--coin);
}
.isl.hid {
  cursor: default;
}
.isl.hid .tag b {
  color: var(--muted);
}
.cn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff0a8, var(--coin) 55%, #b9801c);
  display: inline-block;
}
.lockb {
  position: absolute;
  left: 50%;
  top: 66px;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  border-radius: 50%;
  background: rgba(6, 22, 28, 0.88);
  color: var(--muted);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.isl.can .lockb {
  background: var(--coin);
  color: var(--coin-ink);
  animation: mpulse 1.5s ease-in-out infinite;
}
.fog {
  position: absolute;
  left: 4px;
  top: 54px;
  width: 142px;
  height: 74px;
  background:
    radial-gradient(ellipse 34% 46% at 30% 56%, rgba(226, 236, 244, 0.9), rgba(226, 236, 244, 0) 100%),
    radial-gradient(ellipse 36% 52% at 60% 44%, rgba(240, 246, 250, 0.92), rgba(240, 246, 250, 0) 100%),
    radial-gradient(ellipse 30% 40% at 78% 64%, rgba(214, 226, 238, 0.85), rgba(214, 226, 238, 0) 100%);
  animation: mfog 6s ease-in-out infinite alternate;
}
.boat {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -40px 0 0 44px;
  z-index: 3;
  pointer-events: none;
  animation: mbob 2.6s ease-in-out infinite;
  filter: drop-shadow(0 3px 3px rgba(0, 18, 36, 0.45));
}
.boat canvas {
  width: 44px;
  height: 44px;
  display: block;
}
@keyframes mbob {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-4px) rotate(4deg);
  }
}
@keyframes mfog {
  from {
    transform: translateX(-7px);
  }
  to {
    transform: translateX(7px);
  }
}
@keyframes mpulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 185, 66, 0.6);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(244, 185, 66, 0);
  }
}
.mcard {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 10px 14px 12px;
  box-shadow: 0 -10px 22px rgba(0, 0, 0, 0.35);
}
.mth {
  width: 96px;
  height: 60px;
  border-radius: 10px;
  display: block;
}
.mi b {
  display: block;
  font: 600 14px var(--font-d);
}
.mi span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.mi .ft {
  color: var(--ok);
}
.mcard .btn {
  grid-column: 1/-1;
  flex-direction: row;
  gap: 8px;
  min-height: 44px;
}
.mcard .btn small {
  font-variant-numeric: tabular-nums;
}
.btn.alt {
  background: var(--panel2);
  color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
  .boat,
  .fog,
  .isl.can .lockb {
    animation: none;
  }
}
.book {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.tier {
  grid-column: 1/-1;
  font: 600 12px var(--font-b);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.tier::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.fish {
  background: var(--panel2);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-top: 3px solid transparent;
}
.fish canvas {
  width: 100%;
  max-width: 120px;
  height: auto;
  aspect-ratio: 240/150;
  display: block;
}
.fish:not(.no) {
  cursor: pointer;
}
.fish b {
  color: var(--text);
  font-weight: 500;
  font-size: 12px;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.fish.no b {
  color: var(--muted);
}
.bagtip {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.slot {
  background: var(--panel2);
  border-radius: 14px;
  padding: 10px 6px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 2px solid transparent;
  min-width: 0;
}
.slot small {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.slot b {
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.slot i {
  font-style: normal;
  font-size: 11px;
  color: var(--ok);
}
.slot canvas {
  width: 64px;
  height: 64px;
  display: block;
}
.bonus {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bonus span {
  font-size: 12px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 10px;
  color: var(--ok);
}
.chest {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
}
.chest canvas {
  width: 60px;
  height: 60px;
}
.ct {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.ct b {
  display: block;
  color: var(--text);
  font-size: 14px;
}
.igrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.icard {
  position: relative;
  background: var(--panel2);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 8px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  min-width: 0;
}
.icard canvas {
  width: 68px;
  height: 68px;
  display: block;
}
.icard b {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.icard span {
  font-size: 11px;
  color: var(--ok);
  line-height: 1.25;
}
.icard i {
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
}
.icard.on {
  border-color: var(--coin);
}
.icard.on::after {
  content: "Надето";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coin);
  color: var(--coin-ink);
  font: 600 10px var(--font-b);
  padding: 1px 7px;
  border-radius: 8px;
}
.icard.lock {
  cursor: default;
}
.icard.lock span {
  color: var(--muted);
}
.prest {
  background: var(--panel2);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prest p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.prest p b {
  color: var(--pearl);
}
.pbar {
  height: 6px;
  border-radius: 6px;
  background: var(--ink);
  overflow: hidden;
}
.pbar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #9fc6ee, #fff);
  border-radius: 6px;
}
.phero {
  position: relative;
  height: 184px;
  border-radius: 18px;
  overflow: hidden;
  flex: none;
  background: radial-gradient(130% 100% at 30% 0%, #3489a6 0%, #17506a 42%, #0b2536 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.prays {
  position: absolute;
  left: -30%;
  top: -90%;
  width: 120%;
  height: 250%;
  background: repeating-conic-gradient(from 150deg at 50% 0, rgba(255, 255, 255, 0.1) 0 5deg, transparent 5deg 13deg);
  opacity: 0.55;
  animation: prays 9s ease-in-out infinite alternate;
  transform-origin: 50% 0;
}
.pglow {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 180px;
  height: 180px;
  margin-top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 240, 255, 0.55), rgba(220, 240, 255, 0) 66%);
}
#pHero {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 176px;
  height: 176px;
  margin-top: -92px;
  animation: pfloat 3.4s ease-in-out infinite;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.4));
}
.phd {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  max-width: 52%;
}
.phd small {
  display: block;
  font-size: 12px;
  color: #bfe3f2;
}
.phd b {
  display: block;
  font: 700 29px/1.15 var(--font-d);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 20, 40, 0.5);
  font-variant-numeric: tabular-nums;
}
.phd span {
  display: inline-block;
  margin-top: 7px;
  font: 600 11.5px var(--font-b);
  background: rgba(8, 30, 40, 0.55);
  color: var(--ok);
  padding: 4px 9px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.pbub {
  position: absolute;
  bottom: -12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  animation: pbub 5s linear infinite;
}
.pbub.b1 {
  left: 12%;
}
.pbub.b2 {
  left: 36%;
  width: 6px;
  height: 6px;
  animation-delay: 1.6s;
}
.pbub.b3 {
  left: 58%;
  animation-delay: 2.9s;
}
.pbub.b4 {
  left: 84%;
  width: 5px;
  height: 5px;
  animation-delay: 0.8s;
}
.psp {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: psp 2.2s ease-in-out infinite;
}
.psp.s1 {
  left: 38%;
  top: 22%;
}
.psp.s2 {
  left: 9%;
  top: 60%;
  width: 8px;
  height: 8px;
  animation-delay: 0.7s;
}
.psp.s3 {
  left: 44%;
  top: 66%;
  width: 9px;
  height: 9px;
  animation-delay: 1.3s;
}
@keyframes pfloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}
@keyframes prays {
  from {
    transform: rotate(-5deg);
  }
  to {
    transform: rotate(6deg);
  }
}
@keyframes pbub {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-210px);
    opacity: 0;
  }
}
@keyframes psp {
  0%,
  100% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}
.prank {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel2);
  border-radius: 14px;
  padding: 11px 14px;
  flex: none;
}
.prn {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 15px var(--font-d);
  color: var(--coin-ink);
  background: radial-gradient(circle at 35% 30%, #fff0a8, var(--coin) 60%, #b9801c);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.25),
    0 3px 6px rgba(0, 0, 0, 0.3);
}
.prk {
  flex: 1;
  min-width: 0;
}
.prk b {
  display: block;
  font: 600 14px var(--font-d);
}
.prk small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin: 1px 0 6px;
  font-variant-numeric: tabular-nums;
}
.pmult {
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  align-items: center;
  gap: 8px;
}
.pmult > div {
  background: var(--ink);
  border-radius: 12px;
  padding: 9px 10px;
  text-align: center;
  min-width: 0;
}
.pmult small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.pmult b {
  display: block;
  font: 700 18px var(--font-d);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pmult svg {
  width: 22px;
  height: 22px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.can .pmult .new {
  background: linear-gradient(160deg, #21566e, #123448);
  box-shadow:
    0 0 0 1.5px var(--pearl),
    0 0 16px rgba(214, 236, 255, 0.35);
}
.can .pmult .new b {
  color: var(--pearl);
}
.can .pmult svg {
  stroke: var(--pearl);
}
.pdive {
  min-height: 56px;
  flex-direction: row;
  gap: 10px;
  font-size: 16px;
  font-family: var(--font-d);
}
.pdive small {
  font-family: var(--font-b);
  font-size: 12px;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
.keep {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}
.keep span {
  padding-left: 16px;
  position: relative;
}
.keep span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.keep .ok {
  color: var(--ok);
}
.keep .ok::before {
  background: var(--ok);
}
.keep .no {
  color: var(--muted);
}
.keep .no::before {
  background: var(--bite);
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat {
  background: var(--panel2);
  border-radius: 12px;
  padding: 10px;
  min-width: 0;
}
.stat small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.stat b {
  font-family: var(--font-d);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.promo {
  display: flex;
  gap: 8px;
}
.promo input {
  flex: 1;
  min-width: 0;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: 600 15px var(--font-d);
  letter-spacing: 0.08em;
  padding: 0 12px;
  min-height: 44px;
  text-transform: uppercase;
  -webkit-user-select: text;
  user-select: text;
}
.promo input:focus {
  outline: 2px solid var(--coin);
  outline-offset: 1px;
}
.promo input::placeholder {
  font: 500 13px var(--font-b);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.pmsg {
  font-size: 13px;
  min-height: 18px;
  line-height: 1.4;
}
.pmsg.ok {
  color: var(--ok);
}
.pmsg.err {
  color: var(--bite);
}
.tog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--panel2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  color: var(--text);
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.tog i {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: var(--ink);
  position: relative;
  flex: none;
  transition: background 0.2s;
}
.tog i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition:
    transform 0.2s,
    background 0.2s;
}
.tog.on i {
  background: var(--ok);
}
.tog.on i::after {
  transform: translateX(18px);
  background: #fff;
}
.epic {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.78));
  cursor: pointer;
}
.epic > div.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transform: scale(0.6);
  opacity: 0;
}
.epic.show > div.wrap {
  animation: epin 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
@keyframes epin {
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.epic canvas {
  width: min(80vw, 340px);
  height: min(80vw, 340px);
}
.et {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: -30px;
  text-align: center;
}
.et small {
  font: 700 13px var(--font-d);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.et b {
  font: 700 24px var(--font-d);
  color: #fff;
  text-shadow: 0 0 18px var(--tc);
}
.et span {
  font: 700 20px var(--font-d);
  color: var(--coin);
}
.epic.view .et span {
  font: 600 14px var(--font-b);
  color: var(--text);
}
.et i {
  font-style: normal;
  font-size: 12px;
  color: #c8d8d4;
  margin-top: 8px;
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 9;
}
.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  max-width: 340px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.modal h2 {
  margin: 0;
  font-family: var(--font-d);
  font-size: 17px;
  text-wrap: balance;
}
.modal p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.modal .big {
  font-family: var(--font-d);
  font-size: 26px;
  color: var(--coin);
}
.modal .acts {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.modal .btn {
  min-width: 120px;
}
@media (prefers-reduced-motion: reduce) {
  .flash,
  .place,
  .sheet,
  .scrim {
    transition: none;
  }
  .hint,
  .bst.act,
  #pHero,
  .prays,
  .pbub,
  .psp {
    animation: none;
  }
}

/* порт пока закрыт: кнопка приглушена, с плашкой «скоро» */
.dk.soon{opacity:.6;position:relative}
.dk.soon::after{content:"скоро";position:absolute;top:2px;right:2px;font-size:9px;font-weight:800;padding:1px 5px;border-radius:8px;background:#ffb43a;color:#3a2200;text-transform:uppercase}

/* аккаунт в настройках */
.acc { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin: 4px 0 6px; }
.acc p { margin: 0; font-size: 13px; line-height: 1.4; opacity: .85; }
.gbtn { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; white-space: nowrap; background: #fff !important; color: #1f1f1f !important; }
.gbtn svg { width: 18px; height: 18px; }
.wpl { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: #2f8f5b; color: #fff; vertical-align: middle; }
.acc [hidden] { display: none !important; }

.tog.qsel b { font-size: 13px; font-weight: 700; color: #f3c64a; white-space: nowrap; }
