:root { --canal: #0b1d1f; --brass-l: #f7de96; --brass-d: #966828; --cream: #fff2d1; }
html, body { margin: 0; height: 100%; background: var(--canal); overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
body { display: flex; align-items: center; justify-content: center; }
/* スマホは画面いっぱい。横に広い画面では縦長（9:19.5）の枠に収める */
#stage { position: relative; width: 100vw; height: 100vh; height: 100dvh; background: #000; }
@media (min-aspect-ratio: 3/4) {
  #stage { height: 100vh; height: 100dvh; width: calc(100dvh * 9 / 19.5); max-width: 100vw; box-shadow: 0 0 0 1px rgba(247,222,150,.25), 0 20px 80px rgba(0,0,0,.6); }
  body { background: radial-gradient(ellipse at 50% 30%, #17393b 0%, var(--canal) 70%); }
}
#unity-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; background: #0b1d1f; }
#loading { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18%;
  background: linear-gradient(to bottom, rgba(11,29,31,.15), rgba(11,29,31,.75)), url(poster.jpg) center / cover no-repeat; transition: opacity .5s; }
#loading.done { opacity: 0; pointer-events: none; }
.plate { width: min(78%, 360px); text-align: center; }
.name { width: 100%; height: auto; display: block; margin: 0 auto 22px; }
.bar { height: 12px; border-radius: 7px; padding: 2px; background: linear-gradient(var(--brass-l), var(--brass-d)); box-shadow: 0 3px 8px rgba(0,0,0,.5); }
#fill { height: 100%; width: 0; border-radius: 5px; background: linear-gradient(#2a8a92, #16585e); transition: width .2s; }
#note { margin-top: 12px; color: var(--cream); font: 600 14px/1.5 "Hiragino Sans", sans-serif; letter-spacing: .08em; text-shadow: 0 2px 4px rgba(0,0,0,.7); }
