@import "./daisyui-toast.css";

/* Keep the standalone Unity canvas and native loading UI usable. */
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
canvas { display: block; width: 100%; height: 100%; min-height: 0; }
#loading { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: Canvas; color: CanvasText; padding: 1rem; }
#loading[hidden] { display: none; }
#status { max-width: 30rem; overflow-wrap: anywhere; }
body[data-game-state="error"] progress { display: none; }

/* Keep the bottom bar reserved for future player controls. */
#cloud-panel { min-height: 2rem; padding: 0.5rem; background: Canvas; color: CanvasText; }
#cloud-panel[hidden], #cloud-toast[hidden] { display: none; }
#cloud-toast { z-index: 2; max-height: calc(100dvh - 2rem); overflow: auto; font-family: system-ui, sans-serif; }
#cloud-toast .alert { max-width: min(24rem, calc(100vw - 2rem)); overflow-wrap: anywhere; }
