:root {
  font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",sans-serif;
  color:#354e40;
  background:#f5f2e9;
  --green:#3c604a;
  --muted:#879083;
  --accent:#ad765b
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  min-width:280px
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button {
  font:inherit;
  cursor:pointer;
  border:0;
  color:inherit;
  white-space:nowrap
}
button:disabled {
  cursor:default;
  opacity:.35
}
button:focus-visible,a:focus-visible {
  outline:3px solid #ae7e5f;
  outline-offset:4px
}
button {
  transition:background .18s,transform .18s
}
button:not(:disabled):active {
  transform:translateY(1px)
}
[hidden] {
  display:none!important
}
.topbar {
  max-width:1400px;
  margin:auto;
  padding:25px 44px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid #dedfd3
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  color:inherit;
  text-decoration:none;
  font-size:17px;
  font-weight:600;
  letter-spacing:.1em
}
.brand-mark {
  font-size:37px;
  font-weight:400;
  color:#607b58
}
.brand small {
  display:block;
  font-size:8px;
  letter-spacing:.18em;
  margin-top:7px;
  color:#89937f
}
.top-actions {
  display:flex;
  gap:18px;
  align-items:center
}
.history-controls {
  display:flex;
  border-right:1px solid #d6dbcd;
  padding-right:15px;
  gap:4px
}
.icon-button {
  background:transparent;
  width:44px;
  height:44px;
  font-size:26px;
  border-radius:50%
}
.icon-button:hover {
  background:#e5e8dc
}
.text-button {
  background:transparent;
  font-size:13px;
  min-height:44px;
  padding:9px 12px;
  border-radius:8px
}
.text-button:hover {
  background:#e8e9df
}
.save-button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  background:var(--green);
  color:#faf8ef;
  border-radius:30px;
  padding:13px 21px;
  min-height:44px;
  font-size:13px
}
.save-button:hover {
  background:#294c39
}
.save-dot {
  width:6px;
  height:6px;
  border-radius:100%;
  background:#c6d7a3
}
main {
  max-width:1320px;
  margin:auto;
  padding:28px 44px 20px
}
.intro {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  position:relative;
  z-index:1;
  pointer-events:none
}
.eyebrow {
  font-size:10px;
  letter-spacing:.15em;
  color:#7d8d78;
  font-weight:600;
  margin:0 0 15px
}
.eyebrow span {
  color:#a9aea0;
  margin-left:16px;
  font-size:8px;
  letter-spacing:.16em
}
h1 {
  font-family:"AppleMyungjo","Batang",Georgia,serif;
  font-weight:400;
  font-size:35px;
  line-height:1.35;
  letter-spacing:-.065em;
  margin:0
}
h1 em {
  font-style:normal;
  color:#6f825f
}
.intro-note {
  font-size:12px;
  color:#8b9585;
  line-height:1.85;
  text-align:right;
  margin:0 0 5px
}
.garden-wrap {
  position:relative;
  height:510px;
  margin-top:-15px;
  background:radial-gradient(ellipse at 50% 60%,#e8ebd7 0%,#f5f2e900 65%);
  border-radius:35px
}
.scene-caption {
  position:absolute;
  left:0;
  top:72px;
  font-size:10px;
  letter-spacing:.04em;
  color:#8b9581;
  z-index:2
}
.scene-dot {
  display:inline-block;
  width:5px;
  height:5px;
  margin-right:6px;
  background:#bcaa78;
  border-radius:50%
}
.scene-divider {
  margin:0 9px;
  color:#bcc2af
}
.new-button {
  position:absolute;
  right:0;
  top:70px;
  z-index:2;
  background:transparent;
  font-size:11px;
  min-height:44px;
  color:#7c8975;
  padding:8px 0 8px 15px
}
.new-button:hover {
  color:var(--green)
}
#world {
  width:100%;
  height:100%;
  overflow:visible;
  touch-action:none;
  user-select:none;
  display:block
}
.placed {
  cursor:grab;
  outline:none
}
.placed.dragging {
  cursor:grabbing
}
.placed:focus-visible .select-ring {
  opacity:1;
  stroke:#ad765b
}
.select-ring {
  fill:none;
  stroke:#f9f8e5;
  stroke-width:3;
  stroke-dasharray:6 5;
  opacity:0
}
.placed.selected .select-ring {
  opacity:1
}
.object-shadow {
  fill:#45603d;
  opacity:.16
}
.hit-area {
  fill:transparent;
  pointer-events:all
}
.placed:hover .object-shadow {
  opacity:.24
}
#ghost {
  opacity:.55;
  pointer-events:none
}
.empty-hint {
  position:absolute;
  left:50%;
  top:43%;
  transform:translate(-50%,-50%);
  text-align:center;
  pointer-events:none;
  font-family:"AppleMyungjo",serif;
  font-size:19px;
  color:#698058;
  white-space:nowrap
}
.empty-hint span {
  font-family:-apple-system,sans-serif;
  font-size:11px;
  display:block;
  margin-top:12px;
  color:#829373
}
.scene-bottom {
  position:absolute;
  bottom:5px;
  left:0;
  right:0;
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:#9aa18f
}
.scene-help {
  letter-spacing:.02em
}
.workbench {
  position:relative;
  max-width:730px;
  margin:15px auto 0
}
.shelf-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:0 8px 11px;
  font-size:11px;
  color:#5c7459
}
.shelf-heading span:last-child {
  color:#9da68f;
  font-size:10px
}
.asset-shelf {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  background:#faf9f2;
  border:1px solid #e0e3d4;
  border-radius:21px;
  padding:7px 10px;
  box-shadow:0 8px 24px #69784b08
}
.asset-button {
  background:transparent;
  border-radius:13px;
  min-height:91px;
  padding:3px 2px 9px;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
  color:#7a8870;
  font-size:10px
}
.asset-button svg {
  width:72px;
  height:63px;
  overflow:visible;
  filter:drop-shadow(0 3px 2px #566d3e11)
}
.asset-button:hover {
  background:#ecefdf
}
.asset-button[aria-pressed=true] {
  background:#e7edd9;
  color:#3e6144;
  box-shadow:inset 0 0 0 1px #b3c199
}
.asset-button[aria-pressed=true]:after {
  content:"+";
  position:absolute;
  right:9px;
  top:7px;
  color:#728563
}
.live-line {
  display:flex;
  justify-content:center;
  gap:20px;
  align-items:center;
  min-height:43px;
  color:#84917c;
  font-size:10px
}
.live-line p {
  margin:11px 0;
  line-height:1.6
}
.prototype-note {
  font-size:8px;
  color:#adb4a4;
  white-space:nowrap
}
.selection-bar {
  position:absolute;
  left:50%;
  bottom:calc(100% + 45px);
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:3px 8px 3px 16px;
  border:1px solid #e2e4d7;
  border-radius:28px;
  background:#faf9f3f2;
  box-shadow:0 4px 18px #55664710;
  white-space:nowrap;
  font-size:11px
}
.selection-bar>span:first-child {
  font-weight:600
}
.selection-bar>span:nth-child(2) {
  font-size:9px;
  color:#9ba68c;
  margin-right:3px
}
.selection-bar button {
  background:transparent;
  min-width:44px;
  height:44px;
  font-size:22px;
  border-radius:20px;
  padding:0 8px
}
.selection-bar button:hover {
  background:#e8eddd
}
.selection-bar button span {
  font-size:10px;
  margin-left:3px
}
dialog {
  border:1px solid #dfe3d3;
  border-radius:23px;
  background:#faf9f1;
  color:#3d5644;
  padding:29px;
  width:min(430px,calc(100% - 30px));
  box-shadow:0 20px 90px #34422b30
}
dialog::backdrop {
  background:#35483144;
  backdrop-filter:blur(4px)
}
dialog h2 {
  font-family:"AppleMyungjo",serif;
  font-size:23px;
  font-weight:400;
  margin:8px 0 15px
}
dialog p:not(.eyebrow) {
  font-size:13px;
  color:#829077;
  line-height:1.8
}
.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:13px;
  margin-top:23px
}
.corrupt #saveState {
  color:#a96e54
}
@media(min-width:1600px) {
  .garden-wrap {
    height:590px
  }
}
@media(max-height:850px) and (min-width:800px) {
  .topbar {
    padding-top:18px;
    padding-bottom:14px
  }
  main {
    padding-top:22px
  }
  .garden-wrap {
    height:425px
  }
  .intro h1 {
    font-size:31px
  }
  .workbench {
    margin-top:9px
  }
}
@media(max-width:760px) {
  .topbar {
    padding:17px 19px 13px;
    gap:10px
  }
  .brand {
    font-size:14px;
    gap:7px;
    letter-spacing:.04em
  }
  .brand-mark {
    font-size:29px
  }
  .brand small {
    font-size:6px;
    letter-spacing:.08em
  }
  .top-actions {
    gap:2px
  }
  .history-controls {
    border:0;
    padding:0;
    gap:0
  }
  .icon-button {
    width:35px;
    height:44px;
    font-size:24px
  }
  .text-button {
    font-size:10px;
    padding:7px
  }
  .save-button {
    font-size:11px;
    padding:11px 14px
  }
  .save-dot {
    display:none
  }
  main {
    padding:25px 19px 15px
  }
  .intro h1 {
    font-size:29px
  }
  .eyebrow {
    font-size:9px;
    margin-bottom:12px
  }
  .eyebrow span {
    font-size:6px;
    margin-left:6px
  }
  .intro-note {
    display:none
  }
  .garden-wrap {
    height:390px;
    margin-top:6px
  }
  .scene-caption {
    top:9px;
    font-size:9px
  }
  .scene-caption #objectCount,.scene-divider {
    display:none
  }
  .new-button {
    top:0;
    font-size:10px
  }
  .scene-bottom {
    font-size:9px;
    bottom:7px
  }
  .scene-help {
    font-size:8px
  }
  .workbench {
    margin-top:18px
  }
  .asset-shelf {
    padding:6px 4px;
    border-radius:16px
  }
  .asset-button {
    min-height:82px;
    font-size:9px
  }
  .asset-button svg {
    width:48px;
    height:54px
  }
  .asset-button[aria-pressed=true]:after {
    right:4px;
    top:5px
  }
  .shelf-heading {
    font-size:10px;
    margin-inline:3px
  }
  .shelf-heading span:last-child {
    font-size:9px
  }
  .selection-bar {
    bottom:calc(100% + 48px);
    padding-left:12px;
    gap:3px;
    font-size:10px
  }
  .selection-bar button {
    padding:0 4px;
    min-width:42px
  }
  .live-line {
    display:block;
    text-align:center;
    min-height:48px
  }
  .prototype-note {
    font-size:8px;
    display:block
  }
  .empty-hint {
    font-size:16px
  }
  .empty-hint span {
    font-size:10px
  }
}
@media(max-width:370px) {
  .brand small {
    display:none
  }
  .brand {
    font-size:12px
  }
  .brand-mark {
    font-size:25px
  }
  .topbar {
    padding-inline:12px
  }
  .icon-button {
    width:29px
  }
  .top-actions #open {
    font-size:9px;
    padding-inline:5px
  }
  .save-button {
    padding-inline:11px
  }
  main {
    padding-inline:13px
  }
  .garden-wrap {
    height:350px
  }
  .asset-button svg {
    width:43px
  }
  .selection-bar button span {
    display:none
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
@media(max-width:760px) {
  .brand small {
    display:none
  }
  .brand {
    white-space:nowrap
  }
  .top-actions {
    flex-shrink:0
  }
}
