:root {
  color-scheme: light;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: #24272b;
  background: #f7f7f3;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #eb6d48;
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  border: 0;
  background: none;
}
img {
  display: block;
  user-select: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dcded8;
  padding: 0 clamp(16px, 3.3vw, 56px);
  background: #fffefa;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  letter-spacing: -1.1px;
  font-weight: 800;
}
.mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  gap: 2px;
  transform: rotate(-7deg);
}
.mark i {
  height: 9px;
  border-radius: 2px;
  background: #3d6069;
}
.mark i:nth-child(2) {
  background: #fc7149;
  transform: translateY(-2px);
}
.mark i:nth-child(3) {
  background: #e6b743;
}
.mode {
  display: flex;
  padding: 3px;
  background: #eaece5;
  border-radius: 9px;
  gap: 2px;
}
.mode button {
  font-size: 13px;
  font-weight: 650;
  border-radius: 6px;
  padding: 7px 13px;
  color: #47524f;
}
.mode button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 4px #263b342a;
  color: #1e322f;
}
.desk {
  max-width: 1560px;
  min-height: calc(100dvh - 64px);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(194px, 235px) minmax(0, 1fr);
}
.library {
  padding: 31px 23px 28px clamp(16px, 2.4vw, 38px);
  border-right: 1px solid #dcded8;
  background: #f7f7f3;
}
.library h1 {
  font-size: 26px;
  line-height: 1.06;
  letter-spacing: -1.1px;
  margin-bottom: 25px;
}
.library label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #52605d;
  margin-bottom: 7px;
}
.library select {
  width: 100%;
  padding: 8px 4px 8px 7px;
  border: 1px solid #b6c1ba;
  border-radius: 7px;
  background: #fffefa;
  color: #293b36;
}
#quick {
  display: grid;
  gap: 2px;
  margin: 19px -5px;
}
#quick button {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 14px;
  color: #414b47;
}
#quick img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}
#quick button:hover,
#quick [aria-current="page"] {
  background: #e2e9de;
  color: #1e3b2e;
}
#quick [aria-current="page"] {
  font-weight: 730;
}
#state-nav {
  border-top: 1px solid #dcded8;
  padding-top: 15px;
}
.reset {
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid #cdd4ca;
  border-radius: 6px;
  background: #fffefa;
}
.reset {
  margin-top: 20px;
  background: transparent;
}
.gallery {
  --phone-width: min(414px, calc((100dvh - 177px) * 0.4963));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  --gallery-gap: clamp(10px, 1.6vw, 28px);
  gap: var(--gallery-gap);
  padding: 13px 28px 22px;
  background-color: #ebeee8;
  background-image: radial-gradient(#929e941f 1px, transparent 1px);
  background-size: 14px 14px;
}
.variant {
  width: min(var(--phone-width), calc((100% - 2 * var(--gallery-gap)) / 3));
  min-width: 0;
  container-type: inline-size;
}
.variant > header {
  height: 32px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.variant > header h2 {
  font-size: 14px;
  font-weight: 700;
  color: #3d4642;
  letter-spacing: -0.2px;
}
.variant > header i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #edb541;
  box-shadow: inset 0 -2px #af7836;
}
.variant[data-theme="original"] > header i {
  background: #4a9bd6;
  box-shadow: inset 0 -2px #326b98;
}
.phone,
.reference-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1080/2176;
  width: 100%;
  container-type: inline-size;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px #2232243d,
    0 8px 20px -8px #2a3e3352;
  background: #56818a;
}
.variant[hidden] {
  display: none;
}
body:not([data-view="both"]) .variant {
  width: min(100%, var(--phone-width));
}
@media (min-width: 761px) and (max-height: 650px) {
  .gallery {
    --phone-width: 280px;
  }
}
@media (max-width: 990px) and (min-width: 761px) {
  .desk {
    grid-template-columns: 182px minmax(0, 1fr);
  }
  .gallery {
    padding-inline: 16px;
    --gallery-gap: 10px;
  }
  .library {
    padding-inline: 14px;
  }
  .library h1 {
    font-size: 22px;
  }
}
@media (max-width: 760px) {
  .bar {
    height: auto;
    min-height: 49px;
    flex-wrap: wrap;
    padding: 7px 12px;
    gap: 6px;
  }
  .brand {
    font-size: 17px;
    gap: 6px;
  }
  .mark {
    grid-template-columns: repeat(2, 6px);
  }
  .mark i {
    height: 6px;
  }
  .mode button {
    padding: 6px 7px;
    font-size: 11px;
  }
  body[data-view="both"] .gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - var(--gallery-gap)) / 2);
    gap: var(--gallery-gap);
    justify-content: start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  body[data-view="both"] .variant {
    width: 100%;
    scroll-snap-align: start;
  }
  body[data-view="both"] .variant[data-theme="original"] {
    order: 1;
  }
  .desk {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .library {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border: 0;
    border-bottom: 1px solid #dcded8;
  }
  .library h1 {
    display: none;
  }
  .library #quick {
    display: flex;
    flex: 0 0 100%;
    overflow-x: auto;
    gap: 4px;
    margin: 0;
    padding: 2px 0 4px;
  }
  #quick button {
    flex: none;
    gap: 4px;
    padding: 5px 7px;
    font-size: 12px;
  }
  #quick img { width: 18px; height: 18px; }
  #state-nav {
    flex: 1 1 125px;
    min-width: 0;
    border: 0;
    padding: 0;
  }
  #state-nav label {
    margin: 0 0 2px;
    font-size: 10px;
  }
  .library select {
    max-width: 245px;
    font-size: 13px;
  }
  .reset {
    margin: 0 0 0 auto;
    white-space: nowrap;
    font-size: 11px;
  }
  .gallery {
    --phone-width: min(100%, calc((100svh - 122px) * 0.4963));
    padding: 5px 6px 8px;
  }
  .variant > header {
    height: 22px;
  }
  .variant > header h2 {
    font-size: 11px;
  }
  .phone {
    border-radius: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
.stock-tools {
  position: relative;
  margin-top: 16px;
  font-size: 12px;
  color: #42504b;
}
.stock-tools summary {
  cursor: pointer;
  font-weight: 700;
}
.stock-tools #stock-editor {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}
.stock-tools label {
  display: grid;
  gap: 3px;
  margin: 0;
}
.stock-tools select {
  font: inherit;
  padding: 4px;
}
@media (max-width: 760px) {
  .stock-tools {
    margin: 0;
    white-space: nowrap;
  }
  .stock-tools summary {
    font-size: 11px;
  }
  .stock-tools[open] #stock-editor {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 15;
    margin: 6px 0;
    width: 170px;
    padding: 12px;
    background: #fffefa;
    border: 1px solid #cbd1c9;
    border-radius: 8px;
    box-shadow: 0 8px 20px #223a3433;
  }
  .library {
    gap: 6px;
  }
  #screen-state {
    width: 100%;
    padding: 6px 2px;
    min-width: 0;
  }
  .library .reset {
    padding: 5px 4px;
    font-size: 10px;
  }
}

.food-hunt > header i {
  background: #dc7258;
  box-shadow: inset 0 -2px #a15142;
}
.reference-figure {
  margin: 0;
}
.reference-screen {
  background: #252826;
}
.reference-screen.missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1em;
  text-align: center;
  background: #efeee7;
  color: #62685e;
  font-size: clamp(10px, 3.9cqw, 15px);
}
.reference-screen.missing strong {
  color: #3e493d;
  font-size: 1.4em;
}
.reference-screen.study {
  background: radial-gradient(ellipse at 50% 42%, #eee7d9, #d7cbb8);
  padding: 11%;
}
.reference-screen img,
.reference-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.reference-screen[data-frame="home-scene"] {
  padding: 0;
}
.reference-screen[data-frame="home-scene"] img {
  object-fit: cover;
}
.reference-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 6px;
  padding: 8px 1px 0;
  color: #48544d;
  font-size: 12px;
}
.reference-figure figcaption a {
  color: #405b4b;
}

.unity-trial { color: #365f43; font-size: 13px; font-weight: 650; padding: 6px 0; }
