:root {
  --stage-w: 844px;
  --stage-h: 390px;
  --ink: #244230;
  --muted: #5f745f;
  --cream: #fff8d6;
  --paper: rgba(255, 250, 218, 0.92);
  --leaf: #2f8e45;
  --leaf-deep: #1e6934;
  --gold: #efb33a;
  --soil: #8d5a31;
  --danger: #a8462b;
  --blue: #3f8eb8;
  font-family: "Trebuchet MS", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html,
body,
.app-shell {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  background: #000;
  user-select: none;
}

.mc-icon {
  width: 1em;
  height: 1em;
  display: block;
  color: currentColor;
  fill: currentColor;
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.58;
}

.app-shell {
  position: relative;
  background: #000;
}

.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--stage-w);
  height: var(--stage-h);
  overflow: hidden;
  translate: -50% -50%;
  transform-origin: center center;
  transform: scale(var(--game-scale, 1));
  background: #94cfdf url("../../assets/backgrounds/garden_main_background.webp") center / cover no-repeat;
}


#game,
.screen {
  position: absolute;
  inset: 0;
}

.screen {
  overflow: hidden;
}

.topbar {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #17452e;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
}

.brand strong {
  font-size: 21px;
  line-height: 1;
}

.brand span {
  font-size: 12px;
  font-weight: 700;
}

.leaf-counter,
.progress-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 2px solid rgba(77, 116, 54, 0.55);
  border-radius: 999px;
  color: #24502c;
  background: rgba(255, 248, 202, 0.94);
  box-shadow: 0 4px 0 rgba(85, 119, 50, 0.22);
  font-weight: 900;
  pointer-events: auto;
}

.garden-screen {
  background:
    linear-gradient(rgba(93, 215, 239, 0.08), rgba(63, 143, 55, 0.1)),
    url("../../assets/backgrounds/garden_main_background.webp") center / cover no-repeat;
}

.garden-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  z-index: 9;
  display: grid;
  grid-template-columns: 360px 1fr 112px 38px 40px;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 8px;
  border-bottom: 3px solid rgba(56, 32, 19, 0.55);
  border-radius: 0 0 18px 18px;
  background: linear-gradient(#8a654b, #5d3b27);
  box-shadow: inset 0 -3px 0 rgba(255, 214, 153, 0.16), 0 3px 0 rgba(36, 25, 18, 0.24);
}

.legacy-hud {
  display: none;
}

.word-radar {
  position: absolute;
  top: 78px;
  left: 86px;
  right: 86px;
  z-index: 6;
  height: 42px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 249, 237, 0.9);
  box-shadow: inset 0 0 0 2px rgba(132, 122, 108, 0.12);
  overflow: hidden;
}

.radar-arrow {
  width: 34px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #9a9a9a;
  background: transparent;
  font-size: 22px;
  font-weight: 900;
  overflow: hidden;
}

.radar-arrow .mc-icon {
  width: 24px;
  height: 24px;
}

.radar-list {
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  color: #5b3927;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  padding: 4px 8px;
}

.radar-word {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 2px;
  color: #5b3927;
  background: rgba(255, 252, 238, 0.72);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(126, 104, 69, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.radar-word .word-status-icon {
  position: static;
  width: 30px;
  height: 30px;
  transform: none;
}

.radar-word .mc-icon {
  width: 20px;
  height: 20px;
  color: #765026;
}

.radar-word:hover {
  background: rgba(116, 82, 48, 0.08);
}

.radar-word:disabled {
  opacity: 1;
}

.radar-list img {
  width: 22px;
  height: 24px;
  object-fit: contain;
}

.radar-empty {
  margin: 0 auto;
  color: #8c7662;
  font-size: 12px;
}

.leaf-meter {
  position: relative;
  width: 112px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px 0 34px;
  border: 0;
  border-radius: 0;
  color: #fff7d1;
  background: url("../../assets/ui/hud/leaf_balance_panel.webp") center / 100% 100% no-repeat;
  box-shadow: none;
}

.leaf-meter strong {
  min-width: 62px;
  text-align: center;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 1px rgba(58, 31, 12, 0.65);
}

.garden-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  z-index: 2;
  display: flex;
  align-items: end;
  gap: 22px;
  height: 232px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 64px 6px;
  scrollbar-width: none;
}

.plot {
  position: relative;
  flex: 0 0 116px;
  height: 220px;
  display: grid;
  align-content: end;
  justify-items: center;
  padding-bottom: 0;
  border-radius: 8px;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.plot.can-act:hover {
  transform: translateY(-4px);
  filter: saturate(1.08);
}

.plot.located {
  animation: locatePulse 0.9s ease-out;
}

.plant-img {
  width: 118px;
  height: 166px;
  object-fit: contain;
  object-position: bottom center;
}

.plot-label {
  width: 72px;
  min-height: 26px;
  margin-top: -2px;
  padding: 4px 6px;
  border: 2px solid rgba(99, 76, 40, 0.4);
  border-radius: 8px;
  background: linear-gradient(#fff4c5, #e7d49d);
  text-align: center;
  box-shadow: 0 4px 0 rgba(107, 88, 44, 0.15);
}

.plot-word {
  position: relative;
  width: 96px;
  min-height: 26px;
  margin-top: -2px;
  padding: 4px 7px;
  border: 2px solid rgba(99, 76, 40, 0.4);
  border-radius: 8px;
  color: #39291c;
  background: linear-gradient(#fff4c5, #e7d49d);
  box-shadow: 0 4px 0 rgba(107, 88, 44, 0.15);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.word-status-icon {
  position: absolute;
  left: -13px;
  top: 50%;
  width: 32px;
  height: 32px;
  object-fit: contain;
  transform: translateY(-50%);
  filter: drop-shadow(0 2px 1px rgba(34, 54, 25, 0.22));
}

.plot-plant-en {
  width: 96px;
  margin-top: 3px;
  color: #fff8d7;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(52, 87, 32, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plot-word span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plot-progress {
  width: 70px;
  height: 12px;
  margin: 5px auto 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: rgba(69, 80, 45, 0.5);
  box-shadow: 0 1px 0 rgba(44, 72, 33, 0.25);
  overflow: hidden;
}

.plot-progress span {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(#a8ef52, #55b332);
}

.soil {
  position: absolute;
  left: 23px;
  right: 23px;
  bottom: 43px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(74, 111, 36, 0.42) 0 58%, rgba(45, 88, 28, 0.12) 60% 100%);
  box-shadow: 0 8px 8px rgba(42, 66, 28, 0.08);
}

.status-icon {
  position: absolute;
  top: 17px;
  right: 23px;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 253, 220, 0.92);
  padding: 4px;
  box-shadow: 0 3px 0 rgba(80, 94, 48, 0.2), 0 0 0 3px rgba(89, 173, 213, 0.42);
}

.action-badge {
  position: absolute;
  top: 24px;
  left: 16px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fffbe3;
  background: var(--leaf);
  box-shadow: 0 3px 0 rgba(16, 88, 40, 0.32);
  font-size: 11px;
  font-weight: 900;
}

.add-plot {
  flex: 0 0 64px;
  height: 64px;
  margin: 0 0 25px 0;
  display: grid;
  place-items: center;
  border: 3px dashed rgba(40, 126, 53, 0.72);
  border-radius: 9px;
  color: #5f9831;
  background: rgba(217, 239, 148, 0.62);
  font-size: 34px;
  font-weight: 900;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.16);
}

.empty-hint {
  position: absolute;
  left: 62px;
  bottom: 186px;
  width: 300px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #285035;
  background: rgba(255, 250, 220, 0.88);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 0 rgba(73, 105, 47, 0.14);
}

.bottom-nav {
  position: static;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.nav-btn,
.primary-btn,
.secondary-btn,
.tiny-btn {
  min-height: 38px;
  padding: 8px 12px;
  border: 2px solid rgba(62, 112, 49, 0.45);
  border-radius: 8px;
  color: #fffbea;
  background: linear-gradient(#62b95e, #2d8a42);
  box-shadow: 0 4px 0 #1b632d, inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.1s ease, filter 0.12s ease;
}

.nav-btn {
  width: 112px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 3px 9px;
  border: 2px solid rgba(161, 106, 54, 0.7);
  border-radius: 12px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(25, 73, 73, 0.34);
  background: linear-gradient(#704124, #4b2717);
  box-shadow: inset 0 1px 0 rgba(255, 221, 170, 0.12);
  font-size: 12px;
  line-height: 1.1;
}

.nav-btn img {
  width: 34px;
  height: 30px;
  object-fit: contain;
}

.nav-btn small {
  font-size: 11px;
  font-weight: 900;
}

.nav-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.tiny-btn:hover {
  filter: brightness(1.05);
}

.nav-btn:active,
.primary-btn:active,
.secondary-btn:active,
.tiny-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255, 221, 170, 0.1);
}

.secondary-btn {
  color: #295034;
  background: linear-gradient(#fff7bf, #eecb65);
  box-shadow: 0 4px 0 #b7852d, inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.login-screen {
  display: grid;
  place-items: center;
  background: rgba(255, 248, 214, 0.22);
}

.login-panel {
  width: 360px;
  padding: 24px 28px;
  border: 4px solid rgba(112, 72, 32, 0.42);
  border-radius: 14px;
  color: #4d3521;
  background: rgba(255, 250, 221, 0.96);
  box-shadow: 0 14px 0 rgba(79, 49, 24, 0.18), 0 20px 34px rgba(42, 73, 41, 0.22);
}

.login-panel h1 {
  margin: 0 0 8px;
  color: #3c6e37;
  font-size: 28px;
  line-height: 1;
}

.login-panel p {
  margin: 0 0 16px;
  color: #765c3e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.login-field {
  display: block;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 900;
}

.login-field span {
  display: block;
  margin-bottom: 5px;
}

.login-field input {
  width: 100%;
  height: 38px;
  border: 2px solid rgba(80, 138, 69, 0.56);
  border-radius: 8px;
  padding: 0 10px;
  outline: none;
  color: #244230;
  background: #fffdf0;
  font-weight: 900;
}

.code-field div {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 8px;
}

.login-message {
  min-height: 20px;
  margin: 10px 0;
  color: #a64a28;
  font-size: 13px;
  font-weight: 900;
}

.login-panel .primary-btn {
  width: 100%;
}

.login-guest {
  display: block;
  margin: 12px auto 0;
  color: #5f7445;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.tiny-btn {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 12px;
}

.settings-fab {
  position: static;
  z-index: 1;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.settings-fab img {
  width: 34px;
  height: 34px;
}

.account-entry {
  position: relative;
  z-index: 4;
  width: 38px;
  height: 38px;
}

.account-chip {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(255, 243, 180, 0.84);
  border-radius: 50%;
  color: #fff9d8;
  background: linear-gradient(#7ccf5a, #2f8c3f);
  box-shadow: 0 3px 0 rgba(34, 91, 35, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  text-shadow: 0 2px 0 rgba(34, 77, 35, 0.36);
  font-size: 16px;
  font-weight: 900;
}

.account-chip:hover {
  filter: brightness(1.06);
}

.account-chip:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.account-menu {
  position: absolute;
  top: 46px;
  right: -42px;
  width: 170px;
  padding: 9px;
  border: 3px solid rgba(113, 74, 34, 0.46);
  border-radius: 12px;
  color: #3f2b1c;
  background: rgba(255, 250, 219, 0.98);
  box-shadow: 0 8px 0 rgba(78, 48, 23, 0.16), 0 12px 24px rgba(26, 52, 25, 0.22);
}

.account-menu::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 50px;
  width: 14px;
  height: 14px;
  border-left: 3px solid rgba(113, 74, 34, 0.46);
  border-top: 3px solid rgba(113, 74, 34, 0.46);
  background: rgba(255, 250, 219, 0.98);
  rotate: 45deg;
}

.account-menu-status {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: 2px 5px 8px;
  border-bottom: 1px dashed rgba(116, 80, 42, 0.24);
}

.account-menu-status strong {
  color: #2f6f35;
  font-size: 14px;
  line-height: 1.1;
}

.account-menu-status span {
  color: #765c3e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.account-menu button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 29px;
  margin-top: 7px;
  border: 2px solid rgba(47, 121, 55, 0.28);
  border-radius: 999px;
  color: #fffbea;
  background: linear-gradient(#62b95e, #2d8a42);
  box-shadow: 0 3px 0 #1b632d, inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 12px;
  font-weight: 900;
}

.account-menu button:last-child {
  color: #654129;
  background: linear-gradient(#fff7bf, #eecb65);
  box-shadow: 0 3px 0 #b7852d, inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.decor-screen {
  background: #7ed4ec;
}

.decor-scroll {
  position: absolute;
  inset: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.decor-world {
  position: relative;
  width: 4704px;
  height: 390px;
  overflow: hidden;
  background:
    linear-gradient(rgba(98, 211, 234, 0.04), rgba(51, 142, 58, 0.1)),
    url("../../assets/backgrounds/garden_scroll_loop_background.webp") left center / auto 100% repeat-x;
}

.decor-world::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  background: linear-gradient(rgba(58, 151, 61, 0), rgba(42, 134, 49, 0.2));
  pointer-events: none;
}

.decor-toolbar {
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: auto;
  z-index: 520;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px 14px;
  border: 3px solid rgba(178, 127, 69, 0.32);
  border-radius: 22px;
  background: rgba(255, 244, 219, 0.92);
  box-shadow: 0 5px 0 rgba(105, 74, 40, 0.16);
}

.tool-btn {
  width: 66px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 5px 8px;
  border: 2px solid rgba(170, 134, 86, 0.28);
  border-radius: 12px;
  color: #5c4026;
  background: rgba(255, 249, 230, 0.88);
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
}

.tool-btn.active {
  border-color: #8bc53f;
  background: #dff3b3;
  box-shadow: inset 0 0 0 2px rgba(102, 174, 42, 0.18);
}

.tool-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tool-btn[data-action="tool-chest"] img {
  width: 34px;
  height: 28px;
}

.tool-btn .mc-icon {
  width: 26px;
  height: 26px;
  color: #6e4c2c;
}

.tool-btn.active .mc-icon {
  color: #3b7b25;
}

.tool-arrow {
  width: 42px;
  padding: 0;
  overflow: hidden;
}

.tool-arrow .mc-icon {
  width: 22px;
  height: 22px;
}

.decor-item {
  position: absolute;
  width: 92px;
  height: 112px;
  padding: 0;
  background: transparent;
  touch-action: none;
}

.decor-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.decor-plant {
  transform-origin: center bottom;
}

.decor-placement-preview {
  position: absolute;
  margin-left: 0;
  margin-top: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  transition: opacity 120ms ease, transform 120ms ease;
}

.decor-placement-preview.visible {
  opacity: 0.92;
  transform: translateY(0) scale(1);
}

.placement-plant {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 6px 0 rgba(66, 76, 43, 0.18));
}

.placement-controls {
  position: absolute;
  left: 50%;
  top: 96px;
  bottom: auto;
  z-index: 520;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 46px 56px 86px 56px 46px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 3px solid rgba(148, 102, 48, 0.28);
  border-radius: 18px;
  background: rgba(255, 246, 220, 0.96);
  box-shadow: 0 8px 18px rgba(67, 65, 35, 0.2);
}

.decor-screen .back-btn {
  z-index: 530;
}

.placement-controls button {
  height: 40px;
  border: 2px solid rgba(104, 126, 55, 0.22);
  border-radius: 12px;
  color: #4a3824;
  background: rgba(255, 252, 231, 0.92);
  font-weight: 900;
}

.placement-step {
  min-width: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}

.placement-step .mc-icon {
  width: 24px;
  height: 24px;
}

.placement-confirm {
  padding: 0 18px;
  border-color: #77b642;
  background: linear-gradient(#e8f7c6, #cbeaa1);
  font-size: 16px;
}

.size-tuner {
  position: absolute;
  right: 18px;
  top: 48px;
  z-index: 560;
  width: 196px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 3px solid rgba(148, 102, 48, 0.3);
  border-radius: 16px;
  color: #4f3924;
  background: rgba(255, 246, 220, 0.97);
  box-shadow: 0 8px 18px rgba(67, 65, 35, 0.22);
  font-size: 12px;
  font-weight: 900;
}

.size-tuner header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.size-tuner header button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #6a4328;
  background: rgba(255, 252, 231, 0.92);
}

.size-tuner header button .mc-icon {
  width: 18px;
  height: 18px;
}

.size-tuner select,
.size-tuner input {
  width: 100%;
  height: 30px;
  border: 2px solid rgba(104, 126, 55, 0.22);
  border-radius: 8px;
  color: #4a3824;
  background: rgba(255, 252, 231, 0.92);
  font: inherit;
}

.size-preview {
  height: 78px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(rgba(126, 212, 236, 0.28), rgba(88, 164, 73, 0.18));
}

.size-preview img {
  object-fit: contain;
  object-position: bottom center;
}

.size-tuner label {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 6px;
}

.size-lock {
  color: #7b5a31;
  font-size: 11px;
  text-align: center;
}

.size-nudges,
.size-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.size-nudges button,
.size-actions button {
  min-height: 30px;
  border: 2px solid rgba(104, 126, 55, 0.22);
  border-radius: 9px;
  color: #4a3824;
  background: rgba(255, 252, 231, 0.92);
  font-weight: 900;
}

.decor-rock,
.decor-flower_patch,
.decor-fountain {
  position: absolute;
  display: block;
  background: transparent;
}

.decor-rock {
  width: 58px;
  height: 34px;
  border-radius: 44% 56% 45% 55%;
  background: linear-gradient(135deg, #cfc2a2, #8f856f);
  box-shadow: inset 8px 6px 0 rgba(255, 255, 255, 0.22), 0 4px 0 rgba(75, 64, 48, 0.16);
}

.decor-rock.small {
  width: 42px;
  height: 26px;
}

.decor-flower_patch {
  width: 72px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 35%, #ffef6a 0 7%, transparent 8%),
    radial-gradient(circle at 48% 28%, #ff8f8f 0 8%, transparent 9%),
    radial-gradient(circle at 67% 48%, #fff4a4 0 7%, transparent 8%),
    radial-gradient(circle at 55% 70%, #f686b5 0 8%, transparent 9%),
    #3fa35b;
}

.decor-fountain {
  width: 74px;
  height: 82px;
}

.decor-fountain::before {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 0;
  height: 25px;
  border: 5px solid #d6c5a5;
  border-radius: 50%;
  background: #9fe3ef;
}

.decor-fountain::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: 24px;
  width: 14px;
  height: 48px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(#c9f5ff, #73c9de);
  box-shadow: 0 24px 0 12px #d6c5a5;
}

.decor-static {
  position: absolute;
  z-index: 180;
}

.decor-palette {
  position: absolute;
  left: 50%;
  bottom: 82px;
  z-index: 540;
  transform: translateX(-50%);
  width: 438px;
  height: 226px;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border: 3px solid rgba(148, 102, 48, 0.32);
  border-radius: 16px;
  background: rgba(255, 246, 220, 0.96);
  box-shadow: 0 8px 18px rgba(67, 65, 35, 0.22);
  overflow: hidden;
}

.decor-shop {
  bottom: 64px;
  height: 250px;
}

.decor-palette > strong {
  display: block;
  margin-bottom: 7px;
  color: #5e3d24;
  text-align: center;
  font-size: 14px;
}

.decor-shop-leaves {
  margin: -2px 0 7px;
  color: #437a2e;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.decor-palette-list {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-content: start;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
}

.decor-palette-list button {
  min-height: 88px;
  display: grid;
  grid-template-rows: 44px minmax(28px, auto);
  justify-items: center;
  align-items: center;
  align-content: center;
  gap: 2px;
  padding: 6px 4px;
  border: 2px solid rgba(104, 126, 55, 0.22);
  border-radius: 10px;
  color: #4a3824;
  background: rgba(255, 252, 231, 0.86);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  position: relative;
}

.decor-palette-list button > span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.decor-palette-list button.selected {
  border-color: #79b83e;
  background: #e7f6c5;
  box-shadow: inset 0 0 0 2px rgba(111, 184, 60, 0.22);
}

.decor-palette-list button.unavailable {
  opacity: 0.48;
  filter: grayscale(0.35);
}

.plant-count {
  position: absolute;
  right: 4px;
  top: 4px;
  min-width: 20px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  color: #fffbe8;
  background: #5c8f2f;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
  box-shadow: 0 2px 0 rgba(72, 62, 36, 0.18);
}

.decor-palette-list img,
.decor-preview {
  width: 48px;
  height: 42px;
  object-fit: contain;
}

.decor-preview-img {
  display: block;
  filter: drop-shadow(0 2px 1px rgba(85, 62, 28, 0.16));
}

.decor-image {
  display: grid;
  place-items: center;
  background: transparent;
}

.decor-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 5px 4px rgba(70, 66, 35, 0.18));
}

.decor-preview.decor-rock,
.decor-preview.decor-flower_patch,
.decor-preview.decor-fountain {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
}

.decor-palette-list p {
  margin: 8px auto;
  color: #765333;
  font-size: 13px;
  font-weight: 900;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  padding: 30px 34px;
  background: rgba(30, 71, 41, 0.28);
  backdrop-filter: blur(1px);
}

.panel {
  position: absolute;
  inset: 22px 28px;
  display: flex;
  flex-direction: column;
  border: 4px solid rgba(94, 78, 38, 0.28);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 16px 34px rgba(51, 56, 30, 0.28);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 16px;
  color: #24452e;
  background: rgba(254, 226, 115, 0.55);
  border-bottom: 2px solid rgba(94, 78, 38, 0.18);
}

.panel-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
}

.panel-body {
  flex: 1;
  overflow: auto;
  padding: 14px 16px 18px;
}

.shop-grid {
  display: grid;
  gap: 16px;
  padding: 6px 0 18px;
}

.shop-screen {
  z-index: 30;
}

.shop-book {
  inset: 28px 48px 24px;
  padding: 42px 24px 18px;
}

.shop-title {
  min-width: 154px;
  letter-spacing: 0.04em;
}

.shop-leaf-counter {
  position: absolute;
  top: 14px;
  right: 22px;
  min-width: 88px;
  padding: 6px 12px;
  border: 3px solid rgba(112, 78, 33, 0.26);
  border-radius: 999px;
  color: #5c3e22;
  background: rgba(255, 252, 231, 0.88);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.shop-book .message {
  min-height: 18px;
  margin: 0 116px 4px;
  color: #7a562f;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.shop-book .shop-grid {
  height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 0 14px;
}

.shop-row {
  position: relative;
  min-height: 132px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 20px;
  padding: 0 18px 9px;
}

.shop-row::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 45px;
  height: 52px;
  border-radius: 10px;
  background: rgba(226, 208, 172, 0.72);
}

.shop-item {
  position: relative;
  z-index: 1;
  flex: 0 0 82px;
  min-height: 128px;
  padding: 0 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 3px;
  transform: translateY(-20px);
}

.catalog-item {
  position: relative;
  min-height: 126px;
  padding: 8px;
  border: 2px solid rgba(109, 96, 45, 0.23);
  border-radius: 8px;
  background: rgba(255, 253, 226, 0.82);
  display: grid;
  justify-items: center;
  gap: 4px;
}

.shop-item img {
  width: 72px;
  height: 68px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 6px 3px rgba(89, 62, 35, 0.22));
}

.shop-item strong,
.catalog-item strong {
  font-size: 13px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-item span,
.catalog-item span {
  font-size: 10px;
  color: var(--muted);
}

.shop-item > span {
  display: none;
}

.shop-item .tiny-btn {
  width: 52px;
  min-height: 24px;
  padding: 3px 0;
  border-radius: 6px;
  font-size: 12px;
}

.shop-item .buy-btn {
  color: #5a3515;
  border-color: rgba(145, 91, 23, 0.48);
  background: linear-gradient(#ffd257, #ee9f24);
  box-shadow: 0 4px 0 #a8671e, inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.confirm-mask {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(37, 66, 36, 0.26);
}

.confirm-box {
  width: 276px;
  padding: 18px 18px 16px;
  border: 4px solid rgba(112, 78, 33, 0.34);
  border-radius: 14px;
  background: rgba(255, 248, 218, 0.97);
  box-shadow: 0 16px 28px rgba(54, 56, 28, 0.28);
  text-align: center;
}

.confirm-box img {
  width: 76px;
  height: 70px;
  object-fit: contain;
}

.confirm-box h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.confirm-box p {
  margin: 0 0 14px;
  color: #5d6a49;
  font-size: 14px;
  font-weight: 800;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.message {
  min-height: 24px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 900;
}

.quiz-screen {
  background:
    linear-gradient(rgba(84, 211, 238, 0.04), rgba(51, 138, 58, 0.14)),
    url("../../assets/backgrounds/garden_main_background.webp") center / cover no-repeat;
}

.quiz-progress-card {
  position: absolute;
  left: 258px;
  top: 30px;
  z-index: 7;
  width: 324px;
  height: auto;
  padding: 7px 11px 6px;
  border-radius: 11px;
  background: rgba(255, 247, 232, 0.92);
  box-shadow: 0 3px 0 rgba(105, 101, 87, 0.18);
}

.quiz-progress-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #513625;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.quiz-progress-title strong {
  color: #28762e;
  font-size: 14px;
  margin-left: auto;
}

.quiz-progress-track {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(71, 72, 57, 0.2);
  overflow: hidden;
}

.quiz-progress-track span {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: #3b8c42;
}

.quiz-leaves {
  position: absolute;
  top: 29px;
  right: 45px;
  z-index: 7;
}

.quiz-help {
  position: absolute;
  top: 65px;
  right: 48px;
  z-index: 7;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 3px solid #fff4b3;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(#ffb42b, #f27c00);
  box-shadow: 0 3px 0 rgba(149, 76, 10, 0.34);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
}

.quiz-help .mc-icon {
  width: 22px;
  height: 22px;
}

.quiz-layout {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 284px 1fr;
  gap: 22px;
  padding: 88px 56px 42px 48px;
}

.plant-stage,
.question-board,
.finish-board {
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.plant-stage {
  position: relative;
  display: grid;
  align-content: end;
  justify-items: center;
  padding: 0 0 20px;
  overflow: visible;
}

.plant-stage .big-plant {
  width: 202px;
  height: 206px;
  object-fit: contain;
  object-position: bottom center;
}

.plant-stage .big-icon {
  width: 160px;
  height: 160px;
  align-self: end;
  color: #4f8db4;
  filter: drop-shadow(0 6px 0 rgba(70, 84, 50, 0.14));
}

.watering-soil {
  position: absolute;
  left: 88px;
  bottom: 18px;
  width: 122px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #81502e 0 58%, rgba(73, 43, 25, 0.72) 60% 100%);
  z-index: -1;
}

.water-can {
  position: absolute;
  left: 145px;
  bottom: 45px;
  width: 92px;
  height: 82px;
  object-fit: contain;
  opacity: 0;
  transform: rotate(-24deg) translate(22px, -16px);
}

.watering .water-can {
  animation: pour 1.2s ease-in-out;
}

.droplet {
  position: absolute;
  width: 7px;
  height: 10px;
  border-radius: 50%;
  background: #3caee9;
  opacity: 0;
}

.watering .droplet {
  animation: drop 0.82s ease-in infinite;
}

.growth-sparkles {
  position: absolute;
  left: 78px;
  bottom: 86px;
  width: 126px;
  height: 142px;
  z-index: 2;
  pointer-events: none;
}

.growth-sparkles span {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff7a7;
  opacity: 0;
  box-shadow: 0 0 8px rgba(255, 245, 136, 0.9);
}

.growth-sparkles span.star {
  border-radius: 2px;
  transform: rotate(45deg);
  background: #fff165;
}

.growth-sparkles.show span {
  animation: growSpark var(--duration) ease-out both;
  animation-delay: var(--delay);
}

.question-board,
.finish-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 218px;
  padding: 28px 48px 16px;
  border: 9px solid #9b632d;
  border-radius: 21px;
  background:
    linear-gradient(rgba(255, 252, 236, 0.9), rgba(255, 246, 218, 0.92)) padding-box,
    linear-gradient(#b87936, #80511f) border-box;
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.24),
    0 8px 0 rgba(98, 60, 26, 0.32);
}

.question-board h2,
.finish-board h2 {
  margin: 0;
  color: #4b2f1d;
  font-size: 22px;
  line-height: 1.32;
  font-weight: 900;
}

.board-divider {
  height: 1px;
  margin: 2px 0 5px;
  border-top: 3px dotted rgba(203, 170, 108, 0.45);
}

.sentence {
  min-height: 76px;
  display: grid;
  align-content: center;
  padding: 12px 14px;
  border-radius: 8px;
  color: #1d3d2b;
  background: rgba(255, 255, 255, 0.58);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.meaning {
  min-height: 24px;
  color: #4f7a3b;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.finish-message {
  margin: 4px 0 8px;
  color: #4f7a3b;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.answer-input {
  width: 100%;
  height: 40px;
  border: 3px solid #5a9d52;
  border-radius: 11px;
  outline: none;
  padding: 0 14px;
  background: rgba(255, 250, 236, 0.9);
  color: #143421;
  font-size: 12px;
  font-weight: 900;
  caret-color: #1b7b3a;
  user-select: text;
  box-shadow: inset 0 0 0 3px rgba(229, 195, 134, 0.24);
}

.answer-input:focus {
  box-shadow: 0 0 0 4px rgba(67, 151, 70, 0.24);
}

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.feedback {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 245, 179, 0.64);
  color: #8a4c1c;
  font-size: 14px;
  font-weight: 900;
}

.back-btn {
  position: absolute;
  top: 18px;
  left: 28px;
  z-index: 20;
  width: 96px;
  height: 41px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.back-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.back-btn:hover {
  transform: translateY(-1px) scale(1.02);
}

.back-btn:active {
  transform: translateY(1px);
}

.settings-screen,
.catalog-screen {
  background:
    linear-gradient(rgba(92, 204, 220, 0.2), rgba(113, 174, 93, 0.18)),
    url("../../assets/backgrounds/garden_main_background.webp") center / cover no-repeat;
}

.catalog-book {
  position: absolute;
  inset: 28px 58px 26px;
  padding: 40px 28px 20px;
  border: 8px solid #a66a39;
  border-radius: 28px;
  background: #fff2d7;
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.32),
    0 10px 0 rgba(92, 57, 26, 0.26);
}

.catalog-title {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 120px;
  padding: 10px 20px 13px;
  border-radius: 38px;
  color: #fff;
  background: linear-gradient(#79ae39, #477e29);
  box-shadow: inset 0 0 0 4px rgba(42, 100, 31, 0.22), 0 4px 0 rgba(83, 91, 29, 0.28);
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.catalog-subtitle {
  margin: 0 0 10px;
  color: #815b31;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  width: 100%;
  height: 216px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 0 12px;
}

.catalog-item {
  position: relative;
  min-height: 75px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  align-content: end;
  gap: 2px;
}

.catalog-item strong {
  position: absolute;
  left: 0;
  top: -2px;
  color: #6b4a2b;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.stage-strip {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 3px;
  padding: 0 7px;
}

.stage-strip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  border-radius: 7px;
  background: rgba(226, 208, 172, 0.72);
}

.catalog-stage {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 1px;
}

.catalog-stage img {
  width: 52px;
  height: 58px;
  object-fit: contain;
  object-position: bottom center;
}

.catalog-stage span {
  color: #7a5737;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.catalog-item.locked .catalog-stage img {
  filter: grayscale(1) saturate(0) brightness(0.72);
  opacity: 0.58;
}

.catalog-item.locked strong,
.catalog-item.locked .catalog-stage span {
  color: #8b8174;
}

.settings-book {
  padding-top: 52px;
}

.settings-body {
  height: 236px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 4px 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}

.setting-section {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 246, 219, 0.72);
  border: 2px solid rgba(198, 151, 88, 0.26);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.setting-section h3 {
  margin: 0 0 8px;
  color: #6b4a2b;
  font-size: 16px;
  text-align: center;
}

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 7px 0;
  font-size: 13px;
  font-weight: 800;
  color: #5e4028;
}

.field select,
.field input[type="number"] {
  width: 118px;
  height: 30px;
  border: 2px solid #58a15b;
  border-radius: 7px;
  padding: 2px 8px;
  background: #fffdf0;
  color: #1c3f2b;
  font-weight: 900;
}

.field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--leaf);
}

.stats-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 7px 0;
  font-size: 13px;
  font-weight: 900;
  color: #5e4028;
}

.stats-link {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.stats-link strong {
  min-width: 36px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff9d8;
  background: linear-gradient(#65b851, #2d8740);
  text-align: center;
  box-shadow: 0 2px 0 rgba(47, 99, 35, 0.28);
}

.stats-link:hover span {
  color: #2c8642;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.word-list-book {
  padding: 20px 34px 20px;
}

.word-list-summary {
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  color: #5e4028;
  font-size: 13px;
  font-weight: 900;
}

.word-add-btn {
  position: absolute;
  right: 34px;
  top: 25px;
  min-height: 34px;
  padding: 6px 10px;
  border-color: rgb(131, 89, 13);
  color: rgb(131, 89, 13);
  background: linear-gradient(#fff7c9, #e5ca70);
  font-size: 10px;
}

.word-layout-tabs {
  position: absolute;
  top: 29px;
  right: 120px;
  display: flex;
  gap: 8px;
}

.word-layout-tabs button {
  min-width: 40px;
  height: 28px;
  border: 2px solid rgba(187, 139, 83, 0.38);
  border-radius: 8px;
  color: #7b562f;
  background: rgba(255, 244, 219, 0.78);
  font-size: 10px;
  font-weight: 900;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.word-layout-tabs button.active {
  border-color: #3f9d55;
  color: #207235;
  background: rgba(232, 248, 207, 0.9);
  box-shadow: inset 0 0 0 2px rgba(65, 153, 67, 0.16);
}

.word-table {
  height: 300px;
  margin-top: 30px;
  overflow: hidden;
  color: #5e4028;
}

.word-table-head,
.word-row {
  display: grid;
  grid-template-columns: 56px minmax(112px, 1fr) minmax(160px, 1.7fr);
  align-items: center;
}

.word-table-head {
  height: 34px;
  padding: 0 18px 0 14px;
  border-bottom: 2px solid rgba(211, 171, 104, 0.44);
  color: #704d2b;
  font-size: 14px;
}

.word-table-body {
  height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}

.word-table.columns-2 .word-table-body,
.word-table.columns-3 .word-table-body {
  display: grid;
  align-content: start;
  column-gap: 18px;
}

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

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

.word-table.columns-2 .word-table-head {
  grid-template-columns: repeat(2, 28px minmax(70px, 1fr) minmax(70px, 1.2fr));
}

.word-table.columns-3 .word-table-head {
  grid-template-columns: repeat(3, 28px minmax(70px, 1fr) minmax(70px, 1.2fr));
}



.word-row {
  min-height: 38px;
  padding: 6px 18px 6px 14px;
  border-bottom: 1px solid rgba(211, 171, 104, 0.48);
  font-size: 13px;
  font-weight: 900;
}

.word-table.columns-2 .word-row,
.word-table.columns-3 .word-row {
  grid-template-columns: 28px minmax(70px, 1fr) minmax(70px, 1.2fr);
  gap: 3px 8px;
  min-height: 48px;
  padding: 6px 6px;
}

.word-table.columns-2 .word-row span,
.word-table.columns-3 .word-row span {
  grid-column: 3;
  font-size: 11px;
}

.word-row input {
  width: 18px;
  height: 18px;
  accent-color: #2f9b4f;
}

.word-row input:disabled {
  opacity: 0.72;
}

.word-row strong {
  min-width: 0;
  color: #553721;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.word-row span {
  min-width: 0;
  color: #4f3828;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-row.locked {
  color: #7b755e;
  background: rgba(233, 221, 188, 0.24);
}

.word-row.locked strong,
.word-row.locked span {
  color: #7b755e;
}

.word-prompt-mask {
  z-index: 28;
}

.word-prompt-box {
  width: 660px;
  height: 330px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  border: 6px solid #9b632d;
  border-radius: 18px;
  background: rgba(255, 246, 219, 0.98);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.22), 0 12px 26px rgba(65, 46, 24, 0.28);
}

.word-prompt-box header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.word-prompt-box h3 {
  margin: 0;
  color: #5e4028;
  font-size: 18px;
}

.word-import-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.word-import-grid label {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.word-import-grid label span {
  color: #6f4d2f;
  font-size: 12px;
  font-weight: 900;
}

.word-prompt-box header button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 3px solid #fff4b3;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(#ffb42b, #f27c00);
  box-shadow: 0 3px 0 rgba(149, 76, 10, 0.34);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.word-prompt-box header button .mc-icon {
  width: 20px;
  height: 20px;
}

.word-prompt-box textarea {
  flex: 1;
  width: 100%;
  resize: none;
  border: 2px solid rgba(154, 102, 48, 0.32);
  border-radius: 10px;
  padding: 10px;
  outline: none;
  color: #31462f;
  background: rgba(255, 253, 242, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.45;
  user-select: text;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 64px;
  z-index: 700;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fffbe8;
  background: rgba(42, 91, 49, 0.94);
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(35, 62, 28, 0.28);
}

@keyframes pour {
  0% {
    opacity: 0;
    transform: rotate(-12deg) translate(32px, -20px);
  }
  20%,
  78% {
    opacity: 1;
    transform: rotate(-28deg) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: rotate(-18deg) translate(28px, -18px);
  }
}

@keyframes drop {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.7);
  }
  22% {
    opacity: 0.88;
  }
  100% {
    opacity: 0;
    transform: translate(-34px, 38px) scale(1);
  }
}

@keyframes growSpark {
  0% {
    opacity: 0;
    transform: translate(0, 14px) scale(0.35) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--drift) * 0.25), -8px) scale(1) rotate(25deg);
  }
  70% {
    opacity: 0.9;
    transform: translate(calc(var(--drift) * 0.75), calc(var(--rise) * -0.72)) scale(0.9) rotate(60deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift), calc(var(--rise) * -1)) scale(0.45) rotate(95deg);
  }
}

@keyframes locatePulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  35% {
    transform: scale(1.1);
    filter: brightness(1.08) saturate(1.08);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}
