/* Bodoku design system: night castle palette, magic-stone buttons, tablet panels. Motion language:
   presses are quick and springy (90-160 ms), things arriving ease out with a small overshoot, things leaving ease in. */
:root {
  --night: #0b2224;
  --night2: #12332f;
  --deep: #164238;
  --violet: #2f8a5a;
  --lav: #a8e6a0;
  --lav2: #e4f7d6;
  --gold: #ffc65a;
  --gold2: #f29a1a;
  --teal: #3fe0d0;
  --rose: #ff8fc0;
  --stone: #5f7a6a;
  --ink: #0b2018;
  --text: #f2fbea;
  --muted: #a8c9b0;
  --danger: #ff6b7d;
  --r: 18px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.85, 0.35);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --font-t: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --font: 'Nunito', system-ui, sans-serif;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--night);
  color: var(--text);
  font: 700 16px/1.3 var(--font);
}
body {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
  touch-action: manipulation;
}
button {
  font: inherit;
  color: inherit;
}
#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
#fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(var(--sat) + 10px) calc(var(--sar) + 12px) calc(var(--sab) + 10px)
    calc(var(--sal) + 12px);
}
[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- buttons: polished magic stones */
.btn {
  --b-top: #5fbf6a;
  --b-bot: #2f8a5a;
  --b-edge: #1c5a3a;
  --b-ink: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  min-height: 48px;
  padding: 0 1.2em 4px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font: 800 1.08rem/1 var(--font-t);
  letter-spacing: 0.01em;
  color: var(--b-ink);
  background: linear-gradient(180deg, var(--b-top), var(--b-bot));
  box-shadow:
    inset 0 2px 0 #ffffff59,
    inset 0 -5px 0 var(--b-edge),
    0 6px 14px #03100e66;
  transition:
    transform 0.12s var(--ease-spring),
    box-shadow 0.12s ease,
    filter 0.15s ease;
  text-shadow: 0 2px 0 #00000033;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn:active,
.btn.down {
  transform: translateY(3px) scale(0.97);
  box-shadow:
    inset 0 2px 0 #ffffff40,
    inset 0 -2px 0 var(--b-edge),
    0 2px 6px #03100e66;
}
.btn:focus-visible {
  outline: 2px solid #ffffffa0;
  outline-offset: 3px;
}
.btn.gold {
  --b-top: #ffe08a;
  --b-bot: #f6a81f;
  --b-edge: #a35a06;
  --b-ink: #4a2300;
  text-shadow: 0 1px 0 #ffffff66;
}
.btn.teal {
  --b-top: #7ff6ea;
  --b-bot: #22b7aa;
  --b-edge: #0d6b65;
  --b-ink: #08343b;
  text-shadow: 0 1px 0 #ffffff55;
}
.btn.ghosty {
  --b-top: #377053;
  --b-bot: #24543c;
  --b-edge: #143524;
  --b-ink: var(--lav2);
}
.btn.big {
  min-height: 64px;
  font-size: 1.5rem;
  border-radius: 22px;
  padding: 0 1.6em 6px;
}
.btn.round {
  width: 52px;
  min-height: 52px;
  padding: 0 0 4px;
  border-radius: 50%;
}
.btn.small {
  min-height: 40px;
  font-size: 0.95rem;
  padding: 0 0.9em 4px;
  border-radius: 13px;
}
.btn[disabled],
.btn.off {
  filter: grayscale(0.7) brightness(0.75);
  cursor: default;
}
.btn .ic {
  width: 1.35em;
  height: 1.35em;
  flex: none;
}
.btn .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--rose);
  color: #3a0a22;
  font: 800 0.8rem/22px var(--font);
  box-shadow: 0 2px 0 #00000040;
  text-shadow: none;
}
.btn .badge.gold {
  background: var(--gold);
  color: #4a2300;
}
.btn .lockpip {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------------------- panels: carved stone tablets with a gold rim */
.panel {
  position: relative;
  border-radius: 26px;
  padding: 20px;
  background: radial-gradient(120% 80% at 50% 0%, #346e51 0%, #143a33 55%, #183a29 100%);
  box-shadow:
    inset 0 0 0 2px #ffc65a40,
    inset 0 0 0 6px #0a2120,
    inset 0 0 0 7px #5fbf6a33,
    0 18px 40px #020c0b99;
}
.panel h2 {
  margin: 0 0 12px;
  text-align: center;
  font: 800 1.7rem/1.05 var(--font-t);
  color: var(--gold);
  text-shadow:
    0 3px 0 #164238,
    0 0 18px #ffc65a55;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0a2120cc;
  box-shadow: inset 0 0 0 1.5px #ffffff22;
  font-weight: 800;
}
.coins {
  color: #ffe08a;
}
.coin-ic {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.2em;
}
.title {
  font: 800 2rem/1 var(--font-t);
}

/* ---------------------------------------------------------------- modal */
#modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: calc(var(--sat) + 16px) 16px calc(var(--sab) + 16px);
  background: #06170ecc;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease;
}
#modal > .panel {
  width: min(440px, 100%);
  max-height: 100%;
  overflow: auto;
  animation: popIn 0.38s var(--ease-spring);
}
#modal.leaving {
  animation: fadeOut 0.18s ease forwards;
}
#modal.leaving > .panel {
  animation: popOut 0.18s var(--ease-in) forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }
}
@keyframes popOut {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}

/* ---------------------------------------------------------------- toast & bubble */
#toast {
  position: fixed;
  left: 50%;
  top: calc(var(--sat) + 14px);
  z-index: 70;
  transform: translateX(-50%);
  width: min(92vw, 520px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 10px 16px;
  border-radius: 16px;
  background: #12332fee;
  box-shadow:
    inset 0 0 0 1.5px #ffc65a66,
    0 10px 24px #00000066;
  font-weight: 800;
  animation: toastIn 0.35s var(--ease-spring);
  max-width: 90vw;
  text-align: center;
}
.toast.out {
  animation: fadeOut 0.3s ease forwards;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.9);
  }
}
.bubble {
  position: absolute;
  z-index: 30;
  max-width: min(300px, 78vw);
  padding: 12px 15px;
  border-radius: 18px;
  background: #f8fff4;
  color: #164238;
  font: 800 1rem/1.25 var(--font);
  box-shadow: 0 10px 26px #03100e88;
  animation: bubbleIn 0.32s var(--ease-spring);
  pointer-events: none;
}
.bubble::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 3px;
  left: var(--tx, 24px);
  bottom: -7px;
}
.bubble.below::after {
  bottom: auto;
  top: -7px;
}
.bubble.out {
  animation: fadeOut 0.2s ease forwards;
}
@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.85);
  }
}

/* ---------------------------------------------------------------- screen transition: a soft mist wipe */
#wipe {
  position: fixed;
  inset: -20%;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 55%, #164238 0%, #163a28 45%, #0b2224 70%);
}
#wipe.on {
  animation: wipe 0.56s ease-in-out;
}
@keyframes wipe {
  0% {
    opacity: 0;
    transform: scale(1.15);
  }
  45%,
  55% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}
.enter > * {
  animation: rise 0.5s var(--ease-out) both;
}
.enter > *:nth-child(2) {
  animation-delay: 0.05s;
}
.enter > *:nth-child(3) {
  animation-delay: 0.1s;
}
.enter > *:nth-child(4) {
  animation-delay: 0.15s;
}
.enter > *:nth-child(5) {
  animation-delay: 0.2s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

body.calm *,
body.calm *::before,
body.calm *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Illustrated glyphs keep the same semantic button and hit area. */
img.ic,
img.coin-ic,
.chestArt {
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.artIcon {
  flex-shrink: 0;
}
.chestArt {
  width: 100%;
  height: 100%;
}

/* icons inside toasts (art icons are images and need an explicit size) */
.toast .ic,
.toast img {
  width: 22px;
  height: 22px;
  vertical-align: -5px;
  margin-right: 4px;
  object-fit: contain;
}

/* illustrated icons inside round buttons fill the stone instead of floating small */
.btn.round .artIcon {
  width: 64%;
  height: 64%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #0006);
}
.rule img {
  flex: none;
  object-fit: contain;
}
/* End of src/styles/base.css */

/* End of dist-static/assets/base-vXqt6N21.css */
