.food-heading { display: flex; align-items: baseline; gap: 1.15rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.food-count { color: var(--muted); font-size: .89rem; }
.food-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(230px,100%),1fr)); gap: clamp(14px,2.4vw,27px); }
.dish-card { display: block; border: 1px solid #d8d4c4; background: var(--panel); border-radius: 9px; overflow: hidden; min-width: 0; }
.dish-card:hover { border-color: #ae9475; box-shadow: 0 4px 15px #59472c15; }
.dish-cover, .draw-cover { position: relative; overflow: hidden; background: #e8dec7; }
.dish-cover { height: clamp(150px,14vw,196px); }
.dish-cover img, .draw-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dish-illustration, .food-empty { background-color: #f0e6ce; background-image: repeating-linear-gradient(0deg,transparent 0 15px,#b08d6730 15px 16px), repeating-linear-gradient(90deg,transparent 0 15px,#b08d6730 15px 16px); }
.dish-illustration { display: grid; place-items: center; height: 100%; }
.dish-card:nth-child(3n+2) .dish-illustration { background-color: #dae2cf; }
.dish-card:nth-child(3n) .dish-illustration { background-color: #eadaca; }
.plate { display: grid; place-items: center; width: 84px; aspect-ratio: 1; flex: none; border-radius: 50%; background: #f9f5df; border: 2px solid #a29472; outline: 1px solid #b7a589; outline-offset: -9px; color: #687556; box-shadow: 2px 4px 0 #876f4829; transform: rotate(-9deg); }
.plate .icon { width: 35px; height: 35px; stroke-width: 1.2; }
.dish-card-copy { padding: 14px 17px 18px; }
.dish-card-copy h2, .draw-copy h3 { font: normal 1.7rem/1.13 var(--serif); letter-spacing: -.04em; overflow-wrap: anywhere; margin: 4px 0; }
.dish-card-copy p, .draw-copy p { color: var(--muted); font-size: .91rem; overflow-wrap: anywhere; }
.dish-card-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dish-stars { color: #a35327; letter-spacing: .08em; white-space: nowrap; line-height: 1.2; }
.dish-stars .unfilled { color: #756c58; }
.food-empty { display: flex; align-items: center; gap: clamp(22px,4vw,48px); border: 1px solid #d9ceae; border-radius: 9px; padding: clamp(25px,4vw,50px); background-image: linear-gradient(105deg,transparent 0%, #f4ecd9 45%),repeating-linear-gradient(0deg,transparent 0 15px,#b08d6730 15px 16px),repeating-linear-gradient(90deg,transparent 0 15px,#b08d6730 15px 16px); }
.food-empty h2, .food-choose h2 { font: normal clamp(1.65rem,3vw,2.35rem)/1.15 var(--serif); letter-spacing: -.045em; }
.food-empty p, .food-choose p { margin-top: .35rem; color: var(--muted); font-size: .94rem; }
.food-empty .btn { margin-top: 14px; }
.food-choose { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(18px,3vw,30px); padding: 1.4rem clamp(16px,3vw,34px); border: 1px solid #c3ccbb; border-radius: 9px; background: #e7ecdf; }
.food-choose-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.food-choose-actions .btn { min-height: 46px; }
.cuisine-grid, .cuisine-dishes { display: grid; gap: 12px; }
.cuisine-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cuisine-tile, .cuisine-dish { min-width: 0; overflow: hidden; border: 1px solid #d8d4c4; border-radius: 9px; background: #f7f2e7; }
.cuisine-tile { padding: 0; text-align: left; }
.cuisine-tile:hover { border-color: #ae9475; background: #f1eadb; }
.cuisine-tile img, .cuisine-dish img { display: block; width: 100%; height: auto; object-fit: cover; background: #e8dec7; }
.cuisine-tile img { aspect-ratio: 3/2; }
.cuisine-tile > span { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 9px 12px 10px; font: normal 1.35rem/1.15 var(--serif); }
.cuisine-tile .icon { width: 16px; height: 16px; }
.cuisine-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cuisine-heading h3 { font: normal 1.6rem/1.15 var(--serif); }
.cuisine-back .icon { width: 15px; height: 15px; transform: rotate(180deg); }
.cuisine-dishes { grid-template-columns: repeat(auto-fit,minmax(min(140px,100%),1fr)); padding: 0; margin: 0; list-style: none; }
.cuisine-dish img { aspect-ratio: 5/4; }
.cuisine-dish > div { padding: 10px 12px 13px; }
.cuisine-dish h4 { margin: 0 0 4px; font: normal clamp(1.2rem,3.5vw,1.45rem)/1.12 var(--serif); }
.cuisine-dish p { color: var(--muted); font-size: .83rem; line-height: 1.45; }
.dish-score { display: flex; align-items: center; gap: .7rem; margin-top: 11px; font-size: .9rem; color: var(--muted); }
.dish-score .dish-stars { font-size: 1.15rem; }
.food-note { border-color: #bc8056; background: #f3eddd; }
.rating-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.rating-field legend { padding: 0; color: #2f4736; font-size: .91rem; font-weight: 650; }
.rating-row, .star-input { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.rating-row { gap: .65rem; }
.star-input .star-choice { position: relative; display: grid; place-items: center; cursor: pointer; width: 39px; height: 44px; margin: 0; }
.star-choice span { font-size: 1.75rem; line-height: 1; color: #f8f1df; -webkit-text-stroke: 1px #8a7a61; }
.star-choice.lit span { color: #ad5f31; -webkit-text-stroke-color: #92512d; }
.star-input input[type=radio] { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
.star-choice:focus-within { outline: 2px solid #a15836; outline-offset: -2px; border-radius: 5px; }
.rating-value, .draw-status { color: var(--muted); font-size: .85rem; }
.draw-stage { position: relative; isolation: isolate; margin: 15px 0 10px; display: grid; place-items: center; border-radius: 9px; background: #e5eadb; border: 1px solid #ccd3bd; min-height: 162px; overflow: hidden; }
.draw-stack { display: none; width: 154px; height: 95px; position: relative; margin: 32px auto; }
.dealing .draw-stack { display: block; }
.draw-stack i { position: absolute; inset: 0; display: grid; place-items: center; border: 2px solid #fbf3db; border-radius: 7px; box-shadow: 0 3px 9px #293e2c37; background-color: #809780; }
.draw-stack i:nth-child(1) { transform: rotate(-12deg) translateX(-12px); animation: cut-left .65s ease-in-out; }
.draw-stack i:nth-child(2) { transform: rotate(9deg) translateX(12px); background-color: #bd895b; animation: cut-right .7s ease-in-out; }
.draw-stack i:nth-child(3) { transform: rotate(-3deg); color: #f7eed3; background-color: #4f6a53; outline: 1px solid #e1d1aa; outline-offset: -8px; animation: deal-front .75s ease-in-out; }
.draw-stack .icon { width: 31px; height: 31px; }
@keyframes cut-left { 45% { transform: translate(-28px,-5px) rotate(-24deg); } }
@keyframes cut-right { 48% { transform: translate(32px,3px) rotate(20deg); } }
@keyframes deal-front { 50% { transform: translateY(-16px) rotate(6deg); } }
.draw-result { width: 100%; }
.draw-result:empty { display: none; }
.draw-cover { height: 132px; }
.draw-cover .plate { width: 70px; }
.draw-copy { padding: 16px 19px 19px; background: var(--panel); }
.draw-copy p { margin-top: 6px; white-space: pre-wrap; max-height: 26vh; overflow: auto; }
.draw-status { min-height: 1.3rem; overflow-wrap: anywhere; }
.draw-actions { justify-content: space-between; }
@media (max-width: 540px) {
  .mast-inner { height: auto; display: grid; grid-template-columns: 1fr auto; gap: 1px 12px; padding-top: 9px; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .header-action { grid-column: 2; grid-row: 1; min-height: 39px; }
  .main-nav { grid-column: 1/-1; grid-row: 2; margin: 3px 0 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
  .main-nav a { justify-content: center; min-height: 41px; }
  .main-nav a>span { display: inline-flex; }
  .food-heading { gap: 5px 12px; margin-bottom: 17px; }
  .food-empty { align-items: flex-start; padding: 22px 16px; gap: 13px; }
  .food-empty .plate { width: 52px; outline-offset: -6px; }
  .food-empty .plate .icon { width: 22px; height: 22px; }
  .food-choose-actions { width: 100%; }
  .food-choose-actions .btn { width: 100%; }
  .cuisine-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cuisine-tile > span { padding-inline: 9px; font-size: clamp(1rem,5.2vw,1.35rem); }
  .dish-cover { height: 165px; }
}
@media (prefers-reduced-motion: reduce) {
  .draw-stack i { animation: none !important; }
}
