.flap-game { width: min(100%, 1280px); margin-inline: auto; color: #293c43; font: 16px/1.45 Georgia, "Times New Roman", serif; }
.flap-shell { box-sizing: border-box; width: 100%; padding: clamp(14px, 1.5vw, 20px); border: 1px solid #d4c9ad; border-radius: 18px; background: linear-gradient(145deg, #fffdf6, #f4efe1); box-shadow: 0 12px 34px #20384220; }
.flap-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flap-heading h2 { margin: 2px 0 0; color: #273d45; font-size: clamp(25px, 3vw, 34px); line-height: 1.1; }
.flap-kicker { margin: 0; color: #51685e; font: 700 11px/1.2 system-ui, sans-serif; letter-spacing: .15em; }
.flap-stamp { padding: 8px 11px; border: 1px solid #d8c48e; border-radius: 999px; color: #816a32; font: 700 11px system-ui, sans-serif; letter-spacing: .08em; white-space: nowrap; }
.flap-instructions { margin: 13px 0; color: #52656a; font: 14px/1.5 system-ui, sans-serif; }
.flap-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 43px; margin-bottom: 10px; }
.flap-reward { color: #4a6c5f; font: 700 13px system-ui, sans-serif; }
.flap-actions { display: flex; gap: 8px; }
.flap-actions button { min-height: 40px; padding: 8px 16px; border: 1px solid #315a55; border-radius: 8px; background: #315a55; color: #fffdf4; font: 700 14px system-ui, sans-serif; cursor: pointer; }
.flap-actions button[data-action="retry"] { border-color: #c8b98f; background: #fffdf6; color: #4b5b5c; }
.flap-actions button:disabled { cursor: default; opacity: .48; }
.flap-actions button:focus-visible, .flap-board canvas:focus-visible { outline: 3px solid #d1963b; outline-offset: 3px; }
.flap-board { overflow: hidden; border: 1px solid #a6c3bb; border-radius: 12px; background: #d9eff0; }
.flap-board canvas { display: block; width: 100%; aspect-ratio: 112 / 45; touch-action: none; cursor: pointer; }
.flap-readout { display: flex; justify-content: space-between; padding: 8px 14px; border-top: 1px solid #c7dbd0; background: #f4f7eb; color: #566b68; font: 700 13px system-ui, sans-serif; }
.flap-readout strong { color: #2d4b4a; font-variant-numeric: tabular-nums; }
.flap-status { min-height: 22px; margin: 10px 0 0; color: #52656a; font: 14px/1.5 system-ui, sans-serif; }
.flap-status.is-success { color: #27654d; font-weight: 700; }
.flap-status.is-pending { color: #815f24; font-weight: 700; }
.flap-status.is-failure { color: #9d4b42; font-weight: 700; }
@media (max-width: 560px) {
  .flap-shell { padding: 14px; border-radius: 12px; }
  .flap-stamp { font-size: 9px; padding: 6px 8px; }
  .flap-toolbar { align-items: flex-start; flex-direction: column; }
  .flap-actions { width: 100%; }
  .flap-actions button { flex: 1; }
  .flap-readout { padding-inline: 9px; font-size: 12px; }
}
.flap-board { max-width: min(100%, calc(42vh * 112 / 45)); margin-inline: auto; }
