.box-push-heading { text-align: center; margin-top: 16px; }
.box-push-heading .game-title { justify-content: center; flex-wrap: wrap; }
.box-push-heading p, #box-push-levels p { color: var(--ink-soft); font-weight: 600; }
#box-push-levels, #box-push-play { width: 100%; }
#box-push-levels .rh-intro { margin: 0 0 22px; }
#box-push-levels .rh-legend { margin-bottom: 6px; }
#box-push-play .scoreboard { margin: 18px 0; }
#box-push-play .score-chip { min-width: 85px; flex: 1; }
.box-push-target { margin: 0 0 12px; text-align: center; color: var(--ink-soft); font-size: .9rem; font-weight: 700; }
.box-push-board-wrap { position: relative; width: min(420px, 82vw); max-width: 100%; margin: 6px auto 0; }
#box-push-board { display: grid; width: 100%; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: #22314a; touch-action: none; user-select: none; box-shadow: 0 8px 0 #22314a18; }
#box-push-board:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
.box-push-cell { aspect-ratio: 1; position: relative; background: #f4eada; border: 1px solid #ddcfb9; display: grid; place-items: center; }
.box-push-cell.wall { background: #56687f; border: 2px solid #394b62; box-shadow: inset 0 3px 0 #ffffff20; }
.box-push-cell.goal::before { content: ''; width: 42%; height: 42%; border: 3px dashed #be6335; border-radius: 50%; background: #f5c18c66; }
.box-push-box { position: absolute; inset: 0; background: url('../images/box-push-puzzle/wooden-crate.png') center / contain no-repeat; }
.box-push-cell.goal .box-push-box::before { content: ''; position: absolute; inset: 8%; border: 2px solid #24704a; border-radius: 4px; box-shadow: 0 0 0 1px #b0f1c9; }
.box-push-cell.goal .box-push-box::after { content: '✓'; position: absolute; right: 4%; bottom: 4%; width: 35%; height: 35%; display: grid; place-items: center; border-radius: 50%; background: #24704a; color: #fff; border: 1px solid #d8f3df; font: 900 clamp(9px, 2.6vw, 16px) sans-serif; }
.box-push-player { position: absolute; inset: 0; background: url('../images/box-push-puzzle/warehouse-worker.png') center / contain no-repeat; }
.box-push-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 18px; font-size: .78rem; font-weight: 700; }
.box-push-legend span { display: flex; align-items: center; gap: 5px; }
.box-push-legend i { width: 18px; height: 18px; display: inline-block; background: url('../images/box-push-puzzle/wooden-crate.png') center / contain no-repeat; }
.box-push-legend .box-push-key-goal { border: 2px dashed #be6335; border-radius: 50%; background: transparent; }
.box-push-legend .box-push-key-done { border: 2px solid #24704a; border-radius: 3px; }
#box-push-status { min-height: 2.8em; margin: 14px 0 0; text-align: center; color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.box-push-controls { display: flex; align-items: center; justify-content: center; gap: 25px; }
.box-push-dpad { display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 46px); gap: 6px; }
.box-push-dpad button { border: 2px solid var(--ink); border-radius: 10px; background: var(--surface); color: var(--ink); font: 800 1.5rem sans-serif; cursor: pointer; touch-action: manipulation; }
.box-push-dpad button:first-child { grid-column: 2; }
.box-push-dpad button:nth-child(2) { grid-column: 1; grid-row: 2; }
.box-push-dpad button:nth-child(3), .box-push-dpad button:nth-child(4) { grid-row: 2; }
.box-push-dpad button:active { background: #b7e7fb; }
.box-push-win-stars { color: #a45b00; font-size: 2rem; letter-spacing: 5px; margin: 8px 0 12px; }
#box-push-win:not([hidden]) .win-card { animation: box-push-menu-in .28s ease-out both; }
#box-push-board.is-complete .box-push-box { animation: box-push-box-bounce .65s ease-in-out; }
#box-push-celebration { position: absolute; inset: -20px; overflow: hidden; pointer-events: none; }
.box-push-confetti { position: absolute; top: 10%; width: 8px; height: 14px; background: var(--confetti-color); left: var(--confetti-left); animation: box-push-confetti-fall .85s ease-out both; animation-delay: var(--confetti-delay); }
@keyframes box-push-menu-in { from { opacity: 0; transform: translateY(15px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes box-push-box-bounce { 0%, 100% { transform: scale(1); } 40% { transform: scale(.85); } 70% { transform: scale(1.12); } }
@keyframes box-push-confetti-fall { from { opacity: 1; transform: translateY(-20px) rotate(0); } to { opacity: 0; transform: translateY(320px) rotate(300deg); } }
#game-stage:fullscreen .box-push-board-wrap, #game-stage.is-ios-fullscreen .box-push-board-wrap { width: min(55dvh, 82vw); }
@media (prefers-reduced-motion: reduce) { #box-push-win .win-card, #box-push-board.is-complete .box-push-box, .box-push-confetti { animation: none; } }
.box-push-rules { border-top: 2px solid #22314a20; width: 100%; font-size: .92rem; line-height: 1.65; }
.box-push-rules h2 { font-size: 1.1rem; }
@media (max-width: 400px) { #box-push-play .score-chip { padding: 8px 5px; min-width: 65px; } #box-push-play .scoreboard { gap: 6px; } }
