.checkpoint-2048-panel[hidden] { display: none; }
.checkpoint-2048-panel {
  color: #ddf7ff;
  width: min(100%, 440px);
  margin: 8px auto 0;
  padding: 10px 12px;
  border: 1px solid #79bfd0;
  background: rgba(5, 28, 53, .82);
  border-radius: 12px;
  font: 500 12px/1.45 system-ui, sans-serif;
  box-sizing: border-box;
}
.checkpoint-2048-panel p { margin: 0; }
.checkpoint-2048-panel button { min-height: 44px; margin-top: 8px; white-space: normal; }
/* This panel keeps a dark surface in both Arcade themes. */
.checkpoint-2048-panel .secondary-button {
  color: #ddf7ff;
  background: #0d334b;
  border-color: #79bfd0;
}
.checkpoint-2048-panel .secondary-button:hover { background: #164663; }
.checkpoint-2048-panel .primary-button {
  color: #062826;
  background: #79e4d7;
}
.checkpoint-2048-panel .primary-button:hover { background: #a0f3e8; }
.checkpoint-2048-panel button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
#checkpoint-2048-choices:not([hidden]) { display: grid; gap: 6px; }
#checkpoint-2048-branches:not([hidden]) { display: grid; gap: 6px; }
#checkpoint-2048-branches button { width: 100%; }
#game-2048[data-checkpoint-state="local-conflict"] .board-2048,
#game-2048[data-checkpoint-state="local-conflict"] .blocks-hint,
#game-2048[data-checkpoint-state="conflict"] .board-2048,
#game-2048[data-checkpoint-state="conflict"] .blocks-hint { display: none; }
#game-2048[data-checkpoint-state="local-conflict"] .blocks-area,
#game-2048[data-checkpoint-state="conflict"] .blocks-area { overflow-y: auto; }
#game-2048 [aria-busy="true"] { opacity: .5; }
@media (max-height: 480px) {
  .checkpoint-2048-panel { padding: 6px 10px; margin-top: 4px; font-size: 11px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  body.game-screen-active #game-2048 .blocks-area:has(.checkpoint-2048-panel:not([hidden])) .board-2048 { width: min(100%, calc(100cqh - 120px)); }
}
