/* Create By Asking: weather fight game (projects/weather-fight.html).
   Loaded after weather.css; the map, full screen and corner buttons come from there. */

.wf .ws-stage { container-type: inline-size; }
.wf .ws-readout { display: none; }

/* score: heat on the left, cold on the right, as a tug of war */
.wf-hud { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: 4px; pointer-events: none; }
.wf-hud[hidden], .wf-power[hidden], .wf-overlay[hidden] { display: none; }
.wf-score { display: flex; align-items: center; gap: 8px; background: rgba(14, 13, 11, 0.72); padding: 6px 10px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.wf-score b { font: 800 0.9rem/1 var(--body); min-width: 2.7em; text-align: center; }
.wf-hot { color: #FF9A52; }
.wf-cold { color: #7CC4FF; }
.wf-bar { position: relative; width: clamp(110px, 28cqw, 260px); height: 10px; border-radius: 99px; background: #4AA3FF; overflow: hidden; }
.wf-bar i { position: absolute; inset: 0 auto 0 0; width: 50%; background: linear-gradient(90deg, #FF5A3A, #FF9A52); transition: width 0.4s; }
.wf-bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: rgba(255, 255, 255, 0.85); }
.wf-time { font: 700 0.85rem/1 var(--mono); color: #fff; background: rgba(14, 13, 11, 0.72); padding: 4px 9px; border-radius: 8px; }
.wf-time.wf-low { color: #FFC93C; }

/* how much painting you have left */
.wf-power { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: grid; gap: 4px; font: 700 0.72rem/1 var(--body); color: #fff; background: rgba(14, 13, 11, 0.72); padding: 6px 9px; border-radius: 10px; pointer-events: none; }
.wf-pbar { display: block; width: 110px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.wf-pbar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: #FF9A52; }
.wf-cool-side .wf-pbar i { background: #7CC4FF; }
.wf .ws-hint { bottom: 44px; }

/* start and result cards over the map */
.wf-overlay { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 12px; background: rgba(10, 9, 8, 0.55); overflow: auto; }
.wf-card { width: min(420px, 100%); background: #1F1E1C; color: #F3F2F0; border-radius: 16px; padding: 18px 20px; display: grid; gap: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px rgba(0, 0, 0, 0.5); text-align: center; }
.wf-card h2 { margin: 0; font: 800 1.5rem/1.1 var(--body); color: #fff; }
.wf-card p { margin: 0; color: #CDCCCA; font-size: var(--step--1); }
.wf-steps { margin: 0; padding-left: 1.3em; text-align: left; display: grid; gap: 4px; font-size: var(--step--1); color: #CDCCCA; }
.wf-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wf-side { border: 2px solid transparent; cursor: pointer; border-radius: 12px; padding: 12px 8px; font: 800 1rem/1 var(--body); color: #fff; background: rgba(255, 255, 255, 0.08); }
.wf-side-hot[aria-pressed="true"] { background: rgba(255, 110, 50, 0.25); border-color: #FF9A52; }
.wf-side-cold[aria-pressed="true"] { background: rgba(80, 160, 255, 0.25); border-color: #7CC4FF; }
.wf-side:focus-visible { outline: 2px solid #FFC93C; outline-offset: 2px; }
.wf-levels { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.wf-again { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wf .wf-card .btn { justify-self: center; }

/* small maps (a phone held upright, or the page view): squeeze the cards and labels */
@container (max-width: 560px) {
  .wf-card { padding: 10px 12px; gap: 8px; border-radius: 12px; }
  .wf-card h2 { display: none; }
  .wf-card #wf-result-title { display: block; font-size: 1.05rem; }
  .wf-steps { display: none; }
  .wf-side { padding: 8px 6px; font-size: 0.85rem; }
  .wf-levels .adv-label { display: none; }
  .wf-levels .chip-dark { padding: 6px 9px; font-size: 0.75rem; }
  .wf-card .btn { padding: 8px 14px; font-size: 0.85rem; }
  .wf-score { padding: 4px 8px; gap: 5px; }
  .wf-score b { font-size: 0.72rem; }
  .wf-time { font-size: 0.68rem; padding: 3px 6px; }
  .wf-power { left: 6px; bottom: 6px; padding: 4px 6px; font-size: 0.6rem; }
  .wf-pbar { width: 70px; height: 5px; }
  .wf .ws-hint { bottom: 34px; }
  .wf-hud { top: 6px; }
}

/* Full screen stays tappable over the start and result cards */
.wf .ws-corner { z-index: 7; }

/* full screen: just the map and the game */
.ws-full.wf > .adv-note { display: none; }
