* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --gold: #ffd54a; --cream: #fff6d8; --brown: #3b2314; }

html, body {
  width: 100%; height: 100%; overflow: hidden; background: #050510; color: #fff;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif;
  font-weight: bold; user-select: none; -webkit-user-select: none;
}

#jsWarning { position: fixed; z-index: 99999; top: 0; left: 0; right: 0; background: #b71c1c; color: #fff; padding: 14px; text-align: center; }
#errorLog { display: none; position: fixed; z-index: 99999; bottom: 0; left: 0; right: 0; max-height: 30%; overflow: auto; background: rgba(0,0,0,0.9); color: #ff8a80; padding: 8px; font: 12px monospace; white-space: pre-wrap; }

#stage { position: absolute; left: 50%; top: 50%; width: 800px; height: 1280px; transform-origin: center center; overflow: hidden; background: #0a1126; }

.bg { position: absolute; inset: 0; }
.bg svg { width: 100%; height: 100%; display: block; }

.screen { position: absolute; inset: 0; display: none; z-index: 5; }
.screen.active { display: block; }

/* ---------- 音ボタン ---------- */
.audio-btns { position: absolute; right: 22px; top: 18px; z-index: 30; display: flex; gap: 8px; }
.mini-btn { width: 44px; height: 40px; font-size: 20px; background: rgba(20,10,5,0.7); border: 2px solid var(--gold); border-radius: 10px; color: #fff; cursor: pointer; }
.mini-btn.off { opacity: 0.4; }

/* ---------- タイトル（v1.5.0：静止画の背景＋シンプルなロゴ） ---------- */
.t-wrap { position: absolute; left: 0; right: 0; top: 64px; text-align: center; }
.t-kicker { font-size: 36px; letter-spacing: 22px; padding-left: 22px; color: var(--gold); text-shadow: 0 3px 0 rgba(0,0,0,0.45); }
.t-logo {
  margin-top: 10px; font-size: 112px; line-height: 1.15; letter-spacing: 6px; white-space: nowrap; color: #fff;
  -webkit-text-stroke: 12px #10204a; paint-order: stroke fill; filter: drop-shadow(0 7px 0 rgba(6,12,36,0.6));
}
.t-kari { font-size: 40px; letter-spacing: 0; margin-left: 6px; }
.t-bar { width: 620px; height: 6px; margin: 14px auto 0; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); }
.t-start, .t-opt { position: absolute; left: 50%; font: inherit; cursor: pointer; }
.t-start {
  top: 404px; width: 480px; height: 96px; margin-left: -240px; font-size: 48px; letter-spacing: 14px; padding-left: 14px; color: #3a2200;
  background: linear-gradient(180deg, #ffe48a, #f0b92e); border: 5px solid #fff; border-radius: 48px;
  box-shadow: 0 8px 0 #a86f12, 0 14px 22px rgba(0,0,0,0.45); text-shadow: 0 2px 0 rgba(255,255,255,0.5);
}
.t-start:hover { filter: brightness(1.08); }
.t-start:active { top: 408px; box-shadow: 0 4px 0 #a86f12, 0 8px 14px rgba(0,0,0,0.45); }
.t-opt {
  top: 532px; width: 300px; height: 60px; margin-left: -150px; font-size: 26px; letter-spacing: 6px; padding-left: 6px; color: #fff;
  background: rgba(8,20,56,0.72); border: 3px solid #cfe0ff; border-radius: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.t-opt:hover { background: rgba(30,60,130,0.8); }
.t-start:focus-visible, .t-opt:focus-visible { outline: 4px solid var(--gold); outline-offset: 4px; }
