@font-face {
  font-family: Shrikhand;
  src: url("/fonts/Shrikhand.woff2");
}
@font-face {
  font-family: Inter;
  src: url("/fonts/Inter.woff2");
}
@font-face {
  font-family: Hand;
  src: url("/fonts/handwriting.woff2");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: #262626;
  font:
    14px Inter,
    Arial,
    sans-serif;
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #63765b;
  outline-offset: 4px;
}
button {
  background: white;
  border: 1px solid #e4e4e4;
  border-radius: 30px;
  padding: 8px 14px;
  color: #666;
  box-shadow: 0 1px 2px #0002;
  transition:
    background 0.2s,
    transform 0.2s;
}
button:hover {
  background: #f6f6f4;
  color: #222;
}
button:active {
  transform: scale(0.97);
}
#canvas {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
#canvas.dragging {
  cursor: grabbing;
}
#world {
  position: absolute;
  inset: 0;
}
.food {
  position: absolute;
  width: 192px;
  height: 224px;
  padding: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  transform: translate(-50%, -50%);
}
.food:hover {
  background: transparent;
  transform: translate(-50%, -50%) scale(1.055);
}
.food:active {
  transform: translate(-50%, -50%);
}
.food img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 5px 3px #00000009);
  user-select: none;
}
.food .food-label {
  position: absolute;
  top: 100%;
  white-space: nowrap;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  background: #fffd;
  padding: 5px 9px;
  border-radius: 8px;
}
.food:hover .food-label,
.food:focus-visible .food-label {
  opacity: 1;
}
#home {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 460px;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  transition: opacity 0.25s;
}
h1 {
  font-family: Shrikhand, Georgia, serif;
  font-size: 44px;
  letter-spacing: -1.8px;
  color: #bdbdbd;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.2;
}
#home p {
  color: #999;
  font-size: 14px;
  margin: 14px 0;
}
.controls {
  display: flex;
  justify-content: center;
  gap: 12px;
}
select {
  border: 1px solid #e4e4e4;
  border-radius: 30px;
  padding: 8px 30px 8px 14px;
  background: #fff;
  color: #666;
  box-shadow: 0 1px 2px #0002;
  max-width: 175px;
}
.search-wrap {
  margin-top: 17px;
}
.search-wrap input {
  width: 238px;
  border: 0;
  border-bottom: 1px solid #efefef;
  border-radius: 0;
  text-align: center;
  background: transparent;
  padding: 7px 5px;
  color: #555;
  font-size: 12px;
}
.search-wrap input::placeholder {
  color: #b8b8b8;
}
#count {
  display: block;
  color: #b7b7b7;
  font-size: 10px;
  margin-top: 12px;
}
#utility {
  position: fixed;
  right: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
  z-index: 4;
}
#utility button {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 20px;
}
#hint {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #aaa;
  white-space: nowrap;
  pointer-events: none;
}
#hint span {
  margin: 0 10px;
}
#detail {
  position: fixed;
  inset: 0;
  background: #ffffffed;
  z-index: 10;
  overflow: auto;
  align-items: center;
  justify-content: center;
  padding: 65px 8vw;
  gap: 7vw;
}
#detail:not([hidden]) {
  display: flex;
  animation: fade 0.3s;
}
.detail-image {
  width: 38vw;
  max-width: 480px;
  height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.detail-image > img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  animation: grow 0.45s;
}
.detail-copy {
  width: 400px;
  max-width: 100%;
  align-self: center;
}
.detail-copy h2 {
  font-size: 25px;
  margin: 0 0 8px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.meta {
  color: #737373;
  line-height: 1.7;
}
.handwritten {
  font:
    18px/1.85 Hand,
    cursive;
  margin: 24px 0 32px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.facts {
  line-height: 1.9;
  color: #555;
}
.links {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.links a {
  color: #202020;
  font-size: 19px;
  font-weight: 750;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}
.links a:hover {
  color: #68805b;
}
.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}
.close-detail {
  position: absolute;
  right: 28px;
  top: 25px;
  border: 0;
  box-shadow: none;
  font-size: 25px;
  color: #999;
}
.demo {
  display: inline-block;
  margin: 0 0 15px;
  font-size: 10px;
  letter-spacing: 0.4px;
  color: #999;
  background: #f5f5f2;
  border-radius: 5px;
  padding: 5px 8px;
}
.attribution {
  font-size: 11px;
  color: #aaa;
  margin-top: 24px;
}
.thumbs {
  position: absolute;
  bottom: -38px;
  display: flex;
  gap: 8px;
}
.thumbs button {
  padding: 3px;
  border-radius: 8px;
  box-shadow: none;
}
.thumbs img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.empty {
  position: fixed;
  left: 50%;
  top: 70%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #999;
  text-align: center;
}
dialog {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 20px 70px #0003;
  width: 550px;
  max-width: calc(100% - 28px);
  padding: 0;
  max-height: 90vh;
}
dialog::backdrop {
  background: #0005;
  backdrop-filter: blur(3px);
}
form {
  padding: 28px;
}
.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-heading h2 {
  font-size: 21px;
  margin: 0;
}
.form-heading button {
  border: 0;
  box-shadow: none;
  padding: 0;
  font-size: 26px;
}
.intro {
  font-size: 12px;
  color: #999;
  margin-bottom: 22px;
}
label {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 14px;
}
label > input:not([type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  border: 1px solid #e2e2e2;
  background: #fafafa;
  border-radius: 10px;
  padding: 11px 12px;
  margin-top: 6px;
  color: #333;
  outline: none;
}
input::placeholder,
textarea::placeholder {
  color: #b0b0b0;
}
label > input:focus,
textarea:focus {
  border-color: #999;
}
.row {
  display: flex;
  gap: 14px;
}
.row > label {
  width: 50%;
}
#drop {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 23px 14px;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
}
#drop input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
#drop:focus-within {
  outline: 2px solid #63765b;
}
#drop strong {
  font-size: 13px;
  font-weight: 400;
  display: block;
}
#drop span {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  color: #999;
}
#drop.over {
  border-color: #789068;
  background: #f2f6ef;
}
#previews {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#previews > div {
  width: 95px;
  position: relative;
  text-align: center;
}
#previews img {
  height: 75px;
  width: 90px;
  object-fit: contain;
  background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 0/14px 14px;
  border-radius: 6px;
}
#previews button {
  font-size: 9px;
  padding: 4px 6px;
  margin: 3px 0;
}
#previews .remove {
  position: absolute;
  right: 0;
  top: -6px;
  background: white;
  border-radius: 50%;
  font-size: 15px;
  width: 23px;
  padding: 0;
}
#processing {
  color: #718565;
  font-size: 12px;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
legend {
  font-size: 12px;
  color: #555;
  margin-bottom: 10px;
}
legend small {
  color: #aaa;
}
fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  margin: 0;
}
#error {
  color: #a23c30;
  font-size: 12px;
}
.primary {
  width: 100%;
  background: #292929;
  color: #fff;
  border-radius: 11px;
  padding: 12px;
  box-shadow: none;
}
.primary:hover {
  background: #444;
  color: #fff;
}
.primary:disabled {
  opacity: 0.5;
  cursor: wait;
}
#toast {
  position: fixed;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  background: #30342e;
  color: white;
  border-radius: 30px;
  padding: 12px 20px;
  z-index: 50;
  display: none;
  font-size: 12px;
}
#list {
  position: fixed;
  inset: 0;
  overflow: auto;
  padding: 210px 8vw 65px;
  background: #fff;
}
#list:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 35px;
}
body.list-mode #home {
  top: 30px;
  transform: translateX(-50%);
  z-index: 3;
}
body.list-mode h1 {
  font-size: 32px;
}
body.list-mode #home p {
  margin: 6px 0 10px;
  font-size: 12px;
}
body.list-mode .search-wrap {
  margin-top: 8px;
}
body.list-mode #count {
  margin-top: 5px;
}
body.list-mode #hint {
  display: none;
}
.list-card {
  border: 0;
  box-shadow: none;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
}
.list-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}
.list-card h3 {
  font-size: 15px;
  font-weight: 550;
  margin: 16px 0 6px;
}
.list-card p {
  font-size: 12px;
  color: #999;
  margin: 0;
}
.list-card small {
  font-size: 10px;
  color: #bbb;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes grow {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}
@media (max-width: 650px) {
  #home {
    width: 300px;
  }
  h1 {
    font-size: 37px;
  }
  #home p {
    font-size: 12px;
    line-height: 1.6;
    margin: 10px 15px;
  }
  .food {
    width: 140px;
    height: 160px;
  }
  #utility {
    right: 14px;
    top: 14px;
  }
  #hint {
    font-size: 10px;
    bottom: 16px;
  }
  #detail:not([hidden]) {
    display: block;
    padding: 65px 26px 35px;
  }
  .detail-image {
    width: 100%;
    height: 34vh;
    max-width: none;
    margin-bottom: 48px;
  }
  .detail-copy {
    width: 100%;
  }
  .handwritten {
    font-size: 16px;
    margin: 18px 0 24px;
  }
  .detail-copy h2 {
    font-size: 23px;
  }
  .row {
    gap: 10px;
  }
  form {
    padding: 23px;
  }
  #list {
    padding: 230px 20px 45px;
    gap: 15px;
  }
  #list:not([hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .list-card {
    padding: 8px;
  }
  .list-card img {
    height: 135px;
  }
  .list-card h3 {
    font-size: 13px;
  }
  body.list-mode #home {
    top: 20px;
  }
  body.list-mode #utility {
    top: auto;
    bottom: 20px;
    z-index: 5;
    background: white;
    border-radius: 30px;
  }
  .close-detail {
    position: fixed;
    background: #fff;
    z-index: 11;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* Keep notes readable when a detail opens over the list. */
#detail {
  background: #fff;
}
body.list-mode::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 205px;
  background: #fff;
  z-index: 2;
  pointer-events: none;
}
@media (max-width: 650px) {
  body.list-mode::before {
    height: 225px;
  }
}
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
button {
  transition:
    transform 160ms var(--ease-out),
    background 160ms ease,
    color 160ms ease;
}
button:active {
  transform: scale(0.96);
}
dialog[open] {
  animation: dialog-in 220ms var(--ease-out);
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
#importer {
  width: 460px;
  border-radius: 23px;
}
#importer form {
  padding: 30px;
}
.eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #aaa;
  margin-bottom: 9px;
}
#importer h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
  font-weight: 550;
}
#importer .intro {
  margin-top: 12px;
  margin-bottom: 24px;
  font-size: 13px;
}
#import-input {
  width: 100%;
  background: #f7f7f5;
  border: 1px solid #e9e9e5;
  border-radius: 13px;
  padding: 16px;
  resize: vertical;
  line-height: 1.6;
  font-size: 13px;
  min-height: 110px;
  outline: none;
}
#import-input:focus {
  border-color: #b9bcb0;
  box-shadow: 0 0 0 3px #f1f2ee;
}
#import-go {
  margin-top: 10px;
  border-radius: 13px;
  background: #333b2e;
}
#import-go:hover {
  background: #424c3b;
}
.quiet {
  display: block;
  border: 0;
  box-shadow: none;
  background: none;
  margin: 12px auto 0;
  font-size: 11px;
  color: #999;
}
.processing-note {
  display: block;
  text-align: center;
  font-size: 9px;
  color: #b0b0ac;
  margin-top: 18px;
}
#import-error {
  font-size: 12px;
  color: #a1503e;
  line-height: 1.5;
}
#import-working:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 0 8px;
  font-size: 12px;
  color: #828778;
}
.spinner {
  width: 13px;
  height: 13px;
  border: 1.5px solid #e5e8e0;
  border-top-color: #798767;
  border-radius: 100%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#import-preview:not([hidden]) {
  animation: dialog-in 240ms var(--ease-out);
}
.found-place {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.found-place img {
  width: 100px;
  height: 95px;
  object-fit: contain;
}
.found-place h3 {
  font-size: 19px;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}
.found-place p {
  font-size: 11px;
  color: #888;
  margin: 0;
}
.found-place .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
}
.preview-note {
  font:
    14px/1.9 Hand,
    cursive;
  margin: 18px 0;
}
.order-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.order-chips span {
  font-size: 10px;
  padding: 7px 9px;
  border: 1px solid #ecece6;
  border-radius: 7px;
  color: #717568;
}
.review-status {
  font-size: 10px;
  color: #aaa;
  line-height: 1.8;
  margin: 17px 0;
}
.draft-inner {
  padding: 28px;
}
.draft-inner .form-heading {
  margin-bottom: 24px;
}
#draft-body {
  width: 100%;
  resize: vertical;
  line-height: 1.7;
}
.source-notes {
  margin-top: 22px;
  color: #999;
  font-size: 11px;
}
.source-notes small {
  display: block;
  margin-top: 15px;
  font-size: 9px;
}
.source-notes summary {
  cursor: pointer;
  margin: 10px 0;
}
.source-notes p {
  line-height: 1.7;
}
.detail-actions {
  flex-wrap: wrap;
}
.detail-actions button {
  font-size: 12px;
}
#detail .handwritten {
  font-size: 17px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* Reference motion: 160 × 192 tiles, 1.1 rest / 1.4 hover, in-canvas expansion. */
#world {
  transform-origin: 50% 50%;
  transition: opacity 180ms ease;
  will-change: transform;
}
.food,
.food:hover,
.food:active {
  width: 160px;
  height: 192px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  transform: translate(-50%, -50%);
  border-radius: 0;
  transition: none;
}
.tile-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 192px;
  border-radius: 12px;
  overflow: hidden;
  transform: scale(1.1);
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.food img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 8px;
  object-fit: contain;
  filter: none;
}
.food:hover .tile-inner {
  transform: scale(1.4) rotate(var(--tilt));
}
.dragging .food:hover .tile-inner {
  transform: scale(1.1);
}
#home {
  width: 448px;
  height: 192px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#home h1 {
  font-size: 40px;
  letter-spacing: -1px;
  margin: 0;
  color: #c1c1c1;
  cursor: pointer;
}
#home p {
  font-size: 14px;
  color: #aaa;
  margin: 9px 0 12px;
}
.search-wrap,
#count,
#hint {
  display: none;
}
#utility {
  top: auto;
  bottom: 20px;
  opacity: 0.25;
  transition: opacity 200ms;
}
#utility:hover,
#utility:focus-within {
  opacity: 1;
}
#floating-controls {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 60;
}
#floating-controls:not([hidden]) {
  display: block;
  animation: detail-copy-in 200ms ease-out;
}
body.detail-open #utility {
  opacity: 0;
  pointer-events: none;
}
#detail:not([hidden]) {
  display: block;
  background: transparent;
  padding: 0;
  overflow: hidden;
  animation: none;
  cursor: pointer;
  z-index: 30;
}
#detail .detail-image {
  position: absolute;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    left 500ms cubic-bezier(0.4, 0, 0.2, 1),
    top 500ms cubic-bezier(0.4, 0, 0.2, 1),
    width 500ms cubic-bezier(0.4, 0, 0.2, 1),
    height 500ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
#detail .detail-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: none;
}
#detail .detail-copy {
  position: absolute;
  left: 50%;
  top: calc(50% - 225px);
  width: 525px;
  max-width: 50%;
  height: 450px;
  padding: 40px 80px 40px 20px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 200ms ease-out,
    transform 300ms ease-out;
  cursor: default;
  overflow: auto;
}
#detail .detail-copy.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#detail .close-detail {
  position: absolute;
  left: calc(50% + 416px);
  right: auto;
  top: calc(50% - 185px);
  z-index: 35;
  background: none;
  font-size: 22px;
  padding: 0;
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 200ms;
}
#detail:has(.detail-copy.visible) .close-detail {
  opacity: 1;
}
#detail h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
}
#detail .handwritten {
  font-size: 17px;
  line-height: 1.85;
  margin: 22px 0 32px;
}
#detail .demo {
  font-size: 8px;
  padding: 3px 5px;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.detail-actions {
  margin-top: 20px;
}
.detail-actions button {
  font-size: 10px;
  padding: 6px 9px;
}
.attribution {
  font-size: 9px;
  margin-top: 15px;
}
#detail .source-notes {
  font-size: 10px;
}
#home h1 span {
  display: inline-block;
}
#home h1.sweep span {
  animation: letter-sweep 200ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay) both;
}
@keyframes letter-sweep {
  0%,
  100% {
    color: #c1c1c1;
    transform: translateY(0);
  }
  50% {
    color: var(--letter-color);
    transform: translateY(-3px);
  }
}
@keyframes detail-copy-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body.list-mode #home {
  height: 170px;
  background: white;
}
body.list-mode #count,
body.list-mode .search-wrap {
  display: block;
}
body.list-mode #detail {
  background: white;
}
body.list-mode #detail .detail-image {
  left: calc(50% - 452.5px);
  top: calc(50% - 190px);
  width: 380px;
  height: 380px;
}
@media (max-width: 767px) {
  #home {
    width: calc(100% - 32px);
  }
  #home p {
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }
  #detail .detail-copy {
    left: 0;
    top: calc(8vh + min(100vw - 48px, 280px) + 28px);
    width: 100%;
    max-width: none;
    height: calc(92vh - min(100vw - 48px, 280px) - 52px);
    padding: 24px;
  }
  #detail .close-detail {
    left: auto;
    right: 24px;
    top: calc(8vh + min(100vw - 48px, 280px) + 48px);
  }
  #floating-controls {
    top: 15px;
    right: 15px;
  }
  #detail .handwritten {
    font-size: 16px;
  }
  body.list-mode #detail .detail-image {
    left: calc((100vw - min(100vw - 48px, 280px)) / 2);
    top: 8vh;
    width: min(100vw - 48px, 280px);
    height: min(100vw - 48px, 280px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.place-picker {
  position: relative;
}
.place-picker #picker-trigger {
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.place-picker #picker-trigger span {
  font-size: 13px;
  color: #999;
}
#picker-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: 210px;
  background: #fff;
  border: 1px solid #e1e1df;
  box-shadow: 0 5px 15px #0000000b;
  border-radius: 9px;
  padding: 4px;
  z-index: 65;
  transform-origin: top left;
  overflow: hidden;
}
#picker-menu:not([hidden]) {
  animation: menu-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
#picker-search {
  width: 100%;
  background: white;
  border: 0;
  border-bottom: 1px solid #ececea;
  padding: 9px;
  font-size: 12px;
  outline: none;
  border-radius: 0;
}
#picker-options {
  padding-top: 4px;
  max-height: 230px;
  overflow: auto;
}
#picker-options button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  font-size: 12px;
  color: #555;
  background: white;
}
#picker-options button:hover,
#picker-options button:focus {
  background: #f5f5f3;
  outline: none;
}
#picker-options p {
  font-size: 12px;
  margin: 12px;
}
#floating-controls #picker-menu {
  left: auto;
  right: 0;
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  #picker-menu:not([hidden]) {
    animation: none;
  }
}
dialog::backdrop {
  backdrop-filter: none;
  background: #0000004d;
}
dialog[open] {
  animation: reference-dialog 300ms ease-out;
}
@keyframes reference-dialog {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog[open] {
    animation: none;
  }
}
#scene-scale {
  position: absolute;
  inset: 0;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  #scene-scale {
    transition: none;
  }
}
