/* base.css — the stage and its layers. The stage is 396 CSS px wide (or wider on squat screens) and at least 704 tall,
   scaled to fill the page by main.js. Lay screens out with flex / % / top & bottom anchors, never fixed 704 heights. */
:root {
  --font: "Hiragino Maru Gothic ProN", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --ink: #5a2f4a;        /* dark text */
  --ink-soft: #8a5a75;
  --rose: #ff8fb1;       /* accent */
  --rose-deep: #d9577f;
  --cream: #fff6ee;
  --violet: #6b4c8f;
  --night: #2b1f3f;
  --outline: #7a2f55;    /* text outline on art */
  --gold: #f2c46b;
}
html, body { margin: 0; height: 100%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #4a3360, #1d1529); }
body { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#wrap { position: fixed; inset: 0; overflow: hidden; }
#stage { position: absolute; left: 0; top: 0; width: 396px; height: 704px; transform-origin: 0 0; overflow: hidden;
  font-family: var(--font); color: var(--ink); background: #2b1f3f; }
#stage > div, #fx { position: absolute; inset: 0; }
#bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
#bg img.on { opacity: 1; }
#tint { pointer-events: none; transition: background-color 1s ease; }
#chars { pointer-events: none; }
#fx { pointer-events: none; width: 100%; height: 100%; z-index: 5; }
#screen { z-index: 3; transition: opacity .16s ease; }
#screen.fade-out { opacity: 0; }
#vn { z-index: 6; pointer-events: none; }
#modal { z-index: 7; pointer-events: none; }
#toast { z-index: 8; pointer-events: none; }
#vn.on, #modal.on { pointer-events: auto; }
input, textarea { -webkit-user-select: text; user-select: text; font-family: var(--font); }
button { font-family: var(--font); }
