* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #362f26;
  background: #f8f7f5;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible {
  outline: 3px solid #ca4c32;
  outline-offset: 3px;
}
header {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 3.4vw;
  background: #fff;
  border-bottom: 1px solid #dcd6c8;
  position: relative;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.logo {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: #c84b33;
  color: #fff9eb;
  border-radius: 14px;

}
h1 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 29px;
  letter-spacing: 0.03em;
  margin: 0;
  font-weight: 800;
}
.tagline {
  margin-left: -5px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #716657;
}
nav {
  margin-left: auto;
  display: flex;
  gap: 10px;
}
nav button,
.save {
  border: 1px solid #d9d1c1;
  border-radius: 24px;
  padding: 10px 16px;
  background: #ffffff;
  font-weight: 650;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}
nav b {
  font: 600 11px monospace;
  background: #eee9dc;
  padding: 3px 6px;
  border-radius: 10px;
}
#random,
.save {
  background: #bd462f;
  color: white;
  border-color: #bd462f;
}
i {
  display: inline-flex;
}
svg {
  width: 17px;
  height: 17px;
}
.logo svg {
  width: 32px;
  height: 32px;
}
#board {
  height: calc(100dvh - 80px);
  overflow: hidden;
  position: relative;
  cursor: grab;
  touch-action: none;
  user-select: none;
  outline: none;
}
#map-grid {
  position: absolute;
  inset: -48px;
  pointer-events: none;
  will-change: transform;
  background-image: radial-gradient(#dcd9d4 0.8px, transparent 0.9px);
  background-size: 19px 19px;
}
#board.dragging,
#board.dragging * {
  cursor: grabbing;
}
#world {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.dish {
  position: absolute;
  width: 190px;
  height: 187px;
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0;
  transform: translate(-50%, -50%);
}
.dish img {
  width: 151px;
  height: 133px;
  object-fit: contain;
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: transform 0.18s;
}
.dish:hover img,
.dish:focus-visible img {
  transform: translateY(-4px) rotate(-3deg) scale(1.055);
}
.dish strong {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 750;
  letter-spacing: 0.055em;
  font-size: 17px;
}
.time {
  font-size: 11px;
  color: #766f61;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.time svg {
  width: 12px;
  height: 12px;
}
footer {
  pointer-events: none;
  position: fixed;
  bottom: 18px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.hint,
.zoom {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffffff5;
  border: 1px solid #ddd5c5;
  border-radius: 30px;
  box-shadow: 0 3px 12px #5741260d;
}
.hint {
  font-size: 11px;
  color: #71695a;
  padding: 9px 14px;
}
.hint span {
  opacity: 0.5;
}
.zoom {
  pointer-events: auto;
  padding: 4px;
  gap: 0;
}
.zoom button {
  border: 0;
  background: none;
  height: 32px;
  min-width: 34px;
  border-radius: 24px;
  font-size: 18px;
}
.zoom button:hover,
nav button:hover {
  filter: brightness(0.96);
  background-color: #f0eadf;
}
#random:hover,
.save:hover {
  background: #a93e2a;
}
#percent {
  font: 600 12px monospace;
  min-width: 48px;
}
dialog {
  --dialog-surface: #fdfcf8;
  border: 1px solid #d7cdbb;
  background: var(--dialog-surface);
  color: inherit;
  border-radius: 22px;
  width: min(410px, 92vw);
  padding: 28px;
  max-height: 85dvh;
  box-shadow: 0 20px 80px #30241430;
}
dialog::backdrop {
  background: #463e344f;
}
#close {
  z-index: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  border: 0;
  border-radius: 50%;
  background: #f0eadc;
  font-size: 22px;
  width: 34px;
  height: 34px;
}
.preview {
  display: block;
  width: 220px;
  height: 195px;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin: auto;
}
h2 {
  font:
    700 26px "Yu Mincho",
    serif;
  margin: 16px 0 8px;
}
h3 {
  font-size: 13px;
  margin: 22px 0 6px;
}
p {
  color: #71695a;
  font-size: 14px;
  line-height: 1.8;
}
.save {
  margin-top: 20px;
}
.entry {
  border: 0;
  background: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.entry img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (max-width: 650px) {
  header {
    height: 62px;
    padding: 0 12px;
    gap: 7px;
  }
  .brand {
    gap: 6px;
  }
  .logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .logo svg {
    width: 25px;
  }
  h1 {
    font-size: 21px;
  }
  .tagline,
  .hint {
    display: none;
  }
  nav {
    gap: 5px;
  }
  nav button {
    font-size: 11px;
    padding: 8px;
    gap: 4px;
  }
  #board {
    height: calc(100dvh - 62px);
  }
  footer {
    justify-content: flex-end;
    bottom: 12px;
    right: 12px;
  }
}
.dish img,
.preview {
  filter: drop-shadow(1px 3px 2px #5b492b27);
}
.dish {
  width: 164px;
  height: 153px;
  gap: 3px;
}
.dish img {
  height: 103px;
  width: 123px;
}
.dish strong {
  font-size: 14px;
  letter-spacing: 0.015em;
  line-height: 1.3;
  max-width: 162px;
}
.dish .time {
  font-size: 10px;
}
.recipe-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #723b2e;
  border-bottom: 1px solid #e2d8c6;
  padding: 9px 2px;
  gap: 12px;
  font-size: 14px;
}
.recipe-link:last-child { border-bottom: 0; }
.recipe-link small {
  display: block;
  color: #776e60;
  font-size: 10px;
  margin-bottom: 2px;
}
.recipe-link:hover {
  text-decoration: underline;
}
.recipe-link:focus-visible {
  outline: 2px solid #bc472d;
}
body {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
header,
#filters {
  flex: none;
}
#board {
  flex: 1;
  min-height: 0;
  height: auto;
}
#filters {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 3.4vw;
  background: #ffffff;
  border-bottom: 1px solid #dfd7c8;
}
.filter-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #675f52;
  white-space: nowrap;
}
#clear,
#empty button {
  color: #a03c28;
  border: 0;
  background: transparent;
  text-decoration: underline;
}
#empty {
  position: absolute;
  inset: 25% 10% auto;
  text-align: center;
}
#empty button {
  display: block;
  margin: 8px auto;
}
#random:disabled {
  opacity: 0.45;
  cursor: default;
}
#filters {
  position: relative;
  z-index: 1;
  gap: 24px;
  padding-block: 8px;
  min-height: 48px;
}
#filters button {
  font: inherit;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 9px;
}
.filter-group > span {
  font-size: 12px;
  color: #756956;
  white-space: nowrap;
}
#genre {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #c5bbab;
  border-radius: 8px;
  background-color: #fff;
  color: #44392e;
  min-height: 32px;
  padding: 3px 6px;
  cursor: pointer;
}
#genre.active {
  background-color: #fae8de;
  color: #803822;
  border-color: #b97559;
}
#genre:focus-visible {
  outline: 2px solid #934830;
  outline-offset: 2px;
}
#energy,
#taste {
  display: flex;
  align-items: center;
  gap: 3px;
}
#filters [data-value] {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 20px;
  color: #655948;
  padding: 6px 8px;
  font-size: 12px;
}
#filters #taste [data-value] {
  background: #f4f3f1;
}
#filters [data-value]:hover {
  border-color: #c7bcaa;
}
#filters [data-value][aria-pressed="true"] {
  color: #873823;
  border-color: #c88874;
  background: #fae8de;
}
.battery {
  position: relative;
  display: flex;
  gap: 1px;
  padding: 2px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  margin-right: 2px;
}
.battery:after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  height: 4px;
  width: 2px;
  background: currentColor;
}
.battery i {
  width: 4px;
  height: 6px;
  background: #d9d1bf;
}
.battery .charged {
  background: currentColor;
}
#energy button:nth-child(1) {
  color: #a15e46;
}
#energy button:nth-child(2) {
  color: #92732f;
}
#energy button:nth-child(3) {
  color: #627849;
}
.level {
  font: 600 11px monospace;
}
@media (max-width: 850px) {
  #filters {
    gap: 10px;
  }
  .filter-group {
    gap: 4px;
  }
  #filters [data-value] {
    padding: 5px 6px;
  }
}
@media (max-width: 690px) {
  #filters {
    flex-wrap: wrap;
    padding: 6px 10px;
    gap: 5px 10px;
  }
  #genre {
    font-size: 11px;
    min-height: 27px;
  }
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }
  .filter-group > span {
    font-size: 10px;
  }
  #filters [data-value] {
    font-size: 11px;
    padding: 4px;
  }
  .battery i {
    width: 3px;
  }
  .level {
    display: none;
  }
  .filter-status {
    gap: 2px;
    font-size: 11px;
  }
}
.dish-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.save[aria-pressed="true"] svg { fill: currentColor; }
.dish-actions .save {
  margin: 0;
}
.again {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  border: 1px solid #d9d1c1;
  background: #ffffff;
  border-radius: 22px;
  padding: 10px 14px;
}
.dish-stage { position:relative; isolation:isolate; overflow:hidden; }
.drawing { overflow: hidden; }
.drawing .dish-details, .drawing .dish-stage > .preview { visibility: hidden; }
.dish-stage.settling { overflow: visible; z-index: 1; pointer-events: none; }
#close { z-index: 3; }
.gacha-window {
  --pitch: clamp(96px, 23dvh, 180px);
  z-index: 2;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: white;
}
.gacha-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgb(37 32 29 / 24%),
    rgb(37 32 29 / 14%) calc(50% - var(--pitch) / 2 - 5px),
    transparent calc(50% - var(--pitch) / 2),
    transparent calc(50% + var(--pitch) / 2),
    rgb(37 32 29 / 14%) calc(50% + var(--pitch) / 2 + 5px),
    rgb(37 32 29 / 24%));
}
@media (min-width: 881px) and (pointer: fine) {
  .dish-actions .save, .dish-actions .again {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    font-size: 15px;
  }
}
.gacha-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - var(--pitch) / 2);
}
.gacha-strip > div {
  height: var(--pitch);
  display: grid;
  place-items: center;
}
.gacha-strip img, .gacha-strip canvas {
  width: calc(var(--pitch) - 12px);
  height: calc(var(--pitch) - 12px);
  object-fit: contain;
}
.dish-actions:has(.again) {
  position: sticky;
  bottom: -1px;
  padding-block: 8px;
  background: var(--dialog-surface);
}
.dish-actions:has(.again) .save {
  background: transparent;
  color: #765f4b;
  border-color: #d9d1c1;
}
.again {
  background: #bd462f;
  color: white;
  border-color: #bd462f;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#filters #genre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  min-width: 95px;
}
.chevron {
  width: 7px;
  height: 7px;
  flex: none;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
#genre[aria-expanded="true"] .chevron {
  transform: translateY(2px) rotate(225deg);
}
#genre-picker {
  position: fixed;
  inset: var(--trigger-bottom) auto auto
    min(var(--trigger-left), calc(100vw - 388px));
  margin: 0;
  width: 376px;
  max-height: calc(100dvh - var(--trigger-bottom) - 12px);
  padding: 14px;
  border-radius: 17px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 36px #49372223;
}
#genre-picker[open] {
  display: flex;
  flex-direction: column;
}
#genre-picker::backdrop {
  background: transparent;
}
.picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 8px;
  flex: none;
}
.picker-heading h2 {
  margin: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
#genre-close {
  background: #f3efe6;
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
}
#genre-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 3px;
}
#genre-choices button {
  display: flex;
  gap: 8px;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 5px 8px;
  min-height: 44px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
#genre-choices button:first-child {
  grid-column: 1/-1;
}
#genre-choices button:hover {
  background: #f5f0e5;
}
#genre-choices button[aria-pressed="true"] {
  background: #fae8db;
  color: #873b29;
  border-color: #d7a38c;
}
#genre-choices button[aria-pressed="true"]::after {
  content: "✓";
  margin-left: auto;
}
.genre-bowl { display: grid; place-items: center; background: #f5ede6; color: #935640; border-radius: 50%; }
#genre-choices img, .genre-bowl {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: none;
}
@media (max-width: 690px) {
  header {
    height: 58px;
    padding-inline: max(10px, env(safe-area-inset-left))
      max(10px, env(safe-area-inset-right));
  }
  nav button {
    min-height: 40px;
    padding-inline: 10px;
  }
  #filters {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto auto;
    gap: 7px;
    padding: 6px 10px 4px;
  }
  .filter-group {
    min-width: 0;
    align-items: stretch;
    gap: 0;
  }
  .filter-group > span {
    font-size: 11px;
    font-weight: 600;
  }
  #filters #genre {
    padding: 6px 8px;
    min-width: 0;
    min-height: 38px;
    font-size: 12px;
    gap: 6px;
    max-width: 175px;
  }
  #genre-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #energy,
  #taste {
    gap: 1px;
  }
  #filters [data-value] {
    min-height: 38px;
    padding: 5px;
    font-size: 12px;
  }
  #energy button {
    min-width: 29px;
  }
  .filter-status {
    position: fixed;
    bottom: max(15px, env(safe-area-inset-bottom));
    left: 12px;
    padding: 4px 10px;
    min-height: 34px;
    gap: 5px;
    border: 1px solid #dcd3c4;
    border-radius: 22px;
    background: #fffffff5;
    font-size: 12px;
    z-index: 1;
  }
  #clear {
    min-height: 30px;
  }
  #genre-picker {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: min(64dvh, 530px);
    padding: 8px 14px max(12px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }
  #genre-picker::before {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    margin: 0 auto 5px;
    border-radius: 5px;
    background: #d8cfc1;
    flex: none;
  }
  #genre-picker::backdrop {
    background: #40362e55;
  }
  #genre-close {
    min-width: 42px;
    min-height: 42px;
  }
  #genre-choices button {
    min-height: 47px;
  }
}
@media (max-width: 355px) {
  #filters {
    gap: 4px;
    padding-inline: 6px;
  }
  #filters [data-value] {
    font-size: 11px;
    padding-inline: 4px;
  }
  nav button {
    padding-inline: 7px;
  }
}
@media (max-width: 690px) {
  .saved-long {
    display: none;
  }
  header .brand,
  header nav button {
    white-space: nowrap;
  }
  header .logo {
    flex-shrink: 0;
  }
}
@media (max-width: 355px) {
  #saved > span {
    display: none;
  }
  header .brand {
    gap: 4px;
  }
  header h1 {
    font-size: 19px;
  }
}

.compact-filter,#genre-choices[hidden],#quick-choices[hidden]{display:none}
#quick-choices{display:grid;gap:4px;overflow:auto;padding:3px}
#quick-choices button{display:flex;align-items:center;gap:12px;min-height:46px;padding:8px 16px;border:1px solid transparent;border-radius:10px;background:transparent;text-align:left;font-weight:600}
#quick-choices button[aria-pressed="true"]{color:#873b29;background:#fae8db;border-color:#d7a38c}
#quick-choices button[aria-pressed="true"]::after{content:"✓";margin-left:auto}
@media(max-width:690px){
  header{height:50px}
  #filters{grid-template-columns:minmax(0,max-content) max-content max-content;padding:2px 10px;gap:6px;min-height:46px}
  #filters .filter-group>span,#filters #energy,#filters #taste{display:none}
  #filters #genre,#filters .compact-filter{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;max-width:none;min-width:0;height:40px;padding:4px 10px;font-size:12px;font-weight:650;color:#534637;border:1px solid #d8cfbd;border-radius:11px;background:#fff}
  #filters .compact-filter.active,#filters #genre.active{background:#fae8de;border-color:#c78970;color:#803822}
  #genre:not(.active) #genre-value{font-size:0}
  #genre:not(.active) #genre-value::after{content:"ジャンル";font-size:12px}
  .compact-filter > span:not(.battery){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

#more-choices:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: none;
  background: #faf9f7;
  border-bottom: 1px solid #dfd7c8;
  color: #655948;
  font-size: 12px;
}
#more-choices button {
  min-height: 36px;
  background: transparent;
  color: #873b29;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

header .brand, header nav, header h1, header button, .tagline { white-space: nowrap; }
.logo { flex: none; }
.tile-art { display: grid; place-items: center; }
.tile-art canvas, .overview .tile-art img { display: none; }
.overview .tile-art canvas {
  display: block;
  width: var(--dish-image-height, 103px);
  height: var(--dish-image-height, 103px);
}
@media (max-width: 1024px) {
  header { gap: 14px; padding-inline: 16px; }
  .dish { width: 151px; height: 147px; }
}
@media (min-width: 691px) and (max-width: 930px) {
  header { height: 62px; }
  header h1 { font-size: 25px; }
  .tagline { display: none; }
  #filters { gap: 10px; padding-inline: 12px; }
  #filters .filter-group { gap: 3px; }
  #filters [data-value] { padding-inline: 4px; }
  #filters #genre { min-width: 84px; }
}
@media (min-width: 691px) and (max-width: 800px) {
  #filters .filter-group > span { display: none; }
}
@media (max-width: 690px) {
  header { padding-inline: 10px; gap: 6px; }
  .dish { width: 137px; height: 138px; gap: 2px; --dish-image-height: 92px; }
  .dish .tile-art img { height: 92px; width: 110px; }
  .dish strong { font-size: 13px; line-height: 1.15; }
  #filters .compact-filter { justify-content: flex-start; }
  .compact-filter .chevron { margin-left: auto; }
  #energy-trigger { min-width: 85px; }
}

#touch-hint:not([hidden]) {
  position: absolute;
  inset: auto auto max(62px, env(safe-area-inset-bottom)) 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: 24px;
  background: #332f2bf0;
  color: white;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}
#touch-hint svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: no-preference) {
  #touch-hint svg { animation: hand-drag 1.8s ease-in-out 3; }
  @keyframes hand-drag {
    0%, 100% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -2px); }
  }
}
@media (min-width: 691px) {
  #touch-hint:not([hidden]) { display: none; }
}
@media (min-width: 691px) and (max-width: 1024px) {
  header { height: 80px; padding-inline: clamp(20px, 3vw, 32px); }
  header nav button { min-height: 44px; padding: 10px 16px; }
  #filters { min-height: 60px; padding: 9px clamp(14px, 2vw, 22px); }
  #filters #genre, #filters [data-value] { min-height: 40px; }
}

#panel:has(.saved-heading) { background: #fff; }
.saved-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #e5e2dd; }
.saved-row .entry { min-width: 0; flex: 1; }
.remove-saved {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  font-size: 20px;
  color: #706961;
  background: transparent;
}
.remove-saved:hover { background: #f1ede7; }
.saved-empty { padding: 24px 8px 10px; text-align: center; }
.empty-symbol {
  display: grid;
  place-items: center;
  position: relative;
  margin: auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #f8e9dd;
  color: #a34630;
}
.empty-symbol svg:first-child { width: 44px; height: 44px; }
.empty-symbol svg:last-child {
  width: 26px; height: 26px; position: absolute; bottom: 0; right: 0;
  padding: 4px; border-radius: 50%; background: white;
}
@media (min-width: 691px) {
  #filters { flex-wrap: wrap; }
  .filter-status { flex: none; }
}
@media (min-width: 691px) and (max-width: 880px) {
  #filters { gap: 12px; }
  #filters .filter-group > span, #filters #energy, #filters #taste { display: none; }
  #filters .compact-filter {
    display: flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 6px 12px;
    background: white; border: 1px solid #d8cfbd; border-radius: 10px;
  }
  #filters .compact-filter.active { border-color: #c78970; background: #fae8de; }
}

.saved-draw, .saved-draw-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
}
.saved-draw { background: #ad402c; color: white; border: 0; font-weight: 700; }
.saved-draw:hover { background: #913622; }
.saved-draw-hint { justify-content: flex-start; background: #f5ede6; color: #674e42; font-size: 13px; }
.saved-draw-hint strong { display: block; }
.saved-draw svg, .saved-draw-hint svg { width: 20px; height: 20px; flex: none; }
#genre-icon { display: none; }
@media (max-width: 880px) {
  #genre-icon:not(:empty) { display: inline-flex; flex: none; color: #935640; }
  #genre-icon img, #genre-icon svg { width: 21px; height: 21px; object-fit: contain; }
  #genre-value { min-width: 0; }
}
@media (max-width: 690px) {
  #filters #genre, #filters .compact-filter { padding-inline: 7px; }
  #filters #taste-trigger { width: max-content; }
}
@media (min-width: 881px) {
  #taste { gap: 5px; }
  #filters #taste [data-value] {
    position: relative;
    isolation: isolate;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    line-height: 1.4;
  }
  #taste [data-value]::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 5px 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f4f3f1;
  }
  #taste [data-value]:hover::before { border-color: #c7bcaa; }
  #taste [data-value][aria-pressed="true"]::before {
    background: #fae8de;
    border-color: #c88874;
  }
}

@media (prefers-reduced-motion: no-preference) {
  :is(#random, #saved, .save, .again, .saved-draw) {
    transition: transform 140ms ease-out, background-color 140ms ease-out;
  }
  @media (hover: hover) and (pointer: fine) {
    :is(#random, #saved, .save, .again, .saved-draw):enabled:hover { transform: scale(1.025); }
  }
  :is(#random, #saved, .save, .again, .saved-draw):enabled:active {
    transform: scale(.97);
    transition-duration: 65ms;
  }
}
.map-intro { position: relative; max-width: 36em; margin: auto; padding: 24px; }

/* Grow the 100% map tiles with their grid pitch on wide desktop displays. */
@media (min-width: 1440px) {
  .dish {
    --dish-image-height: clamp(103px, 7.153vw, 139px);
    width: clamp(164px, 11.389vw, 221px);
    height: clamp(153px, 10.625vw, 207px);
  }
  .dish img { width: clamp(123px, 8.542vw, 166px); height: var(--dish-image-height); }
  .dish strong { max-width: 100%; font-size: clamp(14px, .9722vw, 19px); }
  .dish .time { font-size: clamp(10px, .6944vw, 13.5px); }
}

@media (min-width: 1025px) {
  header, #filters { padding-inline: clamp(24px, 2vw, 36px); }
  header nav button {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 16px;
  }
  header nav svg { width: 18px; height: 18px; }
  header nav b { font-size: 12px; }
  .tagline, .filter-group > span, .filter-status { font-size: 14px; }
  #filters { gap: 16px; }
  #filters #genre, #filters [data-value], #filters #clear {
    font-size: 15px;
    min-height: 44px;
  }
  #filters .level { font-size: 14px; }
  #filters #clear { min-width: 44px; }
}
