:root {
  color-scheme: light;
  --game-bg-image: url("assets/garden-background.png?v=20260702-12");
  --sky-top: #69d7ff;
  --sky-bottom: #c7f8ff;
  --grass-a: #75db5f;
  --grass-b: #35ad4c;
  --leaf: #36c85f;
  --leaf-dark: #1f9b4b;
  --accent: #f9cf43;
  --trunk: #9a6535;
  --ink: #23402d;
  --muted: #5d795f;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 42px rgba(30, 101, 48, 0.22);
  --shadow-soft: 0 10px 24px rgba(30, 101, 48, 0.16);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(12, 105, 179, 0.06), rgba(24, 127, 55, 0.12)),
    var(--game-bg-image) center center / cover no-repeat,
    linear-gradient(180deg, #75dfff 0%, #c9f8ff 50%, #6bd65c 100%);
  background-attachment: fixed, fixed, fixed;
}

body::before {
  display: none;
}

body::after {
  display: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible {
  outline: 4px solid rgba(255, 221, 64, 0.85);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #8de25f, #44bd62);
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}

.loading-screen.is-hidden {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loading-card {
  width: min(300px, 82vw);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
}

.loading-tree {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 31% 28%, #dfffc6 0 13%, transparent 14%),
    radial-gradient(circle at 60% 22%, #baff79 0 19%, transparent 20%),
    radial-gradient(circle at 49% 55%, #27b85d 0 45%, transparent 46%);
  filter: drop-shadow(0 13px 14px rgba(39, 119, 43, 0.2));
  animation: bob 1.4s var(--ease) infinite alternate;
}

.loading-title {
  height: 22px;
  border-radius: 999px;
  color: transparent;
  background: rgba(255, 255, 255, 0.65);
}

.loading-bar {
  height: 12px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(52, 132, 50, 0.16);
}

.loading-bar span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe971, #ffbc2d);
  animation: loadingSlide 1s ease-in-out infinite;
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shimmer 1.35s infinite;
}

.world-decor {
  display: none;
}

.cloud,
.mini-cloud,
.stage-cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    22px 2px 0 rgba(255, 255, 255, 0.78),
    46px 11px 0 rgba(255, 255, 255, 0.7),
    13px 15px 0 rgba(255, 255, 255, 0.66);
}

.cloud-one {
  top: 12svh;
  left: 6vw;
  width: 70px;
  height: 24px;
  animation: drift 20s linear infinite;
}

.cloud-two {
  top: 19svh;
  right: 13vw;
  width: 92px;
  height: 28px;
  animation: drift 28s linear infinite reverse;
}

.cloud-three {
  top: 7svh;
  right: 38vw;
  width: 52px;
  height: 18px;
  opacity: 0.72;
  animation: drift 24s linear infinite;
}

.hill {
  position: absolute;
  bottom: 24svh;
  width: 52vw;
  height: 18svh;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(139, 226, 105, 0.7), rgba(69, 180, 77, 0.68));
}

.hill-one {
  left: -18vw;
}

.hill-two {
  right: -18vw;
  bottom: 22svh;
}

.game-shell {
  width: min(1180px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 14px 14px 28px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 38px rgba(28, 105, 65, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.brand-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: grid;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85), transparent 24%),
    linear-gradient(135deg, #efffd9, #7deb67);
  box-shadow: inset 0 -5px 0 rgba(25, 132, 47, 0.12), 0 10px 18px rgba(34, 119, 44, 0.16), 0 0 0 5px rgba(114, 225, 90, 0.12);
}

.brand-tree-icon,
.button-seed-icon {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 30px;
}

.brand-tree-icon::before,
.button-seed-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 9px;
  height: 18px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(90deg, #7a461e, #bc7a34 52%, #6d3c1b);
  transform: translateX(-50%);
}

.brand-tree-icon::after,
.button-seed-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 30px;
  height: 24px;
  border-radius: 48% 52% 46% 54%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.58), transparent 18%),
    radial-gradient(circle at 35% 62%, #2aa84e 0 18%, transparent 19%),
    linear-gradient(135deg, #9cff55, #28bd58 62%, #168a3c);
  box-shadow: inset 0 -5px 0 rgba(20, 95, 37, 0.12), 0 6px 10px rgba(27, 103, 42, 0.18);
  transform: translateX(-50%);
}

.brand-tree-icon {
  width: 38px;
  height: 38px;
  background: url("assets/brand-tree-real-v2.png?v=20260703-3") center bottom / contain no-repeat;
  filter: drop-shadow(0 7px 7px rgba(26, 101, 37, 0.24));
}

.brand-tree-icon::before,
.brand-tree-icon::after {
  display: none;
}

.button-seed-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: url("assets/seed-verde.png?v=20260703-3") center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 5px 5px rgba(32, 103, 23, 0.22));
  transform: rotate(-7deg);
}

.button-seed-icon::before,
.button-seed-icon::after {
  display: none;
}

.brand-button strong,
.brand-button small {
  display: block;
  line-height: 1.02;
}

.brand-button strong {
  font-size: 1rem;
}

.brand-button small {
  color: var(--muted);
  font-size: 0.72rem;
}

.coin-wallet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 86px;
  min-height: 45px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 225, 91, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.86), transparent 20%),
    linear-gradient(180deg, #fff8a7, #ffd54b);
  box-shadow: inset 0 -4px 0 rgba(204, 138, 0, 0.16), 0 12px 20px rgba(191, 143, 23, 0.18), 0 0 18px rgba(255, 218, 73, 0.34);
  color: #67450b;
  font-weight: 900;
}

.wallet-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
  text-align: left;
}

.wallet-copy small {
  color: rgba(103, 69, 11, 0.72);
  font-size: 0.62rem;
  font-weight: 900;
}

.wallet-copy strong {
  font-size: 0.94rem;
}

.settings-glyph {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 22%, transparent 23%),
    conic-gradient(from 0deg, #2f8742 0 12%, transparent 12% 20%, #2f8742 20% 32%, transparent 32% 40%, #2f8742 40% 52%, transparent 52% 60%, #2f8742 60% 72%, transparent 72% 80%, #2f8742 80% 92%, transparent 92%);
  filter: drop-shadow(0 2px 0 rgba(31, 92, 41, 0.12));
}

.settings-glyph::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 3px solid #2f8742;
  border-radius: 50%;
}

.account-button {
  display: inline-flex;
  width: auto;
  min-width: 86px;
  gap: 7px;
  padding: 0 12px;
  color: #184f2a;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.95), transparent 24%),
    linear-gradient(180deg, #ffffff, #eaffdf 58%, #b8f49e);
  box-shadow:
    inset 0 -4px 0 rgba(35, 128, 47, 0.1),
    0 12px 22px rgba(25, 105, 44, 0.16),
    0 0 0 4px rgba(119, 230, 98, 0.1);
}

.account-glyph {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: url("assets/ui-account-icon-v3.png?v=20260702-12") center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 5px 6px rgba(26, 104, 44, 0.2));
}

.account-glyph::after {
  display: none;
}

.account-button-copy {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.treasure-button {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 24;
  display: grid;
  width: 74px;
  height: 74px;
  gap: 2px;
  place-items: center;
  padding: 7px 5px 6px;
  border: 2px solid rgba(255, 235, 111, 0.82);
  border-radius: 24px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.9), transparent 22%),
    linear-gradient(145deg, #fff06d, #ffb12f 55%, #e17422);
  box-shadow:
    inset 0 -6px 0 rgba(133, 75, 8, 0.18),
    0 16px 28px rgba(116, 76, 14, 0.22),
    0 0 26px rgba(255, 223, 70, 0.36);
  color: #6d3d06;
  font-size: 0.72rem;
  font-weight: 1000;
  animation: treasurePulse 2.8s ease-in-out infinite;
}

.treasure-glyph {
  position: relative;
  display: block;
  width: 43px;
  height: 34px;
}

.treasure-lid,
.treasure-body,
.treasure-lock {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.treasure-lid {
  top: 0;
  width: 38px;
  height: 14px;
  border: 2px solid #7c4709;
  border-bottom: 0;
  border-radius: 14px 14px 5px 5px;
  background: linear-gradient(180deg, #fff178, #ffbd35);
}

.treasure-body {
  bottom: 0;
  width: 43px;
  height: 24px;
  border: 2px solid #7c4709;
  border-radius: 8px 8px 12px 12px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(124, 71, 9, 0.22) 47% 53%, transparent 54%),
    linear-gradient(180deg, #d88925, #8f4d19);
}

.treasure-lock {
  bottom: 7px;
  width: 12px;
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff8a8, #f2bd25);
  box-shadow: 0 0 0 2px rgba(108, 64, 8, 0.26);
}

.treasure-copy {
  line-height: 1;
}

.coin-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: url("assets/ui-coin-icon-v3.png?v=20260702-12") center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 4px 5px rgba(138, 86, 0, 0.22));
}

.tiny-coin::after,
.preview-coin::after,
.tree .fruit::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  border: 2px solid rgba(128, 83, 8, 0.28);
}

.tiny-coin::before,
.preview-coin::before,
.tree .fruit::before {
  content: "";
  position: absolute;
  inset: 22% 48% 22% 22%;
  z-index: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 242, 139, 0.16));
  transform: rotate(18deg);
}

.coin-icon-inline {
  width: 25px;
  height: 25px;
}

.tiny-coin {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.72) 0 16%, transparent 17%),
    linear-gradient(180deg, #fff476, #f6af22);
  box-shadow: inset 0 -2px 0 rgba(143, 91, 8, 0.14);
}

.icon-button {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 -4px 0 rgba(38, 118, 45, 0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.icon-button.account-button {
  display: inline-flex;
  width: auto;
  min-width: 86px;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.95), transparent 24%),
    linear-gradient(180deg, #ffffff, #eaffdf 58%, #b8f49e);
  box-shadow:
    inset 0 -4px 0 rgba(35, 128, 47, 0.1),
    0 12px 22px rgba(25, 105, 44, 0.16),
    0 0 0 4px rgba(119, 230, 98, 0.1);
}

main {
  padding-top: 20px;
}

.view {
  animation: viewIn 0.42s var(--ease) both;
}

.home-view {
  display: grid;
  align-content: start;
  gap: 22px;
  min-height: calc(100svh - 120px);
  padding: 8px 0 24px;
  text-align: center;
}

.hero-scene {
  position: relative;
  min-height: clamp(300px, 52svh, 470px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(27, 130, 58, 0.08)),
    var(--game-bg-image) center center / cover no-repeat;
  box-shadow: 0 24px 58px rgba(25, 106, 56, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  isolation: isolate;
}

.hero-scene::before {
  display: none;
}

.hero-scene::after {
  display: none;
}

.sun,
.stage-sun {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7ad 0 19%, #ffcf47 20% 60%, rgba(255, 166, 46, 0.7) 61%);
  box-shadow: 0 0 36px rgba(255, 226, 92, 0.7);
}

.sun {
  top: 25px;
  right: 24px;
  width: 72px;
  height: 72px;
}

.hero-scene .sun,
.hero-scene .mini-cloud {
  display: none;
}

.mini-cloud-left {
  top: 58px;
  left: 16%;
  width: 58px;
  height: 19px;
}

.mini-cloud-right {
  top: 112px;
  right: 26%;
  width: 80px;
  height: 23px;
}

.preview-tree {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(82vw, 430px);
  height: min(82vw, 430px);
  background: url("assets/tree-money-v3.png?v=20260702-12") center bottom / contain no-repeat;
  filter: drop-shadow(0 24px 20px rgba(18, 77, 34, 0.26));
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: sway 3.6s var(--ease) infinite;
}

.preview-tree::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 68%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(22, 95, 37, 0.23), transparent 68%);
  filter: blur(3px);
  transform: translateX(-50%);
}

.preview-trunk,
.preview-leaf,
.preview-coin {
  display: none;
}

.preview-trunk {
  position: absolute;
  left: 50%;
  bottom: 25px;
  width: 17%;
  height: 45%;
  transform: translateX(-50%);
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(90deg, #875126, #c48745 48%, #7b4422);
  box-shadow: inset -8px 0 0 rgba(80, 43, 21, 0.15);
}

.preview-leaf {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 255, 255, 0.35), transparent 25%),
    linear-gradient(140deg, #96f45e, #25b857);
  box-shadow: inset 0 -12px 0 rgba(28, 129, 49, 0.16), 0 15px 22px rgba(21, 107, 43, 0.18);
}

.leaf-a {
  left: 18%;
  top: 18%;
  width: 46%;
  height: 48%;
}

.leaf-b {
  right: 13%;
  top: 14%;
  width: 52%;
  height: 52%;
}

.leaf-c {
  left: 27%;
  top: 0;
  width: 48%;
  height: 47%;
}

.preview-coin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffe778;
  box-shadow: inset 0 -4px 0 rgba(189, 126, 8, 0.16), 0 8px 13px rgba(145, 106, 22, 0.18);
  animation: coinBob 1.6s var(--ease) infinite alternate;
}

.coin-a {
  left: 20%;
  top: 26%;
}

.coin-b {
  right: 19%;
  top: 38%;
  animation-delay: 0.35s;
}

.flower-field {
  display: none;
}

.flower-field span {
  display: none;
}

.garden-flower {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffd947 0 20%, transparent 21%),
    radial-gradient(circle at 50% 0, #ff7eb1 0 29%, transparent 30%),
    radial-gradient(circle at 100% 50%, #ff7eb1 0 29%, transparent 30%),
    radial-gradient(circle at 50% 100%, #ff7eb1 0 29%, transparent 30%),
    radial-gradient(circle at 0 50%, #ff7eb1 0 29%, transparent 30%);
  filter: drop-shadow(0 5px 0 rgba(42, 129, 52, 0.16));
}

.home-copy {
  width: min(680px, 100%);
  margin: 0 auto;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: #184f2a;
  font-size: clamp(2.4rem, 12vw, 5.6rem);
  line-height: 0.9;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.46);
}

#mainTitle {
  width: min(760px, 100%);
  margin: 0 auto 12px;
  color: #1f512c;
  -webkit-text-fill-color: #1f512c;
  text-shadow:
    0 2px 0 #fff7b8,
    0 5px 0 rgba(107, 169, 55, 0.48),
    0 10px 18px rgba(18, 76, 37, 0.32);
  -webkit-text-stroke: 1px rgba(255, 250, 198, 0.72);
  paint-order: stroke fill;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 5vw, 2.2rem);
  line-height: 1.05;
}

p {
  color: #426446;
  font-size: 1rem;
  line-height: 1.5;
}

.home-copy p,
.section-heading p {
  margin-bottom: 0;
}

.home-actions,
.action-stack,
.modal-actions {
  display: grid;
  gap: 12px;
}

.bank-panel {
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(237, 255, 228, 0.72)),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 42px rgba(26, 105, 49, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  text-align: left;
  backdrop-filter: blur(18px);
}

.access-panel {
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 240, 112, 0.42), transparent 28%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(222, 255, 244, 0.76)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(26, 105, 49, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-align: left;
  backdrop-filter: blur(18px);
}

.access-copy h2 {
  margin-bottom: 6px;
  font-size: clamp(1.28rem, 5vw, 1.82rem);
}

.access-copy p {
  margin-bottom: 0;
}

.login-form,
.withdraw-form {
  display: grid;
  gap: 11px;
}

.login-form label,
.withdraw-form label {
  display: grid;
  gap: 6px;
  color: #3b6d43;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-form input,
.withdraw-form input {
  min-height: 52px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(59, 153, 70, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 3px 8px rgba(42, 110, 48, 0.08);
  color: #24462c;
  font-weight: 900;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  padding-right: 92px;
}

.visibility-toggle,
.text-action {
  color: #1f7a36;
  font-weight: 900;
}

.visibility-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  min-width: 74px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(231, 255, 218, 0.96), rgba(121, 225, 100, 0.76));
  box-shadow: inset 0 -3px 0 rgba(24, 101, 39, 0.1), 0 8px 14px rgba(40, 112, 49, 0.12);
  font-size: 0.74rem;
  transform: translateY(-50%);
}

.text-action {
  padding: 0;
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.pix-change-button {
  justify-self: start;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(222, 255, 218, 0.84);
  text-decoration: none;
}

.field-edit-button {
  font-size: 0.72rem;
}

.form-feedback {
  display: none;
  margin: -2px 0 2px;
  padding: 9px 11px;
  border: 1px solid rgba(66, 167, 73, 0.2);
  border-radius: 14px;
  background: rgba(230, 255, 222, 0.72);
  color: #2c6938;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
}

.form-feedback.is-visible {
  display: block;
  animation: slideUpFade 0.22s var(--ease) both;
}

.login-form input:focus,
.withdraw-form input:focus {
  outline: 3px solid rgba(255, 219, 70, 0.52);
  border-color: rgba(65, 170, 76, 0.5);
}

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

.bank-heading {
  display: grid;
  gap: 12px;
}

.bank-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(1.28rem, 5vw, 1.82rem);
}

.bank-heading p {
  margin-bottom: 0;
}

.edge-badge {
  display: grid;
  place-items: center;
  justify-self: start;
  min-width: 104px;
  min-height: 78px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 217, 78, 0.76);
  border-radius: 22px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.74), transparent 22%),
    linear-gradient(150deg, #fff7a6, #ffd74a 58%, #ffac32);
  box-shadow: inset 0 -6px 0 rgba(140, 88, 7, 0.12), 0 12px 24px rgba(177, 119, 23, 0.18);
  color: #68430a;
  text-align: center;
}

.edge-badge span {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 0.95;
}

.edge-badge small {
  max-width: 82px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.05;
}

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

.deposit-chip {
  position: relative;
  min-height: 52px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.76), transparent 18%),
    linear-gradient(135deg, #defbd2, #7ee36f 58%, #35bd5b);
  box-shadow: inset 0 -5px 0 rgba(28, 114, 45, 0.12), 0 11px 20px rgba(39, 121, 46, 0.14);
  color: #175627;
  font-weight: 900;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  animation: ctaGlow 2.5s var(--ease) infinite;
}

.deposit-form {
  display: grid;
  gap: 7px;
}

.deposit-form label {
  color: #3b6d43;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deposit-input-row {
  display: grid;
  gap: 10px;
}

.deposit-input-row input {
  min-height: 52px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(59, 153, 70, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 3px 8px rgba(42, 110, 48, 0.08);
  color: #24462c;
  font-weight: 900;
}

.deposit-input-row input:focus {
  outline: 3px solid rgba(255, 219, 70, 0.52);
  border-color: rgba(65, 170, 76, 0.5);
}

.withdraw-form {
  margin-top: 2px;
  padding: 14px;
  border: 1px solid rgba(0, 188, 169, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.78), transparent 20%),
    linear-gradient(145deg, rgba(230, 255, 244, 0.92), rgba(187, 244, 220, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 14px 28px rgba(20, 129, 85, 0.14);
}

.withdraw-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.withdraw-heading h3 {
  margin: 0 0 3px;
  color: #185933;
  font-size: 1.06rem;
}

.withdraw-heading p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
}

.pix-mark {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.78), transparent 20%),
    linear-gradient(135deg, #8ff7e2, #26c8a5 58%, #159c82);
  box-shadow: inset 0 -5px 0 rgba(9, 92, 73, 0.16), 0 12px 20px rgba(16, 116, 91, 0.2);
}

.pix-mark::before,
.pix-mark::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
}

.pix-mark::after {
  inset: 17px;
  background: #22bfa1;
}

.withdraw-status {
  margin: 0;
  color: #2f6d50;
  font-size: 0.86rem;
  font-weight: 900;
}

.withdraw-history {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.withdraw-history h4,
.withdraw-history p {
  margin: 0;
}

.withdraw-history h4 {
  color: #23572f;
  font-size: 0.92rem;
}

.withdraw-history p {
  color: #5d8564;
  font-size: 0.82rem;
  font-weight: 800;
}

.withdraw-history ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.withdraw-history li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 10px;
  padding: 9px 10px;
  border: 1px solid rgba(45, 183, 119, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #2e6240;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.withdraw-history li strong {
  font-size: 0.92rem;
}

.withdraw-history li span,
.withdraw-history li em {
  color: #5b8360;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 850;
}

.withdraw-history li em {
  justify-self: end;
  padding: 3px 7px;
  border-radius: 999px;
  background: #dcf8d9;
  color: #257239;
  text-transform: capitalize;
}

.bank-summary {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  color: #436a48;
  font-size: 0.86rem;
  font-weight: 800;
}

.bank-summary strong {
  color: #23572f;
  font-weight: 900;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  overflow: hidden;
  padding: 13px 18px;
  border-radius: 18px;
  color: #174221;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow-soft), inset 0 -5px 0 rgba(23, 90, 35, 0.11);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
  user-select: none;
}

.button-xl {
  min-height: 74px;
  border-radius: 24px;
  font-size: clamp(1.28rem, 6vw, 2rem);
  animation: ctaGlow 2.2s var(--ease) infinite;
}

.button-primary {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.78), transparent 18%),
    linear-gradient(135deg, #fff36f 0%, #ffca34 38%, #ff912e 68%, #ff6f3a 100%);
  color: #5a3600;
  box-shadow: 0 16px 30px rgba(199, 128, 23, 0.28), 0 0 28px rgba(255, 214, 71, 0.44), inset 0 -5px 0 rgba(129, 75, 0, 0.14);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.button-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-110%);
}

.button-soft {
  background: rgba(255, 255, 255, 0.76);
  color: #1f6b36;
}

.button-ghost {
  min-height: 44px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.55);
  color: #2c6d3a;
  box-shadow: inset 0 -4px 0 rgba(34, 125, 44, 0.08);
}

.button-danger {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.7), transparent 18%),
    linear-gradient(135deg, #ffd3b6, #ff875f 48%, #e74d3d);
  color: #682115;
  box-shadow: 0 14px 28px rgba(174, 68, 42, 0.2), inset 0 -5px 0 rgba(112, 37, 19, 0.14);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: saturate(0.76);
}

.button .ripple,
.helper-card .ripple,
.deposit-chip .ripple {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.58s ease-out;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.seed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.seed-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  min-height: 166px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 255, 239, 0.66)),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 15px 34px rgba(25, 103, 57, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  animation: slideUpFade 0.48s var(--ease) both;
  isolation: isolate;
}

.seed-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 42%, color-mix(in srgb, var(--accent), transparent 42%), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.seed-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--leaf), var(--accent));
}

.seed-card.is-owned {
  border-color: color-mix(in srgb, var(--leaf), #fff 42%);
}

.seed-card.is-current {
  box-shadow:
    0 18px 42px rgba(25, 103, 57, 0.2),
    0 0 0 3px color-mix(in srgb, var(--accent), transparent 44%),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.seed-icon {
  position: relative;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--leaf), #b7ff8a 12%), var(--leaf-dark));
  box-shadow: inset 0 -7px 0 rgba(33, 74, 36, 0.12), 0 12px 18px rgba(34, 103, 44, 0.16);
  z-index: 2;
}

.seed-icon::after {
  display: none;
}

.seed-sprout {
  display: block;
  width: 84px;
  height: 84px;
  background: url("assets/seed-verde.png?v=20260703-3") center center / contain no-repeat;
  filter: drop-shadow(0 10px 9px rgba(58, 33, 12, 0.24));
  transform: translateY(0) scale(1);
}

.seed-sprout-gratis { background-image: url("assets/seed-gratis.png?v=20260703-3"); }
.seed-sprout-verde { background-image: url("assets/seed-verde.png?v=20260703-3"); }
.seed-sprout-azul { background-image: url("assets/seed-azul.png?v=20260703-3"); }
.seed-sprout-dourada { background-image: url("assets/seed-dourada.png?v=20260703-3"); }
.seed-sprout-rosa { background-image: url("assets/seed-rosa.png?v=20260703-3"); }
.seed-sprout-cristal { background-image: url("assets/seed-cristal.png?v=20260703-3"); }
.seed-sprout-fogo { background-image: url("assets/seed-fogo.png?v=20260703-3"); }
.seed-sprout-gelo { background-image: url("assets/seed-gelo.png?v=20260703-3"); }
.seed-sprout-magica { background-image: url("assets/seed-magica.png?v=20260703-3"); }
.seed-sprout-lunar { background-image: url("assets/seed-lunar.png?v=20260703-3"); }
.seed-sprout-real { background-image: url("assets/seed-real.png?v=20260703-3"); }

.seed-art {
  position: absolute;
  right: 10px;
  bottom: 56px;
  z-index: 0;
  width: min(36vw, 142px);
  height: min(36vw, 142px);
  background: url("assets/seed-verde.png?v=20260703-3") center center / contain no-repeat;
  filter: drop-shadow(0 18px 16px rgba(66, 42, 14, 0.18));
  opacity: 0.18;
  transform: rotate(2deg);
  pointer-events: none;
}

.seed-art-gratis { background-image: url("assets/seed-gratis.png?v=20260703-3"); }
.seed-art-verde { background-image: url("assets/seed-verde.png?v=20260703-3"); }
.seed-art-azul { background-image: url("assets/seed-azul.png?v=20260703-3"); }
.seed-art-dourada { background-image: url("assets/seed-dourada.png?v=20260703-3"); }
.seed-art-rosa { background-image: url("assets/seed-rosa.png?v=20260703-3"); }
.seed-art-cristal { background-image: url("assets/seed-cristal.png?v=20260703-3"); }
.seed-art-fogo { background-image: url("assets/seed-fogo.png?v=20260703-3"); }
.seed-art-gelo { background-image: url("assets/seed-gelo.png?v=20260703-3"); }
.seed-art-magica { background-image: url("assets/seed-magica.png?v=20260703-3"); }
.seed-art-lunar { background-image: url("assets/seed-lunar.png?v=20260703-3"); }
.seed-art-real { background-image: url("assets/seed-real.png?v=20260703-3"); }

.seed-content {
  min-width: 0;
  z-index: 2;
}

.seed-content h3 {
  margin: 2px 0 8px;
  font-size: 1.15rem;
}

.seed-meta {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: #507057;
  font-size: 0.92rem;
}

.seed-meta li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.meta-icon,
.benefit-token {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.meta-clock {
  border: 2px solid #48a45a;
  border-radius: 50%;
  background: #f5fff0;
}

.meta-clock::before,
.meta-clock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  border-radius: 999px;
  background: #2f7d3d;
  transform-origin: 50% 0;
}

.meta-clock::before {
  height: 6px;
  transform: rotate(180deg);
}

.meta-clock::after {
  height: 5px;
  transform: rotate(125deg);
}

.meta-tree::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 6px;
  height: 11px;
  border-radius: 999px 999px 3px 3px;
  background: #9a6535;
  transform: translateX(-50%);
}

.meta-tree::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 1px;
  width: 20px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #94f15d, #2fb857);
  box-shadow: inset 0 -4px 0 rgba(29, 113, 44, 0.13);
  transform: translateX(-50%);
}

.meta-edge {
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, #fff07a, #f4b733);
  box-shadow: inset 0 -4px 0 rgba(144, 88, 7, 0.12);
}

.meta-edge::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid rgba(126, 76, 7, 0.24);
  border-radius: 50%;
}

.meta-risk {
  clip-path: polygon(50% 4%, 98% 92%, 2% 92%);
  background: linear-gradient(180deg, #ffdf72, #ff7b5c);
  box-shadow: 0 4px 9px rgba(162, 72, 38, 0.16);
}

.meta-risk::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: #7a351f;
  transform: translateX(-50%);
}

.benefit-token,
.helper-benefit-icon {
  border-radius: 8px 50% 50% 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(135deg, #9cffdc, #45c6ff);
  box-shadow: inset 0 -4px 0 rgba(38, 112, 128, 0.14), 0 5px 8px rgba(30, 103, 70, 0.12);
  transform: rotate(-10deg);
}

.benefit-token::after,
.helper-benefit-icon::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.benefit-token-gratis {
  background: linear-gradient(135deg, #fbffb1, #8cf35d 58%, #3ec959);
}

.benefit-token-dourada,
.benefit-token-real {
  background: linear-gradient(135deg, #fff6a1, #ffca36 60%, #ff9d25);
}

.benefit-token-rosa {
  background: linear-gradient(135deg, #ffd5ec, #ff7eb9 62%, #dd4f94);
}

.benefit-token-fogo {
  background: linear-gradient(135deg, #ffe45f, #ff8535 52%, #df3524);
}

.benefit-token-gelo,
.benefit-token-cristal {
  background: linear-gradient(135deg, #f2ffff, #85e5ff 55%, #3ba5d8);
}

.benefit-token-magica,
.benefit-token-lunar {
  background: linear-gradient(135deg, #ffdfff, #8d74ff 58%, #4b38b7);
}

.benefit-token-empty {
  background: linear-gradient(135deg, #efffd9, #7deb67);
}

.seed-card .button {
  grid-column: 1 / -1;
  z-index: 2;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.shop-toolbar span {
  display: grid;
  min-height: 62px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 20px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.78), transparent 22%),
    linear-gradient(145deg, rgba(250, 255, 238, 0.9), rgba(183, 246, 119, 0.74));
  box-shadow: 0 12px 24px rgba(26, 104, 49, 0.14), inset 0 -4px 0 rgba(41, 133, 48, 0.08);
  color: #255d30;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
}

.shop-toolbar strong {
  color: #6a4505;
  font-size: 1.25rem;
  line-height: 1;
}

.seed-card {
  grid-template-columns: 116px 1fr;
  min-height: 250px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--accent), transparent 44%), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 255, 230, 0.74)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 42px rgba(25, 103, 57, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.seed-card::before {
  height: 10px;
  background: linear-gradient(90deg, var(--leaf), var(--accent), #fff478);
}

.seed-card-glow {
  position: absolute;
  right: -32px;
  top: -34px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent), #fff 20%), transparent 68%);
  opacity: 0.56;
  pointer-events: none;
  z-index: -1;
}

.seed-card.is-ready {
  border-color: color-mix(in srgb, var(--accent), #fff 22%);
}

.seed-card.is-locked {
  filter: saturate(0.92);
}

.seed-visual {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  z-index: 2;
}

.seed-icon-large {
  width: 106px;
  height: 106px;
  border-radius: 30px;
  box-shadow:
    inset 0 -9px 0 rgba(33, 74, 36, 0.13),
    0 18px 28px rgba(34, 103, 44, 0.22);
}

.seed-icon-large .seed-sprout {
  width: 112px;
  height: 112px;
  transform: translateY(0) scale(1);
}

.seed-tier {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fffbe2, #ffe36c);
  box-shadow: inset 0 -3px 0 rgba(151, 93, 8, 0.12), 0 8px 15px rgba(117, 88, 18, 0.14);
  color: #6b4708;
  font-size: 0.86rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.seed-title-row {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.seed-content h3 {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  color: #1d542c;
  font-size: clamp(1.08rem, 4.1vw, 1.42rem);
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.seed-status {
  justify-self: start;
  padding: 7px 11px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.62), transparent 24%),
    linear-gradient(135deg, #fff7a5, #ffd24b);
  box-shadow: inset 0 -3px 0 rgba(142, 90, 8, 0.12);
  color: #67450b;
  font-size: 0.95rem;
  font-weight: 1000;
  line-height: 1;
}

.seed-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-bottom: 10px;
  min-width: 0;
}

.stat-pill {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-areas:
    "icon value"
    "icon label";
  gap: 2px 8px;
  align-items: center;
  min-width: 0;
  min-height: 50px;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid rgba(82, 168, 76, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.stat-pill .meta-icon,
.stat-pill .tiny-coin {
  grid-area: icon;
  justify-self: center;
  width: 23px;
  height: 23px;
}

.stat-pill strong {
  grid-area: value;
  min-width: 0;
  color: #244c2e;
  font-size: clamp(0.9rem, 2.3vw, 1rem);
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.stat-pill em {
  grid-area: label;
  min-width: 0;
  color: #5d795f;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.seed-benefit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 8px;
  padding: 9px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  color: #325d39;
  font-size: 0.96rem;
  font-weight: 900;
}

.seed-benefit-row {
  margin-bottom: 0;
}

.seed-benefit-row span:last-child {
  margin-left: auto;
  color: #5f7b61;
}

.seed-cta {
  min-height: 58px;
  border-radius: 20px;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.seed-cta.button-primary {
  animation: ctaGlow 1.9s var(--ease) infinite;
}

.garden-layout {
  display: grid;
  gap: 16px;
}

.garden-stage {
  position: relative;
  min-height: min(68svh, 560px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(25, 121, 53, 0.08)),
    var(--game-bg-image) center center / cover no-repeat;
  box-shadow:
    0 30px 74px rgba(18, 103, 63, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -34px 64px rgba(21, 137, 56, 0.16);
  isolation: isolate;
}

.garden-stage::before {
  display: none;
}

.garden-stage .stage-cloud {
  display: none;
}

.garden-stage .stage-sun {
  display: none;
}

.garden-stage::after {
  display: none;
}

.stage-sun {
  top: 24px;
  right: 24px;
  width: 74px;
  height: 74px;
}

.stage-cloud-a {
  top: 74px;
  left: 14%;
  width: 72px;
  height: 22px;
}

.stage-cloud-b {
  top: 130px;
  right: 24%;
  width: 86px;
  height: 25px;
  opacity: 0.76;
}

.tree-coins {
  position: absolute;
  top: 115px;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  padding: 9px 15px;
  border: 2px solid rgba(255, 222, 83, 0.8);
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.82), transparent 24%),
    rgba(255, 248, 181, 0.9);
  box-shadow: 0 12px 22px rgba(118, 96, 21, 0.18), 0 0 22px rgba(255, 226, 74, 0.28);
  color: #715006;
  font-weight: 900;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.tree-coins::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.74) 0 16%, transparent 17%),
    linear-gradient(180deg, #fff476, #f6af22);
  box-shadow: inset 0 -2px 0 rgba(143, 91, 8, 0.16);
}

.tree-spot {
  position: absolute;
  left: 50%;
  bottom: 13%;
  z-index: 3;
  display: grid;
  width: min(76vw, 390px);
  height: min(76vw, 390px);
  place-items: end center;
  transform: translateX(-50%);
}

.tree-spot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: 60%;
  height: 22%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255, 241, 124, 0.34), rgba(91, 201, 75, 0.18) 46%, transparent 70%);
  transform: translateX(-50%);
  filter: blur(1px);
  pointer-events: none;
}

.tree-spot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: 78%;
  height: 24%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(30, 88, 35, 0.24), rgba(30, 88, 35, 0.08) 48%, transparent 72%);
  transform: translateX(-50%);
  filter: blur(5px);
  pointer-events: none;
}

.tree-render {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: manipulation;
  filter: drop-shadow(0 24px 18px rgba(23, 81, 37, 0.16));
  transform-origin: 50% 100%;
  animation: treeSway 4s var(--ease) infinite;
}

.tree-render::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 88%;
  height: 80%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 235, 91, 0.18), transparent 42%),
    radial-gradient(circle at 50% 70%, rgba(89, 239, 105, 0.16), transparent 48%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  animation: magicAura 3.2s var(--ease) infinite alternate;
}

.tree-render[aria-disabled="true"] {
  cursor: default;
}

.tree-render:focus-visible {
  outline: 0;
  border-radius: 34px;
}

.tree-render:focus-visible .tree {
  filter: drop-shadow(0 0 18px rgba(255, 223, 63, 0.65));
}

.tree-render.is-empty::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 44% 42%, #7deb67 0 12%, transparent 13%),
    radial-gradient(ellipse at 58% 38%, #4fcb54 0 12%, transparent 13%),
    linear-gradient(90deg, transparent 47%, #2e9d48 48% 52%, transparent 53%),
    radial-gradient(ellipse at 50% 70%, #a66a32 0 22%, #724019 23% 38%, transparent 39%),
    rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-soft);
  transform: translateX(-50%);
}

.garden-ground {
  display: none;
}

.garden-ground::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: min(62vw, 340px);
  height: 70px;
  border-radius: 50%;
  background: rgba(77, 74, 39, 0.12);
  transform: translateX(-50%);
  filter: blur(5px);
}

.garden-ground::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(16, 95, 44, 0.22));
  pointer-events: none;
}

.garden-flower {
  display: none;
}

.flower-a {
  left: 16%;
  top: 40%;
}

.flower-b {
  left: 29%;
  top: 23%;
  transform: scale(0.82);
}

.flower-c {
  right: 19%;
  top: 33%;
}

.flower-d {
  right: 34%;
  top: 52%;
  transform: scale(0.72);
}

.coin-float-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.floating-coin {
  position: absolute;
  left: 50%;
  bottom: 43%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 237, 110, 0.95);
  box-shadow: 0 9px 15px rgba(120, 92, 18, 0.18);
  color: #6e4b06;
  font-weight: 900;
  animation: floatCoin 1.15s var(--ease) forwards;
}

.reward-coin {
  position: absolute;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, #fff9b8 0 18%, transparent 19%),
    radial-gradient(circle at 50% 55%, #ffd94f 0 58%, #f3a919 59% 100%);
  box-shadow: 0 12px 22px rgba(135, 95, 12, 0.22), inset 0 -7px 0 rgba(143, 88, 9, 0.14), 0 0 0 0 rgba(255, 224, 84, 0.42);
  color: #805405;
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1;
  transform: translate(-50%, 0) scale(0.75);
  animation: rewardCoinIn 0.28s var(--ease) forwards;
  cursor: pointer;
  pointer-events: auto;
}

.reward-coin:hover {
  filter: brightness(1.05);
  transform: translate(-50%, 0) scale(1.06);
}

.reward-coin:focus-visible {
  outline: 4px solid rgba(255, 255, 255, 0.94);
  outline-offset: 4px;
}

.reward-coin.is-leaving {
  pointer-events: none;
  animation: rewardCoinOut 0.22s var(--ease) forwards;
}

.garden-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(243, 255, 235, 0.78)),
    var(--glass-strong);
  box-shadow: 0 24px 58px rgba(24, 88, 47, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.tree-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.eyebrow {
  margin-bottom: 4px;
  color: #2d8e42;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.seed-badge {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.74), transparent 22%),
    linear-gradient(135deg, #f0ffd9, #72df65);
  box-shadow: inset 0 -5px 0 rgba(30, 100, 38, 0.11), 0 12px 20px rgba(38, 124, 51, 0.14);
}

.seed-badge::before {
  content: "";
  width: 82px;
  height: 82px;
  background: url("assets/tree-money-v3.png?v=20260702-12") center bottom / contain no-repeat;
  filter: drop-shadow(0 8px 7px rgba(24, 80, 36, 0.2));
  transform: translateY(12px) scale(1.08);
}

.seed-badge-empty::before {
  width: 28px;
  height: 36px;
  border-radius: 70% 30% 64% 36%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.5), transparent 22%),
    linear-gradient(135deg, #a36a38, #70411f);
  transform: rotate(-13deg);
}

.seed-badge-gratis::before {
  background-image: url("assets/tree-money-v3.png?v=20260702-12");
  filter: hue-rotate(18deg) saturate(1.18) drop-shadow(0 7px 6px rgba(24, 80, 36, 0.18));
}
.seed-badge-verde::before { background-image: url("assets/tree-money-v3.png?v=20260702-12"); }
.seed-badge-azul::before { background-image: url("assets/tree-azul.png?v=20260629-12"); }
.seed-badge-dourada::before { background-image: url("assets/tree-dourada.png?v=20260629-12"); }
.seed-badge-rosa::before { background-image: url("assets/tree-rosa.png?v=20260629-12"); }
.seed-badge-cristal::before { background-image: url("assets/tree-cristal.png?v=20260629-12"); }
.seed-badge-fogo::before { background-image: url("assets/tree-fogo.png?v=20260629-12"); }
.seed-badge-gelo::before { background-image: url("assets/tree-gelo.png?v=20260629-12"); }
.seed-badge-magica::before { background-image: url("assets/tree-magica.png?v=20260629-12"); }
.seed-badge-lunar::before { background-image: url("assets/tree-lunar.png?v=20260629-12"); }
.seed-badge-real::before { background-image: url("assets/tree-real.png?v=20260629-12"); }

.seed-badge-azul,
.seed-badge-gelo,
.seed-badge-cristal {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.78), transparent 22%),
    linear-gradient(135deg, #e9fbff, #74d9ff);
}

.seed-badge-dourada,
.seed-badge-real {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.78), transparent 22%),
    linear-gradient(135deg, #fff7bd, #ffc83f);
}

.seed-badge-rosa {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.78), transparent 22%),
    linear-gradient(135deg, #ffe9f5, #ff8ac2);
}

.seed-badge-fogo {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(135deg, #ffe8a9, #ff7441);
}

.seed-badge-magica,
.seed-badge-lunar {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(135deg, #f3e6ff, #9675ff);
}

.progress-wrap {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: #3b6841;
  font-weight: 900;
}

.progress-track {
  height: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(37, 124, 47, 0.12);
  box-shadow: inset 0 4px 8px rgba(33, 104, 42, 0.12);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #69e457, #ffdd4d, #ffa33d);
  box-shadow: 0 0 18px rgba(255, 213, 79, 0.5);
  transition: width 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}

.progress-track span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transform: translateX(-100%);
  animation: progressShine 2.1s ease-in-out infinite;
}

.stats-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.stats-list div {
  display: grid;
  grid-template-columns: minmax(116px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(82, 168, 76, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.stats-list dt {
  color: #5b765b;
  font-size: 0.84rem;
  font-weight: 800;
}

.stats-list dd {
  margin: 0;
  color: #244c2e;
  font-weight: 900;
  text-align: right;
}

.helper-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 240, 122, 0.32), transparent 30%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.72), rgba(231, 255, 223, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 16px 30px rgba(35, 112, 53, 0.12);
}

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

.helper-heading h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1;
}

.helper-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 238, 122, 0.7);
  box-shadow: inset 0 -3px 0 rgba(155, 111, 12, 0.12);
  color: #6d4a06;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.helper-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.helper-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon meta";
  gap: 3px 10px;
  align-items: center;
  min-height: 72px;
  padding: 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.55)),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 22px rgba(37, 115, 51, 0.13), inset 0 -4px 0 rgba(54, 134, 55, 0.07);
  color: #21472b;
  text-align: left;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease), opacity 0.2s var(--ease);
}

.helper-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-110%);
}

.helper-icon {
  grid-area: icon;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  box-shadow: inset 0 -5px 0 rgba(24, 75, 39, 0.11), 0 8px 14px rgba(42, 95, 43, 0.13);
  font-size: 1.45rem;
}

.helper-water {
  background: linear-gradient(135deg, #d9fbff, #54c7ff);
}

.helper-card strong {
  grid-area: title;
  font-size: 0.98rem;
  line-height: 1.1;
}

.helper-card small {
  grid-area: meta;
  color: #5e765f;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.helper-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.62;
  filter: saturate(0.78);
}

.helper-card:not(.is-disabled):hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 28px rgba(37, 115, 51, 0.18), inset 0 -4px 0 rgba(54, 134, 55, 0.07);
}

.helper-card:not(.is-disabled):hover::after {
  animation: shine 0.8s ease;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(28, 85, 43, 0.28);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.24s ease both;
}

body.is-auth-locked {
  overflow: hidden;
}

.auth-backdrop {
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(95, 213, 245, 0.38), rgba(62, 169, 77, 0.42)),
    rgba(24, 84, 42, 0.34);
  backdrop-filter: blur(16px);
}

.modal {
  width: min(430px, 100%);
  max-height: calc(100svh - 36px);
  padding: 22px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(22, 75, 39, 0.26);
  animation: modalIn 0.28s var(--ease) both;
}

.chest-backdrop {
  z-index: 42;
}

.chest-modal {
  display: grid;
  gap: 14px;
  width: min(460px, 100%);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 237, 91, 0.38), transparent 34%),
    linear-gradient(155deg, rgba(255, 255, 246, 0.96), rgba(233, 255, 210, 0.92));
}

.chest-modal h2 {
  margin-bottom: 0;
  color: #71440b;
}

.chest-copy,
.chest-result {
  margin: 0;
  color: #365d2e;
  font-weight: 850;
}

.chest-result {
  min-height: 24px;
  color: #865405;
}

.chest-result.is-win {
  color: #1c883d;
  animation: popIn 0.32s var(--ease) both;
}

.chest-hero {
  display: grid;
  min-height: 118px;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 236, 95, 0.55), transparent 34%),
    linear-gradient(180deg, rgba(125, 227, 255, 0.45), rgba(106, 214, 86, 0.35));
}

.chest-art {
  position: relative;
  display: block;
  width: 142px;
  height: 102px;
  filter: drop-shadow(0 18px 18px rgba(116, 66, 9, 0.22));
}

.chest-art-lid,
.chest-art-body,
.chest-art-lock {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.chest-art-lid {
  top: 4px;
  width: 118px;
  height: 42px;
  border: 5px solid #74420b;
  border-bottom: 0;
  border-radius: 34px 34px 10px 10px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.82), transparent 18%),
    linear-gradient(180deg, #fff178, #ffb834);
}

.chest-art-body {
  bottom: 2px;
  width: 136px;
  height: 66px;
  border: 5px solid #74420b;
  border-radius: 16px 16px 28px 28px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 231, 94, 0.62) 48% 52%, transparent 53%),
    linear-gradient(180deg, #d78928, #8c4919);
}

.chest-art-lock {
  bottom: 22px;
  width: 31px;
  height: 35px;
  border-radius: 9px;
  background: linear-gradient(180deg, #fff8a8, #edb71d);
  box-shadow: 0 0 0 5px rgba(105, 62, 9, 0.24), inset 0 -4px 0 rgba(129, 84, 8, 0.18);
}

.chest-wheel {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 12px 0;
  border: 1px solid rgba(255, 211, 66, 0.58);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 194, 0.65), rgba(255, 255, 255, 0.92)),
    rgba(255, 248, 184, 0.6);
  box-shadow: inset 0 -5px 0 rgba(129, 84, 8, 0.08);
}

.chest-seed-strip {
  display: flex;
  width: max-content;
  gap: 10px;
  padding: 0 50%;
  transform: translateX(0);
}

.chest-wheel.is-spinning .chest-seed-strip {
  animation: chestSpin 2.4s cubic-bezier(0.16, 0.84, 0.28, 1) both;
}

.chest-wheel.is-complete {
  border-color: rgba(255, 190, 30, 0.9);
  box-shadow: inset 0 -5px 0 rgba(129, 84, 8, 0.08), 0 0 28px rgba(255, 214, 65, 0.36);
}

.chest-seed-item {
  display: grid;
  width: 86px;
  flex: 0 0 86px;
  justify-items: center;
  gap: 6px;
  color: #31582c;
  font-size: 0.68rem;
  font-weight: 1000;
  line-height: 1.05;
}

.chest-seed-item .seed-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
}

.chest-seed-item .seed-sprout {
  width: 72px;
  height: 72px;
}

.chest-seed-item.is-prize .seed-icon {
  box-shadow:
    inset 0 -7px 0 rgba(33, 74, 36, 0.12),
    0 12px 18px rgba(34, 103, 44, 0.16),
    0 0 0 4px rgba(255, 213, 46, 0.42),
    0 0 24px rgba(255, 206, 35, 0.48);
}

.chest-pointer {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 28px;
  height: 28px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 8px 8px 4px 8px;
  background: linear-gradient(135deg, #fff05d, #ff9d25);
  box-shadow: 0 5px 10px rgba(128, 77, 9, 0.2);
}

.auth-modal {
  width: min(470px, 100%);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 237, 107, 0.42), transparent 28%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(226, 255, 231, 0.9));
  box-shadow: 0 30px 90px rgba(12, 78, 42, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-hero {
  position: relative;
  min-height: 210px;
  margin: -6px -6px 16px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 241, 111, 0.72), transparent 13%),
    linear-gradient(180deg, #8ee9ff 0%, #cbffe7 55%, #8ee26b 56%, #46bf57 100%);
  box-shadow: inset 0 -8px 0 rgba(28, 112, 50, 0.08), 0 15px 28px rgba(33, 111, 48, 0.14);
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background:
    radial-gradient(ellipse at 50% 95%, rgba(41, 139, 50, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(107, 221, 87, 0), rgba(40, 170, 58, 0.38));
  pointer-events: none;
}

.auth-tree-image {
  position: absolute;
  left: 50%;
  bottom: -52px;
  z-index: 3;
  width: min(96%, 380px);
  max-height: 280px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 14px rgba(24, 96, 38, 0.23));
  user-select: none;
  pointer-events: none;
}

.auth-tree {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 304px;
  height: 166px;
  transform: translateX(-50%);
}

.auth-tree::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 8;
  width: 58px;
  height: 118px;
  border-radius: 22px 22px 12px 12px;
  background:
    radial-gradient(ellipse at 52% 56%, rgba(95, 49, 18, 0.42) 0 10%, transparent 11%),
    linear-gradient(90deg, rgba(99, 49, 20, 0.5), transparent 22% 78%, rgba(91, 45, 18, 0.46)),
    repeating-linear-gradient(105deg, transparent 0 10px, rgba(255, 206, 98, 0.2) 11px 13px),
    linear-gradient(90deg, #7a421f, #d28a34 47%, #8a4c21);
  box-shadow: inset 8px 0 0 rgba(255, 212, 126, 0.16), 0 6px 0 rgba(74, 55, 25, 0.13);
  clip-path: polygon(34% 0, 68% 0, 83% 100%, 13% 100%);
  transform: translateX(-50%);
}

.auth-tree::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 5;
  width: 254px;
  height: 114px;
  border-radius: 46% 54% 45% 48% / 56% 60% 42% 44%;
  background:
    radial-gradient(ellipse at 18% 58%, #7ed41e 0 16%, transparent 17%),
    radial-gradient(ellipse at 31% 22%, #d7f83a 0 18%, transparent 19%),
    radial-gradient(ellipse at 48% 35%, #a7e92f 0 23%, transparent 24%),
    radial-gradient(ellipse at 67% 28%, #ddfa45 0 17%, transparent 18%),
    radial-gradient(ellipse at 82% 56%, #73c71d 0 16%, transparent 17%),
    radial-gradient(ellipse at 54% 70%, #65bd1f 0 19%, transparent 20%),
    linear-gradient(145deg, #bee832 0%, #6fc326 48%, #2c8f32 100%);
  box-shadow: inset 0 -14px 0 rgba(34, 116, 34, 0.17), 0 12px 0 rgba(20, 121, 54, 0.12);
  transform: translateX(-50%);
}

.auth-branch {
  position: absolute;
  z-index: 9;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4c270f, #8d551f 62%, rgba(141, 85, 31, 0));
  box-shadow: 0 2px 0 rgba(67, 37, 18, 0.18);
  transform-origin: left center;
}

.auth-branch-left {
  left: 126px;
  top: 83px;
  width: 104px;
  transform: rotate(-156deg);
}

.auth-branch-right {
  left: 156px;
  top: 82px;
  width: 104px;
  transform: rotate(-24deg);
}

.auth-branch-center {
  left: 152px;
  top: 77px;
  width: 72px;
  transform: rotate(-94deg);
}

.auth-leaf {
  position: absolute;
  z-index: 6;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 34% 26%, rgba(255, 255, 138, 0.62), transparent 24%),
    linear-gradient(145deg, #d3f63c, #6cc521 54%, #298d30);
  box-shadow: inset 0 -8px 0 rgba(29, 118, 37, 0.12), 0 5px 0 rgba(26, 112, 39, 0.08);
}

.auth-leaf-a { left: 12px; top: 58px; width: 96px; height: 54px; }
.auth-leaf-b { left: 54px; top: 22px; width: 110px; height: 64px; }
.auth-leaf-c { left: 126px; top: 16px; width: 112px; height: 68px; }
.auth-leaf-d { right: 12px; top: 58px; width: 96px; height: 54px; }
.auth-leaf-e { left: 42px; top: 88px; width: 108px; height: 50px; }
.auth-leaf-f { right: 42px; top: 88px; width: 108px; height: 50px; }
.auth-leaf-g { left: 96px; top: 62px; width: 110px; height: 62px; }
.auth-leaf-h { left: 164px; top: 60px; width: 94px; height: 56px; }

.auth-coin {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.86), transparent 22%),
    linear-gradient(135deg, #fff171, #ffc437 62%, #e59618);
  box-shadow: inset 0 -4px 0 rgba(148, 92, 7, 0.16), 0 9px 15px rgba(166, 109, 15, 0.18);
  animation: floatCoin 2.7s var(--ease) infinite;
}

.auth-coin-a {
  left: 20%;
  top: 26px;
}

.auth-coin-b {
  right: 18%;
  top: 44px;
  animation-delay: 0.45s;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(75, 180, 83, 0.12);
}

.auth-tab {
  min-height: 42px;
  border-radius: 14px;
  color: #2b6534;
  font-weight: 1000;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.auth-tab.is-active {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.75), transparent 20%),
    linear-gradient(135deg, #fff483, #7de36a 62%, #32bd5a);
  box-shadow: inset 0 -4px 0 rgba(36, 121, 48, 0.12), 0 10px 18px rgba(36, 121, 48, 0.14);
}

.auth-panel[hidden] {
  display: none;
}

.auth-modal .login-form {
  grid-template-columns: 1fr;
}

.auth-modal .button-xl {
  width: 100%;
}

.auth-alt {
  margin: 0;
  color: #426446;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 900;
}

.auth-alt button {
  color: #0d873e;
  font-weight: 1000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-panel {
  margin-top: 14px;
  border: 1px solid rgba(73, 172, 86, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.terms-panel summary {
  cursor: pointer;
  padding: 13px 15px;
  color: #1f7137;
  font-size: 0.96rem;
  font-weight: 1000;
  list-style: none;
}

.terms-panel summary::-webkit-details-marker {
  display: none;
}

.terms-panel summary::after {
  content: "+";
  float: right;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eaff82, #57d45f);
  color: #1c6531;
  text-align: center;
  line-height: 24px;
  box-shadow: 0 8px 14px rgba(48, 145, 67, 0.18);
}

.terms-panel[open] summary::after {
  content: "-";
}

.terms-list {
  max-height: 210px;
  margin: 0;
  padding: 0 18px 16px 34px;
  overflow: auto;
  color: #315c38;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.terms-list li + li {
  margin-top: 7px;
}

.modal p {
  margin-bottom: 18px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 18px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(97, 206, 94, 0.12);
  color: #315b36;
  font-weight: 800;
}

.account-form {
  display: grid;
  gap: 11px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(91, 181, 86, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(235, 255, 228, 0.72)),
    rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 14px 30px rgba(35, 112, 53, 0.12);
}

.account-form h3 {
  margin: 0;
  color: #23572f;
  font-size: 1.02rem;
}

.account-form label {
  display: grid;
  gap: 6px;
  color: #416b47;
  font-size: 0.84rem;
  font-weight: 900;
}

.account-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(59, 153, 70, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 3px 8px rgba(42, 110, 48, 0.08);
  color: #223f2b;
  font-weight: 800;
}

.account-form input:focus {
  outline: 3px solid rgba(255, 219, 70, 0.52);
  border-color: rgba(65, 170, 76, 0.5);
}

.account-status {
  margin: 0;
  color: #47724c;
  font-size: 0.84rem;
  font-weight: 800;
}

.support-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.support-open-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: url("assets/support-monica-v1.png?v=20260703-3") center 28% / 190% auto no-repeat, linear-gradient(135deg, #dfffe8, #74e783);
  box-shadow: 0 8px 14px rgba(21, 122, 57, 0.18), inset 0 0 0 2px rgba(255, 255, 255, 0.78);
}

.support-widget {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 38;
  display: grid;
  grid-template-rows: auto minmax(210px, 1fr) auto;
  width: min(390px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 28px));
  overflow: hidden;
  border: 1px solid rgba(96, 205, 103, 0.46);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(155deg, rgba(253, 255, 242, 0.98), rgba(212, 255, 224, 0.96) 58%, rgba(185, 248, 237, 0.94));
  box-shadow: 0 24px 58px rgba(25, 89, 48, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  animation: modalIn 0.2s var(--ease) both;
}

.support-widget[hidden] {
  display: none;
}

.support-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-bottom: 1px solid rgba(78, 176, 92, 0.18);
  background: rgba(255, 255, 255, 0.48);
}

.support-avatar {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 18px;
  object-fit: cover;
  object-position: 50% 18%;
  background: linear-gradient(135deg, #d9ffe2, #62d977);
  box-shadow: 0 12px 22px rgba(20, 111, 58, 0.22), inset 0 0 0 2px rgba(255, 255, 255, 0.82);
}

.support-header h2,
.support-header p {
  margin: 0;
}

.support-header h2 {
  color: #1f5130;
  font-size: 1.08rem;
}

.support-header p {
  color: #4f7d58;
  font-size: 0.82rem;
  font-weight: 850;
}

.support-window-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.support-window-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #285d37;
  box-shadow: inset 0 -2px 0 rgba(34, 97, 48, 0.08), 0 7px 13px rgba(25, 103, 57, 0.12);
  cursor: pointer;
  font-weight: 1000;
}

.support-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 230px;
  max-height: 410px;
  overflow-y: auto;
  padding: 14px;
}

.support-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.support-message.is-user {
  justify-content: flex-end;
}

.support-message-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  background: #dfffe6;
}

.support-bubble {
  max-width: min(285px, 78vw);
  padding: 11px 12px;
  border-radius: 18px 18px 18px 6px;
  background: #ffffff;
  color: #294d34;
  box-shadow: 0 10px 20px rgba(24, 100, 55, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.35;
}

.support-message.is-user .support-bubble {
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, #ffe963, #ff8830);
  color: #5d3300;
}

.support-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(78, 176, 92, 0.18);
  background: rgba(255, 255, 255, 0.44);
}

.support-form[hidden] {
  display: none;
}

.support-form input {
  min-width: 0;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(59, 153, 70, 0.24);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: #223f2b;
  font-weight: 850;
  box-shadow: inset 0 3px 8px rgba(42, 110, 48, 0.08);
}

.support-form .button {
  min-height: 46px;
  padding-inline: 16px;
}

.toast-host {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  color: #244d2c;
  font-weight: 900;
  animation: toastIn 0.3s var(--ease) both;
  backdrop-filter: blur(14px);
}

.tree {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
}

.tree::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 11%;
  z-index: 1;
  width: 72%;
  height: 66%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--accent), transparent 54%), transparent 64%);
  filter: blur(16px);
  opacity: 0;
  transform: translateX(-50%) scale(0.35);
  pointer-events: none;
}

.tree.stage-1::before,
.tree.stage-2::before,
.tree.stage-3::before,
.tree.stage-4::before {
  opacity: 0.46;
}

.tree.stage-1::before { transform: translateX(-50%) scale(0.48); }
.tree.stage-2::before { transform: translateX(-50%) scale(0.66); }
.tree.stage-3::before { transform: translateX(-50%) scale(0.84); }
.tree.stage-4::before { transform: translateX(-50%) scale(1); }

.tree-render.is-tapping .tree,
.tree.is-click-pop {
  animation: treePress 0.28s var(--ease) both;
}

.tree .trunk,
.tree .branch,
.tree .canopy,
.tree .fruit,
.tree .tree-image,
.tree .seed-shell,
.tree .sprout,
.tree .spark {
  position: absolute;
}

.tree .tree-image {
  display: none;
  left: 50%;
  bottom: -2px;
  width: min(130%, 540px);
  height: 118%;
  background: url("assets/tree-money-v3.png?v=20260702-12") center bottom / contain no-repeat;
  filter:
    drop-shadow(0 27px 22px var(--tree-shadow, rgba(16, 72, 31, 0.24)))
    drop-shadow(0 0 12px color-mix(in srgb, var(--accent), transparent 52%));
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  z-index: 2;
}

.tree .trunk {
  left: 50%;
  bottom: 54px;
  width: 13%;
  min-width: 28px;
  height: 38%;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--trunk), #000 16%), var(--trunk), color-mix(in srgb, var(--trunk), #fff 16%));
  box-shadow: inset -8px 0 0 rgba(75, 39, 20, 0.13);
  transform: translateX(-50%) scaleY(0.2);
  transform-origin: 50% 100%;
}

.tree .trunk::before,
.tree .trunk::after {
  content: "";
  position: absolute;
  top: 16%;
  bottom: 12%;
  width: 22%;
  border-radius: 999px;
  background: rgba(255, 225, 166, 0.22);
}

.tree .trunk::before {
  left: 26%;
  transform: rotate(5deg);
}

.tree .trunk::after {
  right: 22%;
  background: rgba(80, 40, 17, 0.14);
  transform: rotate(-7deg);
}

.tree .branch {
  left: 50%;
  bottom: 165px;
  width: 24%;
  min-width: 58px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--trunk), #000 18%), var(--trunk));
  box-shadow: inset 0 -5px 0 rgba(72, 38, 20, 0.12);
  transform-origin: 8% 50%;
  transform: scaleX(0);
}

.tree .branch::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 30px;
  height: 18px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-dark));
  box-shadow: 0 4px 8px rgba(23, 95, 41, 0.14);
  transform: translateY(-50%) rotate(24deg);
}

.tree .branch-a {
  transform: rotate(-28deg) scaleX(0);
}

.tree .branch-b {
  bottom: 178px;
  transform: rotate(208deg) scaleX(0);
}

.tree .branch-c {
  bottom: 216px;
  width: 20%;
  transform: rotate(-48deg) scaleX(0);
}

.tree .branch-d {
  bottom: 229px;
  width: 19%;
  transform: rotate(225deg) scaleX(0);
}

.tree .canopy {
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.36), transparent 24%),
    linear-gradient(135deg, var(--leaf), var(--leaf-dark));
  box-shadow:
    inset 0 -14px 0 rgba(23, 79, 32, 0.13),
    0 15px 22px rgba(20, 92, 42, 0.17);
  transform: scale(0);
  transform-origin: 50% 80%;
}

.tree .canopy::before,
.tree .canopy::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.tree .canopy::before {
  inset: 12% 18% auto auto;
  width: 22%;
  height: 18%;
  background: rgba(255, 255, 255, 0.32);
  filter: blur(0.5px);
}

.tree .canopy::after {
  left: 18%;
  right: 18%;
  bottom: 15%;
  height: 16%;
  background: rgba(21, 102, 39, 0.12);
}

.tree .canopy-a {
  left: 25%;
  top: 27%;
  width: 34%;
  height: 34%;
}

.tree .canopy-b {
  right: 24%;
  top: 25%;
  width: 38%;
  height: 37%;
}

.tree .canopy-c {
  left: 34%;
  top: 14%;
  width: 35%;
  height: 34%;
}

.tree .canopy-d {
  left: 18%;
  top: 39%;
  width: 34%;
  height: 32%;
}

.tree .canopy-e {
  right: 17%;
  top: 40%;
  width: 35%;
  height: 33%;
}

.tree .canopy-f {
  left: 12%;
  top: 30%;
  width: 32%;
  height: 31%;
}

.tree .canopy-g {
  right: 10%;
  top: 31%;
  width: 33%;
  height: 32%;
}

.tree .canopy-h {
  left: 37%;
  top: 3%;
  width: 29%;
  height: 29%;
}

.tree .seed-shell {
  left: 50%;
  bottom: 54px;
  width: 68px;
  height: 78px;
  border-radius: 62% 38% 58% 42%;
  background:
    radial-gradient(circle at 35% 27%, rgba(255, 255, 255, 0.38), transparent 20%),
    linear-gradient(135deg, color-mix(in srgb, var(--trunk), #fff 18%), var(--trunk));
  box-shadow: inset -8px -10px 0 rgba(91, 45, 17, 0.14), 0 16px 18px rgba(66, 87, 28, 0.18);
  transform: translateX(-50%) rotate(-13deg);
}

.tree .sprout {
  left: 50%;
  bottom: 118px;
  width: 18px;
  height: 58px;
  border-radius: 999px;
  background: #2db653;
  transform: translateX(-50%);
}

.tree .sprout::before,
.tree .sprout::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 44px;
  height: 24px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-dark));
}

.tree .sprout::before {
  right: 8px;
  transform: rotate(-22deg);
}

.tree .sprout::after {
  left: 8px;
  transform: scaleX(-1) rotate(-22deg);
}

.tree .fruit {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff479, #ffbe35);
  box-shadow: inset 0 -4px 0 rgba(157, 102, 6, 0.14), 0 7px 10px rgba(122, 91, 19, 0.16);
  transform: scale(0);
}

.tree .fruit-a {
  left: 33%;
  top: 34%;
}

.tree .fruit-b {
  right: 33%;
  top: 36%;
}

.tree .fruit-c {
  left: 47%;
  top: 22%;
}

.tree .fruit-d {
  left: 23%;
  top: 48%;
}

.tree .fruit-e {
  right: 21%;
  top: 49%;
}

.tree .spark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  opacity: 0.84;
  animation: sparkle 1.8s ease-in-out infinite;
}

.tree .spark-a {
  left: 22%;
  top: 30%;
}

.tree .spark-b {
  right: 21%;
  top: 25%;
  animation-delay: 0.45s;
}

.tree .spark-c {
  right: 30%;
  top: 62%;
  animation-delay: 0.9s;
}

.tree .spark-d {
  left: 43%;
  top: 8%;
  animation-delay: 1.2s;
}

.tree.stage-0 .seed-shell,
.tree.stage-0 .sprout {
  display: block;
}

.tree.stage-0 .tree-image {
  display: none;
}

.tree.stage-0 .seed-shell,
.tree.stage-0 .sprout {
  z-index: 2;
}

.tree.stage-0 .trunk,
.tree.stage-0 .branch,
.tree.stage-0 .canopy,
.tree.stage-0 .fruit {
  display: none;
}

.tree.stage-1 .seed-shell,
.tree.stage-2 .seed-shell,
.tree.stage-3 .seed-shell,
.tree.stage-4 .seed-shell,
.tree.stage-1 .sprout,
.tree.stage-2 .sprout,
.tree.stage-3 .sprout,
.tree.stage-4 .sprout {
  display: none;
}

.tree.stage-1 .tree-image,
.tree.stage-2 .tree-image,
.tree.stage-3 .tree-image,
.tree.stage-4 .tree-image {
  display: block;
  animation: leafBreath 3.1s var(--ease) infinite alternate;
}

.tree.stage-1 .tree-image {
  opacity: 0.86;
  transform: translateX(-50%) scale(0.48);
}

.tree.stage-2 .tree-image {
  opacity: 0.92;
  transform: translateX(-50%) scale(0.66);
}

.tree.stage-3 .tree-image {
  opacity: 0.98;
  transform: translateX(-50%) scale(0.84);
}

.tree.stage-4 .tree-image {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.tree.stage-1 .trunk,
.tree.stage-1 .branch,
.tree.stage-1 .canopy,
.tree.stage-1 .fruit,
.tree.stage-1 .spark,
.tree.stage-2 .trunk,
.tree.stage-2 .branch,
.tree.stage-2 .canopy,
.tree.stage-2 .fruit,
.tree.stage-2 .spark,
.tree.stage-3 .trunk,
.tree.stage-3 .branch,
.tree.stage-3 .canopy,
.tree.stage-3 .fruit,
.tree.stage-3 .spark,
.tree.stage-4 .trunk,
.tree.stage-4 .branch,
.tree.stage-4 .canopy,
.tree.stage-4 .fruit,
.tree.stage-4 .spark {
  display: none;
}

.tree.stage-0 .spark,
.tree.stage-1 .spark,
.tree.stage-2 .spark {
  display: none;
}

.tree-gratis .tree-image {
  --tree-shadow: rgba(31, 112, 34, 0.23);
  background-image: url("assets/tree-money-v3.png?v=20260702-12");
  filter: hue-rotate(18deg) saturate(1.16) drop-shadow(0 18px 14px var(--tree-shadow));
}

.tree-verde .tree-image {
  --tree-shadow: rgba(16, 72, 31, 0.24);
  background-image: url("assets/tree-money-v3.png?v=20260702-12");
}

.tree-azul .tree-image {
  --tree-shadow: rgba(19, 83, 111, 0.24);
  background-image: url("assets/tree-azul.png?v=20260629-12");
}

.tree-dourada .tree-image {
  --tree-shadow: rgba(135, 91, 13, 0.24);
  background-image: url("assets/tree-dourada.png?v=20260629-12");
}

.tree-rosa .tree-image {
  --tree-shadow: rgba(132, 39, 91, 0.22);
  background-image: url("assets/tree-rosa.png?v=20260629-12");
}

.tree-cristal .tree-image {
  --tree-shadow: rgba(74, 151, 161, 0.24);
  background-image: url("assets/tree-cristal.png?v=20260629-12");
}

.tree-fogo .tree-image {
  --tree-shadow: rgba(142, 62, 14, 0.26);
  background-image: url("assets/tree-fogo.png?v=20260629-12");
}

.tree-gelo .tree-image {
  --tree-shadow: rgba(66, 148, 181, 0.22);
  background-image: url("assets/tree-gelo.png?v=20260629-12");
}

.tree-magica .tree-image {
  --tree-shadow: rgba(70, 45, 146, 0.25);
  background-image: url("assets/tree-magica.png?v=20260629-12");
}

.tree-lunar .tree-image {
  --tree-shadow: rgba(69, 74, 128, 0.25);
  background-image: url("assets/tree-lunar.png?v=20260629-12");
}

.tree-real .tree-image {
  --tree-shadow: rgba(121, 82, 11, 0.28);
  background-image: url("assets/tree-real.png?v=20260629-12");
}

.tree-dourada::before,
.tree-real::before {
  background: radial-gradient(circle at 50% 46%, rgba(255, 222, 69, 0.44), transparent 64%);
}

.tree-fogo::before {
  background:
    radial-gradient(circle at 50% 56%, rgba(255, 99, 30, 0.38), transparent 62%),
    radial-gradient(circle at 48% 28%, rgba(255, 223, 63, 0.28), transparent 34%);
}

.tree-gelo::before,
.tree-cristal::before {
  background:
    radial-gradient(circle at 50% 52%, rgba(204, 255, 255, 0.44), transparent 64%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.34), transparent 28%);
}

.tree-magica::before,
.tree-lunar::before {
  background:
    radial-gradient(circle at 50% 52%, rgba(165, 104, 255, 0.38), transparent 64%),
    radial-gradient(circle at 56% 28%, rgba(255, 220, 255, 0.26), transparent 32%);
}

.tree-azul .canopy {
  border-radius: 58% 42% 62% 38%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5), transparent 24%),
    linear-gradient(150deg, #8be5ff, var(--leaf), var(--leaf-dark));
}

.tree-dourada .canopy,
.tree-real .canopy {
  box-shadow:
    inset 0 -14px 0 rgba(143, 91, 8, 0.12),
    0 17px 25px rgba(189, 135, 20, 0.22),
    0 0 20px rgba(255, 221, 83, 0.28);
}

.tree-rosa .canopy {
  border-radius: 65% 35% 60% 40%;
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.5), transparent 24%),
    radial-gradient(circle at 70% 68%, rgba(255, 219, 237, 0.46), transparent 28%),
    linear-gradient(135deg, var(--leaf), var(--leaf-dark));
}

.tree-cristal .canopy {
  border-radius: 28% 72% 34% 66%;
  clip-path: polygon(50% 0, 92% 24%, 82% 78%, 50% 100%, 16% 78%, 8% 24%);
  background:
    radial-gradient(circle at 35% 27%, rgba(255, 255, 255, 0.68), transparent 22%),
    linear-gradient(145deg, #e8ffff, var(--leaf), var(--leaf-dark));
}

.tree-fogo .canopy {
  border-radius: 74% 26% 68% 32% / 84% 38% 62% 16%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 247, 152, 0.65), transparent 20%),
    linear-gradient(150deg, #ffe45c, var(--leaf), var(--leaf-dark));
}

.tree-gelo .canopy {
  border-radius: 44% 56% 45% 55%;
  filter: saturate(0.95) brightness(1.08);
  box-shadow:
    inset 0 -14px 0 rgba(70, 137, 180, 0.13),
    0 15px 22px rgba(82, 166, 214, 0.18),
    0 0 22px rgba(223, 255, 255, 0.45);
}

.tree-magica .canopy,
.tree-lunar .canopy {
  box-shadow:
    inset 0 -14px 0 rgba(33, 21, 86, 0.14),
    0 15px 24px rgba(88, 56, 168, 0.2),
    0 0 24px color-mix(in srgb, var(--accent), transparent 35%);
}

.tree-lunar .fruit {
  background: linear-gradient(180deg, #fffad1, #d8dcff);
}

.tree-real .canopy-h::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  width: 54px;
  height: 28px;
  border-radius: 10px 10px 18px 18px;
  background:
    linear-gradient(135deg, transparent 0 14%, #ffe66f 15% 33%, transparent 34% 40%, #ffd239 41% 60%, transparent 61% 66%, #ffe66f 67% 86%, transparent 87%),
    linear-gradient(180deg, #fff489, #e3a920);
  box-shadow: 0 5px 10px rgba(127, 87, 10, 0.18);
  transform: translateX(-50%);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  animation: slideUpFade 0.58s var(--ease) both;
}

@media (max-width: 560px) {
  body {
    background:
      linear-gradient(180deg, rgba(12, 105, 179, 0.04), rgba(24, 127, 55, 0.1)),
      var(--game-bg-image) center center / cover no-repeat,
      linear-gradient(180deg, #75dfff 0%, #c9f8ff 50%, #6bd65c 100%);
    background-attachment: fixed, fixed, fixed;
  }

  .hero-scene,
  .garden-stage {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(25, 121, 53, 0.06)),
      var(--game-bg-image) center center / cover no-repeat;
  }

  .section-heading {
    padding: 16px;
    border-radius: 22px;
  }

  .shop-toolbar {
    grid-template-columns: 1fr;
  }

  .shop-toolbar span {
    min-height: 50px;
  }

  .seed-card {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 15px;
  }

  .seed-art {
    right: -10px;
    bottom: 74px;
    width: 180px;
    height: 180px;
    opacity: 0.14;
  }

  .seed-icon-large {
    width: 130px;
    height: 130px;
  }

  .seed-icon-large .seed-sprout {
    width: 126px;
    height: 126px;
  }

  .seed-title-row {
    justify-items: center;
    text-align: center;
  }

  .seed-status {
    justify-self: center;
  }

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

  .stat-pill {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "icon value"
      "icon label";
    justify-content: start;
    min-height: 50px;
    padding: 8px 10px;
  }

  .stat-pill em {
    font-size: 0.9rem;
  }

  .seed-benefit-row {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .seed-benefit-row span:last-child {
    width: 100%;
    margin-left: 0;
  }

  .tree-spot {
    width: min(88vw, 380px);
    height: min(88vw, 380px);
    bottom: 12%;
  }

  .tree-coins {
    top: 90px;
  }
}

@media (hover: hover) {
  .button:hover,
  .icon-button:hover,
  .deposit-chip:hover,
  .seed-card:hover,
  .helper-card:not(.is-disabled):hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 20px 40px rgba(30, 101, 48, 0.24);
  }

  .helper-card:not(.is-disabled):hover::after {
    animation: shine 0.75s ease;
  }

  .button-primary:hover::before {
    animation: shine 0.75s ease;
  }

  .tree-render:not([aria-disabled="true"]):hover {
    filter: drop-shadow(0 28px 21px rgba(23, 81, 37, 0.2)) drop-shadow(0 0 20px rgba(255, 222, 67, 0.32));
  }

  .tree-render:not([aria-disabled="true"]):hover .tree .canopy {
    filter: saturate(1.1) brightness(1.04);
  }
}

@media (min-width: 650px) {
  .game-shell {
    padding: 20px 24px 36px;
  }

  .topbar {
    top: 16px;
  }

  .home-view {
    gap: 26px;
  }

  .home-actions {
    width: min(520px, 100%);
    margin: 0 auto;
    grid-template-columns: 1.2fr 0.8fr;
  }

  .access-panel {
    grid-template-columns: 0.82fr 1.18fr;
    align-items: center;
  }

  .login-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
    align-items: end;
  }

  .auth-modal .login-form {
    grid-template-columns: 1fr;
  }

  .login-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr auto;
  }

  .bank-heading {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .deposit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .deposit-input-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .button-xl {
    min-height: 66px;
  }

  .section-heading {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .seed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 930px) {
  .garden-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    align-items: stretch;
  }

  .garden-stage {
    min-height: 640px;
  }

  .garden-panel {
    align-self: center;
  }

  .seed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    padding: 8px;
  }

  .icon-button:not(.account-button):not(.treasure-button) {
    display: none;
  }

  .brand-mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .brand-button {
    gap: 7px;
  }

  .brand-button strong {
    font-size: 0.88rem;
  }

  .brand-button small {
    font-size: 0.62rem;
  }

  .icon-button.account-button {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }

  .account-button-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .coin-wallet {
    min-width: 76px;
    padding-inline: 10px;
  }

  .stats-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .stats-list dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes treasurePulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-3px) scale(1.035);
    filter: brightness(1.06);
  }
}

@keyframes chestSpin {
  0% {
    transform: translateX(0);
  }
  72% {
    transform: translateX(-2820px);
  }
  100% {
    transform: translateX(-3210px);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ctaGlow {
  0%,
  100% {
    filter: brightness(1);
    box-shadow: 0 16px 30px rgba(199, 128, 23, 0.25), 0 0 18px rgba(255, 214, 71, 0.28), inset 0 -5px 0 rgba(129, 75, 0, 0.14);
  }
  50% {
    filter: brightness(1.04);
    box-shadow: 0 20px 38px rgba(199, 128, 23, 0.34), 0 0 34px rgba(255, 221, 77, 0.52), inset 0 -5px 0 rgba(129, 75, 0, 0.14);
  }
}

@keyframes magicAura {
  from {
    opacity: 0.52;
    transform: translateX(-50%) scale(0.95);
  }
  to {
    opacity: 0.88;
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(110%);
  }
}

@keyframes progressShine {
  0%,
  35% {
    transform: translateX(-100%);
  }
  75%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes loadingSlide {
  0% {
    transform: translateX(-70%);
  }
  100% {
    transform: translateX(150%);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: translateX(-50%) rotate(-1deg);
  }
  50% {
    transform: translateX(-50%) rotate(1.4deg);
  }
}

@keyframes treeSway {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1.4deg);
  }
}

@keyframes leafBreath {
  from {
    filter: saturate(1) brightness(1);
  }
  to {
    filter: saturate(1.08) brightness(1.04);
  }
}

@keyframes treePress {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  45% {
    transform: translateX(-50%) scale(0.94, 1.04);
  }
}

@keyframes bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

@keyframes coinBob {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-7px) scale(1.04);
  }
}

@keyframes drift {
  0% {
    transform: translateX(-16px);
  }
  50% {
    transform: translateX(18px);
  }
  100% {
    transform: translateX(-16px);
  }
}

@keyframes shine {
  to {
    transform: translateX(110%);
  }
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(16);
  }
}

@keyframes floatCoin {
  0% {
    opacity: 0;
    transform: translate(-50%, 24px) scale(0.8);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--float-x, 0px)), -105px) scale(1.08);
  }
}

@keyframes rewardCoinIn {
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes rewardCoinOut {
  to {
    opacity: 0;
    transform: translate(-50%, -82px) scale(0.78);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.72);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
