/* CRESTWARD の Web 簡易版テンプレート（縦持ち）。色はゲームの UiTheme（Bg / Ink）に合わせる */
:root {
  --bg: #F2EFE9;
  --ink: #1E2537;
  --track: rgba(30, 37, 55, 0.12);
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
}
#stage {
  position: relative;
  background: var(--bg);
}
#unity-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg);
  outline: none;
}
#loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
#loading-track {
  width: 40%;
  max-width: 220px;
  height: 4px;
  border-radius: 2px;
  background: var(--track);
  overflow: hidden;
}
#loading-bar {
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width 0.2s ease-out;
}
/* サイト用のビルドだけに入る作品ページへの戻りリンク。横長の画面（ゲームの枠の外に余白がある）でだけ出す */
#back-link {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  font: 600 14px/1.4 system-ui, sans-serif;
  text-decoration: none;
}
@media (min-aspect-ratio: 3/4) {
  #back-link { display: inline-block; }
}
#message {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  top: 40%;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 14px/1.5 system-ui, sans-serif;
  text-align: center;
}
