:root {
  color-scheme: light;
  --ink: #26332a;
  --muted: #6f7d72;
  --panel: #fffdf6;
  --line: #dfe8d6;
  --green: #3e8e57;
  --green-strong: #2e7245;
  --green-soft: #e9f5df;
  --hunger-meter-color: #598a50;
  --yellow: #f6c95c;
  --coral: #ef8368;
  --shadow: 0 14px 38px rgba(52, 88, 56, 0.16);
  --radius-l: 22px;
  --radius-m: 16px;
  --radius-s: 12px;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #dceecb;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.meadow-app,
#meadow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#meadow-canvas {
  display: block;
  touch-action: none;
}

.scene-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 20%),
    linear-gradient(0deg, rgba(25, 61, 32, 0.08), transparent 28%);
  transition: background 1.4s ease;
}

.meadow-app.is-night .scene-shade {
  background:
    radial-gradient(circle at 72% 12%, rgba(140, 176, 214, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(8, 20, 38, 0.12), rgba(8, 20, 36, 0.04) 42%, rgba(6, 16, 30, 0.16));
}

.icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
}

.meadow-header {
  position: fixed;
  z-index: 20;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  min-height: 62px;
  display: grid;
  grid-template-columns: 44px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.icon-button,
.presence {
  pointer-events: auto;
  border: 1px solid rgba(106, 138, 100, 0.16);
  background: rgba(255, 253, 246, 0.9);
  box-shadow: 0 8px 24px rgba(52, 88, 56, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-m);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.icon-button:hover {
  color: var(--green);
  border-color: rgba(39, 107, 60, 0.48);
  transform: translateY(-2px);
}

.icon-button:focus-visible,
.panel-close:focus-visible,
.journal-toggle:focus-visible,
.entry-controls input:focus-visible,
.entry-controls button:focus-visible,
#entry-submit:focus-visible,
.emote-button:focus-visible,
.thought-composer input:focus-visible,
.thought-composer button:focus-visible,
.poi-action:focus-visible,
.jump-button:focus-visible {
  outline: 3px solid rgba(39, 107, 60, 0.28);
  outline-offset: 3px;
}

.icon-back {
  transform: rotate(180deg);
}

.header-actions {
  grid-column: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.world-status {
  min-width: 156px;
  height: 44px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 5px 12px 5px 7px;
  border: 1px solid rgba(106, 138, 100, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: 0 8px 24px rgba(52, 88, 56, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.workshop-reset {
  min-width: 164px;
  height: 44px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 5px 11px 5px 6px;
  border: 1px solid rgba(117, 82, 47, 0.22);
  border-radius: var(--radius-m);
  color: #6f4b2e;
  background: rgba(255, 252, 244, 0.96);
  box-shadow: 0 8px 26px rgba(71, 52, 32, 0.12);
  pointer-events: auto;
}

.workshop-reset > span:first-child {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #875b31;
  background: #f4e9d8;
}

.workshop-reset .icon {
  width: 17px;
  height: 17px;
}

.workshop-reset > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
  line-height: 1;
}

.workshop-reset small {
  color: #8a7665;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.workshop-reset strong {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0;
}

.inventory-toggle {
  position: relative;
}

.weekly-quests-toggle {
  position: relative;
}

.weekly-quests-toggle.is-active {
  color: #275f39;
  border-color: #8caf87;
  background: #eef6e9;
}

.weekly-quests-toggle.has-complete {
  color: #7a5a16;
  border-color: #d4bd77;
  background: #fff9e8;
}

.weekly-quests-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 27px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fffef9;
  border-radius: 999px;
  color: #fff;
  background: #3e7b4b;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.weekly-quests-toggle.has-complete .weekly-quests-badge {
  background: #a87b1f;
}

.achievements-toggle {
  position: relative;
}

.achievements-toggle.is-active {
  color: #785e20;
  border-color: #d1b966;
  background: #fff8df;
}

.achievements-toggle.has-complete {
  color: #326b60;
  border-color: #8bbfb5;
  background: #eef8f5;
}

.achievements-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 29px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fffef9;
  border-radius: 999px;
  color: #fff;
  background: #9a7728;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.achievements-toggle.has-complete .achievements-badge {
  background: #3f8073;
}

.inventory-toggle.is-active {
  color: #32693f;
  border-color: #8faf82;
  background: #eef6e9;
}

.food-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fffef9;
  border-radius: 999px;
  color: #fff;
  background: #c26942;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.player-vitals {
  height: 44px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  padding: 4px 6px;
  border: 1px solid rgba(106, 138, 100, 0.18);
  border-radius: var(--radius-m);
  background: rgba(255, 254, 249, 0.96);
  box-shadow: 0 8px 24px rgba(52, 88, 56, 0.12);
}

.player-level {
  flex: 0 0 auto;
  min-width: 73px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  background: #eef6eb;
}

.player-level strong {
  display: block;
  min-width: 18px;
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}

.player-coins {
  flex: 0 0 auto;
  min-width: 58px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 0;
  border-left: 1px solid #e1e7dc;
  border-radius: 0;
  color: #8a6a1f;
  background: transparent;
  transition: box-shadow 200ms ease;
}

.player-coins[hidden] {
  display: none !important;
}

.player-coins .icon {
  width: 15px;
  height: 15px;
  color: #c9971d;
}

.player-coins strong {
  color: #6b5116;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.player-coins.is-gain {
  animation: coins-gain 760ms ease;
  box-shadow: 0 0 0 3px rgba(231, 183, 71, 0.28), 0 4px 14px rgba(201, 151, 29, 0.35);
}

@keyframes coins-gain {
  0% { transform: scale(1); }
  32% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

.player-level small,
.vital-meter-heading {
  color: #718076;
  font-size: 9.5px;
  font-weight: 800;
}

.player-level small {
  display: block;
  line-height: 1;
  text-align: left;
}

.vital-meter {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  height: 34px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 1px 10px;
  border-left: 1px solid #e1e7dc;
}

.vital-meter.is-xp {
  width: 170px;
  border-left: 0;
}

.vital-meter.is-hunger {
  width: 106px;
}

.vital-meter-heading {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
}

.vital-meter-heading b {
  overflow: hidden;
  color: #405048;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
}

.vital-track {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece3;
}

.vital-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #598a50;
  transition: width 400ms ease;
}

#player-xp-bar {
  position: relative;
  background: linear-gradient(90deg, #3f7548, #71a95d);
  transition: width 1.35s cubic-bezier(0.16, 0.82, 0.22, 1);
}

.vital-meter.is-xp .vital-track em {
  position: absolute;
  inset: 0 auto 0 -34%;
  width: 28%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
  transform: skewX(-18deg);
}

.player-xp-gain {
  position: absolute;
  right: 0;
  top: -22px;
  z-index: 3;
  padding: 4px 7px;
  border: 1px solid #b9d6aa;
  border-radius: 8px;
  color: #2f6a39;
  background: #f5faef;
  box-shadow: 0 6px 14px rgba(54, 100, 50, 0.17);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateY(7px) scale(0.94);
}

.player-xp-gain.is-visible {
  animation: xp-gain-float 1.65s ease both;
}

.vital-meter.is-xp-flash .vital-track {
  box-shadow: 0 0 0 1px rgba(89, 138, 80, 0.34), 0 0 14px rgba(121, 172, 94, 0.48);
}

.vital-meter.is-xp-flash #player-xp-bar {
  filter: brightness(1.12) saturate(1.1);
}

.vital-meter.is-xp-flash .vital-track em {
  animation: xp-track-shine 1.05s 180ms ease-out both;
}

.player-vitals.is-level-up .player-level {
  animation: level-mark-up 1.15s ease both;
}

.vital-meter .vital-track {
  transition: box-shadow 500ms ease;
}

.vital-meter.is-hunger .vital-track i {
  background: var(--hunger-meter-color);
  transition: width 400ms ease, background-color 500ms ease;
}

@keyframes xp-gain-float {
  0% { opacity: 0; transform: translateY(7px) scale(0.94); }
  18%, 68% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

@keyframes xp-track-shine {
  0% { left: -34%; opacity: 0; }
  18% { opacity: 0.9; }
  100% { left: 112%; opacity: 0; }
}

@keyframes level-mark-up {
  0%, 100% { transform: translateY(0); color: inherit; }
  32% { transform: translateY(-2px); color: #2f6d3b; }
  66% { transform: translateY(1px); color: #477d3f; }
}

.audio-settings {
  position: relative;
}

.audio-settings-toggle[aria-expanded="true"] {
  color: #2f6d3b;
  border-color: #bcd7b5;
  background: #edf6e8;
}

.audio-settings-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  width: 292px;
  padding: 15px;
  border: 1px solid #d8e2d4;
  border-radius: 14px;
  color: #243228;
  background: #fffef9;
  box-shadow: 0 18px 45px rgba(36, 58, 39, 0.19);
}

.audio-settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e3e9df;
}

.audio-settings-heading > span {
  display: grid;
  gap: 2px;
}

.audio-settings-heading small {
  color: #748078;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.audio-settings-heading strong {
  font-size: 16px;
}

.audio-mute-toggle {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid #d8e2d4;
  border-radius: 9px;
  color: #46554a;
  background: #f4f7f1;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.audio-mute-toggle.is-muted {
  color: #a13f4c;
  border-color: #e8c1c7;
  background: #fff0f2;
}

.audio-range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 12px;
  padding: 7px 0;
  color: #425047;
  font-size: 11px;
  font-weight: 800;
}

.audio-range-row output {
  min-width: 34px;
  color: #627069;
  font-size: 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.audio-range-row input {
  grid-column: 1 / -1;
  width: 100%;
  height: 5px;
  margin: 2px 0 0;
  accent-color: #4d8148;
  cursor: pointer;
}

.world-status-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #31744a;
  background: #e9f2e4;
}

.world-status-icon .icon {
  width: 18px;
  height: 18px;
}

.world-status-copy {
  min-width: 0;
  display: grid;
  line-height: 1.05;
}

.world-status-copy strong {
  font-size: 12px;
  font-weight: 900;
}

.world-status-copy > span {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-toggle {
  position: relative;
  border: 1px solid rgba(106, 138, 100, 0.18);
  background: rgba(255, 254, 249, 0.95);
  box-shadow: 0 8px 24px rgba(52, 88, 56, 0.12);
}

.workshop-toggle {
  position: relative;
}

.workshop-toggle.is-active {
  color: #714b2d;
  border-color: #c9a57f;
  background: #fff8ed;
}

.wood-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fffef9;
  border-radius: 999px;
  color: #fff;
  background: #8b5e34;
  font-size: 10px;
  font-weight: 900;
}

.journal-toggle.is-active {
  color: #185f43;
  border-color: rgba(69, 133, 92, 0.42);
  background: rgba(242, 255, 244, 0.96);
}

.journal-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fffef9;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.presence {
  min-width: 82px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: var(--radius-m);
  color: var(--green-strong);
  font-weight: 800;
}

.journal-panel {
  position: fixed;
  z-index: 42;
  top: max(82px, calc(env(safe-area-inset-top) + 70px));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 32px));
  overflow: auto;
  padding: 20px;
  border: 1px solid #cbd7c7;
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 24px 60px rgba(31, 58, 35, 0.25);
}

.weekly-quests-panel {
  position: fixed;
  z-index: 49;
  top: max(82px, calc(env(safe-area-inset-top) + 70px));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 470px;
  overflow: auto;
  padding: 18px;
  border: 1px solid #c9d8c5;
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 24px 64px rgba(35, 63, 38, 0.24);
}

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

.achievements-panel {
  position: fixed;
  z-index: 49;
  top: max(82px, calc(env(safe-area-inset-top) + 70px));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 470px;
  overflow: auto;
  padding: 18px;
  border: 1px solid #ddd3b4;
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 24px 64px rgba(62, 51, 26, 0.24);
}

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

.weekly-quests-header,
.achievements-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce5d9;
}

.weekly-quests-title-mark,
.achievements-title-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #315f3a;
  background: #e7f1e4;
}

.achievements-title-mark {
  color: #8a6920;
  background: #f7eed1;
}

.weekly-quests-header .eyebrow,
.achievements-header .eyebrow {
  margin: 0 0 3px;
  color: #5b765d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.achievements-header .eyebrow {
  color: #826d39;
}

.weekly-quests-header h2,
.achievements-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.quest-period {
  padding: 16px 0 12px;
}

.quest-period + .quest-period {
  margin-top: 4px;
  border-top: 1px solid #dce5d9;
}

.quest-period-header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.quest-period-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #8a6920;
  background: #faf0ce;
}

.quest-period.is-weekly .quest-period-mark {
  color: #315f3a;
  background: #e7f1e4;
}

.quest-period.is-goose .quest-period-mark {
  color: #486746;
  background: #e5efe1;
}

.quest-period-mark .icon {
  width: 18px;
  height: 18px;
}

.quest-period-header small {
  display: block;
  margin-bottom: 2px;
  color: #8b7950;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.quest-period.is-weekly .quest-period-header small {
  color: #5b765d;
}

.quest-period.is-goose .quest-period-header small {
  color: #61795e;
}

.quest-period-header h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
}

.weekly-quests-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 11px 18px;
  align-items: center;
  margin: 10px 0 7px;
  padding: 12px 13px;
  border: 1px solid #d5e0d1;
  border-radius: 14px;
  background: #f3f7ef;
}

.quest-period.is-daily .weekly-quests-summary {
  border-color: #e5d8ad;
  background: #fbf7e9;
}

.quest-period.is-daily .weekly-quests-summary-track {
  background: #ece3c5;
}

.quest-period.is-daily .weekly-quests-summary-track i {
  background: #b18731;
}

.weekly-quests-summary-score,
.weekly-quests-summary-time {
  min-width: 0;
  display: flex;
  align-items: center;
}

.weekly-quests-summary-score {
  gap: 7px;
}

.weekly-quests-summary-score strong {
  font-size: 20px;
  line-height: 1;
}

.weekly-quests-summary-score small,
.weekly-quests-summary-time small {
  color: #748077;
  font-size: 10px;
  font-weight: 800;
}

.weekly-quests-summary-time {
  gap: 7px;
  color: #48644d;
}

.weekly-quests-summary-time .icon {
  width: 18px;
  height: 18px;
}

.weekly-quests-summary-time > span {
  display: grid;
  gap: 2px;
  text-align: right;
}

.weekly-quests-summary-time strong {
  color: #2d4533;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.weekly-quests-summary-track {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8dc;
}

.weekly-quests-summary-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #4e8a56;
  transition: width 420ms ease;
}

.weekly-quests-list {
  display: grid;
}

.weekly-quest {
  --quest-color: #4f7e58;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px 11px;
  align-items: start;
  padding: 14px 2px;
  border-bottom: 1px solid #e1e7de;
}

.weekly-quest:last-child {
  border-bottom: 0;
}

.weekly-quest-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--quest-color);
  background: color-mix(in srgb, var(--quest-color) 11%, #fff);
}

.weekly-quest-mark .icon {
  width: 19px;
  height: 19px;
}

.weekly-quest-copy {
  min-width: 0;
}

.weekly-quest-copy small {
  display: block;
  margin-bottom: 3px;
  color: var(--quest-color);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.weekly-quest-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.18;
}

.weekly-quest-copy p {
  margin: 5px 0 0;
  color: #66716a;
  font-size: 12px;
  line-height: 1.35;
}

.weekly-quest-reward {
  min-width: 48px;
  display: grid;
  justify-items: end;
  gap: 2px;
  color: #7c6327;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.weekly-quest-reward .icon {
  width: 16px;
  height: 16px;
}

.weekly-quest-progress {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.weekly-quest-progress > span:first-child {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eae1;
}

.weekly-quest-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--quest-color);
  transition: width 420ms ease;
}

.weekly-quest-progress b {
  min-width: 64px;
  color: #536158;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.weekly-quest.is-complete {
  --quest-color: #8b6d20;
}

.weekly-quest.is-complete .weekly-quest-copy strong {
  color: #6d581f;
}

.weekly-quest.is-complete .weekly-quest-progress b::before {
  content: "Готово · ";
}

.weekly-quests-footer {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid #e2dfcf;
  border-radius: 14px;
  color: #6d6650;
  background: #faf8ed;
  font-size: 11px;
  line-height: 1.4;
}

.weekly-quests-footer .icon {
  width: 18px;
  height: 18px;
  color: #9a7728;
}

.remote-goose-quests {
  display: grid;
  margin-top: 9px;
}

.remote-goose-quest {
  --goose-color: #547b50;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px 11px;
  align-items: start;
  padding: 13px 2px;
  border-bottom: 1px solid #e0e7dc;
}

.remote-goose-quest:last-child {
  border-bottom: 0;
}

.remote-goose-quest.is-ready {
  --goose-color: #a47619;
}

.remote-goose-quest-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--goose-color);
  background: color-mix(in srgb, var(--goose-color) 11%, #fff);
}

.remote-goose-quest-mark .icon,
.remote-goose-quest-reward .icon {
  width: 18px;
  height: 18px;
}

.remote-goose-quest-copy {
  min-width: 0;
}

.remote-goose-quest-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.remote-goose-quest-copy p {
  margin: 4px 0 0;
  color: #68736a;
  font-size: 11px;
  line-height: 1.35;
}

.remote-goose-quest-reward {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #80621e;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.remote-goose-quest-progress {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.remote-goose-quest-progress > span {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e9df;
}

.remote-goose-quest-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--goose-color);
  transition: width 420ms ease;
}

.remote-goose-quest-progress b {
  max-width: 190px;
  color: var(--goose-color);
  font-size: 10px;
  line-height: 1.25;
  text-align: right;
}

.remote-goose-empty,
.remote-goose-note {
  margin: 9px 0 0;
  color: #6b756b;
  font-size: 11px;
  line-height: 1.42;
}

.remote-goose-empty {
  padding: 11px 12px;
  border: 1px dashed #cfdacb;
  border-radius: 12px;
  background: #f7faf5;
}

.remote-goose-note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px 11px;
  border: 1px solid #dde5d9;
  border-radius: 12px;
  background: #f5f8f2;
}

.remote-goose-note .icon {
  width: 17px;
  height: 17px;
  color: #547b50;
}

.achievements-summary {
  display: grid;
  gap: 9px;
  margin: 14px 0 10px;
  padding: 13px 14px;
  border: 1px solid #e1d7b8;
  border-radius: 14px;
  background: #fbf8ec;
}

.achievements-summary > span:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.achievements-summary small {
  color: #81785f;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.achievements-summary strong {
  color: #443b28;
  font-size: 21px;
  line-height: 1;
}

.achievements-summary strong i {
  color: #887d64;
  font-size: 12px;
  font-style: normal;
}

.achievements-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e0c6;
}

.achievements-progress-track > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #a77b22;
  transition: width 420ms ease;
}

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

.achievements-footer {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #e4dcc5;
  border-radius: 14px;
  color: #70664d;
  background: #faf7ed;
  font-size: 11px;
  line-height: 1.4;
}

.achievements-footer .icon {
  width: 18px;
  height: 18px;
  color: #9a7728;
}

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

.journal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid #dce4d9;
}

.journal-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.panel-close {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #ccd7c9;
  border-radius: 14px;
  color: #4a564d;
  background: #f2f5ef;
  cursor: pointer;
}

.panel-close:hover {
  color: #fff;
  background: var(--green);
}

.crafting-panel {
  position: fixed;
  z-index: 47;
  top: max(82px, calc(env(safe-area-inset-top) + 70px));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(460px, calc(100vw - 32px));
  overflow: auto;
  padding: 18px;
  border: 1px solid #d6c5b3;
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 24px 64px rgba(68, 47, 29, 0.24);
}

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

.decor-garden-panel {
  position: fixed;
  z-index: 47;
  top: max(82px, calc(env(safe-area-inset-top) + 70px));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(460px, calc(100vw - 32px));
  overflow: auto;
  padding: 18px;
  border: 1px solid #bfd4b8;
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 24px 64px rgba(39, 68, 35, 0.24);
}

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

.decor-garden-toggle {
  color: #4f7c48;
}

.decor-garden-toggle.is-active {
  color: #fffef8;
  background: #4f824b;
}

.decor-garden-header {
  border-bottom-color: #d9e5d4;
}

.decor-garden-header .crafting-title-mark {
  color: #4b7c43;
  background: #e9f3e4;
}

.garden-ledger {
  display: grid;
  grid-template-columns: 42px repeat(2, minmax(0, 1fr));
  align-items: stretch;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #d3dfce;
  border-radius: 14px;
  background: #f9fcf6;
}

.garden-ledger-icon {
  display: grid;
  place-items: center;
  color: #8b6b18;
  background: #f5edc9;
}

.garden-ledger > div {
  min-width: 0;
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px 11px;
  border-left: 1px solid #dce6d8;
}

.garden-ledger span {
  color: #71806c;
  font-size: 10px;
  font-weight: 750;
}

.garden-ledger strong {
  font-size: 20px;
  line-height: 1;
}

.decor-garden-note {
  border-left-color: #6d9a5e;
  color: #53634e;
  background: #f0f6ec;
}

.decor-garden-note .icon {
  color: #56804d;
}

.blueprint-card.is-garden:hover {
  border-color: #7da771;
  background: #f7fcf4;
}

.blueprint-card.is-garden.is-selected {
  border-color: #5d8b54;
  background: #f0f8ec;
  box-shadow: inset 0 0 0 1px #5d8b54;
}

.blueprint-card.is-garden .blueprint-card-icon {
  color: #4f8248;
  background: #e8f3e3;
}

.blueprint-card.is-garden {
  grid-template-columns: 34px minmax(0, 1fr);
}

.blueprint-card.is-garden .blueprint-cost {
  display: none;
}

.decor-garden-placement {
  border-top-color: #d8e4d3;
  background: #fffef9;
}

.decor-garden-placement .crafting-build {
  border-color: #426f3d;
  background: #51844a;
}

.decor-garden-placement .crafting-build:hover {
  background: #426f3d;
}

.crafting-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e7ddd2;
}

.crafting-title-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #744a27;
  background: #f4e9d9;
}

.crafting-header .eyebrow,
.blueprint-section .eyebrow {
  margin: 0 0 3px;
  color: #806143;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.crafting-header h2,
.blueprint-section h3 {
  margin: 0;
  line-height: 1.05;
}

.crafting-header h2 {
  font-size: 24px;
}

.wood-ledger {
  display: grid;
  grid-template-columns: 42px repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #dfd2c3;
  border-radius: 14px;
  background: #fffaf2;
}

.wood-ledger-icon {
  display: grid;
  place-items: center;
  color: #8b5e34;
  background: #f2e5d2;
}

.wood-ledger > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 62px;
  padding: 9px 10px;
  border-left: 1px solid #e6dacd;
}

.wood-ledger span {
  color: #7b7168;
  font-size: 10px;
  font-weight: 750;
}

.wood-ledger strong {
  overflow: hidden;
  font-size: 20px;
  line-height: 1;
  text-overflow: ellipsis;
}

.crafting-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 10px 11px;
  border-left: 3px solid #a87442;
  color: #62594f;
  background: #f7f1e8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.crafting-note .icon {
  width: 19px;
  height: 19px;
  color: #885a2e;
}

.blueprint-section {
  margin-top: 14px;
}

.blueprint-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.blueprint-section h3 {
  font-size: 18px;
}

.blueprint-section > header > span {
  color: #786f66;
  font-size: 11px;
  font-weight: 800;
}

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

.blueprint-card {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  gap: 3px 8px;
  padding: 11px;
  border: 1px solid #ddd4ca;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.blueprint-card:hover {
  border-color: #ad835d;
  background: #fffbf5;
  transform: translateY(-1px);
}

.blueprint-card.is-selected {
  border-color: #8b5e34;
  box-shadow: inset 0 0 0 1px #8b5e34;
  background: #fff8ee;
}

.blueprint-card:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.blueprint-card-icon {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-s);
  color: #80552f;
  background: #f3e8da;
}

.blueprint-card-icon .icon {
  width: 18px;
  height: 18px;
}

.blueprint-card strong,
.blueprint-card small,
.blueprint-card span {
  min-width: 0;
}

.blueprint-card strong {
  align-self: center;
  font-size: 13px;
  line-height: 1.18;
}

.blueprint-card small {
  grid-column: 2 / -1;
  color: #706a64;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.blueprint-card.is-decorative {
  min-height: 138px;
}

.blueprint-effect {
  grid-column: 2 / -1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin-top: 2px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #47683f;
  background: #edf4e9;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
}

.blueprint-effect .icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.blueprint-effect span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blueprint-cost {
  align-self: center;
  color: #79502d;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.blueprint-card-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid #ece5dd;
  color: #847a70;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.blueprint-card-status b {
  color: #2f6740;
}

.blueprint-card-status.is-insufficient b {
  color: #a54d3e;
}

.crafting-placement {
  position: sticky;
  bottom: -18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px auto 40px;
  align-items: center;
  gap: 8px;
  margin: 14px -18px -18px;
  padding: 11px 18px max(11px, env(safe-area-inset-bottom));
  border-top: 1px solid #dfd3c7;
  background: #fffef9;
}

.crafting-placement[hidden] {
  display: none;
}

.crafting-placement > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.crafting-placement > div span {
  color: #7b7168;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.crafting-placement > div strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crafting-placement button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 14px;
  cursor: pointer;
}

.crafting-rotate,
.crafting-cancel {
  width: 40px;
  padding: 0;
  border: 1px solid #d6c9bc;
  color: #715b47;
  background: #f5efe7;
}

.crafting-build {
  padding: 0 14px;
  border: 1px solid #70471f;
  color: #fff;
  background: #8b5e34;
  font-weight: 850;
}

.crafting-build:hover {
  background: #70471f;
}

.crafting-build:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.inventory-panel {
  position: fixed;
  z-index: 48;
  top: max(82px, calc(env(safe-area-inset-top) + 70px));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(430px, calc(100vw - 32px));
  overflow: auto;
  padding: 18px;
  border: 1px solid #cbd8c3;
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 24px 64px rgba(39, 68, 35, 0.24);
}

.inventory-panel[hidden],
.garden-panel[hidden],
.structure-editor[hidden] {
  display: none;
}

.inventory-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce5d7;
}

.inventory-title-mark,
.garden-panel-mark,
.structure-editor-mark {
  display: grid;
  place-items: center;
  color: #477442;
  background: #eaf3e4;
}

.inventory-title-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.inventory-header .eyebrow,
.inventory-section .eyebrow {
  margin: 0 0 3px;
  color: #54764e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-header h2,
.inventory-section h3 {
  margin: 0;
}

.inventory-header h2 {
  font-size: 24px;
  line-height: 1.05;
}

.progress-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #d8dfc5;
  border-radius: 14px;
  background: #fbf9ea;
}

.progress-card-level {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-height: 84px;
  color: #775e25;
  background: #f1e8bd;
}

.progress-card-level small,
.progress-card-copy small,
.hunger-card small {
  color: #766f5f;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.progress-card-level strong {
  font-size: 31px;
  line-height: 1;
}

.progress-card-copy {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 10px 12px 10px 0;
}

.progress-card-copy > span:first-child {
  color: #4c554d;
  font-size: 12px;
}

.progress-card-track,
.hunger-card-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e9dc;
}

.progress-card-track i,
.hunger-card-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #b08b36;
  transition: width 400ms ease;
}

.hunger-card {
  display: grid;
  grid-template-columns: 38px auto minmax(80px, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 10px;
  border: 1px solid #e5d7c9;
  border-radius: 14px;
  background: #fff9f2;
}

.hunger-card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-s);
  color: #af653c;
  background: #f8e8da;
}

.hunger-card > span:nth-child(2) {
  display: grid;
}

.hunger-card > span:nth-child(2) strong {
  font-size: 19px;
}

.hunger-card-track i {
  background: #c27b3b;
}

.hunger-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: #6d6f66;
  font-size: 10px;
  line-height: 1.4;
}

.inventory-section {
  margin-top: 14px;
}

.inventory-section > header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.inventory-section > header > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-s);
  color: #4f7747;
  background: #edf4e7;
}

.inventory-section > header .icon {
  width: 18px;
  height: 18px;
}

.inventory-section h3 {
  font-size: 16px;
}

.inventory-list {
  display: grid;
  gap: 5px;
}

.inventory-list.is-seeds {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 5px 7px;
  border: 1px solid #e0e6dc;
  border-radius: 14px;
  background: #fff;
}

.inventory-item.is-seed {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 40px;
}

.inventory-item.is-fish {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.inventory-item-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-s);
  color: var(--item-color, #5c874d);
  background: color-mix(in srgb, var(--item-color, #5c874d) 14%, #fff);
}

.inventory-item.is-seed .inventory-item-mark {
  width: 30px;
  height: 30px;
}

.inventory-item-mark .icon {
  width: 17px;
  height: 17px;
}

.inventory-item > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.inventory-item strong,
.inventory-item > span:nth-child(2):not(:has(strong)) {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-item small {
  color: #758078;
  font-size: 9px;
}

.inventory-item > b {
  font-size: 12px;
}

.inventory-eat {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #e4c8b7;
  border-radius: var(--radius-s);
  color: #a6533d;
  background: #fff6ef;
  cursor: pointer;
}

.inventory-eat:hover {
  color: #fff;
  background: #b85f42;
}

.inventory-eat .icon {
  width: 16px;
  height: 16px;
}

.inventory-empty {
  margin: 0;
  padding: 11px;
  border: 1px dashed #ced8ca;
  border-radius: 14px;
  color: #748077;
  background: #f8faf6;
  font-size: 10px;
  line-height: 1.4;
}

.garden-focus {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid #477843;
  border-radius: 14px;
  color: #fff;
  background: #56834a;
  font-weight: 850;
  cursor: pointer;
}

.garden-focus:hover {
  background: #3f6f3d;
}

.garden-panel {
  position: fixed;
  z-index: 44;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px));
  width: min(360px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid #c9d6bc;
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 18px 48px rgba(42, 65, 34, 0.23);
}

.garden-panel > header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 9px;
}

.garden-panel-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.garden-panel > header > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.garden-panel > header small {
  color: #6f7c69;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.garden-panel > header strong {
  font-size: 17px;
}

.garden-panel > p {
  margin: 12px 0 10px;
  color: #606a60;
  font-size: 12px;
  line-height: 1.45;
}

.garden-crop-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.garden-crop-picker[hidden] {
  display: none;
}

.garden-crop-picker button,
.garden-actions button {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #ccd8c3;
  border-radius: 14px;
  color: #40543d;
  background: #f5f8f1;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.garden-crop-picker button:hover,
.garden-actions button:hover {
  border-color: #729060;
  background: #edf4e8;
}

.garden-crop-picker button:disabled,
.garden-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.garden-actions {
  display: grid;
}

.garden-growth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d6dfcd;
  border-radius: 14px;
  background: #f6f8f3;
}

.garden-growth > span {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e9dd;
}

.garden-growth i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6c944c;
}

.garden-growth strong {
  font-size: 11px;
}

.structure-editor {
  position: fixed;
  z-index: 43;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(96px, calc(env(safe-area-inset-bottom) + 96px));
  width: min(360px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #d9c7b6;
  border-radius: var(--radius-m);
  background: #fffef9;
  box-shadow: 0 18px 48px rgba(68, 47, 29, 0.24);
}

.structure-editor-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #79512f;
  background: #f3e8da;
}

.structure-editor > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.structure-editor small {
  color: #817367;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.structure-editor strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#structure-delete {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #d6a79d;
  border-radius: 14px;
  color: #9b4438;
  background: #fff3ef;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

#structure-delete:hover {
  color: #fff;
  background: #ac4d3f;
}

.journal-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 16px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.journal-progress strong {
  color: var(--ink);
  font-size: 20px;
}

.journal-progress-track {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebe3;
}

.journal-progress-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--green);
  transition: width 320ms ease;
}

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

.journal-entry {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 1px solid #dce4d9;
  border-radius: 14px;
  background: #f8faf6;
}

.journal-entry.is-locked {
  color: #8a948c;
  background: #f4f6f2;
}

.journal-entry-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--green);
  background: #e7f1e4;
}

.journal-entry.is-locked .journal-entry-icon {
  color: #879189;
  background: #e8ece6;
}

.journal-entry-icon .icon {
  width: 19px;
  height: 19px;
}

.journal-entry-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.journal-entry-copy strong {
  font-size: 13px;
}

.journal-entry-copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ritual-status,
.campfire-panel {
  position: fixed;
  z-index: 19;
  display: grid;
  align-items: center;
  border: 1px solid rgba(62, 84, 60, 0.24);
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 12px 34px rgba(39, 67, 42, 0.18);
}

.ritual-status[hidden],
.campfire-panel[hidden] {
  display: none;
}

.ritual-status > span,
.campfire-panel > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ritual-status strong,
.campfire-panel strong {
  font-size: 13px;
  line-height: 1.2;
}

.ritual-status span span,
.campfire-panel span span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ritual-status {
  top: max(92px, calc(env(safe-area-inset-top) + 80px));
  left: max(16px, env(safe-area-inset-left));
  width: min(310px, calc(100vw - 32px));
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-left: 4px solid #b98d2f;
}

.ritual-status > .icon {
  color: #aa7d20;
}

.campfire-panel {
  top: max(92px, calc(env(safe-area-inset-top) + 80px));
  right: max(16px, env(safe-area-inset-right));
  width: min(330px, calc(100vw - 32px));
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-left: 4px solid #b5633f;
}

.campfire-panel > .icon {
  color: #b5633f;
}

.campfire-panel small {
  color: #9c583a;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.presence .icon {
  width: 19px;
  height: 19px;
}

.presence-dot,
.entry-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #74a86b;
  box-shadow: 0 0 0 4px rgba(116, 168, 107, 0.16);
}

.meadow-app > .meadow-header,
.meadow-app > aside,
.meadow-app > section:not(.entry-screen),
.meadow-app > .meadow-toast {
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear;
}

.meadow-app.is-entry-mode > .meadow-header,
.meadow-app.is-entry-mode > aside,
.meadow-app.is-entry-mode > section:not(.entry-screen),
.meadow-app.is-entry-mode > .meadow-toast {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
}

.entry-screen {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 52%, rgba(24, 55, 29, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(240, 249, 233, 0.03), rgba(29, 60, 34, 0.08));
  transition:
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 480ms;
}

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

.entry-screen.is-hidden .entry-panel {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
}

.entry-panel {
  position: relative;
  width: min(570px, 100%);
  padding: 28px 30px 24px;
  overflow: hidden;
  border: 1px solid rgba(78, 111, 73, 0.2);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.97);
  transform: none;
  animation: entry-panel-in 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms ease;
}

.entry-panel::before {
  content: none;
}

.entry-panel.is-success {
  border-color: rgba(62, 142, 87, 0.38);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.entry-heading {
  margin-bottom: 21px;
}

.entry-panel h1 {
  margin: 0;
  max-width: 100%;
  color: #233129;
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.04;
}

.entry-heading p {
  margin: 9px 0 0;
  color: #657268;
  font-size: 15px;
  line-height: 1.5;
}

.entry-field > label {
  display: block;
  margin-bottom: 9px;
  color: #3b463e;
  font-size: 14px;
  font-weight: 850;
}

.entry-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.entry-field {
  min-width: 0;
}

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

.entry-controls input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid #cbd8c4;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.entry-controls input::placeholder {
  color: #909a91;
}

.entry-controls input:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(39, 107, 60, 0.12);
}

.entry-password-control {
  position: relative;
}

.entry-password-control input,
.entry-code-control input {
  padding-right: 48px;
  padding-left: 44px;
  font-size: 14px;
}

.entry-code-control {
  position: relative;
}

.entry-code-control input {
  padding-right: 18px;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-password-key,
.entry-code-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  color: #6f7d70;
  pointer-events: none;
  transform: translateY(-50%);
}

.entry-password-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 7px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 11px;
  color: #66746a;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, background 160ms ease;
}

.entry-password-toggle:hover {
  color: var(--green-strong);
  background: #eef5eb;
}

.entry-password-toggle .icon {
  width: 18px;
  height: 18px;
}

.entry-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.entry-alternate-actions {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  margin-top: 10px;
}

.entry-alternate-actions button {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 2px 0;
  border: 0;
  color: #52695a;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease;
}

.entry-alternate-actions button:hover {
  color: var(--green-strong);
}

.entry-alternate-actions button:disabled {
  color: #929d94;
  cursor: wait;
}

.entry-alternate-actions button[hidden] {
  display: none;
}

.entry-alternate-actions .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.entry-remember {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #536057;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
  cursor: pointer;
}

.entry-remember input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--green);
}

#entry-submit {
  min-width: 214px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 9px 22px rgba(49, 119, 71, 0.26);
  color: #fff;
  background: var(--green);
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

#entry-submit:hover {
  background: var(--green-strong);
  box-shadow: 0 12px 26px rgba(49, 119, 71, 0.32);
  transform: translateY(-1px);
}

#entry-submit:active {
  box-shadow: 0 5px 14px rgba(49, 119, 71, 0.24);
  transform: translateY(1px);
}

#entry-submit:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

#entry-submit.is-success {
  cursor: default;
  background: #337e4b;
}

.entry-access-help {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  margin: 11px 0 0;
  color: #6d796f;
  font-size: 12px;
  line-height: 1.5;
}

.entry-access-help > span[hidden] {
  display: none;
}

.entry-access-help > .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: #4f8058;
}

.entry-access-help a {
  color: var(--green-strong);
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.entry-feedback {
  min-height: 20px;
  margin: 9px 2px 0;
  color: #a63b32;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.entry-feedback[hidden] {
  display: none;
}

.entry-status {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.entry-status[data-state="checking"] .entry-status-dot {
  background: var(--yellow);
  animation: status-pulse 1.3s ease-in-out infinite;
}

.entry-status[data-state="crowded"] {
  color: #866515;
}

.entry-status[data-state="crowded"] .entry-status-dot {
  background: #d7a72d;
  box-shadow: 0 0 0 4px rgba(215, 167, 45, 0.15);
}

.entry-status[data-state="closed"] {
  color: #995048;
}

.entry-status[data-state="closed"] .entry-status-dot {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(229, 109, 85, 0.16);
}

.entry-status[data-state="success"] {
  color: #2e7245;
}

.entry-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(106, 138, 100, 0.16);
  color: #7b867d;
  font-size: 12px;
  line-height: 1.58;
}

#entry-note-compact {
  display: none;
}

.game-hud[hidden] {
  display: none;
}

.meadow-minimap {
  position: fixed;
  z-index: 17;
  top: max(88px, calc(env(safe-area-inset-top) + 88px));
  left: max(16px, env(safe-area-inset-left));
  width: 224px;
  padding: 10px;
  border: 1px solid rgba(70, 103, 66, 0.2);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 253, 246, 0.94);
  box-shadow: 0 12px 30px rgba(44, 77, 46, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  transform-origin: top left;
  transition:
    width 220ms ease,
    box-shadow 220ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s linear 0s;
}

.meadow-minimap.is-expanded {
  width: 332px;
  box-shadow: 0 18px 42px rgba(36, 70, 41, 0.2);
}

.meadow-minimap.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.94);
  transition:
    width 220ms ease,
    box-shadow 220ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms;
}

.meadow-minimap-header {
  min-height: 38px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 1px 8px;
}

.meadow-minimap-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.meadow-minimap-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(62, 142, 87, 0.2);
  border-radius: 12px;
  color: var(--green-strong);
  background: #edf6e6;
}

.meadow-minimap-mark .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.meadow-minimap-heading {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.meadow-minimap-heading small,
.meadow-minimap-footer small {
  color: #7b887d;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.meadow-minimap-heading strong {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

#meadow-minimap-expand,
#meadow-minimap-hide {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #68766b;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

#meadow-minimap-expand:hover,
#meadow-minimap-expand:focus-visible,
#meadow-minimap-hide:hover,
#meadow-minimap-hide:focus-visible {
  color: var(--green-strong);
  background: #edf6e6;
}

#meadow-minimap-expand:focus-visible,
#meadow-minimap-hide:focus-visible {
  outline: 2px solid rgba(39, 107, 60, 0.26);
  outline-offset: 2px;
}

#meadow-minimap-expand .icon,
#meadow-minimap-hide .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.meadow-minimap-show {
  position: fixed;
  z-index: 17;
  top: max(88px, calc(env(safe-area-inset-top) + 88px));
  left: max(16px, env(safe-area-inset-left));
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(70, 103, 66, 0.22);
  border-radius: 16px;
  color: var(--green-strong);
  background: rgba(255, 253, 246, 0.96);
  box-shadow: 0 10px 26px rgba(44, 77, 46, 0.14);
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.92);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms;
}

.meadow-minimap-show.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.meadow-minimap-show:hover,
.meadow-minimap-show:focus-visible {
  color: #fff;
  background: var(--green-strong);
}

.meadow-minimap-show:focus-visible {
  outline: 3px solid rgba(39, 107, 60, 0.2);
  outline-offset: 3px;
}

.meadow-minimap-show .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.meadow-minimap-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(72, 103, 68, 0.2);
  border-radius: 15px;
  background: #dcebc8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 0 0 5px rgba(255, 253, 246, 0.4);
}

#meadow-minimap-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.meadow-minimap-footer {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 34px;
  align-items: center;
  gap: 7px;
  padding: 8px 2px 0;
}

.meadow-minimap-coordinate,
.meadow-minimap-bearing {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.meadow-minimap-coordinate strong {
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meadow-minimap-bearing strong {
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

.meadow-minimap-players {
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(62, 142, 87, 0.18);
  border-radius: 10px;
  color: #42644b;
  background: #edf6e6;
  font-size: 11px;
  font-weight: 900;
}

.meadow-minimap-players i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4b8b60;
  box-shadow: 0 0 0 3px rgba(75, 139, 96, 0.12);
}

.meadow-minimap.is-expanded .meadow-minimap-coordinate strong {
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .meadow-minimap {
    transition: none;
  }
}

.poi-action {
  --poi-accent: #276b3c;
  position: fixed;
  z-index: 18;
  left: 50%;
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 88px));
  width: min(410px, calc(100vw - 32px));
  height: 64px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  padding: 8px 12px 8px 10px;
  border: 1px solid rgba(60, 85, 58, 0.14);
  border-radius: 26px;
  color: var(--ink);
  background: rgba(255, 254, 249, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 12px 30px rgba(34, 65, 38, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  text-align: left;
  cursor: pointer;
  transform: translateX(-50%);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.poi-action[hidden] {
  display: none;
}

.poi-action:not([hidden]) {
  animation: poi-action-in 190ms ease-out;
}

.poi-action:hover {
  border-color: color-mix(in srgb, var(--poi-accent) 46%, #d4ddcf);
  box-shadow:
    0 17px 40px rgba(34, 65, 38, 0.21),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: translate(-50%, -2px);
}

.poi-action:active {
  transform: translate(-50%, 0);
}

.poi-action:disabled {
  cursor: wait;
  opacity: 0.76;
  transform: translateX(-50%);
}

.poi-action-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fffdf6;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--poi-accent) 82%, #ffffff),
    var(--poi-accent)
  );
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.poi-action-icon .icon {
  width: 21px;
  height: 21px;
}

.poi-action-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.poi-action-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.poi-action-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.poi-action kbd {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #c7d2c3;
  border-bottom-width: 3px;
  border-radius: var(--radius-s);
  color: #445147;
  background: #f5f7f2;
  font: 850 13px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@keyframes poi-action-in {
  from {
    opacity: 0;
    transform: translate(-50%, 6px);
  }

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

.balloon-flight-panel {
  position: fixed;
  z-index: 22;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  width: min(340px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(104, 66, 40, 0.28);
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 18px 46px rgba(62, 45, 31, 0.24);
}

.balloon-flight-panel[hidden],
.balloon-pilot-controls[hidden] {
  display: none;
}

.balloon-flight-panel:not([hidden]) {
  animation: balloon-panel-in 220ms ease-out;
}

.balloon-flight-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #eadfd3;
}

.balloon-flight-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #a53c37;
  background: #f9e7df;
}

.balloon-flight-mark .icon {
  width: 20px;
  height: 20px;
}

.balloon-flight-heading {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.balloon-flight-heading small {
  overflow: hidden;
  color: #9e493f;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.balloon-flight-heading strong {
  font-size: 16px;
  line-height: 1.1;
}

.balloon-flight-role {
  padding: 5px 8px;
  border: 1px solid #e0c4b4;
  border-radius: var(--radius-s);
  color: #774534;
  background: #fff7ed;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.balloon-flight-role.is-pilot {
  color: #fff;
  border-color: #9e3c36;
  background: #a9433d;
}

.balloon-flight-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #eadfd3;
}

.balloon-flight-metrics > span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.balloon-flight-metrics > span + span {
  border-left: 1px solid #eadfd3;
}

.balloon-flight-metrics small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.balloon-flight-metrics strong {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.balloon-pilot-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eadfd3;
}

.balloon-pilot-controls button,
.balloon-flight-footer button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #d8c5b5;
  border-radius: 14px;
  color: #6d4833;
  background: #f8f1e8;
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.balloon-pilot-controls button:hover,
.balloon-flight-footer button:hover {
  border-color: #b37854;
  background: #fff8ef;
  transform: translateY(-1px);
}

.balloon-pilot-controls button:disabled,
.balloon-flight-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.balloon-pilot-controls .balloon-primary {
  color: #fff;
  border-color: #9f3c37;
  background: #ad443e;
}

.balloon-pilot-controls .balloon-primary:hover {
  background: #92352f;
}

.balloon-arrow-up {
  transform: rotate(-90deg);
}

.balloon-arrow-down {
  transform: rotate(90deg);
}

.balloon-flight-footer {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
}

.balloon-flight-footer > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.balloon-flight-footer button {
  min-height: 34px;
  padding: 0 10px;
  color: #7d3732;
  background: #fff3ef;
  font-size: 11px;
}

.balloon-flight-footer .icon {
  width: 16px;
  height: 16px;
}

.meadow-app.is-balloon-passenger .action-cluster,
.meadow-app.is-balloon-passenger .jump-button {
  display: none;
}

@keyframes balloon-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.carry-request-panel,
.carry-status-panel {
  position: fixed;
  z-index: 24;
  display: grid;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(54, 83, 57, 0.24);
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 17px 44px rgba(36, 68, 41, 0.22);
}

.carry-request-panel[hidden],
.carry-status-panel[hidden] {
  display: none;
}

.carry-request-panel:not([hidden]),
.carry-status-panel:not([hidden]) {
  animation: carry-panel-in 210ms ease-out;
}

.carry-request-panel {
  left: 50%;
  bottom: max(94px, calc(env(safe-area-inset-bottom) + 94px));
  width: min(540px, calc(100vw - 32px));
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 10px;
  transform: translateX(-50%);
}

.carry-status-panel {
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(360px, calc(100vw - 36px));
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 10px;
}

.carry-request-panel.is-wheelbarrow,
.carry-status-panel.is-wheelbarrow {
  border-color: rgba(112, 76, 39, 0.3);
  border-top-color: #9a6735;
  box-shadow: 0 17px 44px rgba(83, 55, 27, 0.2);
}

.carry-request-panel.is-wheelbarrow .carry-panel-mark,
.carry-status-panel.is-wheelbarrow .carry-panel-mark {
  color: #81552c;
  background: #f5ead8;
  box-shadow: inset 0 0 0 1px rgba(115, 75, 34, 0.12);
}

.carry-request-panel.is-wheelbarrow .carry-panel-copy small,
.carry-status-panel.is-wheelbarrow .carry-panel-copy small {
  color: #8b6036;
}

.carry-panel-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #29653c;
  background: #eaf3e8;
  box-shadow: inset 0 0 0 1px rgba(39, 83, 45, 0.09);
}

.carry-panel-mark .icon {
  width: 21px;
  height: 21px;
}

.carry-panel-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.carry-panel-copy small {
  color: #4e7959;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.carry-panel-copy strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.carry-request-actions {
  display: flex;
  gap: 7px;
}

.carry-request-actions button,
.carry-status-panel > button {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #cbd8c8;
  border-radius: 14px;
  color: #536158;
  background: #f5f7f2;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.carry-request-actions button:hover,
.carry-status-panel > button:hover {
  border-color: #7ca184;
  background: #eef5eb;
  transform: translateY(-1px);
}

.carry-request-actions .carry-accept {
  color: #fff;
  border-color: #2e6b40;
  background: #337548;
}

.carry-request-actions .carry-accept:hover {
  background: #285f39;
}

.carry-request-actions .icon,
.carry-status-panel > button .icon {
  width: 17px;
  height: 17px;
}

.carry-status-panel > button {
  padding: 0 10px;
  color: #6f3f34;
  border-color: #dfc8bd;
  background: #fff4ee;
}

.meadow-app.is-carry-linked .emote-button:not(.thought-toggle) {
  pointer-events: none;
  opacity: 0.38;
}

.meadow-app.is-being-carried .joystick,
.meadow-app.is-wheelbarrow-passenger .joystick,
.meadow-app.is-being-carried .jump-button,
.meadow-app.is-carrying-player .jump-button,
.meadow-app.is-wheelbarrow-linked .jump-button {
  display: none;
}

@keyframes carry-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.carry-request-panel:not([hidden]) {
  animation-name: carry-request-panel-in;
}

.ball-invite-panel {
  position: fixed;
  z-index: 26;
  left: 50%;
  bottom: max(94px, calc(env(safe-area-inset-bottom) + 94px));
  width: min(540px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid rgba(168, 72, 57, 0.26);
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffdf9;
  box-shadow: 0 17px 44px rgba(93, 44, 36, 0.2);
  transform: translateX(-50%);
}

.ball-invite-panel[hidden],
.ball-game-panel[hidden],
.ball-result[hidden],
.ball-challenge[hidden] {
  display: none;
}

.ball-invite-panel:not([hidden]) {
  animation: carry-request-panel-in 210ms ease-out;
}

.meadow-app.has-stacked-invites .ball-invite-panel {
  bottom: max(174px, calc(env(safe-area-inset-bottom) + 174px));
}

.ball-panel-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #a64035;
  background: #f8e6df;
}

.ball-panel-mark .icon {
  width: 21px;
  height: 21px;
}

.ball-panel-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ball-panel-copy small {
  color: #a35348;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ball-panel-copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ball-invite-actions {
  display: flex;
  gap: 7px;
}

.ball-invite-actions button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #dbcac4;
  border-radius: 14px;
  color: #73534c;
  background: #f8f2ef;
  cursor: pointer;
}

.ball-invite-actions .ball-invite-accept {
  color: #fff;
  border-color: #a84236;
  background: #bf4c3d;
}

.ball-invite-actions .icon {
  width: 17px;
  height: 17px;
}

.ball-game-panel {
  position: fixed;
  z-index: 25;
  top: max(88px, calc(env(safe-area-inset-top) + 76px));
  left: 50%;
  width: min(660px, calc(100vw - 40px));
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto 112px 42px;
  align-items: center;
  gap: 13px;
  padding: 10px 11px 10px 14px;
  border: 1px solid rgba(148, 63, 51, 0.25);
  border-radius: var(--radius-m);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 17px 42px rgba(74, 38, 31, 0.18);
  transform: translateX(-50%);
}

.ball-game-heading {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.ball-game-heading > .icon {
  width: 22px;
  height: 22px;
  color: #bd4a3c;
}

.ball-game-heading > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ball-game-heading small {
  color: #9d675d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ball-game-heading strong {
  font-size: 13px;
}

.ball-game-score {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 14px minmax(72px, 1fr);
  align-items: center;
  gap: 6px;
  text-align: center;
}

.ball-game-score > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ball-game-score small {
  max-width: 105px;
  overflow: hidden;
  color: #6f746f;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ball-game-score strong {
  font-size: 24px;
  line-height: 1;
}

.ball-game-score i {
  color: #b49a92;
  font-style: normal;
  font-weight: 900;
}

.ball-kick,
.ball-stop {
  height: 44px;
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.ball-kick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #a93e31;
  color: #fff;
  background: #bf4c3d;
  transition: transform 140ms ease, background 140ms ease, opacity 140ms ease;
}

.ball-kick:not(:disabled):hover {
  background: #a83d32;
  transform: translateY(-1px);
}

.ball-kick:disabled {
  color: #9a8c87;
  border-color: #dfd4cf;
  background: #eee9e5;
  cursor: default;
}

.ball-kick .icon,
.ball-stop .icon {
  width: 18px;
  height: 18px;
}

.ball-stop {
  width: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #decac3;
  color: #9d493e;
  background: #fff4ef;
}

.ball-result {
  position: fixed;
  z-index: 55;
  top: 50%;
  left: 50%;
  width: min(420px, calc(100vw - 40px));
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px;
  border: 1px solid #d5b1a8;
  border-top: 5px solid #bf4c3d;
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 30px 80px rgba(70, 31, 25, 0.28);
  transform: translate(-50%, -50%);
  animation: ball-result-in 300ms ease-out;
}

.ball-result > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-m);
  color: #af4336;
  background: #f7e4dc;
}

.ball-result p {
  margin: 8px 0 0;
  color: #9e6a61;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ball-result strong {
  font-size: 24px;
  text-align: center;
}

.ball-result small {
  color: #a34337;
  font-size: 20px;
  font-weight: 900;
}

@keyframes ball-result-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px)) scale(0.97);
  }
}

.ball-challenge {
  position: fixed;
  z-index: 21;
  left: 50%;
  bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px));
  min-width: 260px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(169, 62, 49, 0.28);
  border-radius: var(--radius-m);
  color: #88392f;
  background: #fffaf5;
  box-shadow: 0 13px 34px rgba(79, 39, 31, 0.2);
  text-align: left;
  cursor: pointer;
  transform: translateX(-50%);
}

.ball-challenge > .icon {
  width: 23px;
  height: 23px;
}

.ball-challenge > span {
  display: grid;
  gap: 2px;
}

.ball-challenge small {
  color: #9f736b;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.ball-challenge strong {
  font-size: 13px;
}

@keyframes carry-request-panel-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.98);
  }

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

.sr-only {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.action-cluster {
  position: fixed;
  z-index: 17;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
}

.emote-dock {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(106, 138, 100, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: 0 14px 34px rgba(52, 88, 56, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.action-cluster.is-composing .emote-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}

.dance-menu,
.tools-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  width: 292px;
  padding: 7px;
  border: 1px solid rgba(86, 67, 125, 0.24);
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffef9;
  box-shadow:
    0 18px 42px rgba(52, 42, 75, 0.2),
    inset 0 1px 0 #fff;
  transform: translateX(-50%);
}

.dance-menu[hidden],
.tools-menu[hidden] {
  display: none;
}

.dance-menu:not([hidden]),
.tools-menu:not([hidden]) {
  display: grid;
  gap: 3px;
  animation: dance-menu-in 180ms ease-out;
}

.dance-menu-heading,
.tools-menu-heading {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 7px 7px;
  color: #654d91;
  font-size: 13px;
}

.dance-menu-heading > span,
.tools-menu-heading > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eee8f6;
}

.dance-menu-heading .icon,
.tools-menu-heading .icon {
  width: 17px;
  height: 17px;
}

.tools-menu {
  width: 344px;
  border-color: rgba(137, 91, 43, 0.28);
  box-shadow:
    0 18px 42px rgba(67, 48, 30, 0.2),
    inset 0 1px 0 #fff;
}

.tools-menu-heading {
  color: #80552e;
}

.tools-menu-heading > span {
  color: #81552d;
  background: #f3e7d5;
}

.tools-menu > button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 0;
  border-radius: var(--radius-s);
  color: #3f4641;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.tools-menu > button:hover,
.tools-menu > button:focus-visible {
  color: #76502d;
  background: #f7efe3;
  outline: none;
  transform: translateX(2px);
}

.tools-menu > button.is-active {
  color: #71481f;
  background: #f3e4cf;
  box-shadow: inset 3px 0 0 #b67534;
}

.tools-menu > button .icon {
  width: 21px;
  height: 21px;
  justify-self: center;
}

.tools-menu > button > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tools-menu > button strong {
  font-size: 13px;
  font-weight: 850;
}

.tools-menu > button small {
  overflow: hidden;
  color: #7d857e;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-status {
  min-width: 64px;
  padding: 5px 7px;
  border: 1px solid #ddd3c7;
  border-radius: var(--radius-s);
  color: #8a7d70;
  background: #faf7f2;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.tools-menu > button.is-active .tool-status {
  color: #77491f;
  border-color: #d4b28c;
  background: #fff8ed;
}

.emote-dock-divider {
  width: 1px;
  margin: 5px 1px;
  background: #dce3d9;
}

.tools-toggle.is-active {
  color: #885628;
  border-color: #d2ae82;
  background: #f6ead9;
}

.dance-menu > button {
  min-height: 48px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--radius-s);
  color: #3f4641;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.dance-menu > button:hover,
.dance-menu > button:focus-visible {
  color: #4f387b;
  background: #f1edf7;
  transform: translateX(2px);
  outline: none;
}

.dance-menu > button .icon {
  width: 20px;
  height: 20px;
  justify-self: center;
}

.dance-menu > button > span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.dance-menu > button strong,
.dance-menu > button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dance-menu > button strong {
  font-size: 13px;
  font-weight: 850;
}

.dance-menu > button small {
  color: #7d857e;
  font-size: 11px;
  font-weight: 650;
}

@keyframes dance-menu-in {
  from {
    opacity: 0;
    transform: translate(-50%, 7px) scale(0.98);
  }

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

.thought-composer {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  width: min(420px, calc(100vw - 32px));
  grid-template-columns: 34px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(39, 107, 60, 0.32);
  border-top-color: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.98);
  box-shadow:
    0 14px 36px rgba(34, 71, 38, 0.18),
    0 3px 9px rgba(34, 71, 38, 0.1),
    inset 0 1px 0 #fff;
  transform: translateX(-50%);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.action-cluster.is-composing .thought-composer {
  bottom: 0;
}

.thought-composer:focus-within {
  border-color: rgba(39, 107, 60, 0.72);
  box-shadow:
    0 15px 38px rgba(34, 71, 38, 0.2),
    0 0 0 4px rgba(39, 107, 60, 0.1),
    inset 0 1px 0 #fff;
}

.thought-composer[hidden] {
  display: none;
}

.thought-composer:not([hidden]) {
  display: grid;
  animation: thought-composer-in 180ms ease-out;
}

.thought-composer-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #e7f1e4;
  box-shadow: inset 0 0 0 1px rgba(39, 107, 60, 0.08);
}

.thought-composer-mark .icon {
  width: 18px;
  height: 18px;
}

.thought-composer input {
  min-width: 0;
  height: 42px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  outline: none;
}

.thought-composer input::placeholder {
  color: #89958c;
}

.thought-composer input:focus {
  box-shadow: none;
}

.thought-composer button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 82, 40, 0.26);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #398351, #1f6538);
  box-shadow:
    0 5px 13px rgba(25, 86, 47, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.thought-composer button:hover {
  background: linear-gradient(145deg, #2f7847, #185b31);
  box-shadow:
    0 7px 16px rgba(25, 86, 47, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateX(1px) scale(1.03);
}

@keyframes thought-composer-in {
  from {
    opacity: 0;
    transform: translate(-50%, 7px) scale(0.98);
  }

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

.emote-button,
.jump-button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #4a5a4e;
  background: #eef4e8;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.emote-button {
  width: 46px;
  height: 46px;
}

.emote-button:hover {
  box-shadow: 0 6px 16px rgba(52, 88, 56, 0.22);
}

.emote-button:hover,
.emote-button.is-active {
  color: #fff;
  background: var(--green);
  transform: translateY(-2px);
}

.emote-button[data-emote-category="greet"]:hover,
.emote-button[data-emote-category="greet"].is-active {
  background: #4e8a5f;
}

.emote-button[data-emote-category="feel"]:hover,
.emote-button[data-emote-category="feel"].is-active {
  background: #d75b68;
}

.emote-button[data-emote-category="joy"]:hover,
.emote-button[data-emote-category="joy"].is-active {
  color: #392d0a;
  background: var(--yellow);
}

.emote-button[data-emote-category="rest"]:hover,
.emote-button[data-emote-category="rest"].is-active {
  background: #9a7048;
}

.emote-button[data-emote-category="idle"]:hover,
.emote-button[data-emote-category="idle"].is-active {
  background: #4d7f9e;
}

.emote-button[data-emote-category="dance"]:hover,
.emote-button[data-emote-category="dance"].is-active {
  background: #7b62aa;
}

.emote-button[data-emote-category="party"]:hover,
.emote-button[data-emote-category="party"].is-active {
  background: #c94b5f;
}

.emote-button[data-emote-category="sport"]:hover,
.emote-button[data-emote-category="sport"].is-active {
  background: #4c8f86;
}

.thought-toggle:hover,
.thought-toggle.is-active {
  background: #397364;
}

.joystick,
.jump-button {
  display: none;
}

.meadow-toast {
  position: fixed;
  z-index: 30;
  top: 92px;
  left: 50%;
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 20px;
  border: 1px solid rgba(106, 138, 100, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 246, 0.94);
  box-shadow: 0 12px 32px rgba(52, 88, 56, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 750;
  transform: translateX(-50%);
}

.fishing-panel {
  position: fixed;
  z-index: 46;
  top: max(82px, calc(env(safe-area-inset-top) + 70px));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(440px, calc(100vw - 32px));
  overflow: auto;
  padding: 18px;
  border: 1px solid #bdcec7;
  border-radius: var(--radius-m);
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 24px 64px rgba(29, 61, 58, 0.24);
}

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

.fishing-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce6e1;
}

.fishing-title-mark,
.fishing-phase-mark {
  display: grid;
  place-items: center;
  color: #276d75;
  background: #e5f1ef;
}

.fishing-title-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.fishing-header .eyebrow,
.fishing-leaderboard .eyebrow,
.fishing-inventory .eyebrow {
  margin: 0 0 3px;
  color: #47746f;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fishing-header h2,
.fishing-leaderboard h3,
.fishing-inventory h3 {
  margin: 0;
  line-height: 1.05;
}

.fishing-header h2 {
  font-size: 24px;
}

.fishing-game {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  margin-top: 14px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #cadad5;
  border-radius: var(--radius-m);
  background:
    linear-gradient(90deg, #f4faf7 0%, #eef7f4 64%, #e6f2f1 100%);
}

.fishing-game::after {
  position: absolute;
  right: -24px;
  bottom: -38px;
  width: 130px;
  height: 88px;
  border: 12px solid rgba(54, 123, 131, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.fishing-game.is-bite {
  border-color: #d6a749;
  background: #fff8e7;
}

.fishing-game.is-reeling {
  border-color: #4779a6;
  background: #f0f6fb;
}

.fishing-phase-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.fishing-game-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
}

.fishing-game-copy span {
  color: #66766f;
  font-size: 11px;
  font-weight: 800;
}

.fishing-game-copy strong {
  font-size: 15px;
  line-height: 1.25;
}

.fishing-time-track {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(55, 96, 92, 0.12);
}

.fishing-time-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #367b83;
  transition: width 90ms linear, background-color 180ms ease;
}

.fishing-game.is-bite .fishing-time-track span {
  background: #c38a26;
}

.fishing-game.is-reeling .fishing-time-track span {
  background: #3979ae;
}

.fishing-hook {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #bd7e17;
  box-shadow: 0 8px 18px rgba(152, 97, 13, 0.2);
  font-weight: 900;
  cursor: pointer;
  animation: fishing-bite 760ms ease-in-out infinite;
}

.fishing-hook[hidden],
.fishing-reel-controls[hidden],
.fishing-catch[hidden] {
  display: none;
}

.fishing-reel-controls {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fishing-reel-controls button {
  min-width: 0;
  min-height: 52px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid #bed0dd;
  border-radius: 14px;
  color: #425760;
  background: #fff;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.fishing-reel-controls button:hover,
.fishing-reel-controls button.is-target {
  color: #fff;
  border-color: #3979ae;
  background: #3979ae;
  transform: translateY(-2px);
}

.fishing-reel-controls button span {
  font-size: 9px;
  font-weight: 850;
}

.fishing-arrow-left {
  transform: rotate(180deg);
}

.fishing-catch {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--catch-color, #c7d7d1);
  border-left-width: 5px;
  border-radius: var(--radius-m);
  background: #fbfcf8;
  animation: fishing-catch-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fishing-catch-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--catch-color, #367b83);
  background: color-mix(in srgb, var(--catch-color, #367b83) 12%, white);
}

.fishing-catch-icon .icon {
  width: 30px;
  height: 30px;
}

.fishing-catch-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.fishing-catch-copy > span {
  color: var(--catch-color, #367b83);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fishing-catch-copy strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fishing-catch-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.fishing-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #d6e0dc;
  border-radius: var(--radius-m);
  background: #d6e0dc;
}

.fishing-summary > div {
  min-width: 0;
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  background: #fffef9;
}

.fishing-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.fishing-summary strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fishing-leaderboard,
.fishing-inventory {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #d6e0dc;
  border-radius: var(--radius-m);
  background: #f7f9f5;
}

.fishing-leaderboard > header,
.fishing-inventory > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dce4df;
}

.fishing-leaderboard > header > span,
.fishing-inventory > header > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #92701e;
  background: #f3e9c9;
}

.fishing-leaderboard h3 {
  font-size: 16px;
}

.fishing-inventory > header > span {
  color: #386f86;
  background: #e7f1f5;
}

.fishing-inventory h3 {
  font-size: 16px;
}

.fishing-inventory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.fishing-inventory-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--inventory-color) 28%, #d9e2dd);
  border-left: 3px solid var(--inventory-color);
  border-radius: 14px;
  background: #fffef9;
}

.fishing-inventory-item > .icon {
  width: 19px;
  height: 19px;
  color: var(--inventory-color);
}

.fishing-inventory-item > span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.fishing-inventory-item strong,
.fishing-inventory-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fishing-inventory-item strong {
  font-size: 11px;
}

.fishing-inventory-item small {
  color: var(--muted);
  font-size: 9px;
}

.fishing-inventory-item b {
  color: var(--inventory-color);
  font-size: 12px;
}

.fishing-inventory-empty {
  grid-column: 1 / -1;
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.fishing-leaderboard-list {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.fishing-leaderboard-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 14px;
}

.fishing-leaderboard-row:nth-child(-n + 3) {
  border-color: #e2d7b3;
  background: #fffaf0;
}

.fishing-leaderboard-row.is-self {
  border-color: #8fb9ae;
  background: #eef7f3;
}

.fishing-place {
  color: #6b756e;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.fishing-leaderboard-row img,
.fishing-leaderboard-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #56877a;
  object-fit: cover;
  font-size: 11px;
  font-weight: 900;
}

.fishing-leaderboard-name {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.fishing-leaderboard-name strong,
.fishing-leaderboard-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fishing-leaderboard-name strong {
  font-size: 12px;
}

.fishing-leaderboard-name span {
  color: var(--muted);
  font-size: 9px;
}

.fishing-leaderboard-score {
  display: grid;
  justify-items: end;
  gap: 1px;
}

.fishing-leaderboard-score strong {
  font-size: 12px;
}

.fishing-leaderboard-score span {
  color: var(--muted);
  font-size: 9px;
}

.fishing-leaderboard-empty {
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.fishing-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.fishing-actions button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.fishing-cast {
  border: 0;
  color: #fff;
  background: #276f77;
}

.fishing-cast:hover {
  background: #1e5e65;
}

.fishing-cancel {
  border: 1px solid #d4ddd8;
  color: #5c6761;
  background: #f7f8f5;
}

.fishing-cancel:hover {
  color: #293a33;
  border-color: #aebcb5;
}

.fishing-panel button:focus-visible {
  outline: 3px solid rgba(54, 123, 131, 0.24);
  outline-offset: 2px;
}

@keyframes fishing-bite {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes fishing-catch-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes entry-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes entry-spinner {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px), (pointer: coarse) {
  .crafting-panel {
    top: max(104px, calc(env(safe-area-inset-top) + 96px));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(460px, calc(100vw - 16px));
    padding: 14px;
  }

  .crafting-header {
    grid-template-columns: 40px minmax(0, 1fr) 36px;
    gap: 9px;
    padding-bottom: 11px;
  }

  .crafting-title-mark {
    width: 40px;
    height: 40px;
  }

  .crafting-header h2 {
    font-size: 21px;
  }

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

  .wood-ledger-icon {
    display: none;
  }

  .wood-ledger > div {
    min-height: 56px;
    padding: 8px;
  }

  .wood-ledger > div:first-of-type {
    border-left: 0;
  }

  .crafting-placement {
    bottom: -14px;
    margin: 12px -14px -14px;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  }

  .fishing-panel {
    top: max(104px, calc(env(safe-area-inset-top) + 96px));
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    max-height: calc(100dvh - max(114px, calc(env(safe-area-inset-top) + 106px)));
    padding: 14px;
  }

  .fishing-header {
    grid-template-columns: 40px minmax(0, 1fr) 36px;
    padding-bottom: 11px;
  }

  .fishing-title-mark {
    width: 40px;
    height: 40px;
  }

  .fishing-header h2 {
    font-size: 21px;
  }

  .fishing-game {
    margin-top: 10px;
    padding: 11px;
  }

  .fishing-summary,
  .fishing-inventory,
  .fishing-leaderboard {
    margin-top: 9px;
  }

  .fishing-summary > div {
    min-height: 56px;
    padding: 8px 10px;
  }

  .fishing-inventory-list {
    grid-template-columns: 1fr;
  }

  .fishing-actions {
    position: sticky;
    bottom: -14px;
    margin: 10px -14px -14px;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid #dce4df;
    background: #fffef9;
  }

  .meadow-header {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    grid-template-columns: 40px 100px minmax(0, 1fr) auto;
    gap: 5px;
  }

  .workshop-reset {
    display: none;
  }

  .icon-button,
  .presence {
    height: 40px;
  }

  .icon-button {
    width: 40px;
  }

  .presence {
    min-width: 52px;
    padding: 0 7px;
  }

  .header-actions {
    grid-column: 4;
    gap: 4px;
  }

  .player-vitals {
    position: fixed;
    top: max(60px, calc(env(safe-area-inset-top) + 50px));
    left: max(10px, env(safe-area-inset-left));
    height: 36px;
    grid-template-columns: auto auto 78px;
    gap: 7px;
    padding: 3px 8px 3px 6px;
  }

  .player-coins {
    padding: 3px 8px 3px 6px;
  }

  .player-coins strong {
    font-size: 12px;
  }

  .player-level {
    padding-right: 7px;
  }

  .player-level small,
  .vital-meter:not(.is-hunger) {
    display: none;
  }

  .player-level strong {
    font-size: 14px;
  }

  .vital-meter-heading > span {
    display: none;
  }

  .vital-meter-heading {
    justify-content: end;
  }

  .world-status {
    min-width: 105px;
    width: 105px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 5px;
    justify-self: start;
    padding: 4px 6px 4px 4px;
  }

  .world-status-icon {
    width: 28px;
    height: 28px;
    margin: auto;
  }

  .world-status-copy {
    display: grid;
  }

  .world-status-copy strong {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .world-status-copy > span {
    margin-top: 2px;
    font-size: 8px;
  }

  .journal-panel {
    top: max(104px, calc(env(safe-area-inset-top) + 96px));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(420px, calc(100vw - 16px));
    padding: 17px;
  }

  .inventory-panel {
    top: max(104px, calc(env(safe-area-inset-top) + 96px));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(430px, calc(100vw - 16px));
    padding: 14px;
  }

  .inventory-header {
    grid-template-columns: 40px minmax(0, 1fr) 36px;
    gap: 9px;
  }

  .inventory-title-mark {
    width: 40px;
    height: 40px;
  }

  .inventory-header h2 {
    font-size: 21px;
  }

  .garden-panel,
  .structure-editor {
    left: 10px;
    right: 10px;
    width: auto;
  }

  .garden-panel {
    bottom: max(146px, calc(env(safe-area-inset-bottom) + 146px));
  }

  .structure-editor {
    bottom: max(146px, calc(env(safe-area-inset-bottom) + 146px));
    grid-template-columns: 38px minmax(0, 1fr) 40px 34px;
  }

  #structure-delete {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  #structure-delete span {
    display: none;
  }

  .ritual-status {
    top: max(118px, calc(env(safe-area-inset-top) + 110px));
    left: 10px;
    width: calc(100vw - 20px);
  }

  .campfire-panel {
    top: max(174px, calc(env(safe-area-inset-top) + 166px));
    right: 10px;
    width: calc(100vw - 20px);
  }

  .presence-dot {
    display: none;
  }

  .entry-screen {
    align-items: center;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .entry-panel {
    max-height: calc(100dvh - 82px);
    padding: 24px 18px 20px;
    overflow-y: auto;
    border-radius: 21px;
    transform: none;
    animation: none;
  }

  .entry-panel h1 {
    font-size: 30px;
  }

  .entry-heading {
    margin-bottom: 22px;
  }

  .entry-heading p {
    margin-top: 9px;
    font-size: 14px;
  }

  .entry-controls {
    grid-template-columns: 1fr;
  }

  .entry-access-row {
    align-items: stretch;
    flex-direction: column;
  }

  #entry-submit {
    width: 100%;
  }

  .entry-status {
    margin-top: 14px;
  }

  .entry-note {
    margin-top: 17px;
    padding-top: 15px;
  }

  #entry-note-full {
    display: none;
  }

  #entry-note-compact {
    display: inline;
  }

  .action-cluster {
    left: auto;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: none;
  }

  .poi-action {
    bottom: max(214px, calc(env(safe-area-inset-bottom) + 208px));
    width: min(360px, calc(100vw - 24px));
    min-width: 0;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 7px 10px 7px 7px;
  }

  .balloon-flight-panel {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(126px, calc(env(safe-area-inset-bottom) + 120px));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
  }

  .balloon-flight-header {
    padding: 10px;
  }

  .balloon-flight-metrics > span {
    padding: 8px 10px;
  }

  .balloon-pilot-controls {
    padding: 8px 10px;
  }

  .balloon-flight-footer {
    padding: 7px 10px;
  }

  .carry-request-panel {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(214px, calc(env(safe-area-inset-bottom) + 208px));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
    transform: none;
  }

  .carry-request-panel:not([hidden]) {
    animation-name: carry-panel-in;
  }

  .carry-status-panel {
    top: max(82px, calc(env(safe-area-inset-top) + 72px));
    right: max(12px, env(safe-area-inset-right));
    bottom: auto;
    left: max(12px, env(safe-area-inset-left));
    width: auto;
  }

  .poi-action-icon {
    width: 40px;
    height: 40px;
  }

  .poi-action kbd {
    display: none;
  }

  .joystick {
    position: fixed;
    z-index: 18;
    left: max(18px, env(safe-area-inset-left));
    bottom: max(20px, env(safe-area-inset-bottom));
    width: 96px;
    height: 96px;
    display: block;
    border: 1px solid rgba(106, 138, 100, 0.22);
    border-radius: 50%;
    background: rgba(255, 253, 246, 0.66);
    box-shadow: 0 10px 26px rgba(52, 88, 56, 0.16);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    touch-action: none;
  }

  .joystick::before,
  .joystick::after {
    position: absolute;
    content: "";
    background: rgba(39, 107, 60, 0.12);
  }

  .joystick::before {
    top: 46px;
    left: 15px;
    right: 15px;
    height: 1px;
  }

  .joystick::after {
    top: 15px;
    bottom: 15px;
    left: 46px;
    width: 1px;
  }

  .joystick-knob {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 5px 13px rgba(29, 77, 43, 0.25);
    transform: translate(-50%, -50%);
  }

  .jump-button {
    position: fixed;
    z-index: 18;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(26px, env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    display: grid;
    color: #fff;
    background: var(--green);
    box-shadow: 0 8px 24px rgba(29, 77, 43, 0.26);
  }

  .jump-button:active {
    transform: translateY(-4px);
  }

  .action-cluster {
    bottom: max(102px, calc(env(safe-area-inset-bottom) + 96px));
  }

  .emote-dock {
    grid-template-columns: repeat(3, 44px);
    display: grid;
    justify-items: center;
    border-radius: 26px;
  }

  .dance-menu {
    right: 0;
    left: auto;
    width: min(286px, calc(100vw - 28px));
    transform: none;
  }

  .dance-menu:not([hidden]) {
    animation-name: dance-menu-in-mobile;
  }

  .emote-button {
    width: 42px;
    height: 42px;
  }

  .thought-composer {
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 28px));
    grid-template-columns: 30px minmax(0, 1fr) 40px;
    transform: none;
  }

  .thought-composer:not([hidden]) {
    animation-name: thought-composer-in-mobile;
  }

  .thought-composer-mark {
    width: 30px;
    height: 30px;
  }

  .thought-composer input {
    height: 40px;
    padding-inline: 5px;
  }

  .thought-composer button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 520px) {
  .blueprint-list {
    grid-template-columns: 1fr;
  }

  .blueprint-card {
    min-height: 100px;
  }

  .crafting-placement {
    grid-template-columns: minmax(0, 1fr) 40px 40px;
  }

  .crafting-build {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
}

@keyframes dance-menu-in-mobile {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes thought-composer-in-mobile {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 390px) {
  .entry-panel h1 {
    font-size: 27px;
  }
}

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

/* Контекстное действие: слева от панели эмоций, когда экран достаточно широк */
@media (min-width: 1360px) {
  .poi-action {
    left: auto;
    right: calc(50% + 347px);
    bottom: 24px;
    transform: none;
    width: 318px;
    height: 58px;
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    padding: 7px 10px 7px 8px;
  }
  .poi-action:hover {
    transform: translateY(-2px);
  }
  .poi-action:active,
  .poi-action:disabled {
    transform: none;
  }
  .poi-action:not([hidden]) {
    animation: poi-action-in-left 190ms ease-out;
  }
}

@keyframes poi-action-in-left {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Задания дня */
.daily-quests-list {
  display: grid;
  gap: 7px;
}

.daily-quest {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e4dcc3;
  border-radius: 13px;
  background: #fffdf5;
}

.daily-quest-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  border-radius: 11px;
  color: #9b7425;
  background: #f8edca;
}

.daily-quest-mark .icon {
  width: 17px;
  height: 17px;
}

.daily-quest-copy {
  min-width: 0;
}

.daily-quest-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
}

.daily-quest-copy small {
  display: block;
  margin-top: 3px;
  color: #887d65;
  font-size: 10px;
}

.daily-quest b {
  align-self: start;
  color: #766340;
  font-size: 12.5px;
  white-space: nowrap;
}

.daily-quest-track {
  grid-column: 2 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece4ce;
}

.daily-quest-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #b18731;
  transition: width 300ms ease;
}

.daily-quest.is-done {
  border-color: #b9d2b2;
  background: #f2f8ed;
}

.daily-quest.is-done .daily-quest-mark {
  color: #3f7547;
  background: #dfeeda;
}

.daily-quest.is-done .daily-quest-track i {
  background: #5b955d;
}

/* Трофеи */
.trophy-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid #e2dfd4;
  border-radius: 13px;
  background: #fbfaf6;
  opacity: 0.66;
}

.trophy-row.is-owned {
  opacity: 1;
  border-color: color-mix(in srgb, var(--trophy-color, #b77a25) 42%, #e4e0d2);
  background: #fffef9;
  box-shadow: inset 3px 0 0 var(--trophy-color, #b77a25);
}

.trophy-row-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fffdf6;
  background: #9aa09b;
}

.trophy-row.is-owned .trophy-row-mark {
  background: var(--trophy-color, #9aa695);
}

.trophy-row-mark .icon {
  width: 18px;
  height: 18px;
}

.trophy-row strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.2;
}

.trophy-row small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: #7b7c73;
  line-height: 1.3;
}

.trophy-row-date {
  color: #877c63 !important;
  font-size: 10px !important;
}

.trophy-row-rarity {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--trophy-color, #9aa695);
}

/* Баннер получения трофея */
.trophy-banner {
  --trophy-color: #b77a25;
  position: fixed;
  z-index: 60;
  top: 86px;
  left: 50%;
  transform: translate(-50%, -18px) scale(0.94);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 320px;
  max-width: min(430px, calc(100vw - 30px));
  padding: 13px 18px 13px 12px;
  border-radius: 18px;
  border: 2px solid var(--trophy-color);
  background: rgba(255, 254, 249, 0.98);
  box-shadow:
    0 18px 44px rgba(34, 65, 38, 0.24),
    0 0 0 6px color-mix(in srgb, var(--trophy-color) 18%, transparent),
    0 0 34px color-mix(in srgb, var(--trophy-color) 38%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms ease, transform 380ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.trophy-banner.is-live {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.trophy-banner-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fffdf6;
  background: var(--trophy-color);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

.trophy-banner-mark .icon {
  width: 26px;
  height: 26px;
  animation: trophy-star-spin 2.6s ease-in-out infinite;
}

@keyframes trophy-star-spin {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.12); }
}

.trophy-banner-rarity {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--trophy-color);
}

.trophy-banner h3 {
  margin: 1px 0 2px;
  font-size: 17px;
}

.trophy-banner-desc {
  margin: 0;
  font-size: 12.5px;
  color: #6c7c64;
}

.trophy-banner.is-platinum {
  border-image: linear-gradient(120deg, #8fd4d0, #d8e9f2, #b0e0dc, #8fd4d0) 1;
  animation: trophy-platinum-glow 2.4s ease-in-out infinite;
}

@keyframes trophy-platinum-glow {
  0%, 100% { box-shadow: 0 18px 44px rgba(34, 65, 38, 0.24), 0 0 30px rgba(143, 212, 208, 0.5); }
  50% { box-shadow: 0 18px 44px rgba(34, 65, 38, 0.24), 0 0 52px rgba(143, 212, 208, 0.85); }
}

/* Автоочистка мастерской отключена — плашка скрыта насовсем */
#workshop-reset {
  display: none !important;
}

/* Поручение Гусьмака: прогресс сбора хвостов (левый верхний угол) */
.tail-quest-hud[hidden] {
  display: none;
}

.tail-quest-hud {
  position: fixed;
  z-index: 16;
  top: max(84px, calc(env(safe-area-inset-top) + 78px));
  left: max(18px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(60, 85, 58, 0.16);
  border-radius: 20px;
  background: rgba(255, 253, 246, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(34, 65, 38, 0.16);
  animation: tail-hud-in 240ms ease-out;
}

.tail-quest-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fffdf6;
  background: linear-gradient(180deg, #9aa0a5, #7c8288);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}

.tail-quest-icon .icon {
  width: 20px;
  height: 20px;
}

.tail-quest-copy {
  display: grid;
  gap: 3px;
}

.tail-quest-copy small {
  color: #718076;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tail-quest-copy strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 850;
}

.tail-quest-copy strong b {
  color: #4f6d55;
  font-variant-numeric: tabular-nums;
}

.tail-quest-track {
  width: 148px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece3;
}

.tail-quest-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8d9096, #b9bdc2);
  transition: width 600ms cubic-bezier(0.22, 0.8, 0.3, 1);
}

.tail-quest-guide {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  margin-left: 2px;
  border: 0;
  border-radius: 13px;
  color: #9b6814;
  background: #f6e8bd;
  box-shadow: inset 0 0 0 1px rgba(154, 102, 17, 0.16);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tail-quest-guide .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.tail-quest-guide:hover:not(:disabled) {
  color: #754a08;
  background: #f3dfa2;
  transform: translateY(-1px);
}

.tail-quest-guide.is-active {
  color: #fffdf3;
  background: #bf8420;
  box-shadow:
    inset 0 0 0 1px rgba(107, 67, 4, 0.18),
    0 0 0 4px rgba(224, 174, 70, 0.18);
}

.tail-quest-guide:disabled {
  color: #a9b1aa;
  background: #edf0eb;
  box-shadow: none;
  cursor: default;
}

.tail-quest-hud.is-ready {
  border-color: rgba(63, 159, 196, 0.5);
  box-shadow: 0 10px 26px rgba(34, 65, 38, 0.16), 0 0 0 3px rgba(95, 192, 232, 0.22);
}

.tail-quest-hud.is-ready .tail-quest-track i {
  background: linear-gradient(90deg, #58b8dd, #8fd7f2);
}

@keyframes tail-hud-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Диалог Гусьмака */
.goose-dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(30, 42, 33, 0.2);
}

.goose-dialog[hidden] {
  display: none;
}

.goose-dialog-card {
  position: relative;
  width: min(980px, calc(100vw - 56px));
  max-height: min(780px, calc(100vh - 56px));
  overflow: auto;
  padding: 22px 24px 18px;
  border: 1px solid rgba(60, 85, 58, 0.16);
  border-radius: 24px;
  background: rgba(255, 253, 246, 0.97);
  box-shadow: 0 22px 48px rgba(24, 48, 30, 0.28);
  animation: goose-dialog-in 220ms ease-out;
}

.goose-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.goose-dialog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.goose-dialog-head > span:last-child {
  display: grid;
  gap: 2px;
}

.goose-dialog-head small {
  color: #718076;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.goose-dialog-head strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
}

.goose-dialog-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fffdf6;
  background: linear-gradient(180deg, #79cdec, #48a7cf);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14), 0 0 14px rgba(95, 192, 232, 0.45);
  font-size: 24px;
  font-weight: 900;
}

.goose-dialog-text {
  max-width: 760px;
  margin: 0 0 16px;
  color: #3c4a41;
  font-size: 14px;
  line-height: 1.5;
}

.goose-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #dce5d9;
}

.goose-dialog-button {
  padding: 9px 16px;
  border: 1px solid rgba(60, 85, 58, 0.22);
  border-radius: 999px;
  color: #46584c;
  background: #f2f5ee;
  font: 800 13px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.goose-dialog-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(52, 88, 56, 0.2);
}

.goose-dialog-button.is-primary {
  border-color: transparent;
  color: #fffdf6;
  background: var(--green, #3e8e57);
}

.goose-quest-board {
  display: grid;
  gap: 16px;
}

.goose-quest-summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px;
  border: 1px solid #d5e1d2;
  border-left: 4px solid #4d8151;
  border-radius: 12px;
  background: #f6faf3;
}

.goose-quest-summary > span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.goose-quest-summary .icon {
  width: 22px;
  height: 22px;
  color: #4d8151;
}

.goose-quest-summary > span > span {
  display: grid;
  gap: 1px;
}

.goose-quest-summary strong {
  color: #294830;
  font-size: 16px;
}

.goose-quest-summary small {
  color: #718076;
  font-size: 10px;
  font-weight: 750;
}

.goose-quest-section {
  display: grid;
  gap: 8px;
}

.goose-quest-section h3 {
  margin: 0;
  color: #35473a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.goose-quest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.goose-quest-card {
  min-width: 0;
  min-height: 184px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: minmax(64px, auto) auto 1fr;
  gap: 8px 10px;
  padding: 12px;
  border: 1px solid #dce4d9;
  border-radius: 12px;
  background: #fff;
}

.goose-quest-card.is-active {
  border-color: #b9d1b7;
  background: #fbfdf9;
}

.goose-quest-card.is-ready {
  border-color: #80aa78;
  box-shadow: inset 0 3px 0 #73a268;
}

.goose-quest-card-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #4e7852;
  background: #edf4e9;
}

.goose-quest-card-mark .icon {
  width: 20px;
  height: 20px;
}

.goose-quest-card-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
}

.goose-quest-card-copy strong {
  color: #202d23;
  font-size: 13px;
  line-height: 1.25;
}

.goose-quest-card-copy p {
  margin: 0;
  color: #68736b;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}

.goose-quest-reward {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #876713;
  font-size: 10px;
  font-weight: 850;
}

.goose-quest-reward .icon {
  width: 16px;
  height: 16px;
}

.goose-quest-card footer {
  grid-column: 1 / -1;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  padding-top: 9px;
  border-top: 1px solid #e5ebe2;
}

.goose-quest-progress {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.goose-quest-progress > span:first-child {
  color: #657067;
  font-size: 9px;
  font-weight: 800;
}

.goose-quest-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebe2;
}

.goose-quest-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #5d9159;
  transition: width 420ms ease;
}

.goose-quest-card-button {
  min-width: 78px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid #4e7c4c;
  border-radius: 10px;
  color: #fff;
  background: #568552;
  font: 800 10px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.goose-quest-card-button:hover:not(:disabled) {
  background: #426f43;
}

.goose-quest-card-button:disabled {
  border-color: #d9e0d7;
  color: #849087;
  background: #edf1eb;
  cursor: default;
}

.goose-quest-empty {
  margin: 0;
  padding: 13px;
  border: 1px dashed #cdd9ca;
  color: #6c786f;
  background: #f8faf6;
  font-size: 12px;
  line-height: 1.45;
}

@keyframes goose-dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Грибная лавка Бабушки Веры */
.vera-dialog {
  position: fixed;
  inset: 0;
  z-index: 31;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(25, 36, 27, 0.28);
}

.vera-dialog[hidden] {
  display: none;
}

.vera-dialog-card {
  --vera-green: #46734d;
  --vera-gold: #aa762f;
  position: relative;
  width: min(780px, calc(100vw - 56px));
  max-height: min(760px, calc(100vh - 56px));
  overflow: auto;
  padding: 22px 24px 18px;
  border: 1px solid rgba(63, 83, 59, 0.2);
  border-top: 4px solid var(--vera-green);
  border-radius: 24px;
  background: #fffdf7;
  box-shadow: 0 24px 58px rgba(22, 42, 28, 0.3);
  animation: goose-dialog-in 220ms ease-out;
}

.vera-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.vera-dialog-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding-right: 46px;
}

.vera-dialog-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fffdf5;
  background: var(--vera-green);
}

.vera-dialog-mark .icon {
  width: 23px;
  height: 23px;
}

.vera-dialog-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.vera-dialog-title small,
.vera-dialog-balance small {
  color: #788278;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vera-dialog-title strong {
  overflow: hidden;
  color: #223126;
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vera-dialog-balance {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 126px;
  padding: 8px 12px;
  border-left: 1px solid rgba(69, 94, 70, 0.16);
  color: var(--vera-gold);
}

.vera-dialog-balance > .icon {
  width: 21px;
  height: 21px;
}

.vera-dialog-balance > span {
  display: grid;
  gap: 1px;
}

.vera-dialog-balance strong {
  color: #253329;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.vera-dialog-intro {
  max-width: 660px;
  margin: 16px 0 18px;
  color: #526055;
  font-size: 13px;
  line-height: 1.55;
}

.vera-market-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding: 8px 0;
  border-top: 1px solid rgba(70, 92, 69, 0.14);
  border-bottom: 1px solid rgba(70, 92, 69, 0.14);
}

.vera-market-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2d4232;
  font-size: 13px;
  font-weight: 850;
}

.vera-market-heading .icon {
  width: 17px;
  height: 17px;
  color: var(--vera-green);
}

.vera-market-heading small {
  color: #7a857b;
  font-size: 11px;
  font-weight: 700;
}

.vera-market-list {
  display: grid;
}

.vera-market-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) 92px 138px 196px;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(70, 92, 69, 0.12);
}

.vera-market-species {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vera-market-species-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--market-color, #607d51);
  background: color-mix(in srgb, var(--market-color, #607d51) 12%, #fff);
}

.vera-market-species-mark .icon {
  width: 18px;
  height: 18px;
}

.vera-market-species-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vera-market-species-copy strong {
  overflow: hidden;
  color: #26342a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vera-market-species-copy small,
.vera-market-stock small,
.vera-market-price small {
  color: #7c867d;
  font-size: 10px;
  line-height: 1.25;
}

.vera-market-stock,
.vera-market-price {
  display: grid;
  align-content: center;
  gap: 2px;
}

.vera-market-stock strong,
.vera-market-price strong {
  color: #26342a;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.vera-market-price.is-discounted strong {
  color: #9a6525;
}

.vera-market-actions {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 7px;
}

.vera-market-button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(65, 91, 67, 0.2);
  border-radius: 11px;
  color: #38533d;
  background: #f0f5ec;
  font: 800 11px/1.1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.vera-market-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #e5efe0;
}

.vera-market-button.is-primary {
  border-color: transparent;
  color: #fffdf5;
  background: var(--vera-green);
}

.vera-market-button:disabled {
  color: #a1aaa1;
  background: #f4f5f2;
  cursor: default;
  opacity: 0.72;
}

.vera-market-note {
  margin: 13px 0 0;
  color: #778178;
  font-size: 11px;
  line-height: 1.45;
}

.fish-market-dialog .vera-dialog-card {
  --vera-green: #3f7180;
  --vera-gold: #9b702f;
  border-color: rgba(55, 100, 112, 0.2);
  border-top-color: #3f7180;
  background: #fffefa;
}

.fish-market-dialog .vera-dialog-mark {
  background: #3f7180;
}

.fish-market-dialog .vera-market-heading .icon {
  color: #3f7180;
}

.fish-market-dialog .vera-market-button {
  color: #345d68;
  border-color: rgba(55, 100, 112, 0.2);
  background: #edf4f4;
}

.fish-market-dialog .vera-market-button:hover:not(:disabled) {
  background: #e1eeee;
}

.fish-market-dialog .vera-market-button.is-primary {
  color: #fff;
  background: #3f7180;
}

.fish-market-empty {
  min-height: 92px;
  display: grid;
  place-items: center;
  margin: 0;
  color: #738185;
  text-align: center;
}

@media (max-width: 860px) {
  .vera-market-row {
    grid-template-columns: minmax(170px, 1fr) 78px 124px;
  }

  .vera-market-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    padding-left: 46px;
  }
}

/* Отсчёт до смены сезона — рядом со временем суток */
.season-countdown {
  height: 44px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 5px 14px 5px 6px;
  border: 1px solid rgba(106, 138, 100, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: 0 8px 24px rgba(52, 88, 56, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.season-countdown[hidden] {
  display: none;
}

.season-countdown-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4b7a4a;
  background: #e8f2e0;
}

.season-countdown-mark .icon {
  width: 16px;
  height: 16px;
}

.season-countdown-copy {
  display: grid;
  gap: 1px;
}

.season-countdown-copy small {
  color: #718076;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.season-countdown-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Последние сутки сезона — подсвечиваем */
.season-countdown.is-soon .season-countdown-mark {
  color: #8a5a1c;
  background: #f7e7c8;
}

.season-countdown.is-soon .season-countdown-copy strong {
  color: #8a5a1c;
}

/* На узком экране плашка сжимается до иконки и срока: подпись «До зимы»
   дублирует снежинку, а сам срок терять нельзя — иначе непонятно,
   когда сменится сезон. */
@media (max-width: 900px) {
  .season-countdown {
    height: 38px;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 6px;
    padding: 4px 11px 4px 5px;
  }

  .season-countdown-mark {
    width: 26px;
    height: 26px;
  }

  .season-countdown-copy small {
    display: none;
  }

  .season-countdown-copy strong {
    font-size: 12px;
  }
}
