.omurice-game { color: #32281e; padding: 10px; background: #faf4e7; border: 1px solid #c9ad84; border-radius: 6px; }
.omurice-standalone main { width: min(1200px, calc(100% - 24px)); padding-top: 10px; }
.omurice-game .toolbar { display: flex; justify-content: flex-end; gap: 7px; }
.omurice-game button { min-height: 40px; padding: 6px 11px; border: 1px solid #9e876b; border-radius: 3px;
  background: #fff9ee; color: #4c3828; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.omurice-game button:hover { background: #f3e4c6; }
.omurice-game #restart { background: #8b352a; border-color: #8b352a; color: #fff8e8; }
.omurice-game #restart:hover { background: #6f2b22; }
.omurice-game button:focus-visible { outline: 3px solid #48716b; outline-offset: 3px; }
.omurice-game .play-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; margin-top: 8px; }
.omurice-game .recipe { border: 1px solid #c9ad84; border-top: 5px solid #8b352a; background: #fff9eb; }
.omurice-game .order { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 14px; padding: 7px 12px; }
.omurice-game .order-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.omurice-game #step, .omurice-game #clock { color: #695442; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.omurice-game #instruction { margin: 0; color: #492d24; font-weight: 750; line-height: 1.55; }
.omurice-game canvas { display: block; width: 100%; height: auto; aspect-ratio: 760 / 540;
  border-radius: 3px; box-shadow: 0 0 0 1px #92704b, 0 4px 0 #c3a783; touch-action: none; cursor: crosshair; }

@media (pointer: coarse) { .omurice-game button { min-height: 44px; } }
@media (max-width: 790px) {
  .omurice-game .play-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; }
  .omurice-game .order { border-bottom: 0; padding: 8px 12px; }
  .omurice-game #instruction { margin-top: 3px; }
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .omurice-preview { width: min(100%, 200px); margin: 12px auto 0; }
  .omurice-preview img { width: 100%; height: auto; }
}


.omurice-game #expand-game { margin-right: auto; color: #fff8e8; background: #614423; border-color: #614423; }
.omurice-game #expand-game:hover { background: #4e341c; }
body:has(#wide-view[open]) { overflow: hidden; }
#wide-view[open] {
  position: fixed; inset: 0; margin: 0; padding: 0; width: 100dvw; height: 100dvh;
  max-width: none; max-height: none; border: 0; background: #faf4e7;
}
#wide-view::backdrop { background: #32281e; }
#wide-view .omurice-game { border: 0; border-radius: 0; }
#wide-view .play-layout { align-items: center; }
#wide-view .order { border-bottom: 0; padding: 8px; }
#wide-view canvas { width: min(100%, calc((100dvh - 115px) * 760 / 540)); justify-self: center; }
@media (max-width: 790px) {
  .omurice-game { margin-inline: -12px; padding: 4px; }
  .omurice-game canvas { border-radius: 0; }
  #wide-view .omurice-game { margin-inline: 0; }
}
@media (orientation: portrait) {
  #wide-view[open] {
    inset: auto; top: 50%; left: 50%; width: 100dvh; height: 100dvw;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  #wide-view canvas { width: min(100%, calc((100dvw - 115px) * 760 / 540)); }
}

.omurice-game.portrait-board canvas { aspect-ratio: 540 / 760; }
#wide-view.portrait-view[open] { inset: 0; width: 100dvw; height: 100dvh; transform: none; }
#wide-view .portrait-board .play-layout { grid-template-columns: minmax(0, 1fr); gap: 5px; }
#wide-view .portrait-board canvas { width: min(100%, calc((100dvh - 145px) * 540 / 760)); }
