.play-shell:has(.restaurant-game) :is(.match-strip,.round-footer>span) {display:none;}
.play-shell:has(.restaurant-game) .arena.shared .player-panel {border:0;box-shadow:none;background:none;}
.play-shell:has(.restaurant-game) .arena.shared .game-content {padding:0;min-height:0;}
.restaurant-game {
  --plum:#493253;--ink:#46322f;--muted:#715855;--green:#2d684b;--cream:#fffaf0;
  width:100%;max-width:1220px;margin-inline:auto;display:grid;gap:8px;padding:clamp(5px,1vw,12px);
  color:var(--ink);border:1px solid #e8c5a5;border-radius:clamp(12px,2vw,24px);
  background:linear-gradient(137deg,#ffe9d3,#fff3db 52%,#f6dccd);
}
.restaurant-game [hidden] {display:none;}
.restaurant-game :is(h3,p,ul) {margin:0;}
.restaurant-game button {font:inherit;min-width:0;touch-action:none;user-select:none;}
.restaurant-game button:focus-visible {outline:3px solid #6f46a1;outline-offset:2px;z-index:2;}
.restaurant-game button:disabled {cursor:default;}
.restaurant-hud {
  display:flex;align-items:center;justify-content:space-between;gap:5px;
  min-height:34px;padding:5px 10px;border:1px solid #e6c6ab;border-radius:10px;
  background:var(--cream);font-size:clamp(.85rem,2.4vw,1.05rem);
}
.restaurant-hud time {font-variant-numeric:tabular-nums;color:#76514d;font-weight:780;}
.restaurant-stations {display:grid;grid-template-columns:minmax(0,1.24fr) minmax(0,1fr);gap:8px;}
.restaurant-station {
  min-width:0;display:grid;grid-auto-rows:max-content;gap:7px;align-content:start;
  padding:clamp(6px,1.1vw,13px);border:1px solid #e8bfa9;border-radius:13px;background:#fff9ed;
}
.restaurant-kitchen {border-color:#b7c8ac;background:#f2f6e8;}
.restaurant-role {display:flex;align-items:center;justify-content:space-between;gap:4px;line-height:1.04;}
.restaurant-role h3 {font-size:clamp(1rem,3.8vw,1.38rem);}
.restaurant-server .restaurant-role h3 {color:var(--plum);}
.restaurant-kitchen .restaurant-role h3 {color:#355840;}
.restaurant-role>span {padding:2px 6px;border-radius:5px;background:#e7dfed;color:#593d70;font-size:.71rem;font-weight:750;}
.restaurant-role>.restaurant-player {background:#dcecd8;color:#315b40;}
.restaurant-hint {min-height:1.2em;line-height:1.25;color:#634d49;font-size:clamp(.76rem,2.6vw,.99rem);font-weight:690;}
.restaurant-map {position:relative;overflow:hidden;border:1px solid #cba886;border-radius:11px;background:#d9af84;isolation:isolate;}
.restaurant-map canvas {width:100%;height:auto;display:block;touch-action:none;}
.restaurant-map :is(.restaurant-spot,.restaurant-pass) {
  position:absolute;display:flex;align-items:center;justify-content:center;gap:3px;
  min-width:44px;min-height:44px;transform:translate(-50%,-50%);white-space:nowrap;
  background:#fff4df;color:#65484a;border:1px solid #ae826c;box-shadow:0 2px 0 #673b344d;
}
.restaurant-spot {border-radius:50%;font-size:clamp(.79rem,2vw,1.04rem);}
.restaurant-pass {left:50%;top:max(22px,10%);min-height:44px;padding:0 7px;border-radius:8px;font-size:clamp(.66rem,2.2vw,.9rem);}
.restaurant-spot-icon:empty {display:none;}
.restaurant-spot[data-status=quiet] {background:#f9ecd4;color:#6c5453;}
.restaurant-spot[data-status=served] {background:#daf0d4;color:#356146;}
.restaurant-map button.is-target {background:#624a83;border-color:#422952;color:white;box-shadow:0 0 0 3px #f8edd4,0 0 0 5px #76569d;}
.restaurant-map button:disabled {opacity:1;}
.restaurant-carry {min-height:1.2em;color:#664573;font-size:clamp(.73rem,2.4vw,.91rem);font-weight:740;line-height:1.2;}
.restaurant-ticket {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:5px;padding:6px;border:1px solid #bccdac;border-radius:9px;background:#fffdf1;}
.restaurant-table {border-radius:5px;padding:3px 6px;background:#564071;color:#fff;white-space:nowrap;font-size:clamp(.66rem,2.13vw,.81rem);font-weight:760;}
.restaurant-dish {font-size:clamp(.82rem,2.65vw,1.05rem);line-height:1.15;overflow-wrap:anywhere;}
.restaurant-recipe {grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px;padding:0;list-style:none;}
.restaurant-recipe li {display:flex;align-items:center;gap:2px;min-height:24px;padding:2px 4px;border:1px solid #ead3b6;border-radius:5px;background:#fff0d9;font-size:clamp(.66rem,2.2vw,.85rem);font-weight:700;}
.restaurant-recipe li.is-added {border-color:#91b78f;background:#e4f2dc;color:#2d5a40;}
.restaurant-food {font-size:1.27em;}
.restaurant-check {color:#216643;font-weight:900;}
.restaurant-check:empty {display:none;}
.restaurant-pantry {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;}
.restaurant-ingredient {
  position:relative;display:grid;align-content:center;justify-items:center;gap:2px;
  color:#513637;border:1px solid #d5b79e;border-radius:8px;background:#fffaf0;box-shadow:0 2px 0 #d9c1a8;
  min-height:clamp(45px,6.6vw,80px);padding:3px;text-align:center;
}
.restaurant-ingredient>span:first-child {font-size:clamp(1.06rem,3.45vw,1.93rem);line-height:1;}
.restaurant-ingredient strong {font-size:clamp(.64rem,2.2vw,.88rem);line-height:1.08;overflow-wrap:anywhere;}
.restaurant-ingredient:disabled {background:#e8e9df;color:#62584f;box-shadow:none;}
.restaurant-ingredient.is-needed {background:#e6f4d8;border-color:#3e8461;box-shadow:inset 0 0 0 1px #3e8461,0 2px 0 #3e8461;}
.restaurant-number {position:absolute;top:3px;right:4px;font-size:.69rem;color:#785b50;}
.restaurant-stove {display:grid;gap:3px;align-items:center;}
.restaurant-action {
  display:flex;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:4px 7px;
  border:1px solid #24583d;border-radius:8px;background:#327553;color:white;box-shadow:0 2px 0 #25523c;
  text-align:center;font-size:clamp(.88rem,3vw,1.18rem);
}
.restaurant-action:disabled {box-shadow:none;background:#dce6d5;border-color:#bdd0b4;color:#52644f;}
.restaurant-timer {width:100%;height:8px;accent-color:#28734b;}
.restaurant-orders {font-size:clamp(.71rem,2.5vw,.9rem);line-height:1.2;font-weight:690;color:#46664d;}
.restaurant-orders:empty {display:none;}
@media (min-width:850px) {
  .restaurant-map :is(.restaurant-spot,.restaurant-pass) {min-width:53px;min-height:52px;}
  .restaurant-stations,.restaurant-game {gap:11px;}
  .restaurant-station {gap:10px;}
}
@media (orientation:portrait) and (max-width:730px) {
  .restaurant-stations {grid-template-columns:1fr;gap:5px;}
  .restaurant-station {gap:4px;}
  .restaurant-map canvas {max-height:clamp(138px,29dvh,245px);}
  .restaurant-carry {font-size:.72rem;}
  .restaurant-hud {min-height:29px;}
  .restaurant-spot {font-size:.74rem;}
  .restaurant-pass {border-radius:7px;}
}
@media (orientation:landscape) and (max-height:510px) {
  .restaurant-game {padding:4px;gap:4px;}
  .restaurant-station {padding:5px;gap:4px;}
  .restaurant-map canvas {max-height:calc(100dvh - 141px);}
  .restaurant-ingredient {min-height:44px;}
  .restaurant-hint {font-size:.71rem;}
}
@media (pointer:coarse),(max-width:700px) { .restaurant-number {display:none;} }
.restaurant-carry:empty {display:none;}
.restaurant-cooktop {display:none;}
@media (min-width:860px) and (min-height:630px) {
  .restaurant-cooktop {
    display:grid;place-items:center;min-height:70px;overflow:hidden;border:1px solid #aeb8a1;border-radius:10px;
    background:repeating-linear-gradient(90deg,transparent 0 25px,#b6a48a30 25px 26px),linear-gradient(160deg,#c8caba,#929687);
  }
  .restaurant-pan {
    display:grid;place-items:center;position:relative;width:min(158px,55%);height:44px;
    color:#fff;border:3px solid #bdc3b4;border-radius:50%;background:#343e3b;
    box-shadow:0 4px 5px #32342f52,inset 0 0 0 4px #505b54;
  }
  .restaurant-pan::after {content:'';position:absolute;left:99%;width:32px;height:7px;border-radius:6px;background:#464342;}
  .restaurant-cooktop[data-stage=cooking] .restaurant-pan {box-shadow:0 0 14px #f4bc6c,inset 0 0 0 4px #8f6c56;}
  .restaurant-cooktop[data-stage=plate] .restaurant-pan {border-color:#e6d9bb;background:#fff7e2;box-shadow:0 4px 5px #32342f40;}
  .restaurant-cooktop[data-stage=plate] .restaurant-pan::after {display:none;}
}
@media (orientation:portrait) and (max-height:650px) {
  .play-shell:has(.restaurant-game) {padding-inline:6px;}
  .restaurant-game {gap:5px;}
  .restaurant-map canvas {max-height:clamp(120px,22dvh,145px);}
  .restaurant-station {padding:4px;}
  .restaurant-pantry:has(>button:nth-child(7):not([hidden])) {grid-template-columns:repeat(5,minmax(0,1fr));}
  .restaurant-ingredient strong {font-size:.64rem;}
  .restaurant-ticket {padding:4px;gap:3px;}
  .restaurant-recipe li {min-height:20px;}
}
