/* The web build's loading page (tools/web/shell.html): the game's ink and lantern gold. night.e24a2c37cf.jpg is the hashed name of the
   loading picture, put in by tools/web_release.cjs. */
:root { --ink: #07191b; --gold: #ffe08a; --amber: #e8a640; --paper: #f2ead8; --dim: #9fb3b0; --plate: rgba(7, 25, 27, 0.82); }
html, body { margin: 0; padding: 0; height: 100%; background: var(--ink); color: var(--paper); overflow: hidden;
	font-family: "Sarabun", "Noto Sans Thai", "Leelawadee UI", "Tahoma", system-ui, sans-serif;
	overscroll-behavior: none; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#canvas { display: block; position: fixed; inset: 0; width: 100%; height: 100%; outline: none; touch-action: none; }
#cover { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
	background: var(--ink) url("night.e24a2c37cf.jpg") center / cover no-repeat; transition: opacity 0.5s; z-index: 2; padding: 16px; box-sizing: border-box; }
#cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(7, 25, 27, 0.35), rgba(7, 25, 27, 0.92)); }
#cover > * { position: relative; }
#cover.gone { opacity: 0; pointer-events: none; }
#logo { width: min(560px, 80vw); max-height: 34vh; object-fit: contain; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6)); }
#plate { width: min(520px, 100%); background: var(--plate); border: 1px solid rgba(255, 224, 138, 0.35); border-radius: 10px; padding: 16px 18px; box-sizing: border-box; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
#what { font-size: 18px; color: var(--gold); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
#what span:last-child { color: var(--paper); font-variant-numeric: tabular-nums; white-space: nowrap; }
#bar { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; border: 1px solid rgba(255, 224, 138, 0.25); }
#fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--amber), var(--gold)); box-shadow: 0 0 12px rgba(255, 224, 138, 0.6); transition: width 0.2s; }
#note { margin-top: 10px; font-size: 14px; color: var(--dim); line-height: 1.5; min-height: 21px; }
#note.bad { color: #ffb4a4; }
#again { display: none; margin-top: 12px; padding: 8px 18px; font: inherit; color: var(--ink); background: var(--gold); border: 0; border-radius: 6px; cursor: pointer; }
#again.shown { display: inline-block; }
#full { position: fixed; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); z-index: 3; width: 34px; height: 34px; border-radius: 8px;
	border: 1px solid rgba(255, 224, 138, 0.45); background: rgba(7, 25, 27, 0.55); color: var(--gold); font-size: 18px; line-height: 32px; text-align: center; cursor: pointer; padding: 0; opacity: 0.55; }
#full:hover { opacity: 1; }
#full[hidden], #debug[hidden] { display: none; }
#debug { position: fixed; left: max(6px, env(safe-area-inset-left)); bottom: max(4px, env(safe-area-inset-bottom)); z-index: 4; font: 11px/1.3 ui-monospace, Consolas, monospace;
	color: var(--dim); background: rgba(7, 25, 27, 0.7); padding: 2px 6px; border-radius: 4px; pointer-events: none; white-space: pre; }
.noscript { position: fixed; inset: auto 0 20px; text-align: center; }
