/* The Oddballz page (oddballz/index.html) is the game page Petz 5 Reframed has, filling the browser window:
   shared/browser-game-page.js (fill) makes the page, the game view and the game area as large as the window, the start
   button and the loading line, and gives them and the menu bar's buttons their look. The page's colours and text are
   that game's page's (petz/style.css). The game window (app.js puts it in the game area) is the area from row 26 down
   (shared/browser-game-area.js: the rows above are not shown): the menu bar on its top edge
   (shared/browser-application-menu-platform.js) and the playpen below it, the rest of the window. app.js sizes and
   places the canvas (whole stage pixels, kept sharp); the page itself never scrolls. */
:root{color-scheme:light;--ink:#293d38;--cream:#f7f5ef;--focus:#f2c230}
*{box-sizing:border-box}
body{margin:0;overflow:hidden;background:var(--cream);color:var(--ink);font:14px/1.5 "Segoe UI",sans-serif}
a:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
#oddballz-window{position:absolute;inset:26px 0 0;display:flex;flex-direction:column;color:var(--cream)}
#oddballz-window[hidden]{display:none}
#oddballz-menubar{flex:none}
/* The dialogs are classic Windows dialogs laid out from their original templates (classic-dialogs.js, with the look and
   layout of shared/browser-classic-dialog-style.js and browser-classic-dialog-layout.js); only what their content needs
   beside that is here. */
/* No dialog stops the playpen: each is opened as a window over the running game, not as a modal
   dialog (app.js manageOddballzDialogs). The one opened or pressed last is on top (--odd-layer is its place in that
   order; the layout's own z-index is the same for all). A dialog without a template has no place of its own: the
   middle of the browser window, where a modal dialog stood. The Picture Gallery's dialog and the layer Petz 5's panels
   stand in (Sound Options, the gallery) cover the game without being seen: a press beside the panel goes through to
   the playpen. */
dialog[open]{z-index:var(--odd-layer,2)!important}
/* The Help (help.js, the viewer both games share) takes its place in the same order, under the menus. */
[data-help-viewer]{z-index:var(--odd-layer,2)!important}
dialog:not([data-native-dialog-id]){position:fixed;inset:0;margin:auto;height:fit-content}
#oddballz-photos,[data-browser-options],[data-jukebox]{pointer-events:none}
#oddballz-photos>p,#oddballz-photos>button,[data-browser-options]>*,[data-jukebox]>*{pointer-events:auto}
/* The Pop Box panel's tick boxes (pop-box-jukebox.js): inside the list's 13-pixel rows, and its 40-pixel rows on a phone. */
[data-jukebox] input[data-pop-box=tick]{width:11px;height:11px;margin:1px 4px 1px 1px;vertical-align:top}
@media(max-width:1055px){[data-jukebox] input[data-pop-box=tick]{width:24px;height:24px;margin:8px 8px 8px 0}}
.startup-order-note{display:none}
#oddballz-startup-dialog:has([data-page="2005"]) .startup-order-note{display:block}
#demo-egg-message p{margin:0 0 13px}
p:empty{display:none}
#oddballz-stage{position:relative;flex:1;min-height:0;overflow:hidden}
img,canvas{image-rendering:pixelated}
canvas{position:absolute;display:block;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
canvas[hidden]{display:none}
#oddballz-stage>p{position:absolute;inset:0;height:fit-content;margin:auto;padding:16px;text-align:center}
#oddballz-toys{min-height:2rem;padding:.2rem .65rem}
#odd-photo-dialog,#odd-camera-notice{color-scheme:light;background:#f7f5ef;color:#173739;border:2px solid #316767;border-radius:5px;max-width:calc(100vw - 1rem);max-height:85dvh;overflow:auto}
#odd-photo-dialog h2,#odd-camera-notice h2{margin:0 0 .5rem;font-size:1.1rem}
#odd-photo-preview,#odd-photo-camera,#odd-postcard-picture,#odd-postcard-card{position:static;max-width:100%;max-height:50dvh;object-fit:contain;margin:auto;touch-action:auto}
/* The Postcards window's three choices: each button shows its postcard, whole, inside the button's edge. */
#odd-postcard-dialog button:has(>canvas){padding:3px}
#odd-postcard-dialog button>canvas{position:static;width:100%;height:100%;touch-action:auto;pointer-events:none}
#oddballz-photos{color-scheme:light;position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:.75rem;border:0;background:transparent}
#oddballz-photos canvas{position:static;touch-action:auto}
#oddballz-photos [data-gallery-big] canvas{touch-action:inherit}
.photo-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.7rem}
.photo-actions button{min-height:2rem}
#egg-info-status:empty{display:none}
#egg-info-art,#egg-info-portrait{padding:2px;object-fit:none;object-position:center}
#egg-info-portrait{background:#d4d0c8}
#egg-info-description{white-space:pre-wrap;overflow-wrap:anywhere}
