/* 知恵の祠 / 挑戦の祠: the stage list and the answer-playback bar. */
.wisdom-shrine-grid .dungeon-select-card > strong { min-width: 1.5em; text-align: center; }
.wisdom-shrine-grid .dungeon-select-card[data-cleared="true"] > strong { opacity: .85; }

/* 答えを見る: the bar sits on the bottom edge and leaves the whole board visible. The overlay itself lets pointers through.
   ONE fixed grid for every state (playing / paused / done / failed): the same four columns and two rows, so nothing moves and the window never
   changes size. Only labels and what the buttons do change. Long text is cut with an ellipsis; nothing wraps. */
html body .product-flow-overlay:is([data-flow-mode="shrine-answer"], [data-flow-mode="shrine-answer-done"]) {
  background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  display: grid; align-items: end; align-content: end; justify-items: center; pointer-events: none;
  padding-bottom: calc(var(--safe-b, 0px) + 8px);
}
html body .product-flow-overlay:is([data-flow-mode="shrine-answer"], [data-flow-mode="shrine-answer-done"]) .product-flow-panel {
  box-sizing: border-box; width: min(30em, 100%); height: auto; max-height: none; overflow: visible; padding: .4em .6em; pointer-events: auto; animation: none;
}
.shrine-answer-bar {
  display: grid; grid-template-columns: 3em 7.5em 3em minmax(0, 1fr); grid-template-rows: repeat(2, max(2.6em, 36px));
  gap: .35em .5em; align-items: stretch;
}
html body .product-flow-panel .shrine-answer-bar > button {
  box-sizing: border-box; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 .3em !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.shrine-answer-bar > button > span { white-space: nowrap; }
.shrine-answer-nav { font-weight: 700; }
.shrine-answer-nav.is-idle { opacity: .45; }
.shrine-answer-status { grid-column: 4; align-self: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shrine-answer-exit { grid-column: 1 / 3; grid-row: 2; }
.shrine-answer-list { grid-column: 3 / 5; grid-row: 2; }
.shrine-answer-hint { display: block; box-sizing: border-box; height: 1.3em; margin-top: .25em; line-height: 1.3; opacity: .7; font-size: .75em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .shrine-answer-bar { grid-template-columns: 2.6em 6.5em 2.6em minmax(0, 1fr); gap: .35em .35em; }
}
