:root { color-scheme: light; font-family: system-ui, sans-serif; color: #234d4c; background: #c6edf0; }
* { box-sizing: border-box; }
body {
  margin: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-rows: minmax(168px, 1fr);
  background: radial-gradient(ellipse at 0% 40%, #f3fffb 0, transparent 45%), radial-gradient(ellipse at 100% 90%, #d2efbb 0, transparent 50%), linear-gradient(145deg, #ade3ed, #e1f7e9);
}
#play-header { position: fixed; top: 12px; left: 24px; z-index: 0; pointer-events: none; }
/* Older Unity templates still include the removed header navigation. */
#play-header nav, #game-home { display: none; }
button, select { font: inherit; border: 1px solid #83afa0; border-radius: 8px; padding: 8px 12px; background: #fffef7; color: #234d4c; }
button { cursor: pointer; background: #287b60; color: white; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #936709; outline-offset: 3px; }
#game-display-settings { position: fixed; z-index: 10; left: 12px; bottom: 0; max-width: calc(100vw - 24px); }
#game-display-toggle { height: 24px; padding: 2px 8px; line-height: 20px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-radius: 6px 6px 0 0; background: #f4fff7f2; box-shadow: 0 0 0 1px #83afa0; }
#game-display-label { font-weight: 600; }
#game-toolbar { position: absolute; left: 0; bottom: calc(100% + 8px); width: min(360px, calc(100vw - 24px)); max-height: calc(100svh - 40px); overflow: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px; border: 1px solid #83afa0; border-radius: 10px; background: #f4fff7; box-shadow: 0 8px 24px #1c544433; }
#game-display-settings:not([open]) #game-toolbar { display: none; }
#game-toolbar label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; }
#game-resolution { font-variant-numeric: tabular-nums; }
#game-display-hint { flex-basis: 100%; margin: 0; font-size: 12px; color: #426a64; }
#game-stage { position: relative; z-index: 1; min-width: 0; min-height: 168px; display: grid; place-items: center; padding: 24px; }
#game-shell { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #102b36; box-shadow: 0 0 0 3px #edfbd5, 0 0 0 5px #579e86, 0 16px 40px #1c544433; }
#unity-canvas { display: block; width: 100%; height: 100%; outline: none; }
#game-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; overflow: auto; background: #163c42; color: #f2fbf5; text-align: center; padding: 16px; }
#game-overlay h1, #game-overlay p { margin: 0; }
/* Unity retains a matching opaque startup cover beneath the flowers until frame 30. */
#game-overlay.entering { background: transparent; }
#game-overlay[hidden], button[hidden] { display: none; }
progress { width: min(360px, 80%); height: 16px; accent-color: #91d96d; }

/* Keep the controls in the fullscreen root so they remain reachable. */
html[data-game-view="fill"] body { height: 100vh; height: 100dvh; overflow: hidden; grid-template-rows: minmax(0, 1fr); }
html[data-game-view="fill"] #play-header { display: none; }
html[data-game-view="fill"] #game-stage { min-height: 0; padding: 0; }
html[data-game-view="fill"] #game-shell { aspect-ratio: auto; box-shadow: none; }
