/* 숫자 금고 */
.app[data-game="safe"] .mini-body { inset: 64px 12px 56px; justify-content: flex-end; }
.safe { display: grid; gap: 8px; justify-items: center; }
.srow { display: grid; grid-template-columns: repeat(4, 60px); gap: 8px; }
.srow.is-old { opacity: 0.5; }
.sdig { position: relative; display: grid; place-items: center; height: 60px; border-radius: 14px; background: var(--stage-raised); font: 400 30px/1 var(--font-pixel); font-variant-numeric: tabular-nums; }
.sdig i { position: absolute; right: 5px; top: 5px; font: 700 11px/1 var(--font-sans); font-style: normal; }
.sdig.is-up i { color: #D9480F; }
.sdig.is-down i { color: #1C7ED6; }
.sdig.is-up { box-shadow: inset 0 3px 0 #FF8A2B; }
.sdig.is-down { box-shadow: inset 0 -3px 0 #3D8BFF; }
.sdig.is-ok { background: var(--sprout); color: var(--stage); }
.sdig.is-ok i { color: var(--stage); }
.srow--entry { margin-top: 6px; }
.srow--entry .sdig { height: 68px; font-size: 34px; background: none; box-shadow: inset 0 0 0 2px rgba(var(--stage-ink), 0.18); }
.srow--entry .sdig.is-cur { box-shadow: inset 0 0 0 3px rgba(var(--stage-ink), 0.8); }
.srow--entry .sdig.is-lock { background: var(--sprout); color: var(--stage); box-shadow: none; }
.safe.is-open .srow--entry .sdig { animation: kk-pop 420ms var(--ease-pop, ease-out); }
.safe--intro .srow { grid-template-columns: repeat(4, 48px); }
.safe--intro .sdig { height: 48px; font-size: 24px; }
.keypad .ans { height: 56px; font: 400 26px/1 var(--font-pixel); }
.keypad .ans .ans__t { font-size: 11px; line-height: 13px; margin: 0; }
@media (max-height: 700px) { .srow { grid-template-columns: repeat(4, 52px); } .sdig { height: 48px; font-size: 26px; } .srow--entry .sdig { height: 54px; font-size: 28px; } .keypad .ans { height: 48px; } }
@media (min-width: 960px) and (min-height: 620px) {
  .app[data-game="safe"] .mini-body { inset: 80px 32px 72px; justify-content: center; }
  .srow { grid-template-columns: repeat(4, 72px); } .sdig { height: 68px; font-size: 34px; } .srow--entry .sdig { height: 80px; font-size: 40px; }
}
/* 낮은 PC 화면: 칸을 줄여 네 줄이 무대 안에 들어오게 해요 */
@media (min-width: 960px) and (min-height: 620px) and (max-height: 760px) {
  .app[data-game="safe"] .mini-body { inset: 72px 32px 56px; justify-content: flex-end; }
  .safe { gap: 6px; }
  .srow { grid-template-columns: repeat(4, 60px); } .sdig { height: 50px; font-size: 26px; } .srow--entry .sdig { height: 58px; font-size: 30px; }
  .srow--entry { margin-top: 4px; }
}
