:root {
  --bg: #07110f;
  --panel: #0f1e1b;
  --panel-2: #142823;
  --line: #254139;
  --text: #ecfff8;
  --muted: #9bb9af;
  --mint: #55f0b2;
  --gold: #f1c95b;
  --cyan: #5bd8f1;
  --danger: #ff7676;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(85, 240, 178, 0.24), transparent 38%),
    linear-gradient(180deg, #07110f 0%, #0a1513 48%, #050908 100%);
  color: var(--text);
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

.app-shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 18px 16px 96px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--mint);
  font-size: 12px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.balance {
  min-width: 92px;
  padding: 10px 12px;
  border: 1px solid rgba(241, 201, 91, 0.45);
  border-radius: 8px;
  background: rgba(241, 201, 91, 0.12);
  text-align: right;
}

.balance span {
  display: block;
  color: var(--gold);
  font-size: 24px;
  font-weight: 800;
}

.balance small,
.progress-strip small,
.pot-meta,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.progress-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.progress-strip > div {
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 30, 27, 0.84);
}

.progress-strip span {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.garden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}

.garden-stage {
  position: relative;
}

.farm-vista {
  position: relative;
  min-height: 184px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(37, 65, 57, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 9, 8, 0.72), rgba(5, 9, 8, 0.12) 54%, rgba(5, 9, 8, 0.08)),
    linear-gradient(135deg, rgba(85, 240, 178, 0.18), rgba(91, 216, 241, 0.08) 52%, rgba(241, 201, 91, 0.12)),
    rgba(15, 30, 27, 0.82);
  box-shadow: inset 0 0 0 1px rgba(236, 255, 248, 0.04);
}

.farm-vista::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(5, 9, 8, 0.48));
  content: "";
  z-index: 1;
}

.farm-vista-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 360ms ease;
}

.farm-vista.has-photo .farm-vista-photo {
  opacity: 0.88;
}

.farm-vista span,
.vista-sky,
.vista-ground,
.vista-structure {
  display: none;
}

.vista-structure.pot .saucer {
  right: 22px;
  bottom: 0;
  left: 22px;
  height: 14px;
  border: 1px solid rgba(241, 201, 91, 0.46);
  border-radius: 50%;
  background: rgba(5, 9, 8, 0.38);
}

.vista-structure.pot .clay {
  right: 66px;
  bottom: 8px;
  width: 86px;
  height: 70px;
  border-radius: 8px 8px 20px 20px;
  background: #f1c95b;
  box-shadow: inset 0 -18px 0 rgba(29, 21, 0, 0.18);
}

.vista-structure.pot .sprig {
  bottom: 64px;
  width: 8px;
  height: 42px;
  border-radius: 999px;
  background: #55f0b2;
  transform-origin: bottom center;
}

.sprig-a {
  right: 106px;
  transform: rotate(-28deg);
}

.sprig-b {
  right: 102px;
}

.sprig-c {
  right: 96px;
  transform: rotate(28deg);
}

.vista-structure.tent {
  width: 260px;
  height: 120px;
}

.tent-cover {
  right: 24px;
  bottom: 0;
  width: 190px;
  height: 108px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #5bd8f1;
  box-shadow: inset 0 -18px 0 rgba(5, 9, 8, 0.22);
}

.tent-door {
  right: 92px;
  bottom: 0;
  width: 44px;
  height: 64px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(5, 9, 8, 0.58);
}

.lamp {
  right: 2px;
  bottom: 0;
  width: 7px;
  height: 96px;
  background: rgba(236, 255, 248, 0.7);
}

.lamp::before {
  position: absolute;
  top: 4px;
  left: -22px;
  width: 50px;
  height: 26px;
  border-radius: 6px;
  background: #f1c95b;
  content: "";
}

.vista-structure.greenhouse {
  width: 270px;
  height: 120px;
}

.vista-structure.greenhouse .glass,
.yard .greenhouse,
.estate .greenhouse {
  right: 0;
  bottom: 0;
  width: 228px;
  height: 92px;
  border: 2px solid rgba(85, 240, 178, 0.76);
  border-radius: 16px 16px 6px 6px;
  background: rgba(91, 216, 241, 0.12);
}

.vista-structure.greenhouse .glass::before,
.yard .greenhouse::before,
.estate .greenhouse::before {
  position: absolute;
  right: 20px;
  bottom: 90px;
  left: 20px;
  height: 54px;
  border: 2px solid rgba(85, 240, 178, 0.66);
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
  content: "";
}

.frame {
  bottom: 0;
  width: 2px;
  height: 92px;
  background: rgba(236, 255, 248, 0.46);
}

.frame-a {
  right: 76px;
}

.frame-b {
  right: 150px;
}

.crystals {
  right: 92px;
  bottom: 16px;
  width: 72px;
  height: 46px;
}

.crystals::before,
.crystals::after {
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 46px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #55f0b2;
  content: "";
}

.crystals::after {
  right: 4px;
  height: 34px;
  background: #f1c95b;
}

.vista-structure.yard {
  width: 316px;
  height: 130px;
}

.yard .shed {
  right: 210px;
  bottom: 0;
  width: 82px;
  height: 82px;
  border-radius: 6px 6px 2px 2px;
  background: #f1c95b;
  box-shadow: inset 0 -20px 0 rgba(29, 21, 0, 0.22);
}

.yard .shed::before {
  position: absolute;
  top: -34px;
  left: 0;
  width: 82px;
  height: 42px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(241, 201, 91, 0.86);
  content: "";
}

.yard .greenhouse {
  right: 0;
  width: 190px;
}

.string-lights {
  right: 24px;
  bottom: 104px;
  width: 260px;
  height: 18px;
  border-top: 2px solid rgba(236, 255, 248, 0.5);
  transform: rotate(-8deg);
}

.string-lights::before {
  position: absolute;
  top: -3px;
  left: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f1c95b;
  box-shadow:
    48px 4px 0 #55f0b2,
    96px 2px 0 #f1c95b,
    144px 6px 0 #55f0b2,
    192px 4px 0 #f1c95b;
  content: "";
}

.vista-structure.estate {
  right: 4%;
  width: 352px;
  height: 136px;
}

.estate .barn {
  right: 242px;
  bottom: 0;
  width: 86px;
  height: 90px;
  border-radius: 7px 7px 2px 2px;
  background: #f1c95b;
}

.estate .barn::before {
  position: absolute;
  top: -42px;
  left: 0;
  width: 86px;
  height: 50px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(241, 201, 91, 0.9);
  content: "";
}

.estate .greenhouse {
  right: 78px;
  width: 180px;
}

.estate .silo {
  right: 0;
  bottom: 0;
  width: 54px;
  height: 124px;
  border: 2px solid rgba(241, 201, 91, 0.74);
  border-radius: 28px 28px 6px 6px;
  background: rgba(241, 201, 91, 0.16);
}

.scene-stage-leaf .farm-vista,
.scene-stage-sprout .farm-vista {
  border-color: rgba(241, 201, 91, 0.38);
  background-image:
    linear-gradient(90deg, rgba(5, 9, 8, 0.76), rgba(5, 9, 8, 0.18) 54%, rgba(5, 9, 8, 0.08)),
    linear-gradient(135deg, rgba(241, 201, 91, 0.22), rgba(85, 240, 178, 0.08));
  background-position: center;
}

.scene-stage-tent .farm-vista,
.scene-stage-lamp .farm-vista {
  border-color: rgba(91, 216, 241, 0.42);
  background-image:
    linear-gradient(90deg, rgba(5, 9, 8, 0.76), rgba(5, 9, 8, 0.14) 54%, rgba(5, 9, 8, 0.04)),
    linear-gradient(135deg, rgba(91, 216, 241, 0.24), rgba(85, 240, 178, 0.08));
  background-position: center;
}

.scene-stage-greenhouse .farm-vista,
.scene-stage-crystal .farm-vista {
  border-color: rgba(85, 240, 178, 0.5);
  background-image:
    linear-gradient(90deg, rgba(5, 9, 8, 0.76), rgba(5, 9, 8, 0.16) 54%, rgba(5, 9, 8, 0.05)),
    linear-gradient(135deg, rgba(85, 240, 178, 0.24), rgba(91, 216, 241, 0.1));
  background-position: center;
}

.scene-stage-yard .farm-vista,
.scene-stage-flare .farm-vista {
  border-color: rgba(85, 240, 178, 0.5);
  background-image:
    linear-gradient(90deg, rgba(5, 9, 8, 0.76), rgba(5, 9, 8, 0.14) 54%, rgba(5, 9, 8, 0.04)),
    linear-gradient(135deg, rgba(85, 240, 178, 0.22), rgba(241, 201, 91, 0.1));
  background-position: center;
}

.scene-stage-estate .farm-vista,
.scene-stage-north-farm .farm-vista {
  border-color: rgba(241, 201, 91, 0.66);
  background-image:
    linear-gradient(90deg, rgba(5, 9, 8, 0.78), rgba(5, 9, 8, 0.1) 56%, rgba(5, 9, 8, 0.02)),
    linear-gradient(135deg, rgba(241, 201, 91, 0.24), rgba(85, 240, 178, 0.12));
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(241, 201, 91, 0.1), 0 0 22px rgba(241, 201, 91, 0.1);
}

.starter-panel {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(85, 240, 178, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(85, 240, 178, 0.08), rgba(241, 201, 91, 0.06)),
    rgba(15, 30, 27, 0.9);
}

.starter-steps {
  display: grid;
  gap: 8px;
}

.starter-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(37, 65, 57, 0.82);
  border-radius: 8px;
  background: rgba(20, 40, 35, 0.58);
}

.starter-step.is-next {
  border-color: rgba(241, 201, 91, 0.54);
  background: rgba(48, 38, 16, 0.32);
}

.starter-step.is-done {
  opacity: 0.78;
}

.starter-check {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(85, 240, 178, 0.38);
  border-radius: 50%;
  color: var(--mint);
  background: rgba(5, 9, 8, 0.42);
  font-size: 11px;
  font-weight: 900;
}

.starter-step.is-next .starter-check {
  color: #1d1500;
  border-color: rgba(241, 201, 91, 0.72);
  background: var(--gold);
}

.starter-step strong,
.starter-step small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.starter-step strong {
  font-size: 14px;
}

.starter-step small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.starter-action {
  min-width: 82px;
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.starter-done,
.starter-wait {
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.starter-wait {
  color: var(--muted);
}

.identity-scene {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(85, 240, 178, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(85, 240, 178, 0.1), rgba(91, 216, 241, 0.08)),
    rgba(15, 30, 27, 0.88);
}

.identity-scene > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.identity-scene strong,
.identity-scene p {
  display: block;
  margin: 0;
}

.identity-scene strong {
  font-size: 16px;
}

.identity-scene p {
  color: var(--muted);
  font-size: 12px;
}

.badge-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(241, 201, 91, 0.42);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(241, 201, 91, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.xp-chip {
  flex: 0 0 auto;
  max-width: 148px;
  padding: 8px 10px;
  border: 1px solid rgba(155, 185, 175, 0.22);
  border-radius: 8px;
  color: var(--mint);
  background: rgba(5, 9, 8, 0.42);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.identity-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.scene-tent,
.scene-lamp {
  border-color: rgba(91, 216, 241, 0.36);
  background:
    linear-gradient(135deg, rgba(91, 216, 241, 0.13), rgba(241, 201, 91, 0.08)),
    rgba(15, 30, 27, 0.9);
}

.scene-greenhouse,
.scene-crystal,
.scene-yard {
  border-color: rgba(85, 240, 178, 0.42);
  box-shadow: inset 0 0 0 1px rgba(85, 240, 178, 0.08), 0 0 18px rgba(85, 240, 178, 0.08);
}

.scene-flare,
.scene-estate,
.scene-north-farm {
  border-color: rgba(241, 201, 91, 0.58);
  box-shadow: inset 0 0 0 1px rgba(241, 201, 91, 0.12), 0 0 22px rgba(241, 201, 91, 0.12);
}

.scene-north-farm .badge-mark {
  color: #1d1500;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(241, 201, 91, 0.34);
}

.pot-card,
.panel,
.task-row,
.rank-row,
.redeem-card,
.name-panel,
.settings-panel,
.festival-banner,
.steal-panel,
.steal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 30, 27, 0.88);
}

.festival-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  margin-bottom: 12px;
  padding: 12px;
  border-color: rgba(241, 201, 91, 0.5);
  background:
    linear-gradient(135deg, rgba(241, 201, 91, 0.18), rgba(85, 240, 178, 0.08)),
    rgba(15, 30, 27, 0.9);
}

.festival-banner strong,
.festival-banner span {
  display: block;
  min-width: 0;
}

.festival-banner strong {
  color: var(--gold);
  font-size: 16px;
}

.festival-banner span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.festival-claim {
  min-width: 92px;
  padding: 0 12px;
}

.steal-panel {
  margin-bottom: 12px;
  padding: 12px;
}

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

.section-header > div {
  min-width: 0;
}

.section-header strong,
.section-header span {
  display: block;
}

.section-header strong {
  font-size: 15px;
}

.section-header span {
  color: var(--muted);
  font-size: 12px;
}

.btn.mini {
  min-width: 58px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--mint);
  border: 1px solid rgba(85, 240, 178, 0.28);
  background: rgba(20, 40, 35, 0.72);
}

.steal-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.steal-summary span {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(85, 240, 178, 0.18);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(11, 24, 21, 0.58);
}

.steal-summary strong {
  color: var(--mint);
  font-size: 14px;
}

.steal-list {
  display: grid;
  gap: 8px;
}

.steal-toggle {
  width: 100%;
  margin-top: 8px;
}

.steal-footnote {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.activity-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(37, 65, 57, 0.84);
}

.activity-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.steal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  background: rgba(20, 40, 35, 0.68);
}

.activity-card {
  background: rgba(48, 38, 16, 0.34);
}

.steal-main {
  min-width: 0;
}

.steal-main strong,
.steal-main span {
  display: block;
  overflow-wrap: anywhere;
}

.steal-main strong {
  font-size: 14px;
}

.steal-main span {
  color: var(--muted);
  font-size: 12px;
}

.steal-meta {
  display: grid;
  grid-template-columns: auto 76px;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.steal-meta span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.steal-btn {
  position: relative;
  min-width: 76px;
}

.empty-state {
  min-height: 42px;
  padding: 12px;
  border: 1px dashed rgba(155, 185, 175, 0.26);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.pot-card {
  min-height: 372px;
  padding: 14px;
}

.tier-3 .pot-card,
.tier-4 .pot-card {
  border-color: rgba(91, 216, 241, 0.34);
  background:
    linear-gradient(180deg, rgba(91, 216, 241, 0.07), rgba(15, 30, 27, 0.9)),
    rgba(15, 30, 27, 0.88);
}

.tier-5 .pot-card,
.tier-6 .pot-card,
.tier-7 .pot-card {
  border-color: rgba(85, 240, 178, 0.38);
  background:
    linear-gradient(180deg, rgba(85, 240, 178, 0.08), rgba(15, 30, 27, 0.9)),
    rgba(15, 30, 27, 0.88);
}

.tier-8 .pot-card,
.tier-9 .pot-card,
.tier-10 .pot-card {
  border-color: rgba(241, 201, 91, 0.42);
  background:
    linear-gradient(180deg, rgba(241, 201, 91, 0.08), rgba(15, 30, 27, 0.92)),
    rgba(15, 30, 27, 0.88);
}

.plant-art {
  position: relative;
  height: 126px;
  margin: 4px auto 12px;
  overflow: visible;
}

.plant-art::before {
  position: absolute;
  right: 18%;
  bottom: 0;
  left: 18%;
  height: 16px;
  border: 1px solid rgba(85, 240, 178, 0.28);
  border-radius: 50%;
  background: rgba(91, 216, 241, 0.08);
  content: "";
}

.tier-3 .plant-art::before,
.tier-4 .plant-art::before {
  border-color: rgba(91, 216, 241, 0.36);
  background: rgba(91, 216, 241, 0.1);
}

.tier-5 .plant-art::before,
.tier-6 .plant-art::before,
.tier-7 .plant-art::before {
  border-color: rgba(85, 240, 178, 0.46);
  background: rgba(85, 240, 178, 0.14);
}

.tier-8 .plant-art::before,
.tier-9 .plant-art::before,
.tier-10 .plant-art::before {
  border-color: rgba(241, 201, 91, 0.5);
  background: rgba(241, 201, 91, 0.14);
}

.plant-art.art-active::after {
  position: absolute;
  top: 8px;
  right: 28%;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(246, 255, 248, 0.9);
  border-radius: 50%;
  box-shadow:
    28px 18px 0 -2px rgba(246, 255, 248, 0.8),
    -38px 34px 0 -1px rgba(85, 240, 178, 0.45),
    44px 70px 0 -3px rgba(241, 201, 91, 0.62);
  opacity: 0.68;
  animation: sparkle-drift 3.8s ease-in-out infinite;
  content: "";
}

.plant-sprite {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 118px;
  height: 118px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 10px rgba(246, 255, 248, 0.32)) drop-shadow(0 0 12px rgba(85, 240, 178, 0.28));
  opacity: 0.96;
  transform-origin: 50% 82%;
  transition: width 240ms ease, height 240ms ease, bottom 240ms ease, opacity 240ms ease, filter 240ms ease;
  animation: plant-breathe 3.2s ease-in-out infinite;
}

.plant-lucky.stage-seedling {
  bottom: 18px;
  width: 76px;
  height: 76px;
  opacity: 0.82;
}

.plant-lucky.stage-sprout {
  bottom: 8px;
  width: 104px;
  height: 104px;
  opacity: 0.9;
}

.plant-lucky.stage-growing {
  bottom: -10px;
  width: 136px;
  height: 124px;
  animation: leaf-sway 3.4s ease-in-out infinite;
}

.plant-moon.stage-seedling {
  bottom: -10px;
  width: 102px;
  height: 98px;
  opacity: 0.9;
}

.plant-moon.stage-sprout {
  bottom: -14px;
  width: 126px;
  height: 121px;
}

.plant-moon.stage-growing {
  bottom: -18px;
  width: 150px;
  height: 144px;
  animation: moon-wiggle 3.6s ease-in-out infinite;
}

.plant-sprite.is-ready {
  filter: drop-shadow(0 0 14px rgba(246, 255, 248, 0.44)) drop-shadow(0 0 18px rgba(241, 201, 91, 0.28));
  animation: ready-bounce 2.4s ease-in-out infinite;
}

.plant-lucky.is-ready {
  bottom: -20px;
  width: 142px;
  height: 132px;
}

.plant-moon.is-ready {
  bottom: -24px;
  width: 158px;
  height: 142px;
}

.bud-fruit {
  position: absolute;
  bottom: -20px;
  left: 50%;
  width: 132px;
  height: 122px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 13px rgba(246, 255, 248, 0.36)) drop-shadow(0 0 18px rgba(241, 201, 91, 0.24));
}

.pot-card.is-lit {
  box-shadow: inset 0 0 0 1px rgba(241, 201, 91, 0.22), 0 0 18px rgba(241, 201, 91, 0.08);
}

.pot-card.is-fertilized .plant-art::before {
  background: rgba(85, 240, 178, 0.16);
  border-color: rgba(85, 240, 178, 0.46);
}

.pot-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 6px;
}

.pot-title strong {
  font-size: 15px;
}

.pot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.pot-actions.full {
  grid-template-columns: 1fr;
}

.btn {
  min-height: 38px;
  border-radius: 8px;
  background: var(--panel-2);
  cursor: pointer;
}

.btn.primary {
  color: #03130e;
  background: var(--mint);
  font-weight: 800;
}

.btn.gold {
  color: #1d1500;
  background: var(--gold);
  font-weight: 800;
}

.btn.disabled-state {
  color: rgba(225, 236, 231, 0.56);
  background: rgba(82, 100, 93, 0.28);
  font-weight: 700;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.plant-picker {
  display: grid;
  gap: 8px;
}

.panel {
  padding: 14px;
}

.shop-info-panel,
.shop-friends-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.shop-info-panel strong,
.shop-friends-panel strong {
  font-size: 16px;
}

.shop-reward-list {
  display: grid;
  gap: 8px;
}

.shop-reward-list p {
  display: grid;
  grid-template-columns: minmax(74px, 92px) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(85, 240, 178, 0.16);
  border-radius: 8px;
  background: rgba(5, 9, 8, 0.28);
}

.shop-reward-list span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.shop-reward-list b,
.shop-reward-list small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.shop-reward-list b {
  font-size: 14px;
}

.shop-reward-list small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.shop-friends-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.access-panel {
  padding: 18px;
  border: 1px solid rgba(241, 201, 91, 0.48);
  border-radius: 8px;
  background: rgba(48, 38, 16, 0.72);
}

.access-panel strong {
  color: var(--gold);
  font-size: 16px;
}

.access-code {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(241, 201, 91, 0.38);
  border-radius: 8px;
  background: rgba(5, 9, 8, 0.56);
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  word-break: break-all;
}

.task-row,
.rank-row,
.redeem-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  margin-bottom: 10px;
  padding: 12px;
}

.rank-row strong,
.rank-row span {
  min-width: 0;
}

.rank-row strong {
  overflow-wrap: anywhere;
}

.rank-row span {
  text-align: right;
}

.name-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
}

.settings-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
}

.rank-section {
  margin-top: 12px;
}

.rank-note {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.name-header,
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.name-header label,
.settings-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-header strong {
  font-size: 14px;
}

.name-header span,
.settings-header span {
  min-width: 0;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: right;
}

.name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
}

.name-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 9, 8, 0.58);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  outline: none;
  padding: 0 12px;
}

.name-input:focus {
  border-color: rgba(85, 240, 178, 0.72);
  box-shadow: 0 0 0 2px rgba(85, 240, 178, 0.12);
}

.toggle-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 65, 57, 0.82);
  border-radius: 8px;
  background: rgba(20, 40, 35, 0.56);
  cursor: pointer;
}

.toggle-row span,
.toggle-row strong,
.toggle-row small {
  display: block;
  min-width: 0;
}

.toggle-row strong {
  font-size: 14px;
}

.toggle-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-row i {
  position: relative;
  width: 48px;
  height: 28px;
  border: 1px solid rgba(155, 185, 175, 0.32);
  border-radius: 999px;
  background: rgba(5, 9, 8, 0.74);
  transition: border-color 180ms ease, background 180ms ease;
}

.toggle-row i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 180ms ease, background 180ms ease;
  content: "";
}

.toggle-row input:checked + i {
  border-color: rgba(85, 240, 178, 0.74);
  background: rgba(85, 240, 178, 0.18);
}

.toggle-row input:checked + i::after {
  background: var(--mint);
  transform: translateX(20px);
}

.toggle-row:focus-within {
  border-color: rgba(85, 240, 178, 0.7);
  box-shadow: 0 0 0 2px rgba(85, 240, 178, 0.12);
}

.settings-save {
  width: 100%;
}

.status {
  color: var(--mint);
  font-weight: 800;
}

.status.warn {
  color: var(--gold);
}

.status.bad {
  color: var(--danger);
}

.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 8, 0.92);
  backdrop-filter: blur(18px);
}

.tab {
  min-height: 42px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.tab.active {
  background: var(--panel-2);
  color: var(--mint);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 76px;
  left: 16px;
  z-index: 10;
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10231f;
  color: var(--text);
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 9, 8, 0.72);
  backdrop-filter: blur(14px);
}

.share-modal[hidden] {
  display: none;
}

.share-dialog {
  width: min(420px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 30, 27, 0.96);
  overflow: auto;
}

.share-preview {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(155, 185, 175, 0.22);
  border-radius: 8px;
  background: #050908;
  object-fit: cover;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.share-actions .btn {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.float-gain {
  position: absolute;
  left: 50%;
  bottom: 90%;
  color: var(--gold);
  font-size: 16px;
  font-weight: 900;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  animation: gain-float 900ms ease-out forwards;
}

@keyframes plant-breathe {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-3px) scale(1.018);
  }
}

@keyframes leaf-sway {
  0%, 100% {
    transform: translateX(-50%) rotate(-1.5deg) scale(1);
  }
  50% {
    transform: translateX(-50%) rotate(1.8deg) scale(1.015);
  }
}

@keyframes moon-wiggle {
  0%, 100% {
    transform: translateX(-50%) rotate(-1deg);
  }
  45% {
    transform: translateX(-50%) rotate(1.6deg) translateY(-2px);
  }
}

@keyframes ready-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-5px) scale(1.025);
  }
}

@keyframes sparkle-drift {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-5px) scale(1.12);
    opacity: 0.9;
  }
}

@keyframes gain-float {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(0.92);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-26px) scale(1.12);
  }
}

@media (max-width: 380px) {
  .app-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  h1 {
    font-size: 24px;
  }

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

  .identity-scene {
    align-items: stretch;
    flex-direction: column;
  }

  .identity-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .festival-banner {
    grid-template-columns: 1fr;
  }

  .festival-claim {
    width: 100%;
  }

  .farm-vista {
    min-height: 160px;
  }

  .starter-step {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .starter-action,
  .starter-done,
  .starter-wait {
    grid-column: 2;
    width: 100%;
    text-align: center;
  }

  .xp-chip {
    max-width: none;
    text-align: left;
  }

  .steal-card {
    grid-template-columns: 1fr;
  }

  .steal-meta {
    grid-template-columns: 1fr 76px;
  }
}
