/* css/chest.css: the Treasure Chest panel (js/play/chest.js). Uses the tokens and the panel, row, note, btn and
   progress styles of css/play.css; only what is new lives here. */
.chest-lede { margin: 0 0 6px; font: 700 16px/1.4 Fraunces, Georgia, serif; }
.chest-on { display: flex; align-items: center; gap: 10px; background: #EAF5DF; border-color: rgba(78,143,74,.35); color: var(--ink); }
.chest-on .ico { flex: none; }
.chest-soon { background: #FFF6DA; border-color: rgba(244,194,79,.55); color: var(--ink); }
.chest-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 4px; }
.chest-nums > div { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 9px 12px; box-shadow: 0 3px 0 rgba(59,42,31,.9); min-width: 0; }
.chest-nums span { display: block; font-size: 12px; font-weight: 800; color: var(--ink2); }
.chest-nums b { display: block; font: 800 18px/1.2 Fraunces, Georgia, serif; overflow-wrap: anywhere; }
.chest-today { display: flex; align-items: center; gap: 14px; }
.chest-today .t { flex: 1; min-width: 0; display: grid; gap: 6px; }
.chest-pts { font: 900 34px/1 Nunito; min-width: 64px; text-align: center; background: var(--sun); border: 2px solid var(--ink); border-radius: 16px; padding: 8px 6px; box-shadow: 0 3px 0 rgba(59,42,31,.9); }
.chest-bar { height: 14px; }
.chest-bar i { background: linear-gradient(90deg, var(--leaf), #A7D07F); }
.chest-would { margin: 8px 0 0; font: 700 15px Fraunces, Georgia, serif; color: var(--clay); }
.chest-done { color: #4E8F4A; font-weight: 900; white-space: nowrap; }
.chest-fine { margin-top: 14px; padding-top: 10px; border-top: 1.5px dashed var(--line); }
.chest-line .t span { display: block; }
@media (max-width: 420px) {
  .chest-nums { grid-template-columns: 1fr; }
  .chest-pts { font-size: 28px; min-width: 54px; }
  .body .row .btn { padding: 7px 10px; font-size: 13px; }
}
/* the HUD's top-right row gained the chest button: on narrow phones it wraps into rows of three on the right, so it
   never runs over the keeper card on the left */
@media (max-width: 480px) {
  .hud-tr { flex-wrap: wrap; justify-content: flex-end; max-width: calc(3 * 44px + 2 * 8px); }
}
