.kitchen-scene {
  width: min(100%, 620px);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  grid-template-rows: auto auto auto;
}
.kitchen-scene [hidden] { display: none; }
.kitchen-scene img { display: block; object-fit: contain; }
.kitchen-scene button { font: inherit; color: var(--text); cursor: pointer; }
.kitchen-request {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  grid-row: 2;
  background: var(--home-paper);
  border: 2px solid var(--home-sand);
  border-radius: 4px 4px 12px 4px;
  padding: 12px 24px;
  position: relative;
}
.kitchen-request img { width: clamp(60px, 8vw, 86px); height: auto; }
.kitchen-request::before {
  content: ''; position: absolute; inset: 4px 8px auto; height: 5px;
  border-top: 4px dotted var(--home-line);
}
.kitchen-scene .kitchen-request[hidden] { display:flex; visibility:hidden; }
.kitchen-open, .kitchen-peek { background: transparent; border: 0; }
.kitchen-open { grid-row: 3; width: min(78%, 385px); padding: 8px; }
.kitchen-open img { width:100%; }
.kitchen-open .child-word { display: block; margin-top: 8px; }
.kitchen-peek {
  grid-row: 1; min-height: 56px; display: inline-flex; align-items:center; justify-content:center;
  gap: 8px; padding: 5px 15px; border-radius: 12px; font-size: 1rem;
}
.kitchen-peek:where(:hover,[aria-expanded=true]) { background:var(--panel-left); }
.kitchen-peek .ui-symbol { width:32px; height:32px; }
.kitchen-drawer {
  grid-row: 3; width: 100%; padding: 16px 22px 45px;
  background: url('../assets/images/kitchen-open.webp') center/100% 100% no-repeat;
}
.kitchen-items {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  justify-content:center; gap: 10px; max-width: 520px; margin:auto;
}
.kitchen-items[data-count="2"] {grid-template-columns: repeat(2,minmax(0,145px));}
.kitchen-items[data-count="4"] {grid-template-columns: repeat(4,minmax(0,1fr));}
.kitchen-item {
  position: relative; display:flex; flex-direction:column; justify-content:center; align-items:center;
  min-width:56px; min-height:56px; padding:4px; background:transparent; border:3px solid transparent; border-radius:12px;
}
.kitchen-item[aria-pressed=true] {border-color:var(--home-ink);background:var(--home-paper);}
.kitchen-item:focus-visible, .kitchen-open:focus-visible {outline: 3px solid var(--link);outline-offset: 2px;}
.kitchen-item img {width: min(100%,102px); aspect-ratio:1;}
.kitchen-item .kitchen-label { color:var(--home-ink); font-size:.875rem; line-height:1.3; }
.kitchen-tick, .kitchen-served {
  position:absolute; top:2px; right:2px; background:var(--home-ink); color:var(--home-paper);
  border-radius:50%; padding:3px; display:grid;
}
.kitchen-tick .ui-symbol, .kitchen-served .ui-symbol {width:22px;height:22px;}
.kitchen-item[aria-pressed=false] .kitchen-tick {display:none;}
.kitchen-table {
  grid-row:3; position:relative; width:min(100%,480px); display:flex; align-items:center; justify-content:center;
  gap:4%; min-height:150px; padding:6px 7% 54px;
  background:url('../assets/images/kitchen-table.webp') center/100% 100% no-repeat;
}
.kitchen-table img { width:min(28%,108px); }
.kitchen-served {top:auto;bottom:34%;right:4%;}
@media(max-width:600px){
 .kitchen-scene {gap:5px;}
 .kitchen-request {padding:9px 16px 5px;}
 .kitchen-request img {width:58px;}
 .kitchen-drawer {padding:12px 12px 32px;}
 .kitchen-items {gap:4px;}
 .kitchen-item img {max-width:76px;}
 .kitchen-item {padding:2px;}
 .kitchen-table{min-height:120px;padding-bottom:41px;}
}
@media(max-height:730px){
 .kitchen-items[data-count="6"] .kitchen-item img {max-width:75px;}
}
@media(orientation:landscape) and (max-height:540px){
 .kitchen-scene {width:min(100%,780px);grid-template-columns:minmax(130px,1fr) minmax(250px,1.8fr);grid-template-rows:auto auto;gap:2px 20px;align-items:center;}
 .kitchen-request {grid-column:1;grid-row:2;align-self:start;padding:8px;}
 .kitchen-request img {width:44px;}
 .kitchen-peek {grid-column:1;grid-row:1;align-self:end;}
 .kitchen-drawer,.kitchen-open,.kitchen-table {grid-column:2;grid-row:1 / 3;}
 .kitchen-drawer {padding:7px 16px 20px;}
 .kitchen-item img,.kitchen-items[data-count="6"] .kitchen-item img {max-width:45px;}
 .kitchen-items {gap:3px;}
}
.child-ui[data-exercise-id=kitchen-list] .level-preview img {height:100%;width:auto;min-width:0;object-fit:contain;}
