body[data-route='tree'] { padding-bottom: 0; background: #101d1c; }
body[data-route='tree'] > .shell-head { display: none; }
body[data-route='tree'] .shell-toast { bottom: max(1.1rem, env(safe-area-inset-bottom)); }
[data-view='tree'] > .ec-zone { width: 100%; padding: 0; }

.ec-room-screenreader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ec-scene {
  --room-ground: clamp(6.6rem, 14cqh, 9.2rem);
  --yard-care-base: 5.2rem;
  --hub-tree-foot: max(10rem, calc(var(--room-ground) + 2.4rem),
    calc(var(--yard-care-base) + var(--yard-care-height, 0px) + .25rem));
  --room-ink: #17241f;
  --room-brass: #c89e62;
  --room-light: #ffebc4;
  position: relative;
  container-type: size;
  isolation: isolate;
  height: max(100svh, 37rem);
  background-color: #1d312d;
  background-image: var(--room-backdrop);
  background-position: center 64%;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}
.ec-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 53%, transparent 32%, #0c131466 100%),
    radial-gradient(ellipse 29% 8% at 50% 85%, #1e171681, transparent 100%);
}
:is(.ec-tree-stage, .ec-care-stage) {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: var(--room-ground);
  width: min(48%, calc((100cqh - var(--room-ground) - 10.2rem) * .98), 39rem);
  aspect-ratio: 500 / 510;
  transform: translateX(-50%);
  container-type: inline-size;
  pointer-events: none;
}
.ec-care-stage { z-index: 16; }
.ec-tree-stage button { pointer-events: auto; }
.ec-tree-stage button.ec-tree-spot:is([data-kind='floor'], [data-pointer-drag]) > .ec-tree-spot__art { pointer-events: auto; }
.ec-tree-spot[data-kind='floor'] > .ec-tree-spot__mark { z-index: 1; pointer-events: auto; }
.ec-tree-motion, .ec-tree-sky-motion, .ec-tree-back-motion {
  position: absolute;
  inset: 0;
  z-index: 7;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ec-tree-sky-motion { z-index: 0; mix-blend-mode: screen; }
.ec-tree-back-motion { z-index: 1; }
.ec-scene[data-young='true'] :is(.ec-tree-stage, .ec-care-stage) { width: min(57%, calc((100cqh - var(--room-ground) - 5.8rem) * .98), 45rem); }
.ec-scene[data-editing='false'] {
  --yard-tree-width: min(62%, 51rem, var(--yard-tree-edge-fit, 100%),
    calc((100cqh - var(--hub-tree-foot) - var(--yard-header-height, 6rem) - .8rem) / var(--yard-crown-scale, 1)));
}
.ec-scene[data-editing='false'][data-young='true'] {
  --yard-tree-width: min(77%, 56rem, var(--yard-tree-edge-fit, 100%),
    calc((100cqh - var(--hub-tree-foot) - var(--yard-header-height, 6rem) - .8rem) / var(--yard-crown-scale, 1)));
}
.ec-scene[data-editing='false'] :is(.ec-tree-stage, .ec-care-stage) {
  left: calc(50% + var(--yard-tree-shift, 0px));
  bottom: var(--hub-tree-foot);
  width: min(var(--yard-tree-width), var(--yard-tree-cabinet-fit, 100%));
}
.ec-tree-stage .ec-portrait { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 10px 8px #111614c4); }
.ec-tree-growth-layer { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.ec-tree-growth-picture { position: absolute; max-width: none; transform-origin: 50% 94%; }
.ec-tree-growth-picture.ec-portrait { filter: drop-shadow(0 10px 8px #111614b8); }
.ec-tree-growth-light {
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  background: linear-gradient(transparent 38%, #ffe1a24d 47%, #fff1bca6 50%, #ffc86e55 55%, transparent 64%) 0 0 / 100% 300% no-repeat;
}
.ec-tree-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transform-origin: 50% 92%;
  animation: ec-veil-drift var(--veil-period, 8s) ease-in-out infinite alternate;
  animation-play-state: paused;
}
.ec-tree-veil[data-moving='true'] { animation-play-state: running; }
.ec-tree-veil[data-effect='twilight'] { --veil-shift: 4.5%; --veil-period: 8.5s; }
.ec-tree-veil[data-effect='ghost'] { --veil-shift: -3.2%; --veil-period: 7.6s; }
.ec-tree-veil[data-effect='dark'] { --veil-shift: 2.8%; --veil-rise: -2%; --veil-period: 6.4s; }
.ec-tree-veil-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--room-backdrop) center / cover;
}
.ec-tree-veil-preview > .ec-portrait { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
@keyframes ec-veil-drift {
  from { transform: translateX(0) scaleX(.95); opacity: .76; }
  to { transform: translate(var(--veil-shift), var(--veil-rise, 0%)) scaleX(1.05); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .ec-tree-veil { animation: none; } }
.ec-tree-stage :is(.ec-garland-layer, .ec-garland-glow) { z-index: 2; pointer-events: none; filter: none; }
.ec-garland-glow { mix-blend-mode: screen; pointer-events: none; }
.ec-tree-stage button.ec-garland-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}
.ec-garland-trigger > .ec-effect-mark {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
}
.ec-tree-stage .ec-garland-trigger:focus-visible { outline: none; }
.ec-garland-trigger:focus-visible > .ec-effect-mark { outline: 2px solid #ffe4a0; outline-offset: 3px; }
.ec-tree-lighting { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ec-tree-lighting::before,
.ec-tree-lighting::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
}
.ec-tree-lighting--ornaments::before {
  background: radial-gradient(ellipse at 54% 54%,
    color-mix(in srgb, var(--tree-light) 57%, transparent),
    color-mix(in srgb, var(--tree-light) 22%, transparent) 39%, transparent 76%);
}
.ec-tree-lighting::before {
  top: var(--tree-light-center);
  width: var(--tree-light-width);
  height: var(--tree-light-height);
  background: radial-gradient(ellipse at 54% 54%,
    color-mix(in srgb, var(--tree-light) 35%, transparent),
    color-mix(in srgb, var(--tree-light) 13%, transparent) 39%, transparent 72%);
}
.ec-tree-lighting::after {
  top: 94%;
  width: var(--tree-light-width);
  height: 11%;
  background: radial-gradient(ellipse at center,
    #160e0ca1, #18110b69 24%,
    color-mix(in srgb, var(--tree-light) 14%, transparent) 39%, transparent 70%);
}
.ec-room-tree-hit {
  position: absolute;
  z-index: 3;
  left: var(--tree-hit-left, 50%);
  top: var(--tree-hit-top);
  bottom: var(--tree-hit-bottom, 8%);
  width: var(--tree-hit-width);
  min-height: 44px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 22%;
  background: transparent;
  cursor: pointer;
  clip-path: var(--tree-hit-shape, none);
}
.ec-tree-stage:has(.ec-room-tree-hit:is(:hover, :focus-visible)) > .ec-portrait:first-of-type,
.ec-tree-stage:has(.ec-room-tree-hit[data-drop-target]:not(.ec-room-tree-hit--preview)) > .ec-portrait:first-of-type,
.ec-tree-stage:has(.ec-room-tree-hit--place) > .ec-portrait:first-of-type {
  filter: brightness(1.04) drop-shadow(0 0 9px #ffcf7e85) drop-shadow(0 10px 8px #111614c4);
}
.ec-tree-stage:has(.ec-room-tree-hit[data-drop-over]:not(.ec-room-tree-hit--preview)) > .ec-portrait:first-of-type {
  filter: brightness(1.08) drop-shadow(0 0 12px #ffe5a7ca) drop-shadow(0 10px 8px #111614c4);
}
.ec-tree-stage > .ec-portrait:first-of-type { transition: filter .2s ease-out; }
.ec-room-tree-hit--place { outline: 1px dashed #ffe7b0; outline-offset: 3px; }
.ec-effect-mark {
  display: grid;
  place-items: center;
  width: var(--effect-size, clamp(12px, 3cqw, 17px));
  aspect-ratio: 1;
  border: 1px solid #edcd88;
  border-radius: 50%;
  background: #243a32;
  color: #ffe4a8;
  box-shadow: 0 1px 3px #101812ab;
  font: 700 var(--effect-font, clamp(9px, 2.25cqw, 12px))/1 system-ui, sans-serif;
}
.ec-scene[data-editing='false'] .ec-tree-spot[data-has-effect] { z-index: 4; }
.ec-scene[data-editing='true'] .ec-tree-spot[data-kind='floor'] { z-index: 3; }
.ec-tree-spot[data-has-effect] > .ec-effect-mark {
  position: absolute;
  right: 0;
  bottom: 0;
}
.ec-tree-effect {
  --effect-size: calc(20px / var(--edit-zoom));
  --effect-font: calc(13px / var(--edit-zoom));
  position: absolute;
  z-index: 5;
  left: var(--spot-x);
  top: var(--spot-y);
  display: grid;
  place-items: center;
  width: calc(24px / var(--edit-zoom));
  height: calc(24px / var(--edit-zoom));
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  clip-path: circle(50%);
  cursor: pointer;
}
.ec-tree-effect .ec-effect-mark { background: #384e40; }
.ec-tree-effect:is(:hover, :focus-visible) .ec-effect-mark, .ec-garland-trigger > .ec-effect-mark:hover {
  background: #ffe4a8;
  color: #263a31;
}
.ec-scene:has([data-dragging]) .ec-tree-stage .ec-tree-effect { pointer-events: none; }
.ec-tree-spot--edit {
  --spot-hit: calc(32px / var(--edit-zoom));
  width: var(--spot-hit);
  height: var(--spot-hit);
}
.ec-tree-spot--edit[data-kind='top'] { --spot-hit: calc(36px / var(--edit-zoom)); }
.ec-tree-spot--edit .ec-tree-spot__mark {
  width: min(var(--spot-hit), clamp(17px, 3.8cqw, 24px));
  height: min(var(--spot-hit), clamp(17px, 3.8cqw, 24px));
  font-size: min(calc(.95rem / var(--edit-zoom)), 3.1cqw);
}
.ec-tree-spot--edit[data-kind='top'] .ec-tree-spot__mark {
  width: min(var(--spot-hit), clamp(22px, 5cqw, 31px));
  height: min(var(--spot-hit), clamp(22px, 5cqw, 31px));
  font-size: min(calc(1.3rem / var(--edit-zoom)), 4.1cqw);
}
:is(.ec-tree-stage, .ec-dressing-guide, .ec-inventory-target) .ec-tree-spot__mark[data-place='garland'] {
  border-color: #b6e8df;
  border-radius: 5px;
  background: #183c3a;
  color: #e3fff6;
}
:is(.ec-tree-stage, .ec-dressing-guide, .ec-inventory-target) .ec-tree-spot__mark[data-place='floor'] {
  border-color: #e3bc9c;
  border-radius: 5px;
  background: #483026;
  color: #ffe4c7;
}
:is(.ec-tree-stage, .ec-dressing-guide) .ec-tree-spot__mark[data-remove='true'] {
  border-color: #dfab83;
  background: #492c26;
  color: #ffd8b7;
}
.ec-tree-spot--edit[data-kind='garland']::before {
  content: '';
  position: absolute;
  right: calc(50% + 10px);
  top: 50%;
  width: clamp(6px, 2cqw, 13px);
  border-top: 1px dashed #cae8dcad;
  pointer-events: none;
}
.ec-tree-spot--edit[data-target='true'] .ec-tree-spot__mark {
  border-color: #fff3cc;
  background: #ffe2a4;
  color: #273428;
  box-shadow: 0 0 0 2px #243a2f, 0 1px 5px #000b;
}
.ec-tree-stage .ec-tree-spot--edit[data-occupied='false'] .ec-tree-spot__mark {
  width: min(var(--spot-hit), clamp(19px, 5.2cqw, 30px));
  height: min(var(--spot-hit), clamp(19px, 5.2cqw, 30px));
  border: 1px solid #f7dab0;
  border-radius: 50%;
  background: #193b34;
  color: #ffe8b7;
  box-shadow: inset 0 0 0 2px #c5a78333, 0 0 0 2px #14261d9c, 0 2px 6px #101812c7;
  font: 650 min(calc(1.13rem / var(--edit-zoom)), 4.4cqw)/1 system-ui, sans-serif;
}
.ec-tree-stage .ec-tree-spot--edit[data-occupied='false'] .ec-tree-spot__mark[data-place='garland'] { border-color: #9ee1d3; }
.ec-tree-stage .ec-tree-spot--edit[data-occupied='false'] .ec-tree-spot__mark[data-place='floor'] { background: #493627; }
.ec-tree-stage .ec-tree-spot--edit[data-occupied='false']:is(:hover, :focus-visible, [data-target], [data-preview-target], [data-drop-target]) .ec-tree-spot__mark {
  background: #ffe7b0;
  color: #302719;
}
.ec-tree-stage .ec-tree-spot--edit[data-drop-over] .ec-tree-spot__mark { outline: 2px solid #fff3cc; outline-offset: 3px; }

.ec-yard-header {
  position: absolute;
  z-index: 15;
  inset: 0 0 auto;
  display: grid;
  grid-template-areas: 'title links tools';
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .55rem 1rem;
  padding: max(1rem, env(safe-area-inset-top)) clamp(.8rem, 3cqw, 3rem) 1.65rem;
  background: linear-gradient(#101e23e8, #14242c99 65%, transparent);
}
.ec-yard-header h1 {
  grid-area: title;
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  color: #ffeccc;
  font: normal clamp(1.85rem, 3.2cqw, 3.2rem)/1 Georgia, serif;
  text-shadow: 0 3px 8px #090f16;
}
.ec-yard-logo { display: inline-flex; gap: .45rem; align-items: center; color: inherit; text-decoration: none; }
.ec-yard-logo:hover { color: #ffe2ab; }
@media (max-width: 760px) {
  .ec-scene[data-editing='true'] { overflow: clip; }
}
.ec-yard-links {
  grid-area: links;
  justify-self: center;
  position: relative;
  display: flex;
  align-items: center;
  gap: .42rem;
}
.ec-yard-tools {
  grid-area: tools;
  position: relative;
  display: flex;
  align-items: center;
  gap: .42rem;
  justify-self: end;
}
.ec-yard-tools .elka-radio-panel { width: min(320px, calc(100vw - 1.5rem)); }
.ec-yard-links > .ec-button, .ec-yard-menu > summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: .43rem .63rem;
  border: 1px solid #b99a696b;
  border-radius: 7px;
  background: #172f30f5;
  color: #fff0d3;
  font: 650 .82rem/1.12 system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.ec-yard-links > .ec-button:hover, .ec-yard-menu > summary:hover, .ec-yard-menu[open] > summary {
  border-color: #e9c381;
  background: #304941;
}
.ec-yard-menu > summary { list-style: none; }
.ec-yard-menu summary::-webkit-details-marker { display: none; }
.ec-yard-menu__list {
  position: absolute;
  z-index: 1;
  inset: calc(100% + .4rem) 0 auto auto;
  display: grid;
  min-width: 13.5rem;
  gap: .2rem;
  padding: .45rem;
  border: 1px solid #ad8b597d;
  border-radius: 10px;
  background: #162e2c;
  box-shadow: 0 .65rem 1.3rem #0a171a91;
}
.ec-yard-menu__list .ec-button { justify-content: start; border-color: transparent; background: none; }

.ec-yard-tree-base {
  position: absolute;
  z-index: 8;
  bottom: var(--yard-care-base);
  left: 50%;
  translate: -50% 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: .35rem;
  width: max-content;
  max-width: calc(100% - 1rem);
  pointer-events: none;
}
.ec-yard-tree-base button { pointer-events: auto; }
.ec-zone .ec-tree-growth-banner {
  position: absolute;
  z-index: 16;
  bottom: calc(100% + .75rem);
  left: 50%;
  translate: -50% 0;
  display: grid;
  gap: .3rem;
  width: max-content;
  min-width: min(18rem, calc(100cqw - 1rem));
  max-width: calc(100cqw - 1rem);
  margin: 0;
  padding: .6rem 1rem;
  border: 1px solid #e6bc73;
  border-radius: 10px;
  background: #203b31;
  box-shadow: 0 .45rem .85rem #10141199;
  color: #fff1cd;
  text-align: center;
  pointer-events: none;
}
.ec-tree-growth-banner strong { font: 700 clamp(1.05rem, 3.8cqw, 1.4rem)/1.15 Georgia, serif; }
.ec-tree-growth-banner span { color: #f0d7a4; font: 600 .85rem/1.2 system-ui, sans-serif; }
.ec-zone .ec-scene > .ec-tree-growth-banner { left: 33.5%; bottom: calc(var(--room-ground) + .4rem); }
.ec-zone .ec-yard-wrap-status {
  display: flex;
  justify-content: center;
  gap: .35rem;
  max-width: 100%;
  padding: .2rem .52rem;
  overflow: hidden;
  border: 1px solid #c5a26e9e;
  border-radius: 6px;
  background: #203832f5;
  color: #fff1d2;
  font: 600 .72rem/1.35 system-ui, sans-serif;
}
.ec-yard-wrap-status strong { flex: none; color: #efcf97; }
.ec-yard-wrap-status span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ec-room-care {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: max-content;
  max-width: 100%;
  padding: .42rem;
  border: 1px solid #cbad774f;
  border-radius: 11px;
  background: #172a26f5;
  box-shadow: 0 .4rem .8rem #10181883;
}
.ec-zone .ec-room-growth {
  display: grid;
  gap: .23rem;
  min-width: 10.1rem;
  padding: .37rem .53rem;
  border-color: transparent;
  background: none;
  text-align: left;
}
.ec-room-growth strong { font: 600 .94rem/1.1 Georgia, serif; }
.ec-room-growth > span { color: #ebd5af; font-size: .72rem; }
.ec-room-growth .ec-meter { width: 100%; margin: .1rem 0 0; height: .3rem; }
.ec-zone .ec-room-growth[data-new-level] {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .23rem .4rem;
  border-color: #e6bc73;
}
.ec-room-growth[data-new-level] :is(strong, .ec-meter) { grid-column: 1 / -1; }
.ec-zone .ec-room-growth .ec-room-growth__badge {
  grid-area: 2 / 2;
  padding: .13rem .29rem;
  border-radius: 4px;
  background: #f4d18c;
  color: #252d21;
  font: 700 .64rem/1.1 system-ui, sans-serif;
  white-space: nowrap;
}
.ec-yard-tree-base:has(.ec-tree-growth-banner) .ec-room-growth__badge { visibility: hidden; }
.ec-zone .ec-room-decorate {
  display: inline-grid;
  justify-items: center;
  align-content: center;
  gap: .2rem;
  min-width: 5.1rem;
  min-height: 3.25rem;
  padding: .3rem .44rem;
  border: 1px solid #d5b987;
  border-radius: .45rem;
  background: #2b4237;
  color: #ffebc6;
  font: 720 .74rem/1.1 system-ui, sans-serif;
}
.ec-room-decorate__icon { color: #ffda84; font-size: 1rem; }
.ec-room-care__tools { display: flex; align-items: stretch; gap: .25rem; }
.ec-room-care__controls { display: grid; gap: .25rem; }
.ec-room-care .ec-room-prop {
  grid-template-rows: 1.9rem auto;
  gap: .12rem;
  min-width: 3.5rem;
  min-height: 2.75rem;
  padding: .12rem .37rem;
  border: 1px solid #c9ab7b4b;
  border-radius: 6px;
  background: #233d35;
}
.ec-room-care .ec-room-prop__art { width: 2.35rem; height: 100%; }
.ec-room-care .ec-room-prop__tag { font: 600 .66rem/1 system-ui, sans-serif; }
.ec-room-care .ec-room-prop__tag { display: grid; justify-items: center; gap: .15rem; }
.ec-room-care .ec-room-prop__tag small { color: #efcf97; font-size: .59rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-room-care .ec-room-prop--food .ec-room-prop__tag small { max-width: 7.3rem; font-size: .67rem; white-space: normal; }
.ec-room-care .ec-room-prop--food[data-limit='true'] { background: #192522; border-color: #70877c55; }
.ec-room-care .ec-room-prop--food[data-limit='true'] small { color: #c4cbbd; }
.ec-room-care .ec-room-prop__badge { top: .05rem; right: .15rem; min-width: 1.1rem; padding: 0 .15rem; font-size: .67rem; }
.ec-room-care__reminder {
  position: absolute;
  top: .12rem;
  right: .14rem;
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid #ffc8a8;
  border-radius: 50%;
  background: #ad363b;
  color: #fff5e5;
  font: 800 .75rem/1 system-ui, sans-serif;
  box-shadow: 0 0 .35rem #ff665877;
  pointer-events: none;
}
.ec-room-prop:disabled > .ec-room-care__reminder { display: none; }
.ec-room-prop--water { --prop-image: url('../art/trees/room-water.webp'); }
.ec-room-prop--food { --prop-image: url('../art/trees/room-food.webp'); }
.ec-room-growth-progress {
  display: grid;
  gap: .38rem;
  padding: .64rem .8rem;
  border: 1px solid #a68f6280;
  border-radius: 8px;
  background: #132d2b;
  color: #efe0c2;
  font-size: .83rem;
  line-height: 1.35;
}
.ec-room-growth-progress__heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .18rem .75rem;
}
.ec-room-growth-progress__heading > strong { color: #fff2d5; font-size: .96rem; }
.ec-room-growth-progress__heading > span { color: #f0c98e; font-variant-numeric: tabular-nums; }
.ec-room-growth-progress .ec-meter { height: .55rem; margin: .06rem 0; }
.ec-room-growth-progress p { margin: 0; }
.ec-room-growth-progress p > strong { color: #fff2d5; }
.ec-room-growth-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: .4rem;
  padding: 0;
  list-style: none;
}
.ec-room-growth-step {
  display: grid;
  justify-items: center;
  padding: .4rem;
  text-align: center;
  border: 1px solid #a68f6257;
  border-radius: 8px;
  background: #132d2b;
}
.ec-room-growth-step[aria-current='step'] { border-color: #e9c381; background: #334733; }
.ec-room-growth-step strong { display: block; font-family: Georgia, serif; }
.ec-room-growth-step span { display: block; font-size: .73rem; color: #efe0c2; }

.ec-room-prop {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: end;
  gap: .25rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff0d0;
  text-align: center;
  text-decoration: none;
}
.ec-room-prop__art {
  position: relative;
  display: block;
  width: var(--prop-width, 100%);
  height: var(--prop-height, 100%);
  background: var(--prop-image, none) center / contain no-repeat;
  filter: drop-shadow(0 .37rem .35rem #110e0b99);
  transition: filter .16s ease, transform .16s ease;
}
.ec-room-prop:is(:hover:not(:disabled), :focus-visible) .ec-room-prop__art {
  filter: brightness(1.13) drop-shadow(0 .4rem .5rem #110d0bc9);
  transform: translateY(-2px);
}
.ec-room-prop:disabled .ec-room-prop__art { filter: brightness(.58); }
.ec-room-prop:disabled .ec-room-prop__tag { color: #b7c8b7; }
.ec-room-prop__badge {
  position: absolute;
  top: 0;
  right: 3%;
  min-width: 1.35rem;
  padding: .02rem .26rem;
  border: 1px solid #c99e61a6;
  border-radius: 20px;
  background: #351f21;
  color: #ffe9b6;
  font: 650 .76rem/1.35 system-ui, sans-serif;
}
.ec-room-prop__badge:empty { display: none; }
.ec-yard-game {
  --cabinet-height: clamp(12rem, 47cqh, 26rem);
  position: absolute;
  z-index: 4;
  left: var(--cabinet-x);
  bottom: var(--cabinet-floor, clamp(.9rem, 3cqh, 2.45rem));
  translate: -50% 0;
  width: clamp(6.6rem, 16cqw, 15.6rem);
}
.ec-yard-games .ec-room-prop {
  width: 100%;
  align-content: end;
  justify-items: center;
  gap: .22rem;
}
.ec-yard-games .ec-room-prop__art {
  width: min(100%, calc(var(--cabinet-height) * var(--cabinet-aspect)));
  height: auto;
  aspect-ratio: var(--cabinet-aspect);
  filter: brightness(1.09) contrast(1.04) drop-shadow(0 .4rem .42rem #110e0bc4);
}
.ec-yard-games .ec-room-prop:is(:hover, :focus-visible) .ec-room-prop__art {
  filter: brightness(1.18) contrast(1.04) drop-shadow(0 .45rem .52rem #110d0bdf);
}
.ec-yard-games .ec-room-prop__tag,
.ec-yard-shortcuts .ec-room-prop__tag {
  display: grid;
  justify-items: center;
  gap: .14rem;
  padding: .36rem .62rem;
  border-radius: 6px;
  color: #fff0d1;
  background: #26241fef;
  box-shadow: 0 2px 6px #101412b0, inset 0 0 0 1px #d4ae6a57;
  font: 600 clamp(.81rem, 1.12cqw, 1.05rem)/1.07 Georgia, serif;
}
.ec-yard-games .ec-room-prop__tag {
  min-width: 5.1rem;
  text-wrap: balance;
  border: 1px solid #d4ae6a57;
  background: #29241de8;
}
.ec-room-play {
  display: inline-grid;
  place-items: center;
  min-width: 6rem;
  min-height: 2.45rem;
  padding: .22rem .85rem;
  border: 1px solid #fff0ba;
  border-radius: 7px;
  color: #3b240f;
  background: linear-gradient(#ffe49b, #ffcb62 57%, #eea23e);
  box-shadow: inset 0 1px #fff3cc, 0 2px #824515, 0 0 .85rem #f5aa5166;
  font: 800 .94rem/1 system-ui, sans-serif;
}
.ec-yard-games .ec-room-prop:is(:hover, :focus-visible) .ec-room-play { background: #ffeaab; }
.ec-yard-games .ec-room-prop:is(:hover, :focus-visible) .ec-room-prop__tag,
.ec-yard-shortcuts .ec-room-prop:is(:hover, :focus-visible) .ec-room-prop__tag {
  background: #43382a;
  box-shadow: inset 0 0 0 1px #ebc786;
}
.ec-yard-game--claw {
  --cabinet-x: 10.6%;
}
.ec-room-prop--claw {
  --cabinet-aspect: .554;
  --prop-image: url('../art/trees/room-claw.webp');
}
.ec-yard-game--words { --cabinet-x: 74%; }
.ec-room-prop--words {
  --cabinet-aspect: .514;
  --prop-image: url('../art/trees/room-cabinet-words.webp');
}
.ec-yard-letter-tiles {
  position: absolute;
  inset: 37.7% 19.2% 56.4%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.ec-yard-letter-tiles i {
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: 2px;
  color: #502523;
  background: #f7dfb4;
  font: 700 clamp(.43rem, .95cqw, .88rem)/1 Georgia, serif;
  box-shadow: inset 0 -1px #ac814f;
}
.ec-yard-games :is(.ec-yard-game--match, .ec-yard-game--words) {
  --cabinet-height: clamp(11.5rem, 42cqh, 23rem);
  --cabinet-floor: clamp(4.65rem, 10.7cqh, 6.85rem);
}
.ec-yard-game--match { --cabinet-x: 26%; }
.ec-room-prop--match {
  --cabinet-aspect: .5125;
  --prop-image: url('../art/trees/room-cabinet-match.webp');
}
.ec-yard-match-preview {
  position: absolute;
  inset: 24.7% 17.5% 44.7%;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  gap: 1px;
}
.ec-yard-match-preview i {
  min-height: 0;
  min-width: 0;
  border: 1px solid #f3c18257;
  border-radius: 3px;
  background: url('../art/style/match-toys.png') var(--toy-x) var(--toy-y) / 300% 200% no-repeat;
}
.ec-yard-game--paint { --cabinet-x: 89.4%; }
.ec-room-prop--paint {
  --cabinet-aspect: .468;
  --prop-image: url('../art/trees/room-cabinet-paint.webp');
}

.ec-yard-shortcuts {
  --yard-offer-width: clamp(13rem, 20cqw, 17rem);
  position: absolute;
  inset: calc(100% - .8rem) clamp(.8rem, 3cqw, 3rem) auto;
  display: grid;
  grid-template-areas: 'bonuses prizes' 'offers prizes';
  grid-template-columns: minmax(0, var(--yard-offer-width)) auto;
  justify-content: space-between;
  align-items: start;
  gap: .45rem;
  pointer-events: none;
}
.ec-yard-shortcuts .ec-room-prop { pointer-events: auto; }
.ec-yard-shortcuts .ec-room-prop__art {
  --reward-count-top: -.16rem;
  --reward-count-right: -.2rem;
  width: clamp(2.3rem, 4.7cqw, 3.2rem);
  height: clamp(2.15rem, 4.5cqw, 2.95rem);
  background-position: center bottom;
}
.ec-yard-shortcuts .yard-gift-art { height: auto; }
.ec-yard-shortcuts .ec-room-prop__tag {
  width: 100%;
  min-height: 2.65rem;
  align-content: center;
  text-wrap: balance;
}
.ec-yard-shortcuts .ec-remaining-clock { justify-content: center; color: #f8d7a0; font: 650 .69rem/1.1 system-ui, sans-serif; }
.ec-room-prop--daily { --reward-count-delay: .5s; }
.ec-room-prop--wheel { --reward-count-delay: 1.1s; }
.ec-room-prop--post { --reward-count-delay: 1.75s; }
.ec-yard-shortcuts .ec-room-prop .ec-room-prop__tag {
  min-height: 1.75rem;
  padding: .08rem .18rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff0d0;
  text-shadow: 0 1px 4px #160e0a, 0 1px 8px #0f1414;
}
.ec-yard-shortcuts .ec-room-prop:is(:hover, :focus-visible) .ec-room-prop__tag {
  color: #ffe193;
}
.ec-yard-shortcuts .ec-yard-bonuses { grid-area: bonuses; gap: .56rem; }
.ec-yard-shortcuts .ec-yard-prize-links { grid-area: prizes; justify-self: end; }
.ec-yard-bonuses > .ec-room-prop {
  grid-template-columns: 2.15rem minmax(0, 1fr);
  align-items: center;
  justify-self: start;
  max-width: 100%;
  gap: .46rem;
}
.ec-yard-bonuses > .ec-room-prop > .ec-room-prop__art { width: 2.15rem; height: auto; aspect-ratio: 1; }
.ec-yard-bonuses > .ec-room-prop > .ec-room-prop__tag {
  min-height: 2.2rem;
  justify-items: start;
  padding: .2rem .32rem;
  font: 650 clamp(.77rem, 1.02cqw, .97rem)/1.22 system-ui, sans-serif;
  text-align: left;
}
.ec-yard-offers { grid-area: offers; display: grid; gap: .64rem; margin-top: .18rem; }
.ec-zone .ec-yard-offer {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: .57rem;
  min-width: 0;
  padding: .52rem;
  border: 1px solid #6c9bbe;
  border-radius: .62rem;
  background: #102a3e;
  box-shadow: 0 .22rem .65rem #061221a8, inset 0 0 0 1px #fff1;
  color: #f0f8ff;
  text-align: left;
  pointer-events: auto;
}
.ec-zone .ec-yard-offer[data-offer='starter'] {
  border-color: #e6bb71;
  background: #352c21;
  color: #ffebc4;
}
.ec-zone .ec-yard-offer[data-offer='starter']:hover { background: #493722; border-color: #ffe0a2; }
.ec-zone .ec-yard-review { background: var(--toy-tier-stage); border-color: var(--toy-tier-edge); }
.ec-zone .ec-yard-review__snow {
  display: grid;
  justify-items: center;
  gap: .1rem;
  min-width: 0;
  padding: .17rem .1rem .27rem;
  border: 1px solid var(--toy-tier-edge);
  border-radius: .42rem;
  background: var(--toy-tier-stage);
}
.ec-zone .ec-yard-review__snow:hover { background: color-mix(in srgb, var(--toy-tier-stage), var(--toy-tier-light) 25%); }
.ec-yard-review__snow > :is(img, canvas) { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.ec-zone .ec-yard-review__action {
  justify-self: start;
  min-height: 1.75rem;
  padding: .15rem 0;
  border: 0;
  background: transparent;
  color: var(--toy-tier-label);
  font: 750 .78rem/1.2 system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.ec-zone .ec-yard-review__action:hover { color: white; }
.ec-yard-offer__art { width: 100%; aspect-ratio: 1; }
.ec-yard-offer__copy { display: grid; min-width: 0; gap: .22rem; }
.ec-yard-offer__copy > strong { font: 700 clamp(.97rem, 1.25cqw, 1.18rem)/1.05 Georgia, serif; }
.ec-yard-offer[data-offer='starter'] .ec-yard-offer__copy > strong { font-size: clamp(.9rem, 1.2cqw, 1.07rem); }
.ec-yard-offer__copy small { color: #c1d9e8; font: 550 .72rem/1.25 system-ui, sans-serif; }
.ec-yard-offer__copy .ec-yard-review__rarity { color: var(--toy-tier-label); }
.ec-yard-offer__copy .ec-yard-review__bonus { color: #f0f8ff; }
.ec-yard-starter__details { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .18rem .3rem; font: 700 .71rem/1.2 system-ui, sans-serif; }
.ec-yard-starter__details .ec-yard-offer__clock { color: #f5d399; font-variant-numeric: tabular-nums; }
@media (min-width: 981px) {
  .ec-scene:has(.ec-yard-offers) { --yard-offers-edge: 27rem; }
  .ec-scene:has(.ec-yard-offers) .ec-yard-game--claw {
    --cabinet-height: clamp(6.5rem, calc(100cqh - var(--yard-offers-edge) - clamp(.9rem, 3cqh, 2.45rem) - 5.2rem), min(47cqh, 26rem));
  }
}
@media (min-width: 981px) and (max-height: 800px) {
  .ec-scene:has(.ec-yard-offers) { --yard-offers-edge: 20.75rem; }
  .ec-yard-offers:has([data-offer='starter']) { grid-template-columns: repeat(2, minmax(0, 1fr)); width: clamp(24rem, 37cqw, 32rem); }
  .ec-scene:has(.ec-yard-offers) .ec-yard-game--match {
    --cabinet-floor: clamp(3.75rem, calc(100cqh - var(--yard-offers-edge) - 14rem), 6.85rem);
    --cabinet-height: clamp(6.5rem, calc(100cqh - var(--yard-offers-edge) - var(--cabinet-floor) - 5.2rem), min(42cqh, 23rem));
  }
}
@media (max-width: 980px) {
  .ec-yard-shortcuts { grid-template-areas: 'bonuses prizes' 'offers offers'; grid-template-columns: minmax(0, 1fr) auto; }
  .ec-yard-shortcuts .ec-yard-bonuses { gap: .52rem; }
  .ec-yard-offers { width: min(100%, 22rem); margin-top: 0; }
  .ec-yard-offers:has([data-offer='starter']) { width: min(100%, 30rem); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .ec-zone .ec-yard-offer { grid-template-columns: 2.6rem minmax(0, 1fr); padding: .38rem; gap: .4rem; }
}
@media (max-width: 370px) {
  .ec-zone .ec-yard-offer { grid-template-columns: 2rem minmax(0, 1fr); gap: .32rem; }
  .ec-yard-offer__copy small { font-size: .67rem; }
}
.ec-room-prop--chest { --prop-image: url('../art/trees/room-chest.webp'); }
.ec-tree-power-controls {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: calc(var(--hub-tree-foot) + .36rem);
  translate: -50% 0;
}
.ec-zone .ec-tree-power {
  display: grid;
  flex: 0 0 2.75rem;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 0;
  padding: 0;
  border: 1px solid #aa956a;
  border-radius: 50%;
  background: #263b32;
  color: #fff0c6;
}
.ec-zone .ec-tree-power[data-lit='true'] {
  border-color: #f0cd83;
  background: #f0cd83;
  color: #3a2b17;
}
.ec-zone .ec-tree-power:hover { border-color: #ffe6af; }
.ec-zone .ec-tree-power[data-lit='true']:hover { background: #ffe6af; }
.ec-tree-power__icon {
  width: 1.24rem;
  height: 1.24rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 2.5v9M6.3 6a8 8 0 1 0 11.4 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ec-tree-spot--lit-star .ec-tree-spot__art > canvas {
  filter: drop-shadow(0 0 max(2px, 1.12cqw) #ffc57986);
}
.ec-care-effect {
  --care-tip: -46deg;
  --care-spout-x: 86%;
  --care-spout-y: -10%;
  position: absolute;
  z-index: 8;
  left: 50%;
  /* Match the trunk baseline in the tree portrait. */
  top: 93.5%;
  width: clamp(3.35rem, 15cqw, 6.25rem);
  aspect-ratio: 1;
  translate: -50% -100%;
  pointer-events: none;
}
.ec-care-effect--feed { --care-tip: -112deg; --care-spout-x: 91%; --care-spout-y: -6%; }
.ec-care-effect__tool {
  position: absolute;
  z-index: 1;
  top: -26%;
  left: 132%;
  width: 100%;
  height: 100%;
  background: var(--prop-image) center / contain no-repeat;
  filter: drop-shadow(0 .22rem .3rem #14100bb0);
  transform: translate(-50%, -50%) rotate(var(--care-tip));
}
.ec-care-effect__particle { position: absolute; inset: 0; translate: var(--care-rest-x) var(--care-rest-y); }
.ec-care-effect__particle::before {
  content: '';
  position: absolute;
  top: var(--care-spout-y);
  left: var(--care-spout-x);
  width: max(2px, 5%);
  height: max(5px, 12%);
  border-radius: 50%;
  background: linear-gradient(#f3fcff, #8ee6ff 65%, #4da8e2);
  box-shadow: 0 0 3px #7ee4ffb0;
  rotate: 28deg;
}
.ec-care-effect--water .ec-care-effect__particle:nth-child(3n)::before { width: max(2px, 3%); height: max(4px, 8%); }
.ec-care-effect--feed .ec-care-effect__particle::before {
  width: max(3px, 7%);
  height: max(3px, 6%);
  border-radius: 42% 60% 53% 34%;
  background: #efb969;
  box-shadow: inset 0 -1px #75421f, 0 1px 3px #34230ec0;
}
.ec-care-effect--feed .ec-care-effect__particle:nth-child(2n)::before { width: max(3px, 5%); background: #be7e43; rotate: -22deg; }
.ec-care-effect--water::after {
  content: '';
  position: absolute;
  left: 29%;
  top: 96%;
  width: 44%;
  height: 10%;
  border: 1px solid #a2edff;
  border-radius: 50%;
  box-shadow: 0 0 3px #87dbff;
}
@media (prefers-reduced-motion: no-preference) {
  .ec-care-effect__tool { animation: ec-care-tip 1.85s ease-in-out both; }
  .ec-care-effect__particle { animation: ec-care-fall .53s linear var(--care-delay) both; }
  .ec-care-effect--water::after { animation: ec-care-ripple .58s ease-out .82s 2 both; }
}
@keyframes ec-care-tip {
  0% { opacity: 0; transform: translate(-24%, -67%) rotate(9deg) scale(.8); }
  12% { opacity: 1; }
  24%, 65% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--care-tip)); }
  84% { opacity: 1; }
  100% { opacity: 0; transform: translate(-24%, -68%) rotate(6deg) scale(.84); }
}
@keyframes ec-care-fall {
  0% { opacity: 0; translate: 0 0; }
  12%, 78% { opacity: 1; }
  43% { translate: calc(var(--care-drift) * .55) 29%; }
  90%, 100% { translate: var(--care-drift) 102%; }
  100% { opacity: 0; }
}
@keyframes ec-care-ripple {
  from { opacity: .8; scale: .35; }
  to { opacity: 0; scale: 1.25; }
}
.ec-feed-gain {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 38%;
  translate: -50% 0;
  padding: .38rem .72rem;
  border: 1px solid #e5c27b;
  border-radius: .55rem;
  background: #234839;
  color: #fff1bd;
  font: 700 .9rem/1.2 system-ui, sans-serif;
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .ec-feed-gain { animation: ec-feed-gain 2.2s ease-out both; }
  .ec-tree-stage--fed > .ec-portrait:first-of-type { animation: ec-feed-glow 1.35s ease-out; }
}
@keyframes ec-feed-gain {
  0% { opacity: 0; translate: -50% .55rem; }
  13%, 77% { opacity: 1; translate: -50% 0; }
  100% { opacity: 0; translate: -50% -.38rem; }
}
@keyframes ec-feed-glow {
  42% { filter: brightness(1.28) drop-shadow(0 0 .75rem #ebd390); }
}

.ec-scene[data-editing='true'] {
  --room-ground: 6rem;
  --edit-zoom: 1.12;
}
.ec-scene[data-editing='true'][data-growth-stage='0'] { --edit-zoom: 1.8; }
.ec-scene[data-editing='true'][data-growth-stage='1'] { --edit-zoom: 1.52; }
.ec-scene[data-editing='true'][data-growth-stage='2'] { --edit-zoom: 1.28; }
.ec-scene[data-editing='true'] .ec-tree-stage {
  left: 33.5%;
  bottom: calc(var(--room-ground) + var(--young-lift, 0px));
  width: min(57%, calc((100cqh - 12rem) * .98), 50rem);
  transform: translateX(-50%) scale(var(--edit-zoom));
  transform-origin: 50% 88%;
}
.ec-scene[data-editing='true'] .ec-tree-power-controls {
  left: 33.5%;
  bottom: 1.1rem;
}
.ec-room-dressing {
  --dressing-padding: clamp(.75rem, 1.5cqw, 1.35rem);
  position: absolute;
  z-index: 9;
  top: 50%;
  right: clamp(.65rem, 3cqw, 3rem);
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  width: clamp(18rem, 33%, 28rem);
  max-height: min(76cqh, 35rem);
  overflow: hidden;
  border: 1px solid #c6a575aa;
  border-radius: 13px;
  background: #182f2c;
  box-shadow: 0 1rem 2.6rem #0717169c;
  scrollbar-color: #987b55 #17312b;
}
.ec-room-dressing__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding: var(--dressing-padding) var(--dressing-padding) 0;
}
.ec-room-dressing__body {
  display: grid;
  align-content: start;
  gap: .65rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .25rem var(--dressing-padding) var(--dressing-padding);
}
.ec-room-dressing__head h2 { font-size: clamp(1.45rem, 2.3cqw, 2.1rem); }
.ec-room-dressing__save { flex: none; margin-inline-start: auto; font-size: .82rem; }
.ec-zone .ec-room-dressing__head .ec-room-dressing__close {
  flex: 0 0 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border-color: #bf9b63;
  background: #263d34;
  color: #ffebc4;
  font-size: 1.65rem;
  line-height: 1;
}
.ec-zone .ec-room-dressing__head .ec-room-dressing__close:hover { background: #3a5143; }
.ec-room-dressing__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .26rem;
}
.ec-room-dressing__appearance-tabs { display: flex; gap: .26rem; }
.ec-zone .ec-room-dressing__tab {
  min-height: 2.15rem;
  padding: .28rem .52rem;
  border-color: #ba9b6b57;
  background: #263d34;
  font-size: .76rem;
}
.ec-zone .ec-room-dressing__tab[aria-pressed='true']:not(:disabled) { border-color: #dcc287; background: #f0d7a7; color: #2b261b; }
.ec-room-dressing__status { color: #eddfc2; font-size: .83rem; }
.ec-inventory-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .48rem; }
.ec-inventory-filters .ec-field { display: grid; min-width: 0; gap: .2rem; color: #e3dbc4; font-size: .72rem; }
.ec-inventory-filters select { min-width: 0; width: 100%; min-height: 2rem; padding: .2rem .34rem; color: #fff2d6; }
.ec-zone .ec-inventory-filters-toggle { display: none; }
.ec-dressing-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .42rem;
  color: #eee2c8;
  font: 600 .72rem/1.2 system-ui, sans-serif;
}
.ec-dressing-guide__label { color: #efd39f; }
.ec-dressing-places {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ec-dressing-places li, .ec-inventory-target {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.ec-dressing-guide .ec-tree-spot__mark, .ec-inventory-target .ec-tree-spot__mark {
  flex: none;
  width: 1rem;
  height: 1rem;
  font-size: .72rem;
  box-shadow: none;
}
.ec-zone .ec-dressing-wrap {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.45rem;
  max-width: 100%;
  padding: .26rem .46rem;
  border-color: #87afa082;
  background: #233d35;
  font-size: .72rem;
  text-align: left;
}
.ec-zone .ec-dressing-wrap[data-occupied='true'] { border-color: #d3ae72; background: #364732; }
.ec-zone .ec-dressing-wrap[data-occupied='true']:hover { background: #47543a; }
.ec-dressing-wrap__copy { display: grid; min-width: 0; gap: .12rem; }
.ec-dressing-wrap__copy > span { color: #d9e8d8; overflow-wrap: anywhere; }
.ec-dressing-wrap[data-occupied='true'] .ec-dressing-wrap__copy > span { color: #ffdfa6; }
.ec-room-inventory .ec-inventory-target { color: #f5dab1; font-size: .68rem; }
.ec-room-inventory .ec-inventory-target .ec-tree-spot__mark { width: .87rem; height: .87rem; }
.ec-room-inventory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.8rem), 1fr));
  gap: .4rem;
}
.ec-room-inventory .ec-slot-choice {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: .22rem;
  min-width: 0;
  padding: .45rem .22rem;
  font-size: .75rem;
  overflow-wrap: anywhere;
}
.ec-room-inventory .ec-slot-choice :is(img, canvas, svg) { max-height: 3.6rem; object-fit: contain; }
.ec-room-inventory .ec-slot-choice .ec-inventory-quantity { color: #f7dcaa; }
.ec-room-inventory .ec-slot-choice[aria-pressed='true'] {
  background: #40583e;
  border-color: #f6d58b;
  box-shadow: inset 0 0 0 1px #f6d58b;
}
.ec-room-inventory__empty { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .45rem; }
.ec-room-inventory__empty p { flex-basis: 100%; color: #ffefce; }
.ec-room-dressing__actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.ec-room-dressing__head .ec-button, .ec-room-dressing__actions .ec-button { min-height: 2.15rem; padding: .3rem .6rem; }
.ec-tree-appearance { display: grid; gap: .65rem; }
.ec-appearance-inventory { grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.8rem), 1fr)); }
.ec-room-inventory .ec-appearance-choice {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: stretch;
  gap: .38rem;
  padding: .26rem .26rem .48rem;
}
.ec-appearance-choice__preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: 5px;
  background: radial-gradient(ellipse at 50% 70%, #365543, #142c29 76%);
}
.ec-room-inventory .ec-appearance-choice__preview > :is(img, canvas) { max-height: none; }
.ec-appearance-choice__preview > canvas {
  position: absolute;
  bottom: -4%;
  width: auto;
  height: 110%;
}
.ec-appearance-choice__active {
  position: absolute;
  top: .22rem;
  right: .22rem;
  padding: .19rem .32rem;
  border-radius: 4px;
  background: #f4d28f;
  color: #302614;
  font: 750 .62rem/1.1 system-ui, sans-serif;
}
.ec-appearance-choice__name { padding-inline: .16rem; }
.ec-inventory-supplies { display: grid; gap: .55rem; font-size: .84rem; }
.ec-inventory-supplies ul { margin: 0; padding: 0; list-style: none; }
.ec-inventory-supplies li { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px solid #c9a67747; padding-block: .2rem; }
.ec-inventory-supplies summary { cursor: pointer; color: #f2d6a5; }
.ec-inventory-supplies details p { padding-block: .23rem; }

@media (761px <= width <= 980px) {
  .ec-scene[data-editing='true'] .ec-tree-stage {
    left: 32%;
    width: min(47%, calc((100cqh - 12rem) * .98), 50rem);
  }
  .ec-scene[data-editing='true'] .ec-tree-power-controls { left: 32%; }
}
@media (min-width: 981px) {
  .ec-scene[data-editing='true'][data-growth-stage='0'] .ec-tree-stage {
    width: min(54%, calc((100cqh - 12rem) * .98), 50rem);
  }
}
@media (981px <= width <= 1480px) {
  .ec-scene[data-editing='false'] { --yard-care-base: .85rem; }
  .ec-scene[data-editing='false'] .ec-yard-games :is(.ec-yard-game--match, .ec-yard-game--words) {
    --cabinet-floor: max(6.85rem, calc(var(--yard-care-height, 5rem) + var(--yard-care-base) + .5rem));
  }
}
@media (max-width: 980px) {
  body[data-route='tree']:has(.ec-scene[data-editing='false']) .shell-toast {
    bottom: max(3.45rem, env(safe-area-inset-bottom));
  }
  .ec-scene[data-editing='false'] {
    --yard-cabinet-height: clamp(8.7rem, 40cqw, 12.7rem);
    --yard-arcade-space: calc(var(--yard-cabinet-height) + 4.65rem);
    --yard-care-base: calc(var(--yard-arcade-space) + 4.15rem);
    --hub-tree-foot: calc(var(--yard-care-base) + var(--yard-care-height, 7rem) + .25rem);
    --yard-tree-width: min(108vw, 35rem, var(--yard-tree-edge-fit, 108vw));
    height: max(100svh, 42rem,
      calc(var(--yard-header-height, 15rem) + var(--hub-tree-foot) + var(--yard-tree-width) * var(--yard-crown-scale, 1) + .8rem));
  }
  .ec-scene[data-editing='false'][data-young='true'] { --yard-tree-width: min(138vw, 42rem, var(--yard-tree-edge-fit, 138vw)); }
  .ec-scene[data-editing='false'][data-growth-stage='1'] { --yard-tree-width: min(128vw, 40rem, var(--yard-tree-edge-fit, 128vw)); }
  .ec-scene[data-editing='false'][data-wrap-equipped] { --hub-tree-foot: calc(var(--yard-care-base) + var(--yard-care-height, 7rem) + 1.25rem); }
  .ec-yard-header:has(.ec-yard-shortcuts) { grid-template-areas: 'title links tools' 'shortcuts shortcuts shortcuts'; }
  .ec-yard-shortcuts { position: static; grid-area: shortcuts; }
  .ec-yard-bonuses > .ec-room-prop { grid-template-columns: 2rem auto; align-items: center; }
  .ec-yard-bonuses .ec-room-prop__badge { right: auto; left: 1.45rem; top: -.1rem; z-index: 1; }
  .ec-yard-shortcuts .ec-room-prop__art { width: 2rem; height: 1.85rem; }
  .ec-yard-shortcuts .yard-gift-art { height: auto; }
  .ec-scene[data-editing='false'] :is(.ec-tree-stage, .ec-care-stage) {
    width: var(--yard-tree-width);
  }
  .ec-scene[data-editing='false'] .ec-tree-stage:has(.ec-room-tree-hit[data-drop-target]) { z-index: 16; }
  .ec-yard-games {
    position: absolute;
    z-index: 4;
    inset: auto .45rem .65rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .25rem;
    align-items: end;
  }
  .ec-yard-games > .ec-yard-game {
    --cabinet-height: var(--yard-cabinet-height);
    position: relative;
    left: auto;
    bottom: auto;
    translate: none;
    width: 100%;
  }
  .ec-yard-letter-tiles { gap: 1px; }
  .ec-yard-letter-tiles i { font-size: clamp(.35rem, 1.25cqw, .62rem); }
  .ec-yard-match-preview i { border-radius: 1px; }
  .ec-yard-games .ec-room-prop__tag {
    align-content: center;
    min-width: 0;
    min-height: 1.85rem;
    width: 100%;
    padding: .24rem .12rem;
    text-wrap: balance;
    font-size: .72rem;
  }
  .ec-room-play { min-width: min(100%, 4.5rem); min-height: 2.05rem; padding-inline: .38rem; font-size: .79rem; }
  .ec-yard-shortcuts .ec-room-prop__tag { min-height: 2.4rem; padding: .24rem .42rem; font-size: .72rem; }
}
@media (max-width: 760px) {
  body[data-route='tree']:has(.ec-room-dressing:is([data-mode='styles'], [data-mode='backgrounds'])) .shell-toast {
    bottom: max(16rem, env(safe-area-inset-bottom));
  }
  .ec-scene[data-room] {
    background-image: var(--room-backdrop-mobile);
    background-position: center 50%;
  }
  .ec-yard-header {
    grid-template-areas: 'title tools' 'links links';
    grid-template-columns: 1fr auto;
    gap: .38rem .48rem;
    padding: max(.62rem, env(safe-area-inset-top)) .7rem 1.45rem;
  }
  .ec-yard-header:has(.ec-yard-shortcuts) { grid-template-areas: 'title tools' 'links links' 'shortcuts shortcuts'; }
  .ec-yard-header h1 { gap: .32rem; font-size: clamp(1.43rem, 6.4cqw, 2.75rem); }
  .ec-yard-header .shell-insignia { width: 1.55rem; height: 1.55rem; font-size: 1rem; }
  .ec-yard-links { gap: .32rem; flex-wrap: wrap; justify-self: start; }
  .ec-yard-links > .ec-button, .ec-yard-menu > summary { min-height: 2.35rem; padding-inline: .43rem; font-size: .73rem; }
  .ec-room-care { width: min(21.5rem, 100%); gap: .25rem; padding: .32rem; }
  .ec-zone .ec-scene > .ec-tree-growth-banner { left: 50%; }
  .ec-zone .ec-room-decorate { min-width: 3.3rem; min-height: 2.8rem; padding-inline: .2rem; font-size: .66rem; }
  .ec-zone .ec-room-growth { flex: 1 1 auto; min-width: 0; padding: .29rem .35rem; }
  .ec-room-growth strong { font-size: clamp(.76rem, 3.8cqw, .94rem); }
  .ec-room-care .ec-room-prop { min-width: 2.9rem; padding-inline: .25rem; }
  .ec-scene[data-editing='true'] { --room-ground: 19rem; height: max(100svh, 45rem); --edit-zoom: 1; }
  .ec-scene[data-editing='true'][data-growth-stage='0'] { --edit-zoom: 1.64; --young-lift: 1.65rem; }
  .ec-scene[data-editing='true'][data-growth-stage='1'] { --edit-zoom: 1.42; --young-lift: .9rem; }
  .ec-scene[data-editing='true'][data-growth-stage='2'] { --edit-zoom: 1.12; }
  .ec-scene[data-editing='true'] .ec-tree-stage {
    left: 50%;
    width: min(94%, calc((100cqh - var(--room-ground) - 7rem) * .98), 27rem);
  }
  .ec-scene[data-editing='true'] .ec-tree-power-controls { left: 50%; bottom: 17.5rem; }
  .ec-room-dressing {
    --dressing-padding: .62rem;
    inset: auto .52rem .55rem;
    translate: none;
    width: auto;
    max-height: 16.25rem;
    gap: .15rem;
  }
  .ec-room-dressing__body { gap: .4rem; }
  .ec-room-dressing__body { grid-auto-rows: max-content; }
  .ec-room-dressing__tabs { flex-wrap: nowrap; min-height: 2.45rem; overflow-x: auto; padding: .12rem .05rem .26rem; }
  .ec-room-dressing__appearance-tabs { display: contents; }
  .ec-room-dressing__tabs > .ec-button, .ec-room-dressing__appearance-tabs > .ec-button { flex: 0 0 auto; }
  .ec-zone .ec-inventory-filters-toggle { display: inline-flex; justify-self: start; min-height: 1.85rem; padding: .16rem .44rem; font-size: .73rem; }
  .ec-inventory-filters:not([data-expanded]) { display: none; }
  .ec-room-dressing__status, .ec-dressing-guide__label, .ec-dressing-places { display: none; }
  .ec-dressing-guide:not(:has(.ec-dressing-wrap)) { display: none; }
  body[data-route='tree']:has(.ec-room-dressing:not([hidden])) .shell-toast { bottom: 17.1rem; }
}
@media (max-width: 335px) {
  .ec-yard-links { gap: .2rem; }
  .ec-yard-tools { gap: .28rem; }
  .ec-yard-links > .ec-button, .ec-yard-menu > summary { padding-inline: .25rem; font-size: .68rem; }
  .ec-yard-shortcuts .ec-yard-bonuses .ec-room-prop__tag { font-size: .68rem; }
}

.ec-zone .ec-yard-game__help {
  position: absolute;
  right: max(0px, calc((100% - 9.5rem) / 2));
  bottom: .1rem;
  width: 1.65rem;
  min-width: 0;
  min-height: 1.65rem;
  padding: 0;
  border: 1px solid #b5945c;
  border-radius: 50%;
  color: #ffe9b9;
  background: #2b261de8;
  font: 700 .88rem/1 Georgia, serif;
}
.ec-zone .ec-yard-game__help:hover { background: #51422b; }
.ec-arcade-stock {
  position: absolute;
  z-index: 1;
  inset: auto 0 7%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .16rem;
  filter: drop-shadow(0 1px 2px #100d0add);
}
.ec-arcade-stock--wheel { position: static; filter: none; }
.ec-yard-game--claw .ticket-recovery {
  position: absolute;
  z-index: 1;
  bottom: calc(7% + 1.36rem);
  left: 50%;
  translate: -50% 0;
}
.ec-arcade-readout {
  display: inline-flex;
  align-items: center;
  gap: .17rem;
  min-height: 1.12rem;
  padding: .08rem .19rem;
  border: 1px solid #b8a174;
  border-radius: 4px;
  background: #24231cf2;
  color: #ffe6af;
  font: 750 clamp(.62rem, .82cqw, .76rem)/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.ec-arcade-readout[data-quiet='true'] { border-color: #8c8170; color: #e0d5c1; }
.ec-arcade-icon { display: inline-block; flex: none; position: relative; width: .68rem; height: .64rem; }
.ec-arcade-icon--spark { background: #c6f0ca; clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%); }
.ec-arcade-readout[data-quiet='true'] .ec-arcade-icon--spark { background: currentColor; }
.ec-arcade-readout .wheel-ticket { width: .87rem; }
.ec-arcade-icon--task { border: 1px solid #d6efc5; border-radius: 2px; color: #d6efc5; }
.ec-arcade-icon--task::before { position: absolute; top: .004rem; left: .08rem; content: '✓'; font: 800 .55rem/1 system-ui, sans-serif; }
.ec-arcade-icon--blank { width: .61rem; height: .57rem; margin-top: .07rem; border: 1px solid #f1d2b2; border-radius: 50%; }
.ec-arcade-icon--blank::before { position: absolute; top: -.17rem; left: 30%; width: 40%; height: .13rem; border: 1px solid #f1d2b2; content: ''; }
.ec-arcade-icon--spin { width: .63rem; border: 1px solid currentColor; border-radius: 50%; background: conic-gradient(from 25deg, transparent 70%, #e8c486 71%); }
.ec-yard-prize-links { display: grid; gap: .55rem; pointer-events: none; }
.ec-room-prop--post .ec-room-prop__art { display: grid; place-items: center; overflow: visible; }
.ec-post-envelope {
  position: relative;
  display: inline-block;
  width: 1.9em;
  height: 1.25em;
  overflow: hidden;
  border: 1px solid #f3d9aa;
  border-radius: .16em;
  background: linear-gradient(135deg, #f8efd4, #c9ab7a);
  box-shadow: .09em .2em .3em #1a100cba, inset 0 0 0 1px #fff2cc7a;
  transform: rotate(-9deg);
  vertical-align: middle;
}
.ec-room-prop--post .ec-post-envelope { font-size: clamp(1.05rem, 2cqw, 1.7rem); }
.ec-post-envelope::before {
  position: absolute;
  top: -.94em;
  left: .24em;
  width: 1.3em;
  height: 1.3em;
  border: 1px solid #a87d45;
  border-radius: .08em;
  background: #fbebc5;
  content: '';
  transform: rotate(45deg);
}
.ec-post-envelope::after {
  position: absolute;
  top: .47em;
  left: .71em;
  width: .4em;
  height: .4em;
  border-radius: 50%;
  background: #a1383c;
  box-shadow: inset 0 0 0 .06em #e2987c;
  content: '';
}
.ec-yard-links .ec-post-envelope { margin-right: .26rem; font-size: .73em; }
.ec-yard-links > .reward-count-anchor { --reward-count-top: -.55rem; --reward-count-right: -.18rem; }
.ec-yard-collection { --reward-count-delay: 2.4s; }
.ec-inventory-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--toy-tier-edge, #658e81);
  border-radius: .7rem;
  background: var(--toy-tier-stage, #1c3833);
}
.ec-room-inventory .ec-inventory-card > .ec-slot-choice {
  position: relative;
  flex: 1;
  grid-template-rows: repeat(3, auto);
  width: 100%;
  gap: .18rem;
  padding: .28rem .3rem .26rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff4d8;
}
.ec-room-inventory .ec-inventory-card > .ec-slot-choice:disabled { opacity: 1; }
.ec-room-inventory .ec-inventory-card > .ec-slot-choice[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--toy-tier-edge, #658e81); }
.ec-inventory-card__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 3.8rem;
  border-radius: .5rem;
  background: var(--toy-tier-fill, radial-gradient(ellipse at 50% 65%, #476454, #203b35 73%));
}
.ec-room-inventory .ec-inventory-card__art :is(img, canvas, svg) { width: 100%; max-height: 4.1rem; }
.ec-inventory-card__name { font: 690 .8rem/1.14 system-ui, sans-serif; text-wrap: balance; }
.ec-inventory-card__rarity { color: var(--toy-tier-label); font-size: .69rem; }
.ec-inventory-card__count {
  position: absolute;
  inset: auto .16rem .15rem auto;
  padding: .13rem .21rem;
  border-radius: .32rem;
  background: #19302e;
  color: #f7e5b3;
  font: 700 .65rem/1.1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ec-inventory-card__placed {
  position: absolute;
  inset: .39rem auto auto .42rem;
  max-width: calc(100% - 2.5rem);
  padding: .17rem .24rem;
  border-radius: .33rem;
  background: #d6e8b6;
  color: #233624;
  font: 740 .62rem/1.1 system-ui, sans-serif;
  pointer-events: none;
}
.ec-inventory-card > .toy-effect-button {
  --toy-effect-hit: 1.5rem;
  position: absolute;
  z-index: 2;
  inset: .43rem .47rem auto auto;
}
.ec-inventory-card > .toy-effect-button > svg { inline-size: .875rem; block-size: .875rem; }
.ec-inventory-card__actions { display: flex; flex-wrap: wrap; gap: .2rem; padding: 0 .28rem .29rem; }
.ec-zone .ec-inventory-action { flex: 1 1 auto; min-height: 2rem; padding: .14rem .26rem; font-size: .71rem; white-space: nowrap; }
.ec-inventory-card__actions:has(button + button) { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr); }
.ec-zone .ec-inventory-card__actions:has(button + button) .ec-inventory-action { min-width: 0; padding-inline: .12rem; }
.ec-room-dressing__body > .commerce-owned-chests { margin-top: .55rem; }
.ec-room-dressing__body > .commerce-owned-chests > p { margin-block: .45rem .7rem; }
[draggable='true']:is(.ec-slot-choice, .ec-tree-spot, .ec-room-care .ec-room-prop) { cursor: grab; }
[draggable='true']:active { cursor: grabbing; }
.ec-tree-spot[data-pointer-drag] { cursor: grab; touch-action: none; user-select: none; }
.ec-tree-spot[data-dragging] { z-index: 6; cursor: grabbing; box-shadow: none; outline: none; background: transparent; }
.ec-tree-spot[data-dragging] > .ec-tree-spot__thread { visibility: hidden; }
.ec-tree-spot[data-dragging] > .ec-tree-spot__art { translate: var(--drag-x, 0) var(--drag-y, 0); }
.ec-tree-spot--edit[data-preview-target] .ec-tree-spot__mark {
  border-color: #e6ffc7;
  color: #172f26;
  background: #c9efab;
  box-shadow: 0 0 0 2px #263e2b, 0 0 .38rem #d3fca9b0;
}
.ec-tree-spot--edit[data-occupied='true']:is([data-preview-target],[data-target='true'],[data-drop-target])::after {
  position: absolute;
  inset: -2px;
  z-index: 2;
  border: 2px solid #ffdc96;
  border-radius: 50%;
  box-shadow: 0 0 .53rem #ffcf778a;
  content: '';
  pointer-events: none;
}
.ec-tree-spot--edit[data-occupied='true'][data-drop-over]::after {
  border-color: #fff3cc;
  box-shadow: 0 0 0 3px #364d3d, 0 0 .75rem #ffe6a5;
}
.ec-room-tree-hit.ec-room-tree-hit--preview {
  --tree-hit-top: 24%;
  --tree-hit-width: 45%;
  outline: 2px dashed #d9ffb5;
  background: #c4e7a425;
  pointer-events: none;
}
.ec-room-tree-hit--preview[hidden] { display: none; }
.ec-room-tree-hit--preview[data-drop-target] { pointer-events: auto; }
.ec-room-tree-hit--preview[data-drop-over], .ec-dressing-wrap[data-drop-over] { outline: 2px solid #ffe6a5; }
.ec-prize-place {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2.3rem;
  margin: .24rem .35rem .1rem 0;
  padding: .38rem .58rem;
  border: 1px solid #c0a36d;
  border-radius: .35rem;
  background: #f3d79a;
  color: #302618;
  font: 720 .82rem/1.2 system-ui, sans-serif;
  text-decoration: none;
}
.ec-prize-place:hover { background: #ffebba; color: #302618; }
.claw-result-actions .ec-prize-place { pointer-events: auto; }
.ec-arcade-help .ec-prize-place, .ec-arcade-help > a { display: inline-flex; margin-top: .55rem; }
@media (max-width: 760px) {
  .ec-yard-games .ec-room-play { justify-self: start; width: calc(100% - 1.48rem); min-width: 0; padding-inline: .12rem; }
  .ec-zone .ec-yard-game__help { right: 0; bottom: .1rem; width: 1.35rem; min-height: 1.4rem; }
  .ec-yard-bonuses > .ec-room-prop:last-child { align-self: start; }
  .ec-arcade-stock { bottom: 6%; }
  .ec-arcade-stock--wheel { position: static; }
  .ec-yard-game--claw .ticket-recovery {
    top: .06rem;
    bottom: auto;
    grid-template-columns: auto auto;
    grid-auto-flow: row;
    gap: .14rem .26rem;
    padding: .25rem .35rem .44rem;
  }
  .ec-yard-game--claw :is(.ticket-recovery__word, .ticket-recovery__lead) { display: none; }
  .ec-yard-game--claw .ticket-recovery__time { grid-column: 1 / -1; }
  .ec-arcade-readout { padding-inline: .14rem; gap: .10rem; }
  .ec-arcade-stock .ec-arcade-icon { transform: scale(.92); }
  .ec-yard-prize-links .ec-room-prop { grid-template-columns: 2rem auto; align-items: center; }
  .ec-yard-prize-links .ec-room-prop__tag { padding-inline: .38rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-room-prop__art, .ec-tree-stage .ec-portrait { transition: none; }
}

@media (max-width: 980px) {
  .ec-yard-header {
    padding-left: max(.65rem, env(safe-area-inset-left));
    padding-right: max(.65rem, env(safe-area-inset-right));
  }
  .ec-yard-links > .ec-button, .ec-yard-menu > summary,
  .ec-yard-shortcuts .ec-room-prop, .ec-room-play { min-height: 44px; }
}

@media (max-width: 760px) {
  .ec-scene[data-editing='false'] {
    --yard-arcade-space: calc(var(--yard-cabinet-height) + 4.65rem + env(safe-area-inset-bottom));
  }
  .ec-yard-games { bottom: max(.65rem, env(safe-area-inset-bottom)); }
  .ec-room-care { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(4.5rem, auto); }
  .ec-room-care .ec-room-growth { grid-column: 1 / -1; min-height: 44px; }
  .ec-room-growth strong { font-size: .94rem; }
  .ec-room-care__tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-room-care .ec-room-prop { min-width: 0; }
  .ec-room-care .ec-room-prop__tag small { white-space: normal; }
  .ec-room-care .ec-room-prop__tag { overflow-wrap: anywhere; }
  .ec-zone .ec-yard-game__help {
    bottom: 0; width: clamp(29px, 7.6vw, 44px); min-height: 44px; border-radius: 7px;
  }
  .ec-yard-games .ec-room-play { width: calc(100% - clamp(29px, 7.6vw, 44px) - 3px); }
  .ec-room-dressing__tabs :is(button, a), .ec-room-dressing__head .ec-button,
  .ec-zone .ec-inventory-filters-toggle { min-height: 44px; }
  .ec-room-dressing { bottom: max(.55rem, env(safe-area-inset-bottom)); }
  .ec-scene[data-editing='true'] .ec-tree-stage :is(.ec-tree-spot--edit, .ec-tree-effect) {
    --spot-room-edge: calc((50vw - 22px) / var(--edit-zoom));
    left: clamp(calc(50% - var(--spot-room-edge)), var(--spot-x), calc(50% + var(--spot-room-edge)));
  }
}

@media (max-width: 360px) {
  .ec-yard-header { grid-template-areas: 'title title' 'tools tools' 'links links'; }
  .ec-yard-header:has(.ec-yard-shortcuts) { grid-template-areas: 'title title' 'tools tools' 'links links' 'shortcuts shortcuts'; }
  .ec-yard-tools { justify-self: start; }
}

