/* Luna's Study Garden — dedicated styles; keep Econ Clear tokens */

.sc-nav-short {
  display: none;
}

@media (max-width: 860px) {
  .site-header-inner {
    min-height: 56px;
    gap: 8px;
  }

  .sc-nav-full {
    display: none;
  }

  .sc-nav-short {
    display: inline;
  }
}

.view-study-club {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sc-hero {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-pink);
  background:
    linear-gradient(180deg, rgba(253, 242, 248, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
  margin: -8px -8px 0;
  padding: 8px 8px 20px;
  border-radius: var(--radius);
}

.sc-eyebrow {
  color: var(--pink-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sc-notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--blue-50);
}

.sc-notice p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.sc-notice-success {
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.25);
  color: #166534;
}

.sc-notice-error {
  background: #fff1f2;
  border-color: rgba(220, 38, 38, 0.2);
  color: #9f1239;
}

.sc-notice-info {
  background: var(--pink-50);
  border-color: var(--border-pink);
  color: var(--text);
}

.sc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
}

.sc-tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.sc-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.sc-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-pink);
}

.sc-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.sc-stat-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.sc-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sc-stat-hint {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.sc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}

.sc-panel .section-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.sc-subhead {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 18px 0 10px;
}

.sc-muted {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.sc-town {
  overflow: hidden;
}

.sc-daily-plan {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.sc-daily-plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.sc-daily-plan-title {
  margin: 0;
  font-size: 1rem;
}

.sc-daily-plan-time {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sc-daily-plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.sc-daily-plan-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
}

.sc-daily-plan-list li strong {
  min-width: 3.5rem;
}

.sc-daily-plan-foot {
  margin: 10px 0 0;
}

.sc-companion-speech {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.sc-companion-speech.sc-companion-dog {
  background: rgba(254, 243, 199, 0.95);
  border: 1px solid rgba(217, 119, 6, 0.22);
  color: #9a3412;
}

.sc-companion-speech.sc-companion-cat {
  background: rgba(243, 244, 246, 0.95);
  border: 1px solid rgba(107, 114, 128, 0.28);
  color: #374151;
}

.sc-companion-banner {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  display: grid;
  gap: 4px;
}

.sc-companion-banner strong {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.sc-companion-banner p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.sc-companion-banner.sc-companion-dog {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.sc-companion-banner.sc-companion-cat {
  background: linear-gradient(135deg, rgba(243, 244, 246, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(107, 114, 128, 0.22);
}

.pl-cat-hints {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(243, 244, 246, 0.96), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(107, 114, 128, 0.2);
  display: grid;
  gap: 8px;
}

.pl-cat-hints .pl-kicker {
  margin: 0;
}

.pl-cat-tier {
  font-size: 0.875rem;
  line-height: 1.45;
}

.pl-cat-tier strong {
  display: inline-block;
  margin-right: 4px;
}

.sc-return-town {
  margin: 0 0 12px;
  display: inline-flex;
}

.sc-town-stage {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 18px 44px rgba(34, 197, 94, 0.14),
    0 10px 28px rgba(37, 99, 235, 0.1);
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.55), transparent 52%),
    linear-gradient(180deg, #7dd3fc 0%, #dbeafe 42%, #bbf7d0 100%);
  aspect-ratio: 1000 / 560;
  min-height: 300px;
  cursor: crosshair;
  touch-action: manipulation;
  perspective: 900px;
  perspective-origin: 50% 55%;
}

.sc-town-stage.sc-town-diorama {
  aspect-ratio: 16 / 9;
  min-height: 320px;
  perspective: none;
  background: #9fd0ff;
}

.sc-town-env-diorama {
  transform: none;
  perspective: none;
}

.sc-town-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  pointer-events: none;
  user-select: none;
}

.sc-town-sprite {
  position: absolute;
  left: 50%;
  top: 70%;
  width: 20%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
  will-change: left, top, z-index;
}

.sc-town-sprite-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.sc-town-sprite-label {
  position: absolute;
  left: 50%;
  top: 4%;
  transform: translateX(-50%);
  white-space: nowrap;
  max-width: 120%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
  pointer-events: none;
  z-index: 2;
}

.sc-town-sprite.is-focus .sc-town-sprite-label {
  background: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22), 0 6px 14px rgba(37, 99, 235, 0.28);
}

.sc-town-pet.is-locked {
  filter: grayscale(0.55) brightness(0.92);
  opacity: 0.78;
}

.sc-town-pet.is-owned:not(.is-focus) .sc-town-sprite-img {
  animation: sc-town-idle-bob 2.8s ease-in-out infinite;
  transform-origin: 50% 100%;
}

.sc-town-plot .sc-town-sprite-label {
  display: none;
}

.sc-town-sign {
  z-index: 1;
}

.sc-hotspot-diorama {
  height: 20%;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
  border-radius: 16px;
  background: transparent;
}

.sc-hotspot-diorama .sc-hotspot-cta,
.sc-hotspot-diorama .sc-hotspot-label {
  left: 50%;
  transform: translateX(-50%);
}

.sc-hotspot-diorama.sc-hotspot-cottage .sc-hotspot-cta,
.sc-hotspot-diorama.sc-hotspot-bookstore .sc-hotspot-cta,
.sc-hotspot-diorama.sc-hotspot-repair .sc-hotspot-cta {
  bottom: 6%;
  top: auto;
}

.sc-hotspot-diorama.sc-hotspot-plot-1 .sc-hotspot-cta,
.sc-hotspot-diorama.sc-hotspot-plot-2 .sc-hotspot-cta {
  top: 2%;
  bottom: auto;
}

.sc-town-diorama .sc-town-hud {
  z-index: 94;
}

.sc-town-diorama .sc-town-dock {
  z-index: 96;
}

.sc-town-diorama .sc-luna-walker {
  width: 10%;
  height: 28%;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
}

.sc-town-diorama .sc-luna-figure {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  transform-origin: 50% 100%;
}

.sc-town-diorama .sc-luna-sprite {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 6px 8px rgba(15, 23, 42, 0.16));
}

.sc-town-diorama .sc-luna-walker.is-idle .sc-luna-sprite {
  animation: sc-town-idle-bob 3.2s ease-in-out infinite;
}

.sc-town-diorama .sc-luna-walker.is-walking .sc-luna-sprite {
  animation: sc-luna-bob 0.34s ease-in-out infinite;
}

.sc-town-diorama .sc-luna-walker.is-walking .sc-luna-figure,
.sc-town-diorama .sc-luna-walker.is-idle .sc-luna-figure {
  animation: none;
}

@keyframes sc-town-idle-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5%); }
}

.sc-town-art,
.sc-town-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent;
}

.sc-town-env {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 900px;
}

.sc-sky-dome {
  position: absolute;
  inset: -8% -6% 28%;
  border-radius: 0 0 48% 48% / 0 0 28% 28%;
  background:
    radial-gradient(ellipse at 72% 18%, rgba(255, 255, 210, 0.75), transparent 28%),
    radial-gradient(ellipse at 50% 0%, #8fd8ff 0%, #5ec8ff 34%, #b8e6ff 62%, #ffe8a3 88%, transparent 100%);
  box-shadow:
    inset 0 -40px 60px rgba(255, 232, 163, 0.35),
    inset 0 20px 50px rgba(255, 255, 255, 0.35);
  transform: rotateX(18deg) translateZ(-40px);
  transform-origin: 50% 100%;
}

.sc-sky-haze {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55), transparent 70%);
  filter: blur(8px);
}

.sc-sky-horizon {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -2%;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(155, 230, 122, 0.45));
  border-radius: 50%;
  filter: blur(2px);
}

.sc-sun-3d {
  position: absolute;
  top: 6%;
  right: 7%;
  width: 78px;
  height: 78px;
  transform-style: preserve-3d;
  animation: sc-sun-orbit 10s ease-in-out infinite;
}

.sc-sun-core {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fffbeb 0%, #fde68a 28%, #facc15 62%, #f59e0b 100%);
  box-shadow:
    0 0 24px rgba(250, 204, 21, 0.85),
    0 0 48px rgba(245, 158, 11, 0.45),
    inset -8px -10px 16px rgba(180, 83, 9, 0.35),
    inset 6px 6px 12px rgba(255, 255, 255, 0.65);
  transform: translateZ(20px);
}

.sc-sun-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.55), transparent 68%);
  filter: blur(2px);
  animation: sc-glow 6s ease-in-out infinite;
}

.sc-sun-ray {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 18px;
  margin: -9px -4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fde68a, rgba(245, 158, 11, 0.15));
  transform-origin: 50% 50%;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
}

.sc-sun-ray-1 { transform: translateY(-40px) rotateX(55deg); }
.sc-sun-ray-2 { transform: rotate(90deg) translateY(-40px) rotateX(55deg); }
.sc-sun-ray-3 { transform: rotate(45deg) translateY(-40px) rotateX(55deg); }
.sc-sun-ray-4 { transform: rotate(-45deg) translateY(-40px) rotateX(55deg); }

.sc-cloud-3d {
  position: absolute;
  transform-style: preserve-3d;
  filter: drop-shadow(0 10px 12px rgba(30, 64, 175, 0.18));
  animation: sc-cloud-drift 42s linear infinite;
}

.sc-cloud-3d span,
.sc-cloud-3d i {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #ffffff 0%, #f8fafc 42%, #dbeafe 100%);
  box-shadow:
    inset -6px -8px 12px rgba(148, 163, 184, 0.35),
    inset 5px 5px 10px rgba(255, 255, 255, 0.9);
}

.sc-cloud-3d span:nth-child(1) { width: 54px; height: 36px; left: 18px; top: 14px; transform: translateZ(8px); }
.sc-cloud-3d span:nth-child(2) { width: 42px; height: 30px; left: 0; top: 20px; transform: translateZ(2px); }
.sc-cloud-3d span:nth-child(3) { width: 38px; height: 28px; left: 48px; top: 18px; transform: translateZ(12px); }
.sc-cloud-3d i {
  width: 70px;
  height: 22px;
  left: 8px;
  top: 34px;
  border-radius: 40px;
  transform: translateZ(0) rotateX(55deg);
  opacity: 0.9;
}

.sc-cloud-3d-a { left: 8%; top: 10%; width: 110px; height: 70px; }
.sc-cloud-3d-b { left: 38%; top: 6%; width: 120px; height: 72px; animation-duration: 54s; animation-direction: reverse; }
.sc-cloud-3d-c { left: 62%; top: 14%; width: 96px; height: 64px; animation-duration: 36s; }

.sc-cloud-3d-b span:nth-child(1) { width: 60px; height: 38px; }
.sc-cloud-3d-c span:nth-child(1) { width: 46px; height: 30px; }

.sc-lawn-3d {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -18%;
  height: 78%;
  transform-style: preserve-3d;
  transform: rotateX(58deg) translateZ(-20px);
  transform-origin: 50% 0%;
}

.sc-lawn-plane {
  position: absolute;
  inset: 8% 6% 12%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  border-radius: 18% / 10%;
  overflow: hidden;
  background: linear-gradient(180deg, #86efac, #22c55e 55%, #15803d);
  box-shadow:
    0 30px 40px rgba(22, 101, 52, 0.28),
    inset 0 0 40px rgba(255, 255, 255, 0.18);
  transform: translateZ(1px);
}

.sc-lawn-tile {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 48%, transparent 50%),
    linear-gradient(315deg, rgba(21, 128, 61, 0.28) 0 48%, transparent 50%),
    linear-gradient(180deg, #4ade80, #16a34a);
  border: 1px solid rgba(22, 101, 52, 0.18);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.12);
}

.sc-lawn-tile:nth-child(even) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 48%, transparent 50%),
    linear-gradient(315deg, rgba(21, 128, 61, 0.34) 0 48%, transparent 50%),
    linear-gradient(180deg, #34d399, #15803d);
}

.sc-lawn-edge {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 14%;
  border-radius: 50%;
  background: rgba(20, 83, 45, 0.35);
  filter: blur(8px);
  transform: translateZ(-8px) scaleY(0.55);
}

@keyframes sc-sun-orbit {
  0%, 100% { transform: translate3d(0, 0, 30px) rotateZ(0deg); }
  50% { transform: translate3d(-6px, 4px, 34px) rotateZ(8deg); }
}

@keyframes sc-cloud-drift {
  from { transform: translate3d(0, 0, 16px); }
  50% { transform: translate3d(28px, -4px, 22px); }
  to { transform: translate3d(0, 0, 16px); }
}

.sc-town-hud {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 58%;
}

.sc-hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.sc-hud-chip .sc-icon {
  width: 22px;
  height: 22px;
}

.sc-hud-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sc-hud-text strong {
  font-size: 0.875rem;
}

.sc-hud-text span {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.sc-hotspot {
  position: absolute;
  z-index: 2;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  border-radius: 18px;
}

.sc-hotspot:hover,
.sc-hotspot:focus-visible {
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.sc-hotspot.is-focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.sc-hotspot-label {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  pointer-events: none;
}

.sc-hotspot-cta {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.28);
  pointer-events: none;
}

.sc-hotspot-ready .sc-hotspot-cta {
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.3);
}

.sc-hotspot-cottage {
  left: 4%;
  top: 28%;
  width: 22%;
  height: 44%;
}

.sc-hotspot-plot-1 {
  left: 18%;
  top: 72%;
  width: 18%;
  height: 22%;
}

.sc-hotspot-plot-2 {
  left: 64%;
  top: 72%;
  width: 18%;
  height: 22%;
}

.sc-hotspot-cat {
  left: 36%;
  top: 64%;
  width: 11%;
  height: 18%;
  z-index: 5;
}

.sc-hotspot-dog {
  left: 48%;
  top: 64%;
  width: 11%;
  height: 18%;
  z-index: 5;
}

.sc-hotspot-bookstore {
  left: 74%;
  top: 28%;
  width: 22%;
  height: 46%;
}

.sc-hotspot-repair {
  left: 60%;
  top: 46%;
  width: 12%;
  height: 24%;
}

.sc-iso-repair {
  left: 56%;
  top: 42%;
  width: 16%;
  height: 34%;
}

.sc-iso-scene-repair {
  transform: rotateX(14deg) rotateZ(-12deg) rotateY(12deg) !important;
}

.sc-repair-hut {
  position: absolute;
  inset: 18% 16% 22%;
  transform-style: preserve-3d;
}

.sc-repair-roof {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 28%;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(160deg, #fbbf24, #d97706);
  transform: translateZ(12px);
}

.sc-repair-body {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 24%;
  bottom: 8%;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff7ed, #fdba74);
  border: 1px solid rgba(146, 64, 14, 0.25);
  transform: translateZ(8px);
}

.sc-repair-wrench {
  position: absolute;
  right: 18%;
  bottom: 18%;
  width: 22%;
  height: 22%;
  border-radius: 4px;
  background: #64748b;
  transform: rotate(28deg) translateZ(14px);
  box-shadow: 0 0 0 2px #94a3b8;
}

.sc-dock-icon-learn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 19V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3Cpath d='M13 3v5h5M8 13h8M8 17h5'/%3E%3C/svg%3E");
}

.sc-luna-walker {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 64%;
  width: 88px;
  height: 128px;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -88%);
  will-change: left, top;
}

.sc-luna-walker:hover,
.sc-luna-walker:focus-visible,
.sc-luna-walker.is-focus {
  border-color: rgba(37, 99, 235, 0.55);
  border-radius: 22px;
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.sc-luna-figure {
  display: block;
  position: relative;
  width: 78px;
  height: 104px;
  margin: 10px auto 0;
  transform-origin: 50% 85%;
}

.sc-luna-sprite {
  display: block;
  width: 78px;
  height: 104px;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(15, 23, 42, 0.18));
}

.sc-luna-shadow {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 40px;
  height: 12px;
  margin-left: -20px;
  border-radius: 50%;
  background: rgba(22, 101, 52, 0.22);
  filter: blur(1px);
  pointer-events: none;
}

.sc-luna-name {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  pointer-events: none;
  z-index: 2;
}

.sc-luna-walker.is-walking .sc-luna-figure {
  animation: sc-luna-bob 0.34s ease-in-out infinite;
}

.sc-luna-walker.is-walking .sc-luna-leg-l {
  transform-origin: 38px 88px;
  animation: sc-luna-stride 0.34s ease-in-out infinite;
}

.sc-luna-walker.is-walking .sc-luna-leg-r {
  transform-origin: 58px 88px;
  animation: sc-luna-stride 0.34s ease-in-out infinite reverse;
}

.sc-town-dock {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.sc-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 64px;
  padding: 6px 10px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #1e3a8a;
  cursor: pointer;
}

.sc-dock-btn:hover,
.sc-dock-btn:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

.sc-dock-icon {
  width: 22px;
  height: 22px;
  background: center / contain no-repeat;
}

.sc-dock-icon-tasks {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E");
}

.sc-dock-icon-decorate {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 20l7-2 9-9a3 3 0 0 0-4-4l-9 9-2 6z'/%3E%3Cpath d='M14 6l4 4'/%3E%3C/svg%3E");
}

.sc-dock-icon-bag {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 8h12l1 12H5L6 8z'/%3E%3Cpath d='M9 8V7a3 3 0 0 1 6 0v1'/%3E%3C/svg%3E");
}

.sc-dock-text {
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.1;
}

.sc-dog-tail {
  transform-origin: 48px 34px;
  animation: sc-tail 1.6s ease-in-out infinite;
}

/* CSS isometric buildings (Mole Manor style) */
.sc-iso-building {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  transform-style: preserve-3d;
}

.sc-iso-cottage {
  left: 4%;
  top: 28%;
  width: 24%;
  height: 48%;
}

.sc-iso-bookstore {
  left: 70%;
  top: 26%;
  width: 26%;
  height: 52%;
}

.sc-iso-shadow {
  position: absolute;
  left: 12%;
  right: 8%;
  bottom: 4%;
  height: 18%;
  border-radius: 50%;
  background: rgba(22, 101, 52, 0.28);
  filter: blur(4px);
  transform: scaleY(0.45);
}

.sc-iso-scene {
  position: absolute;
  inset: 6% 8% 12%;
  transform-style: preserve-3d;
  transform: rotateX(18deg) rotateZ(-18deg) rotateY(18deg);
  transform-origin: 50% 80%;
  animation: sc-iso-idle 5.5s ease-in-out infinite;
}

.sc-iso-bookstore .sc-iso-scene {
  transform: rotateX(18deg) rotateZ(-16deg) rotateY(20deg) scale(1.05);
}

.sc-iso-body {
  position: absolute;
  left: 18%;
  top: 34%;
  width: 58%;
  height: 48%;
  transform-style: preserve-3d;
}

.sc-iso-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid rgba(30, 58, 138, 0.22);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.22);
}

.sc-iso-left {
  background: linear-gradient(160deg, #fff7ed 0%, #fdba74 100%);
  transform: rotateY(-90deg) translateZ(29%);
  transform-origin: left center;
  width: 70%;
}

.sc-iso-right {
  background: linear-gradient(200deg, #fb923c 0%, #9a3412 100%);
  transform: rotateY(90deg) translateZ(29%);
  transform-origin: right center;
  width: 70%;
  left: auto;
  right: 0;
}

.sc-iso-front {
  background: linear-gradient(180deg, #ffedd5 0%, #fdbA74 100%);
  transform: translateZ(29%);
}

.sc-iso-bookstore .sc-iso-left {
  background: linear-gradient(160deg, #eff6ff 0%, #93c5fd 100%);
}

.sc-iso-bookstore .sc-iso-right {
  background: linear-gradient(200deg, #60a5fa 0%, #1e3a8a 100%);
}

.sc-iso-bookstore .sc-iso-front {
  background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);
}

.sc-iso-roof {
  position: absolute;
  left: 10%;
  top: 8%;
  width: 72%;
  height: 34%;
  transform-style: preserve-3d;
  z-index: 2;
}

.sc-iso-roof-a,
.sc-iso-roof-b {
  position: absolute;
  inset: 0;
  border-radius: 4px;
}

.sc-iso-roof-a {
  background: linear-gradient(135deg, #7dd3fc 0%, #2563eb 55%, #1e3a8a 100%);
  transform: rotateX(55deg) translateZ(8px);
  box-shadow: 0 8px 16px rgba(30, 64, 175, 0.25);
}

.sc-iso-roof-b {
  background: linear-gradient(225deg, #60a5fa 0%, #1d4ed8 100%);
  transform: rotateY(90deg) rotateX(40deg) translateZ(18px);
  opacity: 0.92;
}

.sc-iso-window {
  position: absolute;
  top: 18%;
  width: 18%;
  height: 22%;
  border-radius: 3px;
  background: linear-gradient(160deg, #e0f2fe, #38bdf8);
  border: 1px solid #1d4ed8;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.55);
}

.sc-iso-window-a { left: 12%; }
.sc-iso-window-b { right: 12%; }

.sc-iso-door {
  position: absolute;
  left: 38%;
  bottom: 0;
  width: 24%;
  height: 42%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #fdba74, #c2410c);
  border: 1px solid #9a3412;
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.12);
}

.sc-iso-door::after {
  content: "";
  position: absolute;
  right: 14%;
  top: 48%;
  width: 12%;
  height: 10%;
  border-radius: 50%;
  background: #fde68a;
}

.sc-iso-chimney {
  position: absolute;
  right: 18%;
  top: 10%;
  width: 10%;
  height: 22%;
  background: linear-gradient(180deg, #fb7185, #be123c);
  border-radius: 3px;
  transform: translateZ(40px);
  z-index: 3;
}

.sc-iso-chimney i {
  position: absolute;
  left: 20%;
  top: -40%;
  width: 70%;
  height: 50%;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.85);
  animation: sc-smoke 4.2s ease-in-out infinite;
}

.sc-iso-plaque {
  position: absolute;
  left: 50%;
  top: 28%;
  z-index: 4;
  transform: translateX(-50%) translateZ(42px);
  padding: 3px 8px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

.sc-iso-bookstore .sc-iso-plaque {
  top: 24%;
}

.sc-iso-building.is-locked {
  filter: grayscale(0.25) saturate(0.75);
  opacity: 0.72;
}

.sc-iso-building.is-focus .sc-iso-scene {
  animation: sc-iso-pulse 1.4s ease-in-out infinite;
}

.sc-iso-deco {
  position: absolute;
  border-radius: 3px;
}

.sc-iso-deco-coffee {
  left: 8%;
  bottom: 10%;
  width: 14%;
  height: 16%;
  background: #fff7ed;
  border: 1px solid #9a3412;
}

.sc-iso-deco-books {
  right: 8%;
  bottom: 12%;
  width: 18%;
  height: 20%;
  background: linear-gradient(90deg, #fef3c7 0 25%, #fecdd3 25% 50%, #bbf7d0 50% 75%, #1d4ed8 75%);
  border: 1px solid #1e3a8a;
}

.sc-iso-deco-plant {
  left: 4%;
  bottom: 4%;
  width: 12%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #86efac, #16a34a);
}

/* Volumetric pet buddies */
.sc-pet-buddy {
  position: absolute;
  z-index: 3;
  width: 11%;
  height: 26%;
  pointer-events: none;
  transform-style: preserve-3d;
}

.sc-pet-cat {
  left: 38%;
  top: 58%;
}

.sc-pet-dog {
  left: 52%;
  top: 58%;
}

.sc-pet-shadow {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 70%;
  height: 14%;
  margin-left: -35%;
  border-radius: 50%;
  background: rgba(22, 101, 52, 0.28);
  filter: blur(2px);
  transform: scaleY(0.55);
}

.sc-pet-figure {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 84%;
  height: 84%;
  margin-left: -42%;
  transform-origin: 50% 90%;
  animation: sc-pet-bob 2.8s ease-in-out infinite;
}

.sc-pet-dog .sc-pet-figure {
  animation-delay: 0.4s;
}

.sc-pet-sprite {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 8px rgba(15, 23, 42, 0.16));
}

.sc-pet-name {
  position: absolute;
  left: 50%;
  bottom: -2%;
  transform: translateX(-50%);
  max-width: 140%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
}

.sc-pet-buddy.is-locked {
  opacity: 0.42;
  filter: grayscale(0.35);
}

.sc-pet-buddy.is-locked .sc-pet-figure {
  animation: none;
}

.sc-pet-buddy.is-focus .sc-pet-figure {
  animation: sc-pet-bob 1.2s ease-in-out infinite;
}

.sc-pet-buddy.is-owned .sc-pet-figure {
  filter: drop-shadow(0 8px 10px rgba(37, 99, 235, 0.18));
}

@keyframes sc-iso-idle {
  0%, 100% { transform: rotateX(18deg) rotateZ(-18deg) rotateY(18deg) translateY(0); }
  50% { transform: rotateX(18deg) rotateZ(-18deg) rotateY(18deg) translateY(-3px); }
}

@keyframes sc-iso-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

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

.sc-hotspot-ready {
  animation: sc-ready 1.6s ease-in-out infinite;
}

.sc-hotspot-locked .sc-hotspot-label {
  background: rgba(30, 64, 175, 0.78);
}

.sc-hotspot-quiet .sc-hotspot-label {
  display: none;
}

.sc-inspector {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 48%, #f0fdf4 140%);
  border: 1px solid var(--border);
}

.sc-inspector-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.sc-inspector-title {
  font-size: 1.125rem;
  margin: 4px 0 10px;
}

.sc-inspector p {
  margin: 0 0 10px;
}

.sc-inspector-actions,
.sc-town-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.sc-speech {
  position: relative;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  box-shadow: var(--shadow);
}

.sc-interior {
  margin: 4px 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.sc-interior-room {
  border: 0;
  background: transparent;
  overflow: visible;
}

.sc-interior-room .pr-room {
  margin: 0;
}

.sc-interior-svg {
  display: block;
  width: 100%;
  height: auto;
}

.sc-cloud-a {
  animation: sc-drift 42s linear infinite;
}

.sc-cloud-b {
  animation: sc-drift 54s linear infinite reverse;
}

.sc-cloud-c {
  animation: sc-drift 36s linear infinite;
}

.sc-smoke {
  animation: sc-smoke 4.2s ease-in-out infinite;
  transform-origin: 167px 48px;
}

.sc-cat-tail {
  transform-origin: 48px 36px;
  animation: sc-tail 2.4s ease-in-out infinite;
}

.sc-luna-art {
  animation: sc-bob 3.2s ease-in-out infinite;
  transform-origin: 26px 97px;
}

.sc-sun {
  animation: sc-glow 6s ease-in-out infinite;
}

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

@keyframes sc-luna-stride {
  0%, 100% { transform: rotate(12deg); }
  50% { transform: rotate(-14deg); }
}

@keyframes sc-drift {
  from { transform: translateX(0); }
  50% { transform: translateX(28px); }
  to { transform: translateX(0); }
}

@keyframes sc-smoke {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 0.95; transform: translateY(-8px); }
}

@keyframes sc-tail {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(14deg); }
}

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

@keyframes sc-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}

@keyframes sc-ready {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12); }
}

.sc-plot {
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed rgba(22, 163, 74, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
}

.sc-plot-growing {
  border-style: solid;
  border-color: rgba(37, 99, 235, 0.2);
}

.sc-plot-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sc-plot-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}

.sc-plot-soil {
  width: 64px;
  height: 18px;
  border-radius: 40px;
  background: linear-gradient(180deg, #bbf7d0, #854d0e);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.sc-plot-title {
  font-size: 0.9375rem;
  font-weight: 700;
}

.sc-plot-actions,
.sc-task-actions,
.sc-task-form,
.sc-task-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sc-garden-hint {
  margin-top: 4px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: #334155;
}

.sc-decor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sc-decor-chip,
.sc-backpack-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
}

.sc-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.sc-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sc-plot-art .sc-icon,
.sc-shop-card > .sc-icon,
.sc-collection-card > .sc-icon {
  width: 48px;
  height: 48px;
}

.sc-task-form {
  margin-bottom: 8px;
}

.sc-task-input,
.sc-task-edit .question-input {
  flex: 1 1 220px;
}

.sc-task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-task {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.sc-task-done {
  background: #f8fafc;
}

.sc-task-title {
  font-weight: 700;
}

.sc-task-meta {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.sc-task-edit {
  width: 100%;
}

.sc-btn-quiet {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.sc-btn-quiet:hover {
  color: var(--danger);
  background: #fff1f2;
}

.sc-shop-grid,
.sc-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sc-gift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.sc-gift-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 140%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-gift-card.is-empty {
  opacity: 0.7;
}

.sc-gift-card > .sc-icon {
  width: 52px;
  height: 52px;
}

.sc-gift-cond {
  margin: 6px 0 4px 18px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.sc-demo-banner,
.sc-live-banner,
.sc-config-slot {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
}

.sc-demo-banner {
  background: #fff7ed;
  border: 1px dashed rgba(234, 88, 12, 0.4);
}

.sc-live-banner {
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.sc-config-slot {
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
}

.sc-demo-banner strong,
.sc-live-banner strong,
.sc-config-kicker,
.sc-rule strong {
  display: block;
  margin-bottom: 6px;
}

.sc-config-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.sc-growth-bits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.sc-growth-bit {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: #fff;
}

.sc-growth-bit.is-on {
  border-style: solid;
  border-color: rgba(22, 163, 74, 0.3);
  background: #f0fdf4;
}

.sc-growth-bit strong,
.sc-growth-bit span {
  display: block;
}

.sc-growth-bit span {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sc-growth-missing {
  margin: 8px 0 0 18px;
  font-size: 0.875rem;
}

.sc-redeem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-redeem-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

.sc-demo-banner,
.sc-live-banner,
.sc-config-slot {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  background: #fff7ed;
  border: 1px dashed rgba(217, 119, 6, 0.35);
  font-size: 0.875rem;
  line-height: 1.5;
}

.sc-live-banner {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.25);
}

.sc-gift-card,
.sc-shop-card,
.sc-collection-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, var(--pink-50) 140%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-shop-owned {
  opacity: 0.72;
}

.sc-shop-name {
  font-size: 1rem;
}

.sc-shop-en,
.sc-shop-price {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.sc-shop-price {
  font-weight: 700;
  color: var(--primary);
}

.sc-shop-card .btn {
  margin-top: 6px;
}

.sc-backpack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-persist {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.sc-persist strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

@media (max-width: 1100px) {
  .sc-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .sc-stats,
  .sc-shop-grid,
  .sc-collection-grid,
  .sc-gift-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sc-task {
    flex-direction: column;
  }

  .sc-panel {
    padding: 18px 16px;
  }

  .sc-town-stage {
    aspect-ratio: 1000 / 640;
    min-height: 340px;
  }

  .sc-town-stage.sc-town-diorama {
    aspect-ratio: 4 / 3;
    min-height: 360px;
  }

  .sc-town-sprite-label {
    font-size: 0.5625rem;
    padding: 2px 7px;
  }

  .sc-luna-walker {
    width: 72px;
    height: 112px;
  }

  .sc-town-diorama .sc-luna-walker {
    width: 12%;
    height: 30%;
  }

  .sc-luna-figure,
  .sc-luna-sprite {
    width: 64px;
    height: 88px;
  }

  .sc-town-diorama .sc-luna-figure,
  .sc-town-diorama .sc-luna-sprite {
    width: 100%;
    height: 100%;
  }

  .sc-town-dock {
    bottom: 6px;
    padding: 4px 6px;
  }

  .sc-dock-btn {
    min-width: 56px;
    padding: 4px 8px;
  }

  .sc-hotspot-cta {
    padding: 5px 10px;
    font-size: 0.6875rem;
  }

  .sc-pet-buddy {
    width: 14%;
    height: 28%;
  }

  .sc-iso-plaque {
    font-size: 0.5625rem;
    padding: 2px 6px;
  }

  .sc-hotspot-label {
    font-size: 0.625rem;
    padding: 2px 6px;
  }

  .sc-town-hud {
    max-width: calc(100% - 24px);
  }
}

@media (max-width: 640px) {
  .sc-hotspot-cottage,
  .sc-hotspot-bookstore,
  .sc-hotspot-cat,
  .sc-hotspot-dog,
  .sc-hotspot-plot-1,
  .sc-hotspot-plot-2,
  .sc-hotspot-repair,
  .sc-luna-walker {
    min-width: 44px;
    min-height: 44px;
  }

  .sc-stats {
    grid-template-columns: 1fr 1fr;
  }
}

.sc-stage-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}

.sc-stage {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8125rem;
}

.sc-stage.is-on {
  border-color: rgba(37, 99, 235, 0.35);
  background: #eff6ff;
}

.sc-stage.is-current {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.sc-stage-name {
  font-weight: 700;
}

.sc-growth-scene svg {
  display: block;
  width: 100%;
  height: auto;
}

.sc-rule,
.sc-growth-now {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  margin-bottom: 12px;
}

@media (max-width: 860px) {
  .sc-stage-track {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-cloud-a,
  .sc-cloud-b,
  .sc-cloud-c,
  .sc-smoke,
  .sc-cat-tail,
  .sc-dog-tail,
  .sc-luna-art,
  .sc-sun,
  .sc-hotspot-ready,
  .sc-luna-walker.is-walking .sc-luna-figure,
  .sc-luna-walker.is-walking .sc-luna-leg-l,
  .sc-luna-walker.is-walking .sc-luna-leg-r,
  .sc-luna-walker.is-idle .sc-luna-figure,
  .sc-luna-walker.is-idle .sc-luna-sprite,
  .sc-luna-walker.is-walking .sc-luna-sprite,
  .sc-town-pet.is-owned .sc-town-sprite-img,
  .sc-iso-scene,
  .sc-pet-figure,
  .sc-sun-3d,
  .sc-cloud-3d,
  .sc-sun-glow {
    animation: none !important;
  }
}

/* mime-fix-20261119b */
