/*
 * days.kabatask.com（締切サバイバル）の共通の見た目（色の変数・ロゴバー・ボタン・ステージ枠）。
 * 配色・ロゴバー・ボタンは get.kabatask.com の site.css に揃える。
 * かんばんの列とカードの色は製品画面（ToDo 薄青 / Doing 薄ピンク / Done 薄緑、カードは淡黄）を踏襲。
 * 試作ごとの見た目は各フォルダの game.css に書く。
 */
:root {
  --bg: #f0f4f9;
  --surface: #ffffff;
  --text: #1f2937;
  --text-2: #475467;
  --muted: #667085;
  --faint: #98a2b3;
  --border: #d7dce5;
  --rule: #e4e7ec;
  --primary: #2f5cab;
  --primary-hover: #244e91;
  --focus: rgba(59, 111, 196, 0.22);
  --accent: #cd0c45;
  --pill-bg: #eef1f6;
  --badge-bg: #eef4ff;
  --badge-text: #3454b4;

  --kb-todo: #f3f6fd;
  --kb-todo-strong: #3b6fc4;
  --kb-doing: #fdeef1;
  --kb-doing-strong: #d81b60;
  --kb-done: #e9f5ee;
  --kb-done-strong: #27a04a;
  --kb-card: #fffbe6;
  --kb-card-border: #efe3b5;

  --ok: #27a04a;
  --ng: #cd0c45;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
b { font-weight: 700; }
button { font: inherit; }
kbd { font-family: inherit; }

/* ロゴバー */
.site-bar {
  height: 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}
.site-bar__brand { display: inline-flex; align-items: center; }
.site-bar__logo { display: block; height: 28px; width: auto; }
.site-bar__caption { color: var(--muted); font-size: 13px; }

/* ステージ（下端の余白は、撤去した © のフッターが担っていた分を引き継ぐ。2026-11-09） */
.stage {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 14px calc(24px + env(safe-area-inset-bottom));
  position: relative;
}
.screen { display: none; }
.screen.is-active { display: block; }

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  transition: background .15s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, #3b6fc4, var(--primary));
  border-color: #2c55a5;
  color: #fff;
}
.btn--primary:hover { background: var(--primary-hover); }
.btn--big { margin-top: 22px; padding: 14px 44px; font-size: 18px; }
.btn--x { background: #0f1419; border-color: #0f1419; color: #fff; }
