/* Night service title and in-kitchen ticket stock. */
#opening{
  position:fixed;inset:0;z-index:30;isolation:isolate;overflow:hidden;
  height:100%;height:100dvh;background:#10131e;color:#ffedcd;user-select:none;-webkit-user-select:none;
}

#game header{background:linear-gradient(#28354a,#20293c);border-top-color:#70625e}
.pass{padding-block:.65vh .9vh}
.bays{gap:clamp(8px,2.35vw,42px)}
.bay{flex-direction:row;align-items:center;justify-content:center;gap:3%}
.bayTicket,.bay.current .bayTicket{
  height:88%;width:67%;padding:3px clamp(5px,.65vw,13px);display:grid;align-content:center;
  grid-template-columns:max-content minmax(0,1fr) auto;grid-template-rows:auto auto;
  grid-template-areas:"table habit count" "table recipe pieces";gap:.48em .48em;line-height:1.13;
  border:1px solid #bb9b79;border-left:4px solid #b59779;color:#46352f;
  background:linear-gradient(101deg,#e5d7b9,#decbae);box-shadow:0 3px #5d4038;
  font-size:clamp(12px,1.32vw,22px);text-align:start;
}
.bay.current .bayTicket{border-color:#b9895c;border-left-color:#a7413f;background:linear-gradient(104deg,#fff4da,#f4e1bc);box-shadow:0 3px #604237}
.bay.current .bayTicket::after{display:none}
.bayTicket .tableTag{grid-area:table;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;align-self:stretch;border-right:1px dashed #ac9273;padding-right:.48em;color:#704c40}
.bayTicket .tableTag em{font:900 clamp(18px,2.05vw,38px)/.94 ui-monospace,monospace;color:#694339}
.bay.current .tableTag em{color:#9b3838}
.tableTag span{font-size:.82em;font-weight:750;letter-spacing:.03em}
.bayTicket .ticketHabit{color:#725b4e;font-weight:650;line-height:1.1}
.bayTicket .plateCount,.bay.feast .plateCount{color:#865136;line-height:1.1}
.bayTicket strong{font-weight:900;color:#332b31;letter-spacing:0;font-size:1em;line-height:1.22}
.bayTicket img{display:none}
.bayTicket small,.bay.current .bayTicket small{border:0;padding:0;color:#725a48;line-height:1.14;font-size:.77em}
.bay.feast .ticketHabit{color:#87402d}
.bay.rush .ticketHabit{visibility:hidden}
.rushTag{grid-area:habit;line-height:1.12;font-style:normal;font-size:.8em;font-weight:850;background:#973e3c;color:#fff2d4;padding:.15em .3em;justify-self:start;white-space:nowrap}
.bay .dock{width:30%;height:82%;min-width:0}
.bay.unused .dock{height:73%;max-width:230px;width:80%;opacity:.83}
.dockLabel{bottom:1px;right:2px;font-size:clamp(10px,.93vw,16px);padding:.10em .43em}
.dock.ready .dockLabel{background:#ffd68b;color:#3f292c}
.dock.ready .dockMark{border:2px solid #ffd38d}
#game[data-mode=practice] .bays{grid-template-columns:minmax(0,.55fr) minmax(0,1.75fr) minmax(0,.55fr)}
#game[data-mode=practice] .bay[data-slot="1"] .bayTicket{width:62%;grid-template-columns:auto clamp(35px,4.85vw,91px) minmax(0,1fr) auto;grid-template-areas:"table food habit count" "table food recipe pieces";font-size:clamp(14px,1.55vw,25px)}
#game[data-mode=practice] .bay[data-slot="1"] .bayTicket img{display:block;grid-area:food;width:100%;height:100%;max-height:60px;object-fit:contain}
#game[data-mode=practice] .bay[data-slot="1"] .dock{width:35%}
#serviceNote{position:absolute;right:2.4%;align-self:center;z-index:1;opacity:0;pointer-events:none;color:#ffe1a0;background:#273446;border-left:3px solid #ebbc78;padding:.18em .75em;font-size:clamp(11px,1.6vh,19px);line-height:1.3;font-weight:800}
#serviceNote.show{opacity:1;animation:servicePop .2s ease-out}
#serviceNote.express{background:#843f40}#serviceNote.grip{background:#2e504e;border-color:#c9d79c}
@keyframes servicePop{from{transform:translateY(4px);opacity:0}to{transform:none;opacity:1}}
#boardAction{position:absolute;left:50%;top:4%;z-index:4;transform:translateX(-50%);padding:.2em .7em .25em;background:#263441ed;color:#f9e8bf;border:1px solid #ccae7a;box-shadow:0 2px #503c37b5;font-size:clamp(12px,1.55vh,19px);line-height:1.25;font-weight:800;pointer-events:none;white-space:nowrap}
.board[data-stage=loose] #boardAction{border-color:#e6c277;background:#6d4636;color:#fff1c6}
#game[data-drag=ingredient] .boardFrame,#game[data-drag=piece] .bay.current .dock,#game[data-drag=plate] #rail{outline:3px dashed #ffe6a1;outline-offset:-4px}
#game.rushClock .time strong{color:#ffba90}
#counterStatus{font-variant-numeric:tabular-nums}
.paceRow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:1em 0;font-size:clamp(14px,1.9vh,19px)}
.paceRow select{font:inherit;font-weight:700;color:#fff0ca;background:#263e4e;border:1px solid #85958e;padding:.35em .65em}
.tillReceipt{margin:.85em 0 .35em;background:#f4e7c9;color:#443737;padding:clamp(10px,2.2vh,20px) clamp(13px,2vw,27px);box-shadow:2px 3px #182434}
.receiptShop,.receiptLine,.receiptTotal,.receiptBest{display:flex;align-items:center;justify-content:space-between;gap:1em}
.receiptShop{color:#873d36;font-size:clamp(16px,2.15vh,24px);font-weight:900;border-bottom:1px dashed #a68c70;padding-bottom:.42em;margin-bottom:.4em}
.receiptShop span,.receiptBest{font-size:clamp(12px,1.65vh,17px);color:#74594f;font-weight:600}
.receiptLine{font-size:clamp(13px,1.9vh,20px);line-height:1.5}.receiptLine b{margin-left:auto;font-size:.9em}.receiptLine em{min-width:3.5em;text-align:end;font:800 1em ui-monospace,monospace;color:#4d5146}
.receiptTotal{border-top:1px dashed #a68c70;margin-top:.55em;padding-top:.38em;font-weight:850}.receiptTotal strong{font:900 clamp(24px,4vh,42px) ui-monospace,monospace;color:#943d38}
.receiptBest{justify-content:flex-end;margin-top:1px}
@media(min-width:1180px){#game[data-mode=dinner] .bayTicket{font-size:clamp(14px,1.13vw,23px)}}
@media(orientation:portrait){
  #game{grid-template-rows:7fr 20fr 4fr 17fr 21fr 25.5fr 5.5fr}
  .bays{gap:1.8%}.pass{padding-block:.6vh .8vh}
  #game[data-mode=practice] .bays{grid-template-columns:minmax(0,1fr)}
  #game[data-mode=practice] .bay:not([data-slot="1"]){display:none}
  #game[data-mode=practice] .bay[data-slot="1"]{gap:2.5%}
  #game[data-mode=practice] .bay[data-slot="1"] .bayTicket{width:65%;height:86%;font-size:clamp(12px,3.3vw,20px);grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"table habit count" "table recipe recipe" "table food pieces";gap:.27em .42em;padding:4px .5em}
  #game[data-mode=practice] .bay[data-slot="1"] .bayTicket img{justify-self:start;width:2.7em;height:1.45em}
  #game[data-mode=practice] .bay[data-slot="1"] .bayTicket strong{font-size:1.12em}
  #game[data-mode=practice] .bay[data-slot="1"] .tableTag em{font-size:clamp(23px,6.4vw,40px)}
  #game[data-mode=practice] .bay[data-slot="1"] .dock{width:30%;height:83%}
  #game[data-mode=dinner] .bay{flex-direction:column;gap:4%}
  #game[data-mode=dinner] .bayTicket,#game[data-mode=dinner] .bay.current .bayTicket{width:100%;height:56%;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;grid-template-areas:"table habit" "recipe recipe" "count pieces";font-size:clamp(11px,2.8vw,17px);padding:3px .35em;gap:3px .05em;border-left-width:3px}
  #game[data-mode=dinner] .tableTag{align-self:start;justify-self:start;flex-direction:row;align-items:baseline;gap:2px;padding:0;border:0}
  #game[data-mode=dinner] .tableTag em{font-size:1.25em}
  .bayTicket .plateCount,.bayTicket small{white-space:nowrap;justify-self:end}.bayTicket .plateCount{justify-self:start}
  .bayTicket .ticketHabit,.rushTag{justify-self:start}.bayTicket .tableTag span{font-size:.83em}
  #game[data-mode=dinner] .ticketHabit,#game[data-mode=dinner] .rushTag{justify-self:end;font-size:.76em}
  #game[data-mode=dinner] .bay .dock{width:94%;height:40%}
  .dockLabel{font-size:clamp(10px,2.65vw,16px)}
  #boardAction{top:6%}#serviceNote{right:auto;justify-self:center}
  .settings .square{width:clamp(32px,8vw,45px);height:clamp(34px,9vw,46px)}
  #help{min-height:32px}
  #counterStatus{font-size:clamp(9px,2.4vw,14px)}
  .keyHelp{display:none}
}
@media(orientation:landscape) and (max-height:520px){
  #game{grid-template-rows:9fr 21fr 5fr 17fr 17fr 24.5fr 6.5fr}
  #game[data-mode=dinner] .bayTicket{font-size:clamp(10px,2.8vh,14px);gap:.24em .24em}
  .bayTicket .tableTag em{font-size:1.55em}.bays{gap:1.6%}
  #game[data-mode=practice] .bay[data-slot="1"] .bayTicket{font-size:clamp(12px,3.1vh,16px)}
  #boardAction{font-size:10px;top:0;padding:1px .5em}.dockLabel{font-size:10px}
  #serviceNote{font-size:10px;padding:1px .4em}
}
@media(max-width:360px) and (orientation:portrait){.shift{display:none}#counterStatus{max-width:48px}}
