:root {
  --bg-sky: #f2d28d;
  --bg-cream: #fff5de;
  --ink: #64351d;
  --ink-soft: rgba(100, 53, 29, 0.68);
  --panel: rgba(255, 251, 242, 0.9);
  --stroke: #be7b45;
  --accent: #ffbd4d;
  --accent-strong: #f0822f;
  --mint: #a4d66e;
  --mint-dark: #5f9f39;
  --berry: #ec6f7f;
  --berry-dark: #a13a49;
  --cyan: #74bed8;
  --cyan-deep: #2e7d96;
  --shadow: 0 18px 38px rgba(73, 35, 16, 0.18);
  --soft-shadow: 0 10px 18px rgba(73, 35, 16, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-main: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.38), transparent 36%),
    linear-gradient(180deg, #f4d79b 0%, #f0bf6d 44%, #e2984c 100%);
  color: var(--ink);
  font-family: var(--font-main);
}

body {
  display: grid;
  place-items: center;
  padding: 18px;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(100%, 460px);
}

.phone-frame {
  position: relative;
  overflow: hidden;
  height: 860px;
  min-height: 860px;
  border-radius: 42px;
  border: 10px solid rgba(103, 54, 26, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #f8e6b6 0%, #f7d58e 100%);
  box-shadow: 0 28px 70px rgba(58, 24, 8, 0.28);
}

.phone-frame::before,
.phone-frame::after {
  content: "";
  position: absolute;
  inset: auto auto 20px 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  pointer-events: none;
}

.phone-frame::before {
  bottom: 12px;
  width: 140px;
  height: 5px;
  background: rgba(73, 35, 16, 0.38);
}

.phone-frame::after {
  content: none;
}

.app-root {
  position: relative;
  height: 100%;
  min-height: 860px;
}

.screen {
  position: relative;
  height: 100%;
  min-height: 860px;
  overflow: hidden;
}

.screen-map {
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.54), transparent 18%),
    linear-gradient(180deg, #d9b57a 0 34%, #c1d58d 34% 53%, #93cf76 53% 100%);
}

.screen-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 16%, rgba(255, 239, 186, 0.8), transparent 16%),
    linear-gradient(180deg, rgba(137, 95, 53, 0.28) 0 34%, transparent 34% 100%);
  opacity: 0.75;
}

.screen-map::after {
  content: "";
  position: absolute;
  inset: 44% -12% -5%;
  background:
    radial-gradient(circle at 15% 72%, #8ec97b 0 18%, transparent 18%),
    radial-gradient(circle at 84% 56%, #6eb36f 0 24%, transparent 24%),
    radial-gradient(circle at 54% 32%, #a9dc91 0 30%, transparent 30%),
    linear-gradient(180deg, transparent 0 12%, #6cb66c 12% 100%);
  opacity: 0.92;
}

.screen-game {
  background: linear-gradient(180deg, #fae8bc 0%, #f6d796 52%, #efc675 100%);
}

.screen-game.theme-swamp {
  background: linear-gradient(180deg, #fae8bc 0%, #f6d796 52%, #efc675 100%);
}

.screen-game.theme-grass {
  background: linear-gradient(180deg, #fae8bc 0%, #f6d796 52%, #efc675 100%);
}

.screen-game.theme-forest {
  background: linear-gradient(180deg, #fae8bc 0%, #f6d796 52%, #efc675 100%);
}

.screen-game.theme-tundra {
  background: linear-gradient(180deg, #fae8bc 0%, #f6d796 52%, #efc675 100%);
}

.screen-game::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 22%);
  pointer-events: none;
}

.screen-game.theme-tundra::after {
  content: none;
}

.ui-layer {
  position: relative;
  z-index: 2;
  padding: 18px 18px 28px;
}

.ui-layer.game-layer {
  padding: 14px 18px 10px;
}

.topbar {
  display: grid;
  grid-template-columns: 40px 1fr auto auto auto;
  align-items: center;
  gap: 10px;
}

.topbar.game-topbar {
  grid-template-columns: 40px minmax(0, 1fr) auto auto auto;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
  font-size: 20px;
  font-weight: 900;
}

.pill {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 249, 234, 0.92);
  box-shadow: var(--soft-shadow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.pill.progress-pill {
  gap: 6px;
  padding-inline: 10px;
}

.hero-card {
  position: relative;
  margin-top: 20px;
  padding: 20px 18px 18px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 251, 241, 0.98), rgba(255, 244, 219, 0.96));
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  border: 2px dashed rgba(190, 123, 69, 0.26);
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.mascot-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--crew-badge, #ffcf7b), var(--crew-accent, #ffa84d));
  box-shadow: inset 0 -6px 0 rgba(137, 71, 25, 0.18);
  overflow: hidden;
}

.mascot-art,
.node-avatar-art,
.progress-host-art,
.avatar-art,
.crew-art {
  display: block;
}

.mascot-art {
  width: 54px;
  height: 54px;
}

.hero-title h1,
.hero-title h2,
.section-title {
  margin: 0;
  line-height: 1;
}

.hero-title h1,
.hero-title h2 {
  font-size: 29px;
  letter-spacing: 0.02em;
}

.hero-subtitle,
.muted {
  color: var(--ink-soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.crew-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.crew-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--crew-badge), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 0 0 1px rgba(190, 123, 69, 0.12);
}

.crew-art-wrap {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--crew-badge), var(--crew-accent));
}

.crew-art {
  width: 44px;
  height: 44px;
}

.crew-copy strong,
.crew-copy span {
  display: block;
}

.crew-copy strong {
  font-size: 14px;
}

.crew-copy span {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

.stat-chip {
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 251, 243, 0.86);
  box-shadow: inset 0 0 0 1px rgba(190, 123, 69, 0.18);
}

.stat-chip strong,
.label-strong {
  display: block;
  font-size: 14px;
}

.stat-chip span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

.map-area {
  position: relative;
  min-height: 520px;
  margin-top: 18px;
}

.path-ribbon {
  position: absolute;
  inset: 58px 32px 54px;
  background:
    radial-gradient(circle at 10% 72%, rgba(255, 255, 255, 0.42), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  clip-path: polygon(28% 0, 52% 4%, 58% 10%, 40% 19%, 16% 28%, 12% 38%, 38% 48%, 62% 54%, 66% 64%, 44% 72%, 24% 82%, 30% 100%, 54% 92%, 70% 80%, 84% 62%, 80% 46%, 60% 34%, 46% 20%, 52% 8%);
  opacity: 0.7;
}

.path-ribbon::before {
  content: "";
  position: absolute;
  inset: 16px;
  background: rgba(255, 243, 210, 0.58);
  clip-path: inherit;
  filter: blur(10px);
}

.level-node {
  position: absolute;
  width: 118px;
  padding: 10px;
  border-radius: 24px;
  transform: translate(-50%, -50%);
  background: rgba(255, 250, 240, 0.88);
  box-shadow: var(--soft-shadow);
  border: 2px solid transparent;
  text-align: center;
  animation: float-node 3.8s ease-in-out infinite;
}

.level-node.selected {
  border-color: rgba(240, 130, 47, 0.72);
  background: rgba(255, 245, 220, 0.96);
}

.level-node.locked {
  opacity: 0.55;
  filter: saturate(0.78);
}

.level-node:nth-child(odd) {
  animation-delay: 0.3s;
}

.node-avatar {
  width: 40px;
  height: 40px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--crew-badge, #fff4d6), var(--crew-accent, #f0b36b));
  box-shadow: inset 0 -4px 0 rgba(137, 71, 25, 0.12);
}

.node-avatar-art {
  width: 34px;
  height: 34px;
}

.node-level {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.node-name {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 900;
}

.node-progress {
  margin-top: 8px;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(104, 155, 93, 0.18);
}

.node-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9bd467, #69b95e);
}

.start-bar {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.map-layer {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 100%;
}

.map-selected-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 24px;
  background: rgba(255, 249, 236, 0.92);
  box-shadow: var(--soft-shadow);
}

.map-selected-badge {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff2d5, #ffbd78);
}

.map-selected-art {
  width: 42px;
  height: 42px;
}

.map-selected-copy strong,
.map-selected-copy span {
  display: block;
}

.map-selected-copy strong {
  font-size: 17px;
}

.map-selected-copy span {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-soft);
}

.map-stage {
  position: relative;
  height: 100%;
  min-height: 0;
  margin-top: 12px;
}

.map-world {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 36px;
  background: transparent;
}

.map-scroll {
  height: 100%;
  min-height: 0;
  padding-bottom: 152px;
  overflow-y: auto;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 250, 235, 0.1), rgba(255, 250, 235, 0.02));
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 237, 0.32),
    inset 0 16px 24px rgba(255, 255, 255, 0.18);
  scrollbar-width: none;
}

.map-scroll::-webkit-scrollbar {
  display: none;
}

.map-art {
  position: absolute;
  inset-inline: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: top center;
  pointer-events: none;
  z-index: 0;
}

.map-art-unlocked {
  inset: 0;
  background-image: url("./assets/worlds/map-unlocked.svg");
}

.map-art-locked {
  top: 0;
  height: 760px;
  background-image: url("./assets/worlds/map-locked.svg");
  opacity: 1;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 150px), rgba(0, 0, 0, 0.92) calc(100% - 108px), rgba(0, 0, 0, 0.22) calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 150px), rgba(0, 0, 0, 0.92) calc(100% - 108px), rgba(0, 0, 0, 0.22) calc(100% - 32px), transparent 100%);
}

.map-art-locked::after {
  content: "";
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: -34px;
  height: 272px;
  background:
    radial-gradient(26% 62% at 0% 80%, rgba(244, 216, 168, 0.98) 0 56%, rgba(244, 216, 168, 0) 57%),
    radial-gradient(24% 60% at 16% 70%, rgba(243, 214, 164, 0.96) 0 56%, rgba(243, 214, 164, 0) 57%),
    radial-gradient(25% 62% at 36% 78%, rgba(242, 210, 158, 0.96) 0 56%, rgba(242, 210, 158, 0) 57%),
    radial-gradient(24% 60% at 54% 74%, rgba(245, 220, 176, 0.96) 0 56%, rgba(245, 220, 176, 0) 57%),
    radial-gradient(24% 58% at 72% 78%, rgba(241, 208, 154, 0.95) 0 56%, rgba(241, 208, 154, 0) 57%),
    radial-gradient(24% 60% at 88% 72%, rgba(244, 216, 168, 0.97) 0 56%, rgba(244, 216, 168, 0) 57%),
    radial-gradient(26% 62% at 100% 80%, rgba(242, 214, 168, 0.97) 0 56%, rgba(242, 214, 168, 0) 57%),
    linear-gradient(180deg, rgba(236, 208, 160, 0) 0%, rgba(236, 208, 160, 0.42) 54%, rgba(236, 208, 160, 0.08) 78%, rgba(236, 208, 160, 0) 100%);
  pointer-events: none;
  opacity: 0.94;
  z-index: 1;
  filter: blur(10px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.86) 24%, #000 56%, rgba(0, 0, 0, 0.7) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.86) 24%, #000 56%, rgba(0, 0, 0, 0.7) 82%, transparent 100%);
}

.map-world::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 18%, rgba(14, 78, 82, 0.04) 100%);
  pointer-events: none;
  z-index: 2;
}

.map-world::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -2px;
  height: 260px;
  background:
    radial-gradient(34% 72% at 12% 100%, rgba(164, 226, 127, 0.34) 0 56%, rgba(164, 226, 127, 0) 57%),
    radial-gradient(42% 88% at 58% 100%, rgba(208, 247, 171, 0.32) 0 56%, rgba(208, 247, 171, 0) 57%),
    radial-gradient(34% 72% at 92% 100%, rgba(154, 220, 138, 0.26) 0 56%, rgba(154, 220, 138, 0) 57%),
    linear-gradient(180deg, rgba(167, 229, 255, 0) 0%, rgba(167, 229, 255, 0.1) 28%, rgba(164, 221, 180, 0.26) 62%, rgba(125, 206, 111, 0.42) 100%);
  pointer-events: none;
  z-index: 1;
  filter: blur(8px);
  opacity: 0.9;
}

.map-sign {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  background: transparent;
  text-align: center;
  animation: float-node 3.8s ease-in-out infinite;
  z-index: 2;
}

.map-sign.unlocked {
  width: 126px;
  padding-bottom: 66px;
}

.map-sign.unlocked::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: linear-gradient(180deg, #d8eef5, #9ccfdf);
  border: 2px solid #91aab6;
  box-shadow: 0 3px 0 rgba(137, 164, 179, 0.24);
}

.map-sign.unlocked::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 10px;
  height: 48px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #926335, #70451f);
  box-shadow: 0 3px 0 rgba(82, 50, 24, 0.16);
}

.map-sign.selected {
  z-index: 4;
}

.map-sign.locked {
  width: 76px;
  height: 82px;
  transform: translate(-50%, -12%);
  z-index: 3;
}

.map-sign-plaques {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.map-sign-plaque {
  position: relative;
  border: 2px solid #8c562f;
  color: #fff9f1;
  text-shadow: 0 2px 0 rgba(113, 63, 30, 0.52);
  background:
    linear-gradient(180deg, rgba(255, 242, 201, 0.32), rgba(255, 242, 201, 0) 26%),
    repeating-linear-gradient(180deg, rgba(120, 72, 37, 0.12) 0 6px, rgba(255, 238, 202, 0.04) 6px 13px),
    linear-gradient(180deg, #e8b470, #c67a3e);
  box-shadow:
    0 7px 0 rgba(131, 80, 37, 0.18),
    0 12px 20px rgba(92, 56, 27, 0.18);
}

.map-sign-plaque::before,
.map-sign-plaque::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(137, 83, 42, 0.78);
  transform: translateY(-50%);
}

.map-sign-plaque::before {
  left: 10px;
}

.map-sign-plaque::after {
  right: 10px;
}

.map-sign-plaque-top {
  min-width: 84px;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
}

.map-sign-plaque-main {
  min-width: 110px;
  padding: 9px 12px 10px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
}

.map-sign.selected .map-sign-plaque {
  background:
    linear-gradient(180deg, rgba(255, 247, 216, 0.38), rgba(255, 247, 216, 0) 28%),
    repeating-linear-gradient(180deg, rgba(120, 72, 37, 0.11) 0 6px, rgba(255, 240, 205, 0.06) 6px 13px),
    linear-gradient(180deg, #efbf78, #d28341);
}

.map-sign-progress-chip {
  position: absolute;
  top: -34px;
  left: 50%;
  width: 90px;
  height: 26px;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 999px;
  border: 3px solid #7b5131;
  background: #f7f6ee;
  box-shadow: 0 8px 14px rgba(78, 56, 32, 0.16);
}

.map-sign-progress-chip > span {
  position: absolute;
  inset: 3px auto 3px 3px;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #bde94e, #73cc4f);
}

.map-sign-progress-chip strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 16px;
  line-height: 20px;
  color: #fffdf7;
  text-shadow: 0 1px 0 rgba(87, 58, 31, 0.5);
}

.map-sign-lock {
  position: relative;
  width: 68px;
  height: 72px;
  display: grid;
  place-items: end center;
  filter: drop-shadow(0 10px 14px rgba(90, 62, 33, 0.2));
}

.map-sign-lock-shackle {
  position: absolute;
  top: 4px;
  width: 40px;
  height: 32px;
  border: 7px solid #8fa4bb;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.12);
}

.map-sign-lock-body {
  position: relative;
  width: 66px;
  height: 48px;
  border-radius: 14px;
  border: 4px solid #ca7418;
  background: linear-gradient(180deg, #ffec7d, #f6b334);
  box-shadow:
    0 0 0 5px #fffdf7,
    inset 0 -5px 0 rgba(216, 128, 34, 0.3);
}

.map-sign-lock-keyhole {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 12px;
  height: 18px;
  transform: translateX(-50%);
}

.map-sign-lock-keyhole::before,
.map-sign-lock-keyhole::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #b45b0b;
}

.map-sign-lock-keyhole::before {
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.map-sign-lock-keyhole::after {
  top: 9px;
  width: 7px;
  height: 11px;
  border-radius: 0 0 8px 8px;
}

.selected-stall {
  position: absolute;
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.stall-mascot {
  width: 46px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px 18px 18px 22px;
  background: linear-gradient(180deg, var(--crew-badge, #fff4d6), var(--crew-accent, #f0b36b));
  box-shadow: var(--soft-shadow);
}

.stall-art {
  width: 38px;
  height: 38px;
}

.stall-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 252, 243, 0.9);
  box-shadow: var(--soft-shadow);
  font-size: 12px;
  font-weight: 900;
}

.map-start-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 6;
  pointer-events: none;
}

.map-start-button {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  position: relative;
  pointer-events: auto;
  padding-block: 18px 16px;
  border: 4px solid #cf7620;
  color: #fffdf6;
  text-shadow: 0 2px 0 rgba(196, 110, 27, 0.82);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.4), transparent 28%),
    linear-gradient(180deg, #ffd978, #ffb645);
  box-shadow:
    0 16px 34px rgba(108, 57, 18, 0.2),
    inset 0 -8px 0 rgba(214, 132, 40, 0.26);
}

.map-start-button::before,
.map-start-button::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 22px;
  height: 18px;
  border-radius: 14px 14px 0 0;
  border: 4px solid #cf7620;
  border-bottom: 0;
  background: linear-gradient(180deg, #d18a37, #b96b20);
}

.map-start-button::before {
  left: 72px;
}

.map-start-button::after {
  right: 72px;
}

.map-start-button small {
  color: rgba(255, 251, 238, 0.96);
  text-shadow: 0 2px 0 rgba(168, 96, 24, 0.7);
}

.primary-button,
.secondary-button,
.ghost-button,
.booster-button,
.serve-button {
  border-radius: 22px;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, filter 160ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.booster-button:hover,
.serve-button:hover,
.icon-button:hover,
.level-node:hover,
.slot-card:hover,
.order-card:hover {
  transform: translateY(-2px);
}

.primary-button {
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffd57a, #ffb347);
  color: var(--ink);
  font-size: 28px;
}

.primary-button small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.primary-button.map-start-button {
  padding-block: 18px 16px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.4), transparent 28%),
    linear-gradient(180deg, #ffd978, #ffb645);
  color: #fffdf6;
  font-size: 32px;
}

.primary-button.map-start-button small {
  color: rgba(255, 251, 238, 0.96);
  text-shadow: 0 2px 0 rgba(168, 96, 24, 0.7);
}

.secondary-button {
  padding: 14px 18px;
  background: linear-gradient(180deg, #b9eb8a, #7dc855);
  color: #2f4a1f;
  font-size: 18px;
}

.ghost-button {
  padding: 14px 18px;
  background: rgba(255, 248, 234, 0.9);
  color: var(--ink);
  font-size: 18px;
}

.scene-header {
  position: relative;
  margin-top: 8px;
  min-height: 250px;
}

.sky-cloud {
  position: absolute;
  top: 12px;
  width: 108px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(0.2px);
  animation: drift 8s ease-in-out infinite;
}

.sky-cloud::before,
.sky-cloud::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: inherit;
}

.sky-cloud::before {
  width: 56px;
  height: 48px;
  left: 18px;
  top: -16px;
}

.sky-cloud::after {
  width: 52px;
  height: 42px;
  right: 12px;
  top: -10px;
}

.sky-cloud.left {
  left: -12px;
}

.sky-cloud.right {
  right: -6px;
  top: 44px;
  animation-delay: 0.8s;
}

.customer-row {
  position: absolute;
  inset: 116px 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.compact-orders {
  align-items: start;
}

.order-pod {
  padding: 8px 8px 10px;
  border-radius: 24px;
  background: rgba(255, 251, 244, 0.88);
  box-shadow: var(--soft-shadow);
  border: 2px solid transparent;
  text-align: center;
}

.order-pod.selected {
  border-color: rgba(255, 185, 77, 0.94);
}

.order-critter {
  display: flex;
  justify-content: center;
}

.order-plate {
  width: 72px;
  height: 72px;
  margin: 8px auto 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9), transparent 22%),
    linear-gradient(180deg, #fbf5e6, #ece3cb);
  box-shadow:
    inset 0 -6px 0 rgba(128, 95, 54, 0.14),
    0 6px 12px rgba(85, 46, 23, 0.14);
}

.order-plate-icon {
  font-size: 30px;
}

.order-name {
  font-size: 13px;
  font-weight: 900;
}

.order-request {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.compact-order-progress {
  margin-top: 8px;
}

.order-card {
  position: relative;
  min-height: 124px;
  padding: 10px 10px 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.98), var(--crew-badge, rgba(255, 251, 244, 0.94)));
  box-shadow: var(--soft-shadow);
  border: 2px solid transparent;
}

.order-card.selected {
  border-color: rgba(255, 185, 77, 0.94);
}

.customer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--crew-badge, #ffcc90), var(--crew-accent, #f19f62));
}

.avatar-art {
  width: 36px;
  height: 36px;
}

.customer-name {
  font-size: 14px;
  font-weight: 900;
}

.order-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(243, 244, 235, 0.92);
  box-shadow: inset 0 0 0 1px rgba(120, 144, 76, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.order-progress {
  margin-top: 10px;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(113, 171, 102, 0.16);
}

.order-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a8de7c, #62b757);
}

.plate-counter {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.game-progress-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 152px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255, 251, 244, 0.92);
  box-shadow: var(--soft-shadow);
}

.floating-level-card {
  right: 0;
  bottom: 6px;
  width: 154px;
}

.progress-host {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--crew-badge, #fff4d6), var(--crew-accent, #f0b36b));
}

.progress-host-art {
  width: 38px;
  height: 38px;
}

.progress-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.progress-meter {
  overflow: hidden;
  height: 14px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(113, 171, 102, 0.16);
}

.progress-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3d46d, #ee8f3d);
}

.game-board {
  position: relative;
  margin-top: 10px;
  padding: 18px 16px 16px;
  border-radius: 30px 30px 24px 24px;
  background:
    linear-gradient(180deg, #ffe8ae 0 10%, #f7d18d 10% 24%, #ba7c4b 24% 26%, #d69b66 26% 100%);
  box-shadow: var(--shadow);
}

.faithful-board {
  padding-top: 12px;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.board-strip {
  margin-bottom: 10px;
}

.board-hint {
  font-size: 14px;
  font-weight: 800;
  color: rgba(100, 53, 29, 0.78);
}

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

.slot-card {
  position: relative;
  min-height: 142px;
  padding: 8px 6px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 247, 226, 0.94), rgba(255, 241, 214, 0.92));
  box-shadow: inset 0 0 0 2px rgba(190, 123, 69, 0.18);
  text-align: center;
}

.pile-slot {
  min-height: 164px;
  padding: 8px 4px 10px;
  background: transparent;
  box-shadow: none;
}

.pile-slot.selected {
  outline: none;
}

.pile-slot.empty::before {
  content: none;
}

.pile-slot.selected .pile-stack {
  filter: drop-shadow(0 0 0.6rem rgba(255, 200, 89, 0.55));
}

.slot-card.selected:not(.pile-slot) {
  outline: 3px solid rgba(255, 185, 77, 0.94);
}

.slot-card.empty::before {
  content: "Puste";
  position: absolute;
  inset: 12px 10px auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.slot-card.locked {
  display: grid;
  place-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(232, 223, 205, 0.96), rgba(220, 201, 176, 0.96));
}

.slot-stack {
  position: relative;
  margin-top: 30px;
}

.pile-stack {
  position: relative;
  min-height: 90px;
  margin-top: 20px;
}

.pile-disc {
  position: absolute;
  left: 50%;
  width: 62px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--disc-color, #ffd77d);
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.14),
    0 4px 8px rgba(80, 30, 15, 0.18);
}

.pile-top-disc {
  width: 74px;
  height: 46px;
  display: grid;
  place-items: center;
}

.pile-icon {
  font-size: 28px;
  transform: translateY(-2px);
}

.pile-empty-ring {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 70px;
  height: 40px;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 4px dashed rgba(218, 170, 116, 0.72);
  background: rgba(255, 250, 236, 0.48);
}

.pile-top-label {
  margin-top: 8px;
}

.pile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.stack-plate {
  position: relative;
  width: 100%;
  min-height: 70px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--plate-color, #ffd77d);
  color: #fff8ef;
  box-shadow:
    inset 0 -8px 0 rgba(0, 0, 0, 0.14),
    0 8px 16px rgba(80, 30, 15, 0.22);
}

.stack-plate::before {
  content: "";
  position: absolute;
  inset: 10px 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
}

.stack-item {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  place-items: center;
}

.stack-item strong {
  font-size: 11px;
}

.stack-height {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 900;
  color: var(--ink-soft);
}

.hidden-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  min-height: 18px;
}

.hidden-token {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(73, 35, 16, 0.16);
}

.slot-status {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-soft);
}

.lock-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 249, 234, 0.86);
  box-shadow: inset 0 -6px 0 rgba(73, 35, 16, 0.08);
  font-size: 30px;
}

.slot-locked-card {
  min-height: 164px;
}

.lock-caption {
  font-size: 13px;
  font-weight: 900;
}

.lock-subcopy {
  font-size: 11px;
  color: var(--ink-soft);
}

.status-banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: inset 0 0 0 1px rgba(190, 123, 69, 0.14);
  font-size: 14px;
  font-weight: 800;
}

.subtle-banner {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  align-items: end;
}

.compact-toolbar {
  margin-top: 14px;
}

.booster-button {
  min-height: 76px;
  padding: 12px 10px;
  background: rgba(255, 248, 235, 0.96);
  color: var(--ink);
}

.booster-button strong,
.serve-button strong {
  display: block;
  font-size: 14px;
}

.booster-button span,
.serve-button span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

.serve-button {
  min-height: 96px;
  padding: 14px 12px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.34), transparent 18%),
    linear-gradient(180deg, #8be08a, #59b455);
  color: #234a18;
}

.serve-button .serve-count {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 900;
}

.faithful-game-layer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  height: 100%;
  min-height: 0;
}

.game-scene-shell {
  display: grid;
  grid-template-rows: 248px 74px minmax(0, 1fr);
  min-height: 0;
  border-radius: 34px;
  overflow: hidden;
  --lane-pos-1: 20%;
  --lane-pos-2: 50%;
  --lane-pos-3: 80%;
  background: linear-gradient(180deg, #f0d287, #c17a4f 56%, #9e5a37 100%);
  box-shadow: var(--shadow);
}

.play-scene {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-color: #9fddff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 24%),
    var(--scene-art, url("./assets/worlds/game-scene-level-01.svg"));
  background-repeat: no-repeat;
  background-position: center -28px;
  background-size: cover;
}

.play-scene::before,
.play-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.play-scene::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 24%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.58), transparent 26%);
  opacity: 0.9;
}

.screen-game.theme-swamp .play-scene::after,
.screen-game.theme-grass .play-scene::after,
.screen-game.theme-forest .play-scene::after,
.screen-game.theme-tundra .play-scene::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 52%),
    linear-gradient(0deg, rgba(75, 128, 147, 0.1), transparent 24%);
}

.screen-game.theme-tundra .play-scene::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 48%),
    linear-gradient(0deg, rgba(88, 140, 177, 0.12), transparent 26%);
}

.scene-awning {
  display: none;
}

.scene-table-ledge {
  position: absolute;
  inset: auto 0 0;
  height: 26px;
  background:
    linear-gradient(180deg, rgba(255, 248, 219, 0.88), rgba(242, 208, 118, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 18px, transparent 18px 36px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    0 -2px 0 rgba(194, 139, 66, 0.18);
}

.guest-lane {
  position: absolute;
  inset: auto 0 -34px;
  height: 202px;
  z-index: 3;
}

.guest-order {
  position: absolute;
  bottom: 0;
  left: var(--lane-anchor, 50%);
  width: 154px;
  height: 202px;
  background: none;
  text-align: center;
  --guest-bubble-shift: 0px;
  --guest-mascot-shift: 0px;
  transform: translateX(-50%);
}

.guest-order-locked {
  cursor: pointer;
}

.guest-order-locked.is-future {
  cursor: default;
  pointer-events: none;
}

.guest-order-ghost {
  pointer-events: none;
  z-index: 8;
}

.guest-bubble {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fffdf8;
  transform: translateX(calc(-50% + var(--guest-bubble-shift)));
  box-shadow:
    0 6px 10px rgba(79, 44, 17, 0.12),
    inset 0 0 0 3px rgba(198, 115, 68, 0.18);
  animation: guestBubbleFloat 3.6s ease-in-out infinite;
}

.guest-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 12px;
  transform: translateX(-50%) rotate(18deg);
  border-radius: 4px 4px 8px 4px;
  background: #fffdf8;
}

.guest-bubble-locked {
  background: rgba(255, 253, 248, 0.92);
  box-shadow:
    0 6px 10px rgba(79, 44, 17, 0.08),
    inset 0 0 0 3px rgba(170, 136, 104, 0.16);
}

.guest-order-locked.is-future .guest-bubble-locked {
  opacity: 0.82;
}

.guest-pos-1,
.counter-pos-1 {
  --lane-anchor: var(--lane-pos-1);
}

.guest-pos-1 {
  --guest-bubble-shift: -20px;
  --guest-mascot-shift: 0px;
}

.guest-pos-2,
.counter-pos-2 {
  --lane-anchor: var(--lane-pos-2);
}

.guest-pos-2 {
  --guest-bubble-shift: 0px;
  --guest-mascot-shift: 0px;
}

.guest-pos-3,
.counter-pos-3 {
  --lane-anchor: var(--lane-pos-3);
}

.guest-pos-3 {
  --guest-bubble-shift: 20px;
  --guest-mascot-shift: 0px;
}

.guest-bubble-chip {
  position: absolute;
  top: -4px;
  right: -6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fceba8, #f7c75f);
  border: 2px solid #fff8ea;
  box-shadow: 0 4px 8px rgba(107, 62, 32, 0.16);
  color: #9d5b28;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: rotate(-10deg);
}

.guest-order.selected .guest-bubble {
  box-shadow:
    0 8px 14px rgba(79, 44, 17, 0.16),
    0 0 0 4px rgba(255, 191, 84, 0.34);
}

.guest-bubble-icon {
  font-size: 20px;
  transform: translateY(-1px);
}

.guest-bubble-art {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.item-art-fallback {
  display: inline-grid;
  place-items: center;
}

.guest-mascot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 146px;
  height: 168px;
  display: grid;
  place-items: end center;
  transform: translateX(calc(-50% + var(--guest-mascot-shift)));
  animation: guestBodyBob 3.6s ease-in-out infinite;
}

.guest-mascot-art {
  width: 146px;
  height: 168px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(83, 50, 24, 0.18));
}

.guest-mascot-locked {
  opacity: 0.92;
}

.guest-mascot-art-locked {
  filter: grayscale(0.86) brightness(1.08) saturate(0.65) drop-shadow(0 6px 12px rgba(83, 50, 24, 0.08));
  opacity: 0.58;
}

.guest-unlock-pill {
  position: absolute;
  left: 50%;
  bottom: 10px;
  min-width: 80px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf1, #ffe2ae);
  box-shadow:
    0 6px 12px rgba(86, 50, 23, 0.12),
    inset 0 -2px 0 rgba(206, 167, 94, 0.32);
  color: #8a532d;
  font-size: 13px;
  font-weight: 900;
  transform: translateX(-50%);
}

.unlock-cost-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
}

.unlock-cost-icon,
.unlock-cost-value {
  display: block;
  flex: 0 0 auto;
}

.unlock-cost-value {
  letter-spacing: 0.01em;
}

.guest-order-locked.is-future .guest-unlock-pill {
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.92), rgba(234, 222, 203, 0.92));
  color: #9a846c;
  box-shadow:
    0 6px 12px rgba(86, 50, 23, 0.06),
    inset 0 -2px 0 rgba(186, 171, 154, 0.18);
}

.guest-pos-1 .guest-mascot,
.guest-pos-1 .guest-bubble {
  animation-delay: -0.8s;
}

.guest-pos-2 .guest-mascot,
.guest-pos-2 .guest-bubble {
  animation-delay: -1.7s;
}

.guest-pos-3 .guest-mascot,
.guest-pos-3 .guest-bubble {
  animation-delay: -2.4s;
}

.guest-order.is-eating .guest-mascot {
  animation: guestFeedHop 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.guest-order.is-eating .guest-bubble {
  animation: guestBubbleNudge 360ms ease;
}

.guest-order.is-unlocked .guest-mascot {
  animation: guestUnlockMascot 680ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.guest-order.is-unlocked .guest-bubble {
  animation: guestUnlockBubble 680ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.guest-order.is-entering.enter-left {
  animation: guestEnterLeft 520ms cubic-bezier(0.18, 0.88, 0.22, 1) both;
}

.guest-order.is-entering.enter-right {
  animation: guestEnterRight 520ms cubic-bezier(0.18, 0.88, 0.22, 1) both;
}

.guest-order.is-entering.enter-down {
  animation: guestEnterDown 520ms cubic-bezier(0.18, 0.88, 0.22, 1) both;
}

.guest-order-ghost.is-exiting.exit-left {
  animation: guestExitLeft 420ms cubic-bezier(0.4, 0, 0.8, 0.2) both;
}

.guest-order-ghost.is-exiting.exit-right {
  animation: guestExitRight 420ms cubic-bezier(0.4, 0, 0.8, 0.2) both;
}

.guest-order-ghost.is-exiting.exit-down {
  animation: guestExitDown 420ms cubic-bezier(0.4, 0, 0.8, 0.2) both;
}

.guest-remaining {
  display: none;
}

.counter-strip {
  position: relative;
  display: block;
  height: 100%;
  padding: 0 52px;
  overflow: visible;
  z-index: 8;
  background:
    linear-gradient(180deg, rgba(255, 248, 218, 0.42), rgba(244, 214, 121, 0.1)),
    linear-gradient(90deg, rgba(213, 166, 89, 0.12) 0 1px, transparent 1px 34px),
    linear-gradient(0deg, rgba(213, 166, 89, 0.12) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, #f9e4a0, #f0ca6d);
  background-size: auto, 35px 100%, 100% 28px, auto;
  box-shadow:
    inset 0 2px 0 rgba(255, 252, 237, 0.62),
    inset 0 -2px 0 rgba(206, 146, 76, 0.24);
}

.counter-decor {
  position: absolute;
  top: 10px;
  width: 42px;
  height: 42px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(83, 50, 24, 0.12));
  z-index: 1;
}

.counter-decor-left {
  left: -6px;
}

.counter-decor-right {
  right: -4px;
}

.counter-strip::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: rgba(157, 101, 53, 0.28);
}

.counter-station {
  position: absolute;
  left: var(--lane-anchor, 50%);
  bottom: 1px;
  width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  text-align: center;
  transform: translateX(-50%);
  z-index: 9;
}

.counter-station-locked {
  z-index: 8;
}

.counter-station-locked.is-future {
  pointer-events: none;
}

.counter-station.is-fed .counter-plate-core {
  animation: counterPlatePop 420ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.counter-station.is-unlocked .counter-plate-core {
  animation: counterUnlockBloom 620ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.counter-plate {
  position: relative;
  width: 86px;
  height: 88px;
  margin: 0 auto;
  overflow: visible;
}

.counter-plate-core {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 84px;
  height: 88px;
  transform: translateX(-50%);
}

.counter-stack {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 84px;
  height: var(--stack-height, 84px);
  z-index: 3;
  transform: translateX(-50%);
}

.counter-stack-svg {
  display: block;
  width: 84px;
  height: 100%;
  overflow: visible;
}

.counter-stack-art-wrap {
  position: absolute;
  left: 50%;
  top: var(--stack-art-top, 27px);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.counter-stack-art {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.counter-stack-any {
  font-size: 18px;
}

.counter-empty-mark {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 84px;
  height: 56px;
  display: block;
  z-index: 2;
  transform: translateX(-50%);
}

.counter-lock-plate {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 84px;
  height: 56px;
  display: block;
  transform: translateX(-50%);
  opacity: 0.9;
}

.counter-lock-plate .counter-empty-svg {
  width: 84px;
  height: 56px;
}

.counter-lock-badge {
  position: absolute;
  left: 50%;
  top: 19px;
  min-width: 58px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffefc, #fee7bf);
  box-shadow:
    0 4px 8px rgba(89, 49, 20, 0.12),
    inset 0 -2px 0 rgba(205, 169, 98, 0.3);
  color: #8f562f;
  font-size: 12px;
  font-weight: 900;
  transform: translateX(-50%);
  z-index: 4;
}

.counter-station-locked.is-future .counter-lock-badge {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(231, 226, 217, 0.92));
  color: #9b8772;
}

.counter-empty-svg {
  display: block;
  width: 84px;
  height: 56px;
}

.counter-empty-critter {
  position: absolute;
  left: 50%;
  top: 19px;
  width: 24px;
  height: 24px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 0.22;
  filter: saturate(0) brightness(1.06);
}

.counter-progress-coil {
  position: absolute;
  left: 50%;
  bottom: -2px;
  display: flex;
  justify-content: center;
  gap: 2px;
  width: 68px;
  min-height: 10px;
  transform: translateX(-50%);
  z-index: 5;
}

.counter-progress-pill {
  width: 5px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d4e0f3, #b7c7e4);
  box-shadow: inset 0 -1px 0 rgba(82, 104, 149, 0.18);
}

.counter-progress-pill.is-filled {
  background: linear-gradient(180deg, #7f97c8, #516ca9);
  box-shadow:
    inset 0 -1px 0 rgba(46, 63, 97, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.32);
}

.table-board {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 96px;
  min-height: 0;
  overflow: visible;
  z-index: 9;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 224, 164, 0.18), transparent 34%),
    radial-gradient(circle at 22% 22%, rgba(255, 198, 136, 0.12), transparent 24%),
    radial-gradient(circle at 72% 58%, rgba(255, 187, 130, 0.08), transparent 24%),
    linear-gradient(180deg, #dfa06e 0%, #d78f5d 40%, #cb7f4c 72%, #c17142 100%);
}

.table-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 31%, rgba(145, 84, 46, 0.22) 31% 32%, transparent 32% 63%, rgba(145, 84, 46, 0.18) 63% 64%, transparent 64% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 18%, rgba(255, 255, 255, 0.02) 50%, transparent 82%, rgba(255, 255, 255, 0.03)),
    radial-gradient(120% 30% at 50% 100%, rgba(117, 56, 29, 0.1), transparent 60%);
  pointer-events: none;
}

.table-board::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 148px;
  background: url("./assets/ui/table-board-edge.svg") center bottom / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}

.board-slot-field {
  position: relative;
  height: 100%;
  min-height: 0;
  padding: 18px 12px 18px;
  isolation: isolate;
  overflow: visible;
  z-index: 11;
}

.table-board-footer {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 8px 12px 16px;
  overflow: visible;
  background: transparent;
  z-index: 10;
}

.table-slot {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none;
  text-align: center;
  z-index: auto;
  display: block;
  margin: 0;
  padding: 0;
  overflow: visible;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  outline: none;
}

.table-slot:focus {
  outline: none;
}

.table-slot-row-top {
  z-index: 10;
}

.table-slot-row-middle {
  z-index: 12;
}

.table-slot-row-bottom {
  z-index: 14;
}

.table-slot-row-top .table-pile-stack,
.table-slot-row-top .empty-plate,
.table-slot-row-top .locked-plate-button,
.table-slot-row-top .table-selection-count {
  z-index: 10;
}

.table-slot-row-middle .table-pile-stack,
.table-slot-row-middle .empty-plate,
.table-slot-row-middle .locked-plate-button {
  z-index: 12;
}

.table-slot-row-bottom .table-pile-stack,
.table-slot-row-bottom .empty-plate,
.table-slot-row-bottom .locked-plate-button {
  z-index: 14;
}

.table-slot-open {
  width: 74px;
}

.table-pile-stack {
  position: relative;
  width: 78px;
  height: 116px;
}

.table-plate-layer {
  position: absolute;
  left: 50%;
  width: 74px;
  height: 56px;
  transform: translateX(-50%) translateY(calc(var(--plate-lift, 0px) * -1));
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.table-plate-svg {
  display: block;
  width: 74px;
  height: 56px;
  overflow: visible;
}

.table-plate-layer-top {
  z-index: 2;
}

.table-plate-art-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.table-plate-art {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.table-plate-layer-selected {
  z-index: 4;
  filter: drop-shadow(0 0 10px rgba(255, 245, 203, 0.3));
}

.table-disc {
  position: absolute;
  left: 50%;
  width: 54px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.46), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    var(--disc-color, #ffd77d);
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.12),
    0 4px 8px rgba(80, 30, 15, 0.18);
}

.table-disc-top {
  width: 66px;
  height: 56px;
  display: grid;
  place-items: center;
  border-width: 3px;
  border-radius: 50%;
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, 0.12),
    0 7px 12px rgba(80, 30, 15, 0.22);
}

.table-disc-icon {
  font-size: 24px;
  transform: translateY(-1px);
}

.table-disc-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  height: 58%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.table-disc-art {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.table-slot-open.matching .table-pile-stack {
  filter: drop-shadow(0 0 8px rgba(255, 227, 145, 0.18));
}

.table-slot.just-unlocked .empty-plate,
.table-slot.just-unlocked .table-pile-stack {
  animation: slotUnlockBloom 620ms cubic-bezier(0.18, 0.88, 0.22, 1);
}

.table-slot.just-unlocked::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 72px;
  height: 40px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 246, 186, 0.6), rgba(255, 246, 186, 0));
  pointer-events: none;
  animation: slotUnlockGlow 620ms ease-out both;
}

.table-disc-selected {
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.12),
    0 4px 8px rgba(80, 30, 15, 0.18),
    0 0 0 3px rgba(255, 247, 217, 0.34);
}

.table-slot-open.selected .table-pile-stack {
  filter: drop-shadow(0 0 14px rgba(255, 212, 106, 0.54));
}

.table-selection-count {
  position: absolute;
  right: -6px;
  top: 22px;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #fffef9;
  box-shadow:
    0 6px 10px rgba(87, 47, 20, 0.18),
    inset 0 -2px 0 rgba(202, 168, 110, 0.24);
  color: #8f552d;
  font-size: 16px;
  font-weight: 900;
  z-index: 26;
  pointer-events: none;
}

.table-slot-empty {
  width: 74px;
  height: 116px;
}

.empty-plate {
  position: relative;
  width: 74px;
  height: 116px;
}

.table-empty-plate-svg {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 48px;
  display: block;
  transform: translateX(-50%);
}

.table-slot-empty.selected .empty-plate::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 58px;
  height: 30px;
  border-radius: 999px;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(255, 212, 106, 0.34);
}

.table-slot-locked {
  width: 62px;
}

.locked-plate-button {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(180deg, #b4b6bc, #878a92);
  box-shadow:
    inset 0 -5px 0 rgba(71, 73, 80, 0.18),
    0 6px 10px rgba(69, 34, 14, 0.14);
  color: #fffdf8;
}

.locked-plate-icon {
  font-size: 16px;
  font-weight: 900;
}

.locked-plate-button.is-video .locked-plate-icon {
  font-size: 22px;
}

.locked-plate-price {
  font-size: 12px;
  font-weight: 900;
  color: #fff7eb;
  text-shadow: 0 1px 0 rgba(91, 58, 31, 0.36);
}

.bottom-toolbar {
  width: 90px;
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100%;
  position: relative;
  z-index: 12;
}

.tool-action {
  padding: 0 2px;
  background: none;
  color: #fff6ee;
  text-align: center;
  text-shadow: 0 1px 0 rgba(103, 56, 27, 0.62);
}

.tool-icon {
  display: block;
  font-size: 29px;
  line-height: 1;
}

.tool-action strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.tool-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-top: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 204, 111, 0.92);
  color: #7a401d;
  font-size: 12px;
  font-weight: 900;
  text-shadow: none;
}

.serve-basket {
  width: 90px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  justify-content: flex-end;
  padding: 0 0 16px;
  background: none;
  text-align: center;
  margin-top: auto;
}

.serve-basket.is-bouncing {
  animation: serveBasketBounce 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.serve-basket-art {
  width: 86px;
  height: 80px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(69, 34, 14, 0.16));
}

.serve-basket-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 18px;
  margin-top: 0;
  padding: 0 6px;
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: #fffef9;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(115, 58, 27, 0.62);
  line-height: 1;
}

.fx-overlay-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.fx-flying-plate {
  position: fixed;
  left: 0;
  top: 0;
  width: 74px;
  height: 56px;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 10px 10px rgba(98, 53, 27, 0.18));
}

.fx-flying-plate .table-plate-svg {
  width: 74px;
  height: 56px;
}

.fx-flying-plate-art-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.fx-flying-plate-art {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.selection-pill {
  margin-top: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: var(--soft-shadow);
  font-size: 13px;
  font-weight: 800;
}

.order-pod:hover,
.pile-slot:hover {
  transform: translateY(-2px);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgba(42, 22, 11, 0.36);
  backdrop-filter: blur(4px);
}

.modal-card {
  width: min(90%, 336px);
  padding: 22px 18px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 245, 228, 0.98));
  box-shadow: 0 24px 44px rgba(31, 15, 6, 0.25);
  text-align: center;
}

.modal-card h3 {
  margin: 0;
  font-size: 32px;
}

.modal-card p {
  margin: 12px 0 18px;
  color: var(--ink-soft);
  font-size: 16px;
}

.modal-success-card {
  width: min(92%, 368px);
}

.level-complete-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 18px;
}

.level-complete-stat {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 247, 231, 0.95), rgba(255, 236, 204, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(145, 95, 29, 0.1);
}

.level-complete-stat strong {
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
}

.level-complete-stat span {
  color: var(--ink-soft);
  font-size: 13px;
}

.level-complete-stat-icon {
  font-size: 22px;
  line-height: 1;
}

.modal-actions {
  display: grid;
  gap: 10px;
}

.modal-actions.level-complete-actions {
  justify-items: stretch;
}

.modal-success-primary {
  padding: 18px 20px;
  background: linear-gradient(180deg, #b9eb8a, #7dc855);
  color: #2f4a1f;
  font-size: 24px;
}

.modal-success-secondary {
  justify-self: center;
  min-width: 194px;
  padding: 12px 18px;
  font-size: 18px;
}

.modal-confirm-card {
  max-width: 348px;
}

.modal-cost-row {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}

.modal-cost-row-double {
  gap: 10px;
  flex-wrap: wrap;
}

.modal-cost-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 251, 239, 0.98), rgba(255, 243, 219, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(232, 189, 129, 0.4),
    0 10px 20px rgba(111, 64, 24, 0.12);
  white-space: nowrap;
}

.modal-confirm-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.modal-confirm-accept {
  padding: 16px 18px;
  background: linear-gradient(180deg, #b9eb8a, #7dc855);
  color: #2f4a1f;
  font-size: 22px;
}

.modal-confirm-cancel {
  padding: 16px 18px;
  font-size: 22px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(190, 123, 69, 0.16);
  font-size: 16px;
  font-weight: 800;
}

.setting-row:last-of-type {
  border-bottom: 0;
}

.toggle {
  width: 60px;
  height: 34px;
  position: relative;
  border-radius: 999px;
  background: rgba(190, 123, 69, 0.18);
}

.toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff7ea;
  box-shadow: 0 4px 10px rgba(73, 35, 16, 0.16);
  transition: transform 160ms ease;
}

.toggle.active {
  background: rgba(125, 200, 85, 0.4);
}

.toggle.active::before {
  transform: translateX(26px);
}

.footer-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
}

.hidden {
  display: none;
}

@keyframes float-node {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 4px));
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(7px);
  }
}

@media (max-width: 440px) {
  body {
    padding: 0;
  }

  .app-shell {
    width: 100%;
  }

  .phone-frame {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-root,
  .screen {
    min-height: 100dvh;
  }

  .phone-frame {
    height: 100dvh;
  }

  .ui-layer.game-layer {
    padding: 10px 10px 6px;
  }

  .faithful-game-layer {
    gap: 4px;
  }

  .crew-showcase {
    grid-template-columns: 1fr;
  }

  .map-world {
    min-height: 620px;
  }

  .map-stage {
    margin-top: 10px;
  }

  .map-selected-card {
    margin-top: 8px;
  }

  .map-sign {
    width: 104px;
  }

  .map-sign-main {
    font-size: 16px;
  }

  .floating-level-card {
    width: 138px;
  }

  .order-plate {
    width: 64px;
    height: 64px;
  }

  .order-plate-icon {
    font-size: 27px;
  }

  .board-hint {
    font-size: 13px;
  }

  .game-scene-shell {
    grid-template-rows: 226px 70px minmax(0, 1fr);
  }

  .guest-bubble {
    width: 52px;
    height: 52px;
  }

  .guest-bubble-chip {
    right: -4px;
    padding-inline: 6px;
    font-size: 7px;
  }

  .guest-bubble-icon {
    font-size: 24px;
  }

  .guest-bubble-art {
    width: 30px;
    height: 30px;
  }

  .guest-lane {
    height: 178px;
    inset: auto 0 -30px;
  }

  .guest-order {
    width: 134px;
    height: 178px;
  }

  .guest-unlock-pill {
    min-width: 72px;
    height: 24px;
    padding-inline: 10px;
    font-size: 11px;
    bottom: 8px;
  }

  .guest-mascot {
    width: 126px;
    height: 146px;
  }

  .guest-mascot-art {
    width: 126px;
    height: 146px;
  }

  .counter-strip {
    padding: 8px 38px 7px;
  }

  .counter-station {
    width: 78px;
  }

  .counter-plate {
    width: 78px;
    height: 82px;
  }

  .counter-plate-core {
    width: 76px;
    height: 82px;
  }

  .counter-stack {
    width: 76px;
    bottom: -1px;
  }

  .counter-stack-svg {
    width: 76px;
  }

  .counter-empty-mark,
  .counter-empty-svg {
    width: 76px;
    height: 50px;
  }

  .counter-lock-plate {
    width: 76px;
    height: 50px;
  }

  .counter-lock-plate .counter-empty-svg {
    width: 76px;
    height: 50px;
  }

  .counter-stack-art-wrap {
    top: var(--stack-art-top, 27px);
    width: 56px;
    height: 56px;
  }

  .counter-stack-art {
    width: 50px;
    height: 50px;
  }

  .counter-progress-coil {
    width: 68px;
    bottom: -4px;
  }

  .counter-lock-badge {
    top: 17px;
    min-width: 52px;
    height: 22px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .counter-decor {
    width: 38px;
    height: 38px;
  }

  .board-slot-field {
    padding-inline: 10px;
    padding-bottom: 14px;
  }

  .table-board {
    grid-template-rows: minmax(0, 1fr) 88px;
  }

  .table-board-footer {
    padding: 8px 10px 14px;
  }

  .table-slot-open {
    width: 84px;
  }

  .table-slot-empty {
    width: 84px;
    height: 126px;
  }

  .empty-plate {
    width: 84px;
    height: 126px;
  }

  .table-empty-plate-svg {
    left: 50%;
    bottom: 0;
    width: 80px;
    height: 54px;
  }

  .table-pile-stack {
    width: 84px;
    height: 126px;
  }

  .table-plate-layer {
    width: 82px;
    height: 62px;
  }

  .table-plate-svg {
    width: 82px;
    height: 62px;
  }

  .table-plate-art-wrap {
    top: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
  }

  .table-plate-art {
    width: 50px;
    height: 50px;
  }

  .table-disc {
    width: 54px;
  }

  .table-disc-top {
    width: 66px;
    height: 32px;
  }

  .table-disc-icon {
    font-size: 22px;
  }

  .bottom-toolbar {
    width: 84px;
  }

  .table-selection-count {
    top: 20px;
    right: -4px;
    min-width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .serve-basket-art {
    width: 78px;
    height: 72px;
  }

  .serve-basket {
    width: 84px;
    padding-bottom: 14px;
  }

  .serve-basket-count {
    min-width: 34px;
    height: 16px;
    bottom: 16px;
    font-size: 11px;
  }
}

@keyframes guestBodyBob {
  0%,
  100% {
    transform: translateX(calc(-50% + var(--guest-mascot-shift))) translateY(0);
  }
  50% {
    transform: translateX(calc(-50% + var(--guest-mascot-shift))) translateY(-4px);
  }
}

@keyframes guestBubbleFloat {
  0%,
  100% {
    transform: translateX(calc(-50% + var(--guest-bubble-shift))) translateY(0) rotate(0deg);
  }
  50% {
    transform: translateX(calc(-50% + var(--guest-bubble-shift))) translateY(-3px) rotate(-2deg);
  }
}

@keyframes guestFeedHop {
  0% {
    transform: translateX(calc(-50% + var(--guest-mascot-shift))) translateY(0) scale(1);
  }
  28% {
    transform: translateX(calc(-50% + var(--guest-mascot-shift))) translateY(-10px) scale(1.04);
  }
  58% {
    transform: translateX(calc(-50% + var(--guest-mascot-shift))) translateY(-2px) scale(0.98);
  }
  100% {
    transform: translateX(calc(-50% + var(--guest-mascot-shift))) translateY(0) scale(1);
  }
}

@keyframes guestBubbleNudge {
  0%,
  100% {
    transform: translateX(calc(-50% + var(--guest-bubble-shift))) translateY(0) scale(1);
  }
  40% {
    transform: translateX(calc(-50% + var(--guest-bubble-shift))) translateY(-5px) scale(1.06);
  }
}

@keyframes guestUnlockMascot {
  0% {
    transform: translateX(calc(-50% + var(--guest-mascot-shift))) translateY(18px) scale(0.82);
    opacity: 0;
  }
  56% {
    transform: translateX(calc(-50% + var(--guest-mascot-shift))) translateY(-6px) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: translateX(calc(-50% + var(--guest-mascot-shift))) translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes guestUnlockBubble {
  0% {
    transform: translateX(calc(-50% + var(--guest-bubble-shift))) translateY(8px) scale(0.7) rotate(-6deg);
    opacity: 0;
  }
  56% {
    transform: translateX(calc(-50% + var(--guest-bubble-shift))) translateY(-4px) scale(1.08) rotate(2deg);
    opacity: 1;
  }
  100% {
    transform: translateX(calc(-50% + var(--guest-bubble-shift))) translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes guestEnterLeft {
  from {
    opacity: 0;
    transform: translateX(-88%) translateY(6px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes guestEnterRight {
  from {
    opacity: 0;
    transform: translateX(-12%) translateY(6px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes guestEnterDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(34px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes guestExitLeft {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-92%) translateY(-2px) scale(0.9);
  }
}

@keyframes guestExitRight {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-8%) translateY(-2px) scale(0.9);
  }
}

@keyframes guestExitDown {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(40px) scale(0.9);
  }
}

@keyframes counterPlatePop {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  35% {
    transform: translateX(-50%) scale(1.06);
  }
  70% {
    transform: translateX(-50%) scale(0.98);
  }
}

@keyframes counterUnlockBloom {
  0% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.2;
    filter: drop-shadow(0 0 0 rgba(255, 232, 163, 0));
  }
  55% {
    transform: translateX(-50%) scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(255, 232, 163, 0.45));
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 0 rgba(255, 232, 163, 0));
  }
}

@keyframes slotUnlockBloom {
  0% {
    transform: scale(0.78) translateY(10px);
    opacity: 0.18;
  }
  52% {
    transform: scale(1.05) translateY(-2px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes slotUnlockGlow {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
  }
  35% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.22);
  }
}

@keyframes serveBasketBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-8px) scale(1.05);
  }
  65% {
    transform: translateY(0) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-bubble,
  .guest-mascot,
  .guest-order,
  .guest-order-ghost,
  .counter-station.is-fed .counter-plate-core,
  .counter-station.is-unlocked .counter-plate-core,
  .guest-order.is-unlocked .guest-mascot,
  .guest-order.is-unlocked .guest-bubble,
  .table-slot.just-unlocked .empty-plate,
  .table-slot.just-unlocked .table-pile-stack,
  .table-slot.just-unlocked::after,
  .serve-basket.is-bouncing {
    animation: none !important;
  }
}
