[hidden] { display: none !important; }
.warehouse-page { background: radial-gradient(ellipse at 48% 5%, #313354, #21192f 43%, #101624 85%); }
.warehouse-main { padding-block: 24px 44px; }
.warehouse-main h1 { text-align: center; font-size: clamp(34px, 5.5vw, 64px); margin-bottom: 23px; }
.warehouse-main h1 span { color: #ffdc9c; }
.warehouse-game { display: grid; grid-template-columns: minmax(126px, 176px) minmax(204px, 324px) minmax(126px, 176px); align-items: start; justify-content: center; gap: 19px; }
.warehouse-side, .warehouse-notes { padding: 12px; border: 1px solid #665a72; border-radius: 13px; background: #1a2035; box-shadow: 0 15px 35px #080f1d45; }
.warehouse-score { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.warehouse-score div { padding: 4px; }
.warehouse-score dt, .next-box span { color: #d6c9dd; font-size: 12px; }
.warehouse-score dd { margin: 0; color: #ffdfa7; font-size: 18px; font-weight: 800; line-height: 1.1; }
.next-box { margin-top: 8px; padding: 5px; border-top: 1px solid #55485e; }
#next { display: block; width: min(100%, 142px); height: auto; }
.warehouse-stage { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #af8e71; border-radius: 15px 15px 6px 6px; box-shadow: 0 18px 70px #09101d99; background: #121c35; }
#board { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; }
#board:focus { outline: none; }
.warehouse-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; background: #0b1328a8; }
.warehouse-panel { max-width: 100%; padding: 17px; border: 1px solid #e1b882; border-radius: 12px; background: #232743f5; text-align: center; }
.warehouse-panel h2 { font-size: clamp(20px, 3vw, 27px); line-height: 1.08; color: #ffe9c0; }
.warehouse-panel p { margin-block: 7px 11px; color: #d0d9e9; font-size: 13px; }
.warehouse-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 11px; border: 1px solid #72677f; border-radius: 8px; background: #2c2d48; color: #fff0de; font: 800 14px Nunito, sans-serif; cursor: pointer; touch-action: manipulation; }
.warehouse-button.gold { border-color: #ffe1a9; background: #f4cc83; color: #28192a; }
.warehouse-button:disabled { opacity: .57; cursor: default; }
.warehouse-button:hover:not(:disabled) { border-color: #ffdfa7; }
.warehouse-button:focus-visible { outline: 2px solid #ffe5a4; outline-offset: 2px; }
.warehouse-controls { display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 5px; margin-top: 8px; }
.warehouse-controls button { font-size: 21px; }
.warehouse-keys, .warehouse-notice { font-size: 12px; margin-top: 9px; color: #d5cadd; }
.warehouse-notice { color: #ffe0a2; }
@media (max-width: 790px) {
  .warehouse-game { gap: 8px; grid-template-columns: minmax(106px, 143px) minmax(234px, 310px) minmax(98px, 135px); }
  .warehouse-side, .warehouse-notes { padding: 7px; }
}
@media (max-width: 560px) {
  .warehouse-main { padding-block: 12px 28px; }
  .warehouse-main h1 { margin-bottom: 12px; }
  .warehouse-game { max-width: 340px; margin: auto; grid-template-columns: minmax(0, 1fr) auto; }
  .warehouse-play { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: clamp(240px, 31vh, 324px); width: clamp(240px, 31dvh, 324px); max-width: 100%; }
  .warehouse-side { display: flex; align-items: center; gap: 4px; }
  .warehouse-score { flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .warehouse-score dd { font-size: 15px; }
  .next-box { width: 58px; flex: none; margin: 0; border: 0; padding: 0; text-align: center; }
  .warehouse-keys { display: none; }
  .warehouse-notice { max-width: 70px; margin-top: 4px; }
  .warehouse-notice:empty { display: none; }
}