/* One window, one arrangement: title, progress, playfield, actions. */
.play-window { --play-ink: #36523f; --play-muted: #7a886c; position: relative; isolation: isolate; overflow: hidden; border: 2px solid #b9c8a6; border-radius: 24px; color: var(--play-ink); background: #fffaf0; box-shadow: 0 5px 0 #cdd6bb, 0 18px 40px -26px #354c3c55; font-family: ui-rounded,"Trebuchet MS",system-ui,sans-serif; }
.play-window *, .play-window *::before, .play-window *::after { box-sizing: border-box; }
.play-window [hidden] { display: none !important; }
.play-window button { min-height: 44px; padding: 8px 12px; border: 1px solid #d1dac1; border-radius: 12px; color: #4e6c4d; background: #fffdf5; font: 750 12px "Trebuchet MS",sans-serif; cursor: pointer; }
.play-window button:hover:not(:disabled) { background: #eaf0dd; }
.play-window button:disabled { opacity: .5; cursor: default; }
.play-window .play-window-primary { border-color: #426744; background: #52774e; color: #fffbed; box-shadow: 0 2px 0 #385838; }
.play-window .play-window-primary:hover:not(:disabled) { background: #426744; }
.play-window :focus-visible { outline: 3px solid #b58840; outline-offset: -3px; }
.play-window-heading { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; min-height: 58px; padding: 7px 14px 3px; }
.play-window-heading h1 { margin: 0; min-width: 0; font-size: clamp(17px,2.2vw,25px); font-weight: 850; line-height: 1.2; letter-spacing: -.035em; text-align: center; overflow-wrap: anywhere; }
.play-window-nav, .play-window-utility { display: flex; align-items: center; gap: 6px; min-width: 0; }
.play-window-utility { justify-content: flex-end; }
.play-window .play-window-nav button { padding-inline: 8px; border-color: transparent; background: transparent; white-space: nowrap; }
.play-window-dashboard { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 12px; align-items: center; min-height: 59px; padding: 5px 15px 9px; border-bottom: 1px solid #d9dfca; }
.play-window-buddy { min-width: 0; }
.play-window-stats { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; font-variant-numeric: tabular-nums; }
.play-window-stat { display: grid; gap: 3px; min-width: 33px; text-align: center; }
.play-window-stat small { color: #829071; font-size: 9px; line-height: 1.1; }
.play-window-stat b { font-size: 21px; line-height: 1; }
.play-window-stat em { margin-left: 2px; font-size: 10px; color: #929a80; font-style: normal; font-weight: 500; }
.play-window-stat.mint b { color: #5c9276; }
.play-window-stat.peach b { color: #ba7c6b; }
.play-window .play-window-help-toggle { justify-self: end; display: flex; align-items: center; gap: 6px; padding-inline: 9px; background: #edf1e2; border-color: transparent; white-space: nowrap; font-size: 11px; }
.play-window-help-toggle > span:first-child { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; }
.play-window-field { position: relative; background: #d9e3c9; }
.play-window-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; min-height: 63px; padding: 8px 15px; border-top: 1px solid #d8dfc7; background: #fffaf0; }
.play-window-hint { min-width: 0; flex: 1 1 150px; color: #748569; font-size: 11px; line-height: 1.5; }
.play-window-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 6px; }
.play-window-reward { flex: 0 0 auto; margin-left: auto; color: #899478; font-size: 10px; }
.play-window-reward strong { color: #a37d34; }
.play-window-status { background: #fffaf0; }
.play-window-status > :empty { display: none; }
.play-window-status > :not(:empty) { margin: 0 !important; padding: 0 15px 9px; font-size: 11px; }
.play-window-help { position: absolute; z-index: 12; inset: 12px 12px auto auto; width: min(350px,calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; padding: 13px 17px 17px; border: 1px solid #c1cfad; border-radius: 18px; background: #fffdf2f7; box-shadow: 0 6px 25px #304a3d33; overscroll-behavior: contain; }
.play-window-help header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.play-window-help h2 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.play-window-help header button { min-width: 44px; border-color: transparent; background: transparent; padding: 5px; }
.play-window-help p { margin: 7px 0 0; color: #647b59; font-size: 13px; line-height: 1.6; }
.play-window-help .play-window-keyboard { margin-top: 12px; color: #869174; font-size: 11px; }
.play-window-result { position: absolute; z-index: 6; inset: 0; display: grid; place-items: center; padding: 14px; background: #eaf0df33; }
.play-window-result > section { width: min(320px,85%); max-height: 100%; overflow: auto; padding: 22px; border: 1px solid #fffdf1; border-radius: 22px; background: #fffaf0f5; box-shadow: 0 8px 30px #304a3d24; text-align: center; }
.play-window-result h2 { margin: 0 0 10px; font-size: 25px; letter-spacing: -.04em; }
.play-window-result p { color: #829071; font-size: 12px; line-height: 1.5; }
@media (max-width: 700px) {
  .play-window { border-radius: 19px; }
  .play-window-heading { grid-template-columns: minmax(44px,1fr) auto minmax(44px,1fr); gap: 5px; min-height: 51px; padding: 4px 8px 0; }
  .play-window-heading h1 { max-width: 190px; font-size: 18px; }
  .play-window-heading .play-window-nav button { padding-inline: 5px; font-size: 11px; }
  .play-window-heading .play-window-nav button span { display: none; }
  .play-window-dashboard { grid-template-columns: minmax(80px,1fr) auto 44px; gap: 7px; min-height: 58px; padding: 4px 8px 8px; }
  .play-window-stats { gap: 15px; }
  .play-window-stat small { font-size: 8px; }
  .play-window-stat b { font-size: 18px; }
  .play-window-stat em { font-size: 9px; }
  .play-window .play-window-help-toggle { justify-content: center; width: 44px; padding: 5px; }
  .play-window-help-toggle > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .play-window-footer { padding: 7px 9px; gap: 5px 8px; min-height: 62px; }
  .play-window-hint { flex-basis: 100px; font-size: 10px; }
  .play-window-reward { font-size: 9px; }
  .play-window-actions button { padding: 7px 10px; font-size: 11px; }
  .play-window-help { inset: 8px 8px auto auto; width: calc(100% - 16px); max-height: calc(100% - 16px); padding: 10px 14px; }
  .play-window-help p { font-size: 12px; }
}
