:root {
  --navy: #14213d;
  --blue: #2457f5;
  --teal: #0f9d8f;
  --gold: #ffb703;
  --orange: #fb8500;
  --red: #ef476f;
  --white: #fffdf7;
  --paper: rgba(255, 255, 255, 0.9);
  --ink: #14213d;
  --muted: rgba(20, 33, 61, 0.72);
  --shadow: 0 24px 60px rgba(20, 33, 61, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 133, 0, 0.34), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(36, 87, 245, 0.28), transparent 24%),
    linear-gradient(180deg, #fff8e7 0%, #ffe3bf 45%, #ffd6b3 100%);
  position: relative;
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(6px);
}

.backdrop-one {
  width: 280px;
  height: 280px;
  background: rgba(36, 87, 245, 0.16);
  top: 6%;
  right: -80px;
}

.backdrop-two {
  width: 220px;
  height: 220px;
  background: rgba(239, 71, 111, 0.14);
  bottom: 12%;
  left: -70px;
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.panel,
.dialog-card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 30px;
}

.topbar-actions,
.task-summary,
.date-tools,
.dialog-actions,
.status-row {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 12px;
}

.panel-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  font-family: "Baloo 2", sans-serif;
  line-height: 0.95;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.action-button,
.primary-button,
.secondary-button,
.delete-button,
.shop-item,
.ghost-close {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.action-button-shop {
  background: linear-gradient(135deg, var(--blue), #4b7cff);
}

.action-button-world {
  background: linear-gradient(135deg, var(--teal), #16b8a8);
}

.action-button-bank {
  background: linear-gradient(135deg, #2a9d8f, #1d7f74);
}

.action-button-reset {
  background: linear-gradient(135deg, #ef476f, #d62839);
}

.action-button-add {
  background: linear-gradient(135deg, var(--orange), #ff5a36);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 22px;
}

.world-screen {
  position: fixed;
  inset: 0;
  z-index: 1500;
  width: 100vw;
  min-height: 100vh;
  margin-top: 0;
  background: linear-gradient(180deg, rgba(255, 244, 233, 0.98), rgba(255, 230, 205, 0.98));
  overflow-y: auto;
}

.world-screen.panel {
  border-radius: 0;
  padding: 16px 16px 24px;
}

body.world-screen-open {
  overflow: hidden;
}

.world-screen-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.world-back-button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #8f5ad6;
  font: inherit;
  font-size: 1.85rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(20, 33, 61, 0.12);
}

.panel {
  border-radius: 30px;
  padding: 24px;
}

.starter-setup-panel {
  margin-top: 22px;
}

.panel-summary {
  display: grid;
  gap: 18px;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(20, 33, 61, 0.94), rgba(36, 87, 245, 0.92)),
    var(--paper);
  color: #fff;
}

.companion-stage {
  --avatar-growth-scale: 1;
  --room-x: 0%;
  --room-y: 0%;
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background-image: url("assets/avatar-room-sheet-new.png");
  background-repeat: no-repeat;
  background-size: calc(100% * 5) calc(100% * 5);
  background-position: var(--room-x) var(--room-y);
  background-origin: border-box;
  background-clip: border-box;
  transition: background 260ms ease, transform 260ms ease;
}

.companion-stage::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18) 36%, rgba(232, 212, 192, 0.48));
  z-index: 0;
  pointer-events: none;
}

.companion-stage[data-room-theme="starter"] {
  --room-x: 0%;
  --room-y: 0%;
}

.companion-stage[data-room-theme="garden"] {
  --room-x: 0%;
  --room-y: 25%;
}

.companion-stage[data-room-theme="forest"] {
  --room-x: 100%;
  --room-y: 25%;
}

.companion-stage[data-room-theme="ocean"] {
  --room-x: 100%;
  --room-y: 100%;
}

.companion-stage[data-room-theme="sky"] {
  --room-x: 25%;
  --room-y: 50%;
}

.companion-stage[data-room-theme="cozy"] {
  --room-x: 0%;
  --room-y: 75%;
}

.companion-stage[data-room-theme="dream"] {
  --room-x: 75%;
  --room-y: 100%;
}

.companion-stage.no-animal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.companion-stage.no-animal .avatar-sparkles,
.companion-stage.no-animal .carousel-button,
.companion-stage.no-animal .room-decor,
.companion-stage.no-animal .growth-badge {
  display: none;
}

.avatar-mover {
  position: absolute;
  left: 50%;
  top: 78%;
  z-index: 3;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.avatar-mover:active {
  cursor: grabbing;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.24);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 5;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.carousel-button:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(20, 33, 61, 0.36);
}

.carousel-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.carousel-button-left {
  left: 16px;
}

.carousel-button-right {
  right: 16px;
}

.avatar-emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  filter: drop-shadow(0 16px 20px rgba(20, 33, 61, 0.22));
  animation: bob 2.8s ease-in-out infinite;
  transform: scale(var(--avatar-growth-scale));
}

.avatar-image {
  position: relative;
  z-index: 1;
  width: min(132px, 34vw);
  max-height: 176px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 20px rgba(20, 33, 61, 0.22));
  animation: bob 2.8s ease-in-out infinite;
  transform: scale(var(--avatar-growth-scale));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.avatar-image.avatar-image-stage {
  width: min(188px, 44vw);
  max-height: 228px;
  object-fit: contain;
  object-position: center bottom;
}

.growth-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.28);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.room-decor {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.room-decor-item {
  position: absolute;
  left: 50%;
  top: 76%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  box-shadow: none;
}

.room-decor-item:active {
  cursor: grabbing;
}

.room-decor-item.is-wearable {
  z-index: 4;
}

.room-decor-item.is-storage .room-decor-image {
  filter: drop-shadow(0 8px 14px rgba(20, 33, 61, 0.18));
}

.room-decor-item.is-inside-storage {
  width: 50px;
  height: 50px;
}

.room-decor-image {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
}

.room-decor-label {
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(20, 33, 61, 0.6);
  pointer-events: none;
}

.companion-stage.no-animal .avatar-image,
.companion-stage.no-animal .avatar-emoji {
  display: none;
  filter: none;
  animation: none;
}

.companion-stage.no-animal #avatarEmoji {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.avatar-sparkles span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  animation: twinkle 2.4s ease-in-out infinite;
  z-index: 1;
}

.avatar-sparkles span:nth-child(1) {
  top: 20%;
  left: 22%;
}

.avatar-sparkles span:nth-child(2) {
  top: 38%;
  right: 20%;
  animation-delay: 0.4s;
}

.avatar-sparkles span:nth-child(3) {
  bottom: 22%;
  left: 34%;
  animation-delay: 0.8s;
}

.summary-cards {
  display: grid;
  gap: 14px;
}

.avatar-identity {
  text-align: center;
}

.avatar-name-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 0.95;
  cursor: pointer;
}

.avatar-name-button:hover,
.avatar-name-button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.avatar-type-name {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.owned-animals-count {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.growth-stage-label {
  margin: 8px 0 0;
  color: rgba(255, 228, 161, 0.96);
  font-size: 0.95rem;
  font-weight: 800;
}

.status-card,
.summary-pill,
.task-item,
.date-picker,
.field input,
.field select,
.shop-item {
  border-radius: 22px;
}

.status-card {
  padding: 18px;
}

.bank-poster {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  max-width: 180px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.92);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 10px 20px rgba(20, 33, 61, 0.14);
}

.health-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.streak-card {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.2), rgba(251, 133, 0, 0.16));
  border: 1px solid rgba(255, 211, 105, 0.26);
}

.streak-card strong {
  color: #ffe8a3;
}

.status-row {
  justify-content: space-between;
  gap: 10px;
}

.health-meter {
  position: relative;
  height: 18px;
  margin: 14px 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(74, 25, 36, 0.62), rgba(108, 34, 49, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.health-meter::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 176, 176, 0.22) 0,
      rgba(255, 176, 176, 0.22) calc(10% - 3px),
      rgba(255, 244, 244, 0.74) calc(10% - 3px),
      rgba(255, 244, 244, 0.74) 10%
    );
  pointer-events: none;
  z-index: 1;
}

.health-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(34, 209, 128, 0.98), rgba(14, 163, 103, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
  z-index: 0;
}

.status-note,
.task-meta,
.task-limit,
.empty-state,
.shop-intro {
  color: var(--muted);
}

.panel-summary .status-note {
  color: rgba(255, 255, 255, 0.84);
}

.panel-tasks {
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.date-tools,
.task-summary {
  gap: 14px;
  flex-wrap: wrap;
}

.page-reset-link {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, #ef476f, #d62839);
  color: #fff;
}

.help-tools {
  margin-top: 18px;
}

.help-button {
  width: 100%;
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 32%),
    linear-gradient(135deg, #ff8f3d, #ef476f);
  box-shadow: 0 14px 26px rgba(239, 71, 111, 0.24);
}

.date-tools {
  margin: 20px 0 18px;
  align-items: end;
}

.date-picker,
.field input,
.field select {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(20, 33, 61, 0.08);
}

.date-picker {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.date-picker span,
.field span {
  font-size: 0.92rem;
  font-weight: 800;
}

.summary-pill {
  min-width: 120px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 233, 204, 0.92));
  border: 1px solid rgba(255, 183, 3, 0.25);
}

.summary-pill strong {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
}

.task-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 243, 221, 0.9));
  border: 1px solid rgba(20, 33, 61, 0.06);
}

.task-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.task-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex: 1;
  cursor: pointer;
}

.task-checkbox {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  accent-color: var(--teal);
}

.task-name {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
}

.task-meta {
  margin: 6px 0 0;
  font-size: 0.92rem;
}

.task-item.done .task-name {
  text-decoration: line-through;
  opacity: 0.6;
}

.delete-button {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(239, 71, 111, 0.12);
  color: #b22d51;
  font-weight: 800;
}

.edit-button {
  padding: 10px 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(36, 87, 245, 0.12);
  color: #1f4dd8;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  margin: 18px 4px 0;
}

.task-dialog {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.task-dialog:not([open]) {
  display: none !important;
}

.task-dialog[open] {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  z-index: 2000;
  background: rgba(20, 33, 61, 0.42);
  backdrop-filter: blur(7px);
  overflow-y: auto;
  padding: 12px 0;
}

.task-dialog::backdrop {
  background: rgba(20, 33, 61, 0.42);
  backdrop-filter: blur(7px);
}

.dialog-card {
  width: min(470px, calc(100vw - 24px));
  padding: 22px;
  border-radius: 28px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.shop-dialog-card {
  width: min(820px, calc(100vw - 24px));
}

.welcome-card {
  width: min(560px, calc(100vw - 24px));
}

.purchase-dialog-card,
.naming-dialog-card {
  width: min(460px, calc(100vw - 24px));
}

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

.room-assignment-button {
  border: 0;
  font: inherit;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 16px 14px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 255, 0.94));
  cursor: pointer;
}

.room-assignment-button img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.room-assignment-button span {
  font-weight: 800;
  color: var(--ink);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ghost-close {
  background: transparent;
  color: rgba(20, 33, 61, 0.62);
  font-size: 1.1rem;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.field input,
.field select {
  width: 100%;
}

.dialog-actions {
  gap: 12px;
  margin-top: 22px;
}

.primary-button,
.secondary-button {
  flex: 1;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #0f7fda);
}

.secondary-button {
  background: rgba(20, 33, 61, 0.08);
  color: var(--ink);
}

.shop-intro {
  margin: 10px 0 0;
}

.world-store-view {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.world-carousel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.world-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #473024;
  font: inherit;
  font-size: 2.2rem;
  font-weight: 900;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 14px 26px rgba(20, 33, 61, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.world-nav-button:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(255, 251, 246, 1);
  box-shadow: 0 18px 30px rgba(20, 33, 61, 0.22);
}

.world-nav-button-left {
  left: 14px;
}

.world-nav-button-right {
  right: 14px;
}

.world-reference-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.world-store-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 18px 34px rgba(20, 33, 61, 0.12);
}

.world-store-panel[data-store-theme="peach"] {
  background: rgba(255, 244, 236, 0.9);
}

.world-store-panel[data-store-theme="gold"] {
  background: rgba(255, 247, 224, 0.9);
}

.world-store-panel[data-store-theme="blue"] {
  background: rgba(236, 246, 255, 0.9);
}

.world-store-panel[data-store-theme="lavender"] {
  background: rgba(245, 239, 255, 0.9);
}

.world-store-panel[data-store-theme="green"] {
  background: rgba(242, 250, 228, 0.9);
}

.world-store-panel[data-store-theme="orange"] {
  background: rgba(255, 246, 225, 0.9);
}

.world-store-sign {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 9px 14px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  text-align: center;
  box-shadow: 0 10px 20px rgba(20, 33, 61, 0.1);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.15;
}

.world-store-sign[data-store-theme="gold"] {
  background: rgba(255, 248, 226, 0.98);
}

.world-store-sign[data-store-theme="blue"] {
  background: rgba(234, 244, 255, 0.98);
}

.world-store-sign[data-store-theme="lavender"] {
  background: rgba(245, 239, 255, 0.98);
}

.world-store-sign[data-store-theme="green"] {
  background: rgba(243, 252, 233, 0.98);
}

.world-store-sign[data-store-theme="orange"] {
  background: rgba(255, 246, 225, 0.98);
}

.world-shelf-stage {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
}

.world-shelf-backdrop {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.world-items-grid {
  position: absolute;
  inset: 0;
}

.world-item-button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.world-item-button:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 8px 16px rgba(20, 33, 61, 0.22));
}

.world-item-button.owned {
  filter: drop-shadow(0 8px 16px rgba(66, 138, 73, 0.22));
}

.world-item-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}

.world-store-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.world-store-dot {
  border: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
}

.world-store-dot.is-active {
  background: rgba(255, 255, 255, 0.98);
}

.shop-section + .shop-section {
  margin-top: 24px;
}

.shop-section-head h3 {
  margin: 4px 0 0;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.6rem;
}

.shop-avatar-store {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.animal-evolution-shop {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(20, 33, 61, 0.12);
}

.animal-evolution-shop-image {
  display: block;
  width: 100%;
  height: auto;
}

.animal-evolution-shop-overlay {
  position: absolute;
  inset: 0;
}

.animal-evolution-shop-hitbox {
  position: absolute;
  border: 0;
  border-radius: 24px;
  background: transparent;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 rgba(36, 87, 245, 0);
  transition: box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.animal-evolution-shop-hitbox:hover,
.animal-evolution-shop-hitbox:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 3px rgba(36, 87, 245, 0.42);
}

.animal-evolution-shop-hitbox.owned {
  box-shadow: inset 0 0 0 3px rgba(15, 157, 143, 0.28);
}

.animal-evolution-shop-hitbox.selected {
  box-shadow: inset 0 0 0 3px rgba(251, 133, 0, 0.5);
  background: rgba(255, 214, 102, 0.12);
}

.extra-shop-grid {
  margin-top: 16px;
}

.purchase-preview {
  display: grid;
  place-items: center;
  min-height: 170px;
  margin-top: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 228, 161, 0.98), rgba(36, 87, 245, 0.18));
}

.purchase-emoji {
  font-size: 4.25rem;
}

.purchase-image {
  width: min(180px, 76%);
  max-height: 170px;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(var(--shop-animal-scale, 1));
}

.purchase-image.purchase-image-world-item {
  width: min(196px, 82%);
  max-height: 182px;
  object-position: center center;
  transform: none;
}

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

.starter-option {
  border: 2px solid rgba(20, 33, 61, 0.08);
  border-radius: 24px;
  padding: 18px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 255, 0.94));
  font: inherit;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.starter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.starter-option:hover,
.starter-option:focus-visible {
  transform: translateY(-2px);
}

.starter-option.selected,
.starter-option:has(input:checked) {
  border-color: rgba(251, 133, 0, 0.6);
  box-shadow: 0 14px 28px rgba(20, 33, 61, 0.12);
  background: linear-gradient(180deg, rgba(255, 228, 161, 0.98), rgba(255, 183, 3, 0.32));
}

.starter-emoji,
.starter-title {
  display: block;
}

.starter-emoji {
  font-size: 3rem;
}

.starter-title {
  margin-top: 0;
  font-weight: 800;
  font-size: 1.2rem;
}

.shop-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  align-content: center;
  grid-template-rows: minmax(154px, auto) auto;
  min-height: 194px;
  width: 100%;
  padding: 10px 8px 12px;
  text-align: center;
  background: transparent;
  border: 1px solid rgba(20, 33, 61, 0.05);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.shop-item:hover,
.shop-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(36, 87, 245, 0.36);
  box-shadow: 0 10px 22px rgba(20, 33, 61, 0.08);
  background: rgba(255, 255, 255, 0.18);
}

.shop-item.owned {
  border-color: rgba(15, 157, 143, 0.28);
}

.shop-item.selected {
  border-color: rgba(251, 133, 0, 0.5);
  background: rgba(255, 225, 153, 0.12);
}

.shop-emoji {
  display: block;
  font-size: 2.3rem;
  grid-row: 1;
  place-self: center;
}

.shop-image {
  display: block;
  grid-row: 1;
  width: min(156px, 100%);
  height: 156px;
  margin: 0 auto;
  place-self: center;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(var(--shop-animal-offset-x, 0px)) scale(var(--shop-animal-scale, 1));
}

.shop-name {
  display: block;
  grid-row: 2;
  justify-self: center;
  width: 100%;
  margin-top: 4px;
  font-weight: 800;
  font-size: 0.96rem;
  line-height: 1.1;
  color: var(--ink);
}

.shop-price {
  display: none;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(0.82);
  }
  50% {
    opacity: 0.98;
    transform: scale(1.15);
  }
}

@media (max-width: 920px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .panel-summary {
    grid-template-columns: 1fr;
  }

  .companion-stage {
    min-height: 340px;
  }

}

@media (max-width: 700px) {
  .topbar,
  .panel,
  .dialog-card {
    border-radius: 24px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
  }

  .action-button {
    flex: 1;
    text-align: center;
  }

  .panel-summary {
    grid-template-columns: 1fr;
  }

  .carousel-button {
    width: 38px;
    height: 38px;
  }

  .starter-grid {
    grid-template-columns: 1fr;
  }

  .world-store-view {
    grid-template-columns: 1fr;
  }

  .world-carousel-head {
    grid-template-columns: minmax(0, 1fr);
  }

}
