/* BIOBUZZ Simulator: ウィンドウ（サイトに埋め込んだときはその枠）いっぱいにゲームを出す。色は公開サイト (Site/public/assets/site.css) と同じ */
:root {
  --ink: #0e1217;
  --panel: #161b22;
  --line: #343d4a;
  --text: #eef2f6;
  --muted: #9aa5b3;
  --dim: #8a95a3;
  --accent: #539cff;
}

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

#unity-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  outline: none;
  background: var(--ink);
}

#loading, #error {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0e12;
  z-index: 10;
}

.card {
  width: min(520px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 32px 32px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-top: 4px solid var(--accent);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.logo { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; margin-bottom: 10px; }
.title { font-family: "Barlow Condensed", "Noto Sans JP", sans-serif; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: 0.02em; }
.title .accent { color: var(--accent); }
.sub { font-size: 14px; color: var(--muted); margin-top: 2px; letter-spacing: 0.12em; }

.bar {
  height: 8px;
  margin: 26px 0 10px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
#bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.2s ease-out;
}
.status-row { display: flex; justify-content: space-between; font-size: 14px; }
#pct { color: var(--muted); font-variant-numeric: tabular-nums; }
.note { font-size: 12px; color: var(--dim); margin-top: 10px; }

.hint { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 18px; }
#mobile-note { display: none; margin-top: 14px; font-size: 13px; color: #ffd23f; }

#error .card { border-top-color: #ff5a5f; text-align: left; }
#error pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  max-height: 40vh;
  overflow: auto;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  margin: 16px 0 0;
}

#fullscreen {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(14, 18, 23, 0.7);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.15s;
}
#fullscreen:hover { opacity: 1; }
