/* The responsive kitchen owns its layout; never scale it as a canvas game. */
body.fraction-chef-page {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #faf5eb;
}
body.fraction-chef-page .play-header {
  position: relative;
  inset: auto;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 7px 14px;
  background: #172c31;
  border-bottom: 1px solid #294348;
}
body.fraction-chef-page .play-title { min-width: 0; flex: 1; line-height: 1.3; }
body.fraction-chef-page .play-title strong { display: block; font-size: .85rem; color: #fff9e9; }
body.fraction-chef-page .play-title small { display: block; font-size: .66rem; color: #c4d0ca; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.fraction-chef-page .back-button,
body.fraction-chef-page .play-header .icon-button {
  min-width: 40px;
  min-height: 40px;
  padding: 6px;
  border: 1px solid #365155;
  border-radius: 11px;
  background: #20383d;
  color: #fff9e9;
  display: grid;
  place-items: center;
  text-decoration: none;
}
body.fraction-chef-page .back-button:focus-visible,
body.fraction-chef-page .play-header .icon-button:focus-visible { outline: 3px solid #f5ce75; outline-offset: 2px; }
body.fraction-chef-page .game-stage {
  position: relative;
  inset: auto;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #faf5eb;
}
body.fraction-chef-page #gameFrame {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  transform: none !important;
  display: block;
  background: #faf5eb;
}
body.fraction-chef-page .play-status { display: none; }
body.fraction-chef-page .play-status.error,
body.fraction-chef-page .play-status[data-state="error"] {
  display: block;
  position: relative;
  inset: auto;
  padding: 10px 16px;
  background: #fff0e3;
  color: #82401d;
  font-size: .85rem;
}
body.fraction-chef-page:fullscreen .game-stage { height: auto; }
@media (max-width: 500px) {
  body.fraction-chef-page .play-header { gap: 7px; padding: 5px 9px; min-height: 52px; }
  body.fraction-chef-page .play-title small { max-width: 210px; font-size: .6rem; }
  body.fraction-chef-page .back-button,
  body.fraction-chef-page .play-header .icon-button { min-width: 40px; min-height: 40px; }
}
