/* だるまさんがころんだ固有のスタイル（共通部分は assets/css/game.css） */

.topbar h1 { font-size: clamp(1.1rem, 4vw, 1.8rem); }
.choices small { font-size: 0.72rem; color: var(--ink-soft); }

.scene {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.view { display: block; width: 100%; aspect-ratio: 900 / 600; }

/* 掛け声 */
.chant {
  position: absolute;
  left: 0; right: 0; top: 4%;
  text-align: center;
  font-size: clamp(1.6rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
  pointer-events: none;
  min-height: 1.4em;
}
.chant .last { color: var(--red); display: inline-block; animation: pop 0.3s ease-out; }
.chant.big { font-size: clamp(2.4rem, 10vw, 5rem); color: var(--yellow); }
.chant.out { color: var(--red); }

/* 見られているあいだ／アウト時のふちどり */
.flash {
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 10px rgba(217, 83, 79, 0.65), inset 0 0 80px rgba(217, 83, 79, 0.45);
  animation: blink 0.5s ease-in-out infinite alternate;
}
.flash.out { background: rgba(217, 83, 79, 0.25); animation: none; }
@keyframes blink { from { opacity: 0.6; } to { opacity: 1; } }

/* 押しているあいだ進むボタン */
.go-btn {
  position: absolute;
  left: 50%; bottom: 4%;
  transform: translateX(-50%);
  display: grid; justify-items: center;
  min-width: 220px;
  padding: 12px 26px;
  font-family: inherit;
  color: #fff;
  background: var(--green);
  border: 4px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(59, 42, 30, 0.35);
  cursor: pointer;
  touch-action: none;
}
.go-btn .go-main { font-size: clamp(1rem, 3.6vw, 1.35rem); font-weight: 900; }
.go-btn .go-sub { font-size: 0.75rem; font-weight: 700; opacity: 0.85; }
.go-btn.pressed { background: #3d8257; transform: translateX(-50%) translateY(4px); box-shadow: 0 2px 0 rgba(59, 42, 30, 0.35); }
.go-btn.danger { background: var(--red); }
.go-btn:disabled { opacity: 0.5; }

/* ミニマップ */
.minimap {
  margin-top: 10px;
  padding: 8px 46px 8px 22px;
  background: #e6cf9f;
  border: 3px solid var(--ink);
  border-radius: 999px;
}
.minimap .track {
  position: relative;
  height: 38px;
  border-top: 3px dashed rgba(255, 255, 255, 0.9);
  border-bottom: 3px dashed rgba(255, 255, 255, 0.9);
}
.runner {
  position: absolute; top: 50%;
  width: 34px; height: 34px;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  padding: 1px;
  transition: left 0.1s linear;
}
.runner.me { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.35); z-index: 2; }
.runner .art { width: 100%; height: 100%; display: block; }
.oni-mark { position: absolute; right: -42px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }

.status { text-align: center; font-weight: 700; color: var(--ink-soft); min-height: 1.4em; }
