@font-face {
  font-family: Soup;
  src: url('./fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
:root {
  font-family: Soup, 'Segoe UI', sans-serif;
  font-synthesis: none;
  color: #f5ead4;
  background: #263b4b;
  --paper: #f5ead4;
  --cream: #fff7e7;
  --ink: #243b54;
  --coral: #e97959;
  --butter: #efc45f;
  --lime: #efc45f;
  --lavender: #aaa7cf;
  --muted: #aab6b6;
  --line: #243b5426;
  --mono: 'Courier New', monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* Game gestures should not select labels; editable fields keep normal editing. */
input,
textarea,
[contenteditable]:not([contenteditable='false' i]) {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  transition:
    background 0.16s,
    color 0.16s,
    transform 0.16s,
    border-color 0.16s;
}
button:hover {
  color: var(--coral);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
button:active {
  transform: translateY(2px);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
button,
select,
input[type='range'],
summary {
  touch-action: manipulation;
}
svg {
  width: 1em;
  height: 1em;
  display: block;
  flex-shrink: 0;
}
#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: 0;
  background: radial-gradient(ellipse at 50% 38%, #66827b25, transparent 68%);
}
.ambient {
  display: none;
}
.topbar {
  position: fixed;
  inset: 0 0 auto;
  height: 74px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(#263b4be6, #263b4b00);
}
.topbar a,
.topbar nav {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1.4px;
}
.brand > span:not(.brand-icon) {
  font-weight: 500;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  margin-right: 10px;
  color: var(--ink);
  background: var(--butter);
  border-radius: 14px 14px 18px 18px;
  transform: rotate(-7deg);
}
.brand-icon svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.7;
}
.brand small {
  max-width: 90px;
  margin-left: 20px;
  font: 8px/1.55 var(--mono);
  letter-spacing: 1.4px;
  color: #b8c5c5;
}
.topbar nav {
  display: flex;
  gap: 7px;
  align-items: center;
}
.icon-button,
.menu-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #f5ead44a;
  border-radius: 14px;
  background: #263b4bba;
  color: var(--paper);
  font-size: 20px;
}
.icon-button:hover,
.menu-button:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.icon-button > svg {
  width: 20px;
  height: 20px;
}
.menu-button {
  width: auto;
  gap: 8px;
  padding: 0 13px;
}
.menu-button > svg {
  width: 17px;
  height: 17px;
}
.menu-button span {
  font-size: 11px;
}
#sound {
  width: auto;
  padding: 0 13px;
  gap: 9px;
}
.sound-label {
  font-size: 11px;
}
.sound-mark {
  position: absolute;
  top: 3px;
  left: 27px;
  font: 12px var(--mono);
  color: var(--coral);
}
#sound[aria-pressed='true'] {
  background: var(--butter);
  color: var(--ink);
  border-color: var(--butter);
}
.session {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c6cfcd;
  font: 9px var(--mono);
  letter-spacing: 1px;
}
.session #preset-label {
  font:
    12px Soup,
    sans-serif;
  letter-spacing: 0;
}
.live-dot,
.tiny-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--butter);
  border-radius: 50%;
}
.divider {
  width: 1px;
  height: 14px;
  margin: 0 9px;
  background: #f5ead431;
}
.eyebrow {
  font: 9px var(--mono);
  letter-spacing: 1.3px;
  color: var(--coral);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 9px var(--mono);
  letter-spacing: 1px;
  color: #62717c;
  min-height: 14px;
}
.rule {
  height: 1px;
  background: var(--line);
  margin: 17px 0;
}
/* The opening is a little record sleeve, with the live bowl as its cover art. */
.menu-open main,
.menu-open .session {
  visibility: hidden;
}
.menu-open #cursor {
  display: none !important;
}
.main-menu {
  position: fixed;
  inset: 74px 0 30px;
  z-index: 2;
  pointer-events: none;
}
.menu-copy {
  position: absolute;
  left: 6.5%;
  top: 13%;
  width: 570px;
  pointer-events: auto;
}
.menu-copy > .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 1.7px;
}
.menu-copy h1 {
  position: relative;
  font-size: clamp(76px, 7.1vw, 111px);
  line-height: 0.94;
  letter-spacing: -5.5px;
  font-weight: 800;
  margin: 30px 0 28px;
}
.menu-copy h1 em {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: var(--butter);
  font-variation-settings: 'wdth' 90;
}
.menu-copy h1 em:after {
  content: '';
  position: absolute;
  left: 3px;
  right: 8px;
  bottom: -9px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
  transform: rotate(-2deg);
}
.title-spark {
  position: absolute;
  right: 28px;
  top: -16px;
  color: var(--coral);
  transform: rotate(14deg);
}
.title-spark svg {
  width: 62px;
  height: 62px;
  stroke-width: 2.1;
}
.menu-description {
  font-size: 18px;
  line-height: 1.65;
  color: #c5d0ca;
  letter-spacing: -0.2px;
  margin: 0;
}
.menu-description span {
  color: var(--paper);
}
.menu-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 29px 0 39px;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  min-height: 58px;
  padding: 16px 24px;
  border: 1px solid #ffc695;
  border-radius: 16px 16px 18px 18px;
  color: var(--ink);
  background: var(--coral);
  box-shadow:
    0 5px 0 #aa4f3b,
    0 9px 15px #1023302b;
  font-size: 17px;
  font-weight: 800;
}
.primary-button:hover {
  background: #f39472;
  color: var(--ink);
  transform: translateY(-2px) rotate(-1deg);
}
.primary-button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #aa4f3b;
}
.primary-button svg {
  width: 22px;
  height: 22px;
}
.secondary-button {
  min-height: 52px;
  padding: 13px 19px;
  border: 1px dashed #f5ead467;
  border-radius: 15px;
  color: var(--paper);
  font-size: 12px;
}
.secondary-button:hover {
  background: #f5ead412;
  color: var(--butter);
}
.menu-recipes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 570px;
}
.flavour-card {
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
  min-height: 109px;
  gap: 12px;
  padding: 16px 13px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: 7px 14px 7px 14px;
  box-shadow: 0 4px 0 #14293780;
}
.flavour-card:nth-child(2) {
  transform: rotate(1.2deg);
}
.flavour-card:nth-child(3) {
  transform: rotate(-1.2deg);
}
.flavour-card:hover {
  transform: translateY(-4px);
  color: var(--ink);
  background: var(--cream);
}
.flavour-card.selected {
  background: var(--butter);
  border-color: #fff1b6;
}
.flavour-card.selected:after {
  content: '✓';
  position: absolute;
  top: -10px;
  right: 10px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
}
.recipe-number {
  font: 7px var(--mono);
  letter-spacing: 0.5px;
  color: #56636a;
}
.recipe-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.6px;
}
.recipe-name b {
  color: #b7523c;
}
.recipe-name b svg {
  width: 21px;
  height: 21px;
}
.flavour-card small {
  font-size: 10px;
  color: #58666b;
  margin-top: auto;
}
.menu-footnote {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 10px;
  color: #b4c3be;
}
.menu-footnote i {
  color: var(--coral);
  font-style: normal;
}
.menu-sticker {
  position: absolute;
  top: 7%;
  right: 8%;
  min-width: 154px;
  padding: 26px 23px;
  border: 1px solid #fdb994;
  border-radius: 49% 46% 50% 46%;
  color: var(--ink);
  background: var(--coral);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
  transform: rotate(10deg);
  box-shadow: 4px 7px 0 #12273145;
}
.menu-sticker:before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px dashed #243b5473;
  border-radius: inherit;
}
.menu-sticker span {
  position: relative;
  display: block;
  font: 7px var(--mono);
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.menu-sticker span:last-child {
  font-size: 6px;
  margin: 13px 0 0;
}
.menu-specimen {
  position: absolute;
  right: 12%;
  bottom: 10%;
  color: var(--paper);
  font: 9px var(--mono);
  letter-spacing: 1.6px;
}
.menu-specimen .live-dot {
  margin-right: 7px;
}
.menu-specimen > span:last-of-type {
  margin-left: 13px;
  color: var(--butter);
}
.menu-specimen small {
  display: block;
  margin-top: 10px;
  color: #acbdb6;
  font:
    12px Soup,
    sans-serif;
  letter-spacing: 0;
}
/* Four small controls leave the table to the soup. */
.bottom-center {
  position: fixed;
  bottom: max(32px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
}
#interaction-hint {
  color: #e0ddc9;
  font-size: 11px;
  margin: 0 0 13px;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 5px #142837;
}
.game-dock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  background: var(--paper);
  border: 1px solid #fffbdf;
  border-radius: 21px;
  color: var(--ink);
  box-shadow:
    0 5px 0 #b8a891,
    0 14px 32px #10233050;
}
.dock-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 7px 13px;
  text-align: left;
}
.dock-button:hover,
.dock-button[aria-expanded='true'] {
  background: #dfd4bc;
  color: var(--ink);
  border-color: #c9baa0;
}
.dock-button[aria-expanded='true'] {
  background: var(--butter);
  border-color: #c8a346;
}
.dock-button b {
  display: block;
  font-size: 13px;
  font-weight: 800;
}
.dock-button small {
  display: block;
  color: #68747a;
  margin-top: 3px;
  font-size: 10px;
  max-width: 102px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-icon,
.dock-more > span {
  color: var(--ink);
  font-size: 24px;
}
.ingredient-dot {
  --orb: #48b5ef;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border-radius: 46% 54% 52% 48%;
  background: radial-gradient(circle at 30% 25%, #ffffffb0, transparent 35%), var(--orb);
  box-shadow: inset -3px -3px 4px #243b5426;
}
.dock-chevron {
  color: #6f777c;
  font: 16px var(--mono);
  margin-left: 4px;
  transition: transform 0.15s;
}
[aria-expanded='true'] .dock-chevron {
  transform: rotate(180deg);
}
.dock-divider {
  height: 27px;
  width: 1px;
  margin: 0 4px;
  background: var(--line);
}
.play-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--coral);
  color: var(--ink);
  box-shadow: 0 2px 0 #bb5c43;
  font-size: 22px;
}
.play-button:hover {
  background: #f2916e;
  color: var(--ink);
}
.dock-more {
  gap: 8px;
  padding: 8px 11px;
}
.control-panel {
  position: fixed;
  bottom: 114px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 346px;
  max-height: calc(100dvh - 201px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 21px;
  border: 1px solid #fffae8;
  border-radius: 22px;
  color: var(--ink);
  background: var(--paper);
  box-shadow:
    0 5px 0 #b5a58d,
    0 20px 50px #12283755;
  scrollbar-width: thin;
  scrollbar-color: #b6a98e transparent;
}
.tools-panel {
  margin-left: -110px;
}
.ingredients-panel {
  margin-left: 25px;
}
.soup-panel {
  margin-left: 105px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}
.panel-heading h2 {
  margin: 7px 0 0;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.8px;
}
.panel-heading .eyebrow {
  font-size: 8px;
  color: #9e513e;
}
.panel-heading .icon-button,
.modal-header .icon-button {
  background: #e4d9c2;
  color: var(--ink);
  border-color: #cabb9f;
  width: 44px;
  height: 44px;
  border-radius: 13px;
}
.panel-heading .icon-button:hover,
.modal-header .icon-button:hover {
  background: var(--butter);
}
.tools-panel > .section-heading {
  display: none;
}
.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 63px;
  padding: 8px 4px;
  border: 1px solid #cbbda4;
  border-radius: 12px;
  color: #51616c;
  background: #fbf2df;
  box-shadow: 0 2px 0 #d8cbb2;
  font-size: 11px;
}
.tool > span svg {
  width: 23px;
  height: 23px;
}
.tool kbd {
  position: absolute;
  top: 5px;
  right: 7px;
  font: 8px var(--mono);
  color: #839094;
}
.tool:hover {
  color: var(--ink);
  background: #f7deb0;
  border-color: #c39a53;
}
.tool.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  box-shadow: 0 3px 0 #112332;
}
.tool.active kbd {
  color: #c0c9c4;
}
.tool[data-tool='heat'].active {
  background: var(--coral);
  color: var(--ink);
  border-color: #be6247;
  box-shadow: 0 3px 0 #a75540;
}
.tool[data-tool='cool'].active {
  background: #acd0d9;
  color: var(--ink);
  border-color: #81a8b8;
  box-shadow: 0 3px 0 #789bab;
}
.grinder-tool {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 46px;
  gap: 10px;
  background: #e2d6bc;
}
.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5b6b72;
  margin-top: 21px;
}
.slider-label output {
  color: var(--ink);
  font-weight: 700;
}
input[type='range'] {
  width: 100%;
  min-height: 35px;
  margin: 5px 0 0;
  accent-color: #b4553d;
  cursor: pointer;
}
.bowl-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 17px;
}
.bowl-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 79px;
  padding: 9px 4px;
  border: 1px solid #ccbea4;
  border-radius: 12px;
  background: #fbf2df;
  color: #53646c;
  box-shadow: 0 2px 0 #d8cbb2;
}
.bowl-choice b {
  font-size: 10px;
  font-weight: 600;
}
.bowl-choice:hover {
  color: var(--ink);
  border-color: #b68e46;
  background: #f8e2b6;
}
.bowl-choice[aria-pressed='true'] {
  background: var(--butter);
  border-color: #ba963f;
  color: var(--ink);
}
.shape-preview {
  display: block;
  width: 37px;
  height: 30px;
  border: 2px solid currentColor;
  box-shadow: inset 0 0 0 3px #fff5d7;
  background: #dfbb7e;
}
.shape-round {
  width: 31px;
  height: 31px;
  border-radius: 50%;
}
.shape-oval {
  width: 42px;
  height: 27px;
  border-radius: 50%;
}
.shape-square {
  width: 32px;
  height: 30px;
  border-radius: 9px;
}
.pattern-preview {
  width: 36px;
  height: 31px;
  border: 2px solid #263b4b4a;
  border-radius: 8px;
}
.pattern-speckle {
  background-color: #f5e6c4;
  background-image:
    radial-gradient(#b18d63 1px, transparent 1px), radial-gradient(#8d7259 1px, transparent 1px);
  background-position:
    0 0,
    4px 3px;
  background-size:
    7px 9px,
    11px 7px;
}
.pattern-tide {
  background: repeating-linear-gradient(0deg, #f2e9d3 0 4px, #426b91 4px 7px, #f2e9d3 7px 10px);
}
.pattern-gingham {
  background-color: #f5e4ca;
  background-image:
    linear-gradient(90deg, #c05d4b77 50%, transparent 50%), linear-gradient(#c05d4b77 50%, transparent 50%);
  background-size: 12px 12px;
}
.playback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.playback > span {
  font-size: 12px;
  margin-right: auto;
  color: #637179;
}
.speed {
  min-width: 44px;
  min-height: 44px;
  padding: 7px 11px;
  color: #637179;
  border-radius: 9px;
  font-size: 12px;
}
.speed.active {
  background: var(--ink);
  color: var(--cream);
}
.soup-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.library-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  padding: 12px;
  border: 1px solid #bbae93;
  border-radius: 11px;
  color: var(--ink);
  background: #fff5e1;
  box-shadow: 0 2px 0 #d4c7ad;
  font-size: 12px;
}
.library-button:hover {
  background: #f7dbac;
  color: var(--ink);
  border-color: #b58d47;
}
.library-button span {
  font-size: 18px;
}
.soup-actions .library-button {
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  padding: 9px;
}
.recipe-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.recipe-drawer summary::-webkit-details-marker {
  display: none;
}
.recipe-drawer summary span {
  font-size: 23px;
  font-weight: 400;
}
.recipe-drawer[open] summary span {
  transform: rotate(45deg);
}
.presets {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}
.preset {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  min-height: 49px;
  width: 100%;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
}
.preset:hover {
  background: #e5d9bf;
  color: var(--ink);
}
.preset.selected {
  background: #dfd5be;
  border-color: #bfae89;
}
.preset small {
  display: block;
  font-size: 9px;
  color: #647278;
  margin-top: 3px;
}
.preset b {
  margin-left: auto;
  color: #7b857f;
  font-size: 17px;
  font-weight: 400;
}
.preset-orb {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 45% 55% 49% 51%;
  box-shadow:
    inset -3px -3px 5px #243b543b,
    inset 3px 3px 5px #fff7;
}
.prism {
  background: conic-gradient(#efc45f, #67c6b7, #a69bd5, #ed9374, #efc45f);
}
.nebula {
  background: radial-gradient(at 35% 25%, #cdc7ef, #9d73c5, #466082);
}
.ocean,
.water {
  background: radial-gradient(at 35% 25%, #cff2e5, #7bbed2, #517eaa);
}
.lava {
  background: radial-gradient(at 35% 25%, #ffe29b, #ef9270, #af574e);
}
.text-button {
  display: block;
  margin: 9px auto 0;
  min-height: 44px;
  color: #566871;
  font-size: 12px;
}
.counter {
  padding: 3px 6px;
  border: 1px solid #cbbfa5;
  border-radius: 6px;
  font-size: 10px;
  color: var(--ink);
  background: #e4d9c0;
}
.selected-preview {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 18px 0 12px;
}
.big-orb {
  --orb: #78e0c0;
  width: 47px;
  height: 47px;
  flex-shrink: 0;
  border-radius: 42% 58% 53% 47%;
  background: radial-gradient(circle at 32% 25%, #fff9, transparent 27%), var(--orb);
  box-shadow: inset -4px -5px 9px #243b5436;
  transform: rotate(-9deg);
}
.selected-preview small {
  font: 8px var(--mono);
  letter-spacing: 1.2px;
  color: #6b787e;
}
.selected-preview h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 5px 0;
}
.description {
  font-size: 12px;
  line-height: 1.65;
  color: #627178;
  margin: 10px 0;
}
.traits {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  color: #647178;
  font-size: 10px;
}
.traits b {
  font-weight: 400;
}
.traits i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-right: 5px;
  background: #b46442;
}
.quick-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 14px 0 17px;
}
.ingredient {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 61px;
  padding: 9px 3px 7px;
  border: 1px solid #cebea0;
  border-radius: 10px;
  background: #fbf2df;
}
.ingredient .orb {
  width: 25px;
  height: 25px;
  border-radius: 46% 54% 50% 50%;
  background: radial-gradient(circle at 30% 25%, #fffa, transparent 31%), var(--orb);
  box-shadow: inset -2px -3px 5px #243b5430;
}
/* Hand-drawn silhouettes replace spherical swatches in every ingredient control. */
.orb.ingredient-symbol,
.big-orb.ingredient-symbol,
.ingredient-dot.ingredient-symbol {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  clip-path: none;
  filter: none;
  transform: none;
}
.ingredient-glyph {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ingredient-silhouette {
  fill: var(--orb, #74b2d6);
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ingredient-detail {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
}
.ingredient small {
  color: #5a6971;
  font-size: 9px;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ingredient:hover {
  border-color: #b48845;
  background: #f6e0b6;
  color: var(--ink);
  transform: translateY(-1px);
}
.ingredient.selected {
  background: var(--butter);
  border-color: #ac8838;
}
.ingredient.selected small {
  color: var(--ink);
}
.note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  color: #69747a;
}
.note > span {
  flex-shrink: 0;
  font-size: 19px;
  color: #ac593f;
}
.note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}
.bowl-caption {
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b8c6bf;
  font: 8px var(--mono);
  letter-spacing: 1.4px;
  pointer-events: none;
}
.wave-bars {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 22px;
  --wave: 0;
}
.wave-bars i {
  display: block;
  width: 3px;
  height: calc(4px + 16px * var(--wave));
  border-radius: 3px;
  background: var(--butter);
  transition: height 0.6s;
}
.wave-bars i:nth-child(2n) {
  height: calc(4px + 8px * var(--wave));
  background: var(--coral);
}
.wave-bars i:first-child,
.wave-bars i:last-child {
  height: calc(3px + 5px * var(--wave));
}
#cursor {
  --brush: 52px;
  position: fixed;
  pointer-events: none;
  width: var(--brush);
  height: var(--brush);
  border: 1px dashed #efc45fbb;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--butter);
  transform: translate(-50%, -50%);
  background: #efc45f09;
  font-size: 16px;
}
#cursor[data-kind='heat'] {
  border-color: var(--coral);
  color: var(--coral);
}
#cursor[data-kind='cool'] {
  border-color: #acd0d9;
  color: #acd0d9;
}
#cursor[data-kind='grind'] {
  border-style: dotted;
  border-width: 3px;
}
/* A single reachable orientation control, outside the bowl's central play area. */
.camera-control {
  position: fixed;
  top: 85px;
  right: 18px;
  z-index: 4;
  width: 56px;
  height: 56px;
}
.camera-orbit-button {
  display: block;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid #f5ead43b;
  border-radius: 50%;
  background: #263b4bb3;
  color: var(--paper);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.camera-orbit-button:hover {
  background: #263b4bf0;
  border-color: #f5ead477;
}
.camera-orbit-button:active,
.camera-orbit-button.dragging {
  transform: none;
  cursor: grabbing;
}
.camera-orbit-button > svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.toast {
  position: fixed;
  z-index: 6;
  top: 116px;
  left: 50%;
  transform: translate(-50%, -12px);
  max-width: min(90vw, 550px);
  padding: 12px 19px;
  border: 1px solid #fff2da;
  border-radius: 13px;
  color: var(--ink);
  background: var(--paper);
  box-shadow:
    0 3px 0 #b5a58d,
    0 9px 25px #13273744;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Discoveries sit under the brand, leaving both the soup and orbit control clear. */
.toast[data-kind='discovery'] {
  top: 78px;
  left: 28px;
  max-width: min(360px, calc(100vw - 116px));
  padding: 10px 13px;
  border-radius: 11px;
  font-size: 11px;
  text-align: left;
  transform: translateY(-8px);
  box-shadow:
    0 2px 0 #b5a58d,
    0 5px 14px #13273726;
}
.toast[data-kind='discovery'].show {
  transform: translateY(0);
}
.loading {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: #263b4bfa;
  color: var(--paper);
  font-size: 17px;
}
.loading-orb {
  width: 24px;
  height: 24px;
  border-radius: 40% 60% 50% 50%;
  background: var(--butter);
  animation: simmer 1s ease-in-out infinite alternate;
}
@keyframes simmer {
  to {
    transform: rotate(30deg) scale(0.8, 1.1);
    opacity: 0.6;
  }
}
footer {
  position: fixed;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 24px;
  color: #b1beb7;
  font-size: 9px;
  pointer-events: none;
}
.engine-status {
  display: flex;
  align-items: center;
  gap: 9px;
}
.engine-status b {
  font: 8px var(--mono);
  letter-spacing: 1px;
  font-weight: 400;
}
.engine-status > span:last-child {
  display: none;
}
.telemetry {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 9px var(--mono);
}
.telemetry b {
  font-weight: 400;
  color: #d1d9ce;
}
.telemetry > span:nth-child(2) {
  display: none;
}
.telemetry button {
  pointer-events: auto;
  font-size: 20px;
  min-height: 28px;
  min-width: 32px;
}
/* The pantry and preferences use the same warm paper as the tool tray. */
dialog {
  color: var(--ink);
  border: 1px solid #fff7de;
  background: var(--paper);
  border-radius: 23px;
  padding: 28px;
  box-shadow:
    0 6px 0 #ab9c85,
    0 30px 100px #10263499;
  max-height: 85dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #102533bd;
}
.modal {
  width: min(90vw, 740px);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.modal-header h2 {
  margin: 9px 0 0;
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 800;
}
.modal-header .eyebrow {
  color: #9e513e;
}
.modal-header .close {
  flex-shrink: 0;
}
input[type='search'] {
  width: 100%;
  padding: 14px;
  border: 1px solid #bfb091;
  border-radius: 12px;
  background: #fff8e8;
  color: var(--ink);
  font-size: 13px;
}
input[type='search']::placeholder {
  color: #7b817c;
}
.family-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 17px 0;
}
.family-tabs button {
  font-size: 11px;
  min-height: 44px;
  padding: 7px 11px;
  background: #e7dcc4;
  border: 1px solid #ccbc9c;
  border-radius: 10px;
  color: #5d6c74;
}
.family-tabs button.active {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}
.element-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 9px;
  max-height: 46vh;
  overflow: auto;
  padding: 4px;
}
.element-grid .ingredient {
  padding: 12px 4px 10px;
}
.element-grid .orb {
  width: 32px;
  height: 32px;
}
.modal-foot {
  margin-top: 22px;
  color: #64737a;
  font-size: 11px;
  text-align: center;
}
.settings-modal {
  width: min(92vw, 540px);
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  font-size: 13px;
}
.setting-row select {
  max-width: 240px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #bcac8c;
  border-radius: 9px;
  color: var(--ink);
  background: #fff6e3;
  font-size: 11px;
}
.setting-row input[type='checkbox'] {
  accent-color: #b4553d;
  width: 21px;
  height: 21px;
}
.setting-row input[type='range'] {
  width: 45%;
  margin: 0;
}
.setting-help {
  color: #617179;
  font-size: 11px;
  line-height: 1.7;
  margin: 4px 0 15px;
}
.save-actions {
  display: flex;
  gap: 10px;
}
.help-modal > p,
.help-grid p {
  color: #596b74;
  font-size: 13px;
  line-height: 1.8;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 25px;
  margin: 24px 0;
}
.help-grid b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.shortcut-note kbd {
  background: #ded2b8;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 10px;
}
#recipe-hints {
  margin-top: 10px;
  color: #596b74;
  font-size: 12px;
  line-height: 2;
}
.perf-panel {
  position: fixed;
  bottom: 36px;
  right: 20px;
  z-index: 6;
  width: 290px;
  padding: 18px;
  border: 1px solid #c5b797;
  border-radius: 15px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 24px #12273544;
  font: 11px var(--mono);
}
.perf-panel pre {
  line-height: 1.8;
}
.perf-panel p {
  color: #617179;
  font:
    11px/1.6 Soup,
    sans-serif;
}
@media (min-width: 1600px) {
  .menu-copy {
    top: 15%;
    width: 650px;
  }
  .menu-copy h1 {
    font-size: 116px;
  }
  .menu-recipes {
    max-width: 620px;
  }
  .flavour-card {
    padding: 18px 15px;
  }
  .recipe-number {
    font-size: 8px;
  }
  .recipe-name {
    font-size: 19px;
  }
  .title-spark {
    right: 35px;
  }
}
@media (max-height: 850px) and (min-width: 901px) {
  .menu-copy {
    top: 8%;
    width: 530px;
  }
  .menu-copy h1 {
    font-size: 84px;
    margin: 24px 0;
  }
  .menu-description {
    font-size: 17px;
  }
  .menu-actions {
    margin: 25px 0 32px;
  }
  .flavour-card {
    min-height: 105px;
  }
  .menu-footnote {
    margin-top: 19px;
  }
  .title-spark {
    right: 27px;
  }
}
@media (max-width: 1150px) {
  .brand small,
  .session > .divider,
  .session > #preset-label {
    display: none;
  }
  .menu-copy {
    left: 5%;
    width: 500px;
  }
  .menu-copy h1 {
    font-size: 81px;
  }
  .title-spark {
    right: 10px;
  }
  .menu-sticker {
    right: 5%;
    top: 9%;
    min-width: 135px;
    font-size: 25px;
    padding: 23px 19px;
  }
  .menu-specimen {
    right: 8%;
  }
  .recipe-name {
    font-size: 16px;
  }
  .recipe-name b {
    display: none;
  }
}
@media (max-width: 900px) {
  .camera-control {
    top: 73px;
    right: 12px;
  }
  .toast[data-kind='discovery'] {
    top: 65px;
    left: 12px;
    max-width: calc(100vw - 94px);
    font-size: 10px;
  }
  .topbar {
    height: 62px;
    padding: 0 16px;
    gap: 14px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-icon {
    width: 35px;
    height: 35px;
    margin-right: 7px;
    border-radius: 11px 11px 15px 15px;
  }
  .brand-icon svg {
    width: 27px;
    height: 27px;
  }
  .session {
    display: none;
  }
  .topbar nav {
    gap: 5px;
  }
  .menu-button {
    width: 44px;
    padding: 0;
  }
  .menu-button span,
  .sound-label {
    display: none;
  }
  #sound {
    width: 44px;
    padding: 0;
  }
  .main-menu {
    inset: 62px 0 28px;
    overflow: auto;
  }
  .menu-copy {
    top: 10%;
    left: 6%;
    width: 88%;
    max-width: 550px;
    padding-bottom: 28px;
  }
  .menu-copy h1 {
    font-size: 86px;
    letter-spacing: -4.5px;
  }
  .menu-sticker,
  .menu-specimen {
    display: none;
  }
  .menu-open #world {
    opacity: 0.38;
  }
  .menu-copy {
    background: radial-gradient(ellipse at 25% 35%, #263b4be8, transparent 75%);
  }
  .bottom-center {
    bottom: max(27px, env(safe-area-inset-bottom));
  }
  #interaction-hint {
    font-size: 10px;
    margin-bottom: 11px;
  }
  .bowl-caption {
    top: 72px;
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  .control-panel {
    bottom: 103px;
    max-height: calc(100dvh - 176px);
  }
  footer {
    padding: 0 12px;
    font-size: 8px;
  }
  .engine-status {
    gap: 7px;
  }
  .telemetry {
    font-size: 8px;
    gap: 10px;
  }
  .toast {
    top: 98px;
    font-size: 11px;
    width: max-content;
  }
  .element-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .modal {
    padding: 20px;
  }
  .modal-header h2 {
    font-size: 27px;
  }
  .help-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .help-grid p {
    margin: 8px 0;
  }
}
@media (max-width: 600px) {
  .topbar {
    padding: 0 12px;
    gap: 9px;
  }
  .brand {
    font-size: 21px;
  }
  .topbar nav {
    gap: 3px;
  }
  .menu-copy {
    top: 36px;
    left: 24px;
    width: calc(100% - 48px);
    padding-bottom: 27px;
  }
  .menu-copy > .eyebrow {
    font-size: 7px;
    letter-spacing: 0.8px;
    gap: 7px;
  }
  .menu-copy h1 {
    font-size: clamp(53px, 15vw, 85px);
    letter-spacing: -3px;
    line-height: 1;
    margin: 27px 0 25px;
  }
  .menu-copy h1 em:after {
    height: 3px;
    bottom: -7px;
  }
  .title-spark {
    right: 7px;
    top: -13px;
  }
  .title-spark svg {
    width: 35px;
    height: 35px;
  }
  .menu-description {
    font-size: 16px;
    line-height: 1.65;
  }
  .menu-actions {
    gap: 10px;
    margin: 27px 0 33px;
  }
  .primary-button {
    font-size: 14px;
    padding: 15px 15px;
    gap: 10px;
    min-height: 54px;
    border-radius: 13px;
    flex: 1;
  }
  .primary-button svg {
    width: 20px;
    height: 20px;
  }
  .secondary-button {
    width: 97px;
    font-size: 11px;
    padding: 12px;
    min-height: 54px;
    border-radius: 13px;
  }
  .menu-recipes {
    gap: 7px;
  }
  .flavour-card {
    min-height: 126px;
    padding: 12px 9px;
    gap: 12px;
    border-radius: 7px 12px 7px 12px;
  }
  .recipe-number {
    font-size: 6px;
    letter-spacing: 0;
    line-height: 1.5;
  }
  .recipe-name {
    font-size: 17px;
    line-height: 1.04;
    letter-spacing: -0.4px;
  }
  .flavour-card small {
    font-size: 9px;
    line-height: 1.5;
  }
  .menu-footnote {
    font-size: 9px;
    gap: 10px;
    white-space: nowrap;
    margin-top: 25px;
  }
  .menu-open footer .engine-status {
    display: none;
  }
  .menu-open footer {
    justify-content: center;
  }
  .bottom-center {
    width: calc(100% - 20px);
    max-width: 410px;
  }
  .game-dock {
    gap: 3px;
    padding: 6px;
    border-radius: 19px;
    justify-content: space-between;
  }
  .dock-button {
    min-height: 49px;
    padding: 6px 8px;
    gap: 7px;
    border-radius: 12px;
  }
  .dock-button b {
    font-size: 11px;
  }
  .dock-button small {
    font-size: 9px;
    max-width: 78px;
  }
  .dock-icon {
    font-size: 21px;
  }
  .ingredient-dot {
    width: 22px;
    height: 22px;
  }
  .dock-chevron {
    display: none;
  }
  .dock-divider {
    margin: 0 2px;
  }
  .dock-more {
    min-width: 49px;
    flex-direction: column;
    gap: 3px;
    padding: 5px 8px;
  }
  .dock-more > span {
    font-size: 20px;
  }
  .dock-more b {
    font-size: 9px;
  }
  #interaction-hint {
    max-width: 91vw;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 9px;
    margin: 0 auto 9px;
  }
  .control-panel {
    width: calc(100% - 24px);
    max-width: 386px;
    padding: 18px;
    margin-left: 0;
    bottom: max(101px, calc(env(safe-area-inset-bottom) + 74px));
    max-height: calc(100dvh - 175px);
    border-radius: 19px;
  }
  .panel-heading {
    margin-bottom: 16px;
  }
  .panel-heading h2 {
    font-size: 22px;
  }
  .tool kbd {
    display: none;
  }
  .ingredients-panel .description {
    font-size: 11px;
  }
  .ingredients-panel .rule {
    margin: 12px 0;
  }
  .quick-palette {
    margin: 12px 0;
  }
  .selected-preview {
    margin: 12px 0;
  }
  .selected-preview h2 {
    font-size: 22px;
  }
  .big-orb {
    width: 41px;
    height: 41px;
  }
  .telemetry > span:first-child {
    display: none;
  }
  .perf-panel {
    width: min(290px, calc(100% - 24px));
    right: 12px;
    bottom: 101px;
  }
  .setting-row {
    gap: 12px;
    font-size: 12px;
  }
  .setting-row select {
    max-width: 170px;
    font-size: 10px;
  }
}
@media (max-height: 700px) and (max-width: 900px) {
  .menu-copy {
    top: 23px;
  }
  .menu-copy h1 {
    font-size: 58px;
    margin: 22px 0 24px;
  }
  .menu-description {
    font-size: 14px;
  }
  .menu-actions {
    margin: 22px 0 28px;
  }
  .flavour-card {
    min-height: 106px;
  }
  .menu-footnote {
    margin-top: 20px;
  }
}
@media (max-height: 500px) {
  .camera-control {
    top: 67px;
    right: 12px;
  }
  .bowl-caption,
  #interaction-hint {
    display: none;
  }
  .control-panel {
    bottom: 98px;
    max-height: calc(100dvh - 160px);
  }
  .bottom-center {
    bottom: 24px;
  }
  .main-menu {
    overflow: auto;
  }
  .menu-copy {
    top: 20px;
    padding-bottom: 35px;
  }
}
@media (max-width: 360px) {
  .topbar {
    gap: 4px;
    padding: 0 9px;
  }
  .topbar nav {
    gap: 2px;
  }
  .brand {
    font-size: 19px;
    letter-spacing: -1.3px;
  }
  .brand-icon {
    width: 29px;
    height: 31px;
    margin-right: 5px;
  }
  .brand-icon svg {
    width: 25px;
    height: 25px;
  }
  .dock-button {
    gap: 5px;
    padding-inline: 6px;
  }
  .dock-button b {
    font-size: 10px;
  }
  .dock-button small {
    max-width: 62px;
  }
  .dock-icon {
    font-size: 18px;
  }
  .dock-divider {
    display: none;
  }
  .menu-copy {
    left: 20px;
    width: calc(100% - 40px);
  }
  .menu-copy > .eyebrow {
    font-size: 6px;
  }
  .menu-copy h1 {
    font-size: 52px;
  }
  .title-spark {
    right: 3px;
  }
  .menu-footnote {
    font-size: 8px;
    gap: 8px;
  }
  .recipe-name {
    font-size: 15px;
  }
  .setting-row select {
    max-width: 155px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
