/* サイトの CSP はページ内の <style> を許可しないので、見た目はこのファイルに書く。 */
html, body { margin: 0; height: 100%; background: #140f22; color: #f4efe6; overflow: hidden; }
body { font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; -webkit-tap-highlight-color: transparent; }
#game { position: fixed; inset: 0; }
#unity-canvas { display: block; width: 100%; height: 100%; background: #140f22; outline: none; touch-action: none; }
.overlay { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; box-sizing: border-box; background: #140f22; text-align: center; }
.overlay[hidden] { display: none; }
.panel { width: min(420px, 100%); display: grid; gap: 14px; }
h1 { margin: 0; font-size: clamp(28px, 6vw, 40px); letter-spacing: .06em; line-height: 1.3; }
.note { margin: 0; font-size: 14px; line-height: 1.7; color: #c9c0d8; }
.bar { height: 10px; border-radius: 99px; background: #2c2440; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: #f6ff3a; transition: width .2s; }
.percent { font-size: 13px; color: #c9c0d8; font-variant-numeric: tabular-nums; }
a { color: #8fe3f0; }
.error { color: #ffb3b3; }
#rotate { display: none; z-index: 10; }
/* スマホ・タブレットを縦に持っているときだけ出す（このゲームは横向き専用）。 */
@media (orientation: portrait) and (pointer: coarse) { #rotate { display: grid; } }
.rotate-icon { width: 64px; height: 40px; margin: 0 auto 4px; border: 3px solid #f4efe6; border-radius: 8px; animation: turn 2.4s ease-in-out infinite; }
@keyframes turn { 0%, 30% { transform: rotate(-90deg); } 60%, 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .rotate-icon { animation: none; } }
