/* src/style.css（デザイナー管理）への、ゲーム実装側の追加・上書き */
[hidden] { display: none !important; }
body { display: flow-root; }
.perfect-stamp { white-space: nowrap; }

/* 結果シート: 地図を隠さないよう半透明を弱め、コンパクトに */
.overlay { background: rgba(59, 47, 47, 0.08); pointer-events: none; }
.overlay.is-open { pointer-events: none; }
.overlay.is-open .result { pointer-events: auto; }
.result { max-height: 45%; padding: 12px 14px 12px; }
.result__label { font-size: 13px; }
.result__ratio { margin: 0; }
.result__ratio .result__side { font-size: 34px; line-height: 1.15; }
.result__ratio .result__colon { font-size: 26px; }
.result .ratio-bar { margin: 4px 0 6px; height: 12px; }
.result__verdict { display: inline-block; margin: 0 10px 0 0; font-size: 18px; vertical-align: baseline; }
.result__points { margin: 0; }
.result__points .num { font-size: 34px; }

.why { display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: center; align-items: center; margin: 6px 0 2px; font-size: 12px; font-weight: 700; }
.why__head { color: var(--c-ink-sub); }
.why__chip { padding: 1px 8px; border: 2px solid var(--c-ink); border-radius: 999px; background: var(--c-paper); white-space: nowrap; }
.why__chip.is-a { background: var(--c-side-a-soft); border-color: var(--c-side-a-deep); }
.why__chip.is-b { background: var(--c-side-b-soft); border-color: var(--c-side-b-deep); }
.why__chip.is-cut { background: linear-gradient(90deg, var(--c-side-a-soft) 50%, var(--c-side-b-soft) 50%); border-color: var(--c-gold-deep); }
.why__cuts { margin: 2px 0 0; font-size: 12px; color: var(--c-ink-sub); font-weight: 700; }

.trivia--clamp {
  margin: 6px 0 8px; padding: 6px 10px; font-size: 13px; line-height: 1.45; cursor: pointer;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.trivia--clamp.is-open { -webkit-line-clamp: unset; display: block; }
.trivia--clamp .trivia__title { display: inline; margin-right: 4px; }

.why__suggest { font-size: 13px; font-weight: 700; color: var(--c-ink); }
.why__suggest b { color: var(--c-shu); font-weight: 900; }

.temp-pill {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  padding: 4px 14px; border: 3px solid var(--c-ink); border-radius: 999px;
  background: var(--c-paper); font-size: 20px; font-weight: 900; line-height: 1.3;
  pointer-events: none; box-shadow: 0 3px 0 rgba(59, 47, 47, 0.25);
}
.temp-pill[data-lv="4"] { background: var(--c-gold); color: var(--c-shu-deep); }
.temp-pill[data-lv="3"] { background: #ffe3d6; color: var(--c-shu); }
.temp-pill[data-lv="1"] { background: #e3f1fb; color: var(--c-ai); }
.temp-pill.is-pop { animation: temp-pop 0.3s ease-out; }
@keyframes temp-pop { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
.title__countdown { margin: -4px 0 0; font-size: 13px; }
.result .btn--block { min-height: 48px; }

@media (max-height: 500px) {
  .overlay { padding: 6px 12px calc(6px + var(--safe-bottom)); }
  .result { max-height: 72%; padding: 6px 12px 8px; }
  .result__label, .why__cuts, .trivia--clamp { display: none !important; }
  .why { margin: 2px 0; }
  .result__ratio .result__side { font-size: 26px; }
  .result__points .num { font-size: 26px; }
  .result .btn--block { min-height: 40px; }
}
.map-wrap.is-locked .map-badge { opacity: 0; }
.title__map { flex-shrink: 0; width: min(70vw, 280px, 28dvh); }
.screen--title { gap: 16px; justify-content: safe center; }
#btn-daily.is-cleared { font-size: 16px; white-space: nowrap; }
/* 「次の問題へ」はスクロール領域の外でシート下部に固定 */
.result { display: flex; flex-direction: column; overflow: hidden; }
.result__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.result #btn-next { flex: none; margin-top: 4px; }
.result__orient { display: none; margin: 0 0 2px; font-size: 11px; font-weight: 700; color: var(--c-ink-sub); }
@media (orientation: landscape) and (max-height: 500px) { .result__orient { display: block; } }
@media (max-height: 700px) {
  .why__cuts { display: none; }
  .result__ratio .result__side { font-size: 28px; }
  .result__points .num { font-size: 28px; }
}
.screen--title { background: radial-gradient(140% 22% at 50% 100%, var(--c-sea) 0 60%, transparent 61%); }
