.rp-card{margin:.7rem auto;padding:.85rem;max-width:900px;border:1px solid #d8b66b;border-radius:14px;background:#183b42;color:#fff3d1}
.rp-card[hidden],.rp-card [hidden]{display:none!important}
.rp-card h3{font-size:17px;color:#fff3d1;margin:0 0 .35rem}
.rp-card p{font-size:14px;line-height:1.4;margin:.35rem 0}
.rp-card button{min-height:44px;font-size:14px!important;line-height:1.25;padding:.5rem .65rem!important;border-radius:10px!important}
.rp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:.5rem 0}
.rp-art{display:block;width:48px;height:48px;margin:auto}
.rp-art svg{display:block;width:100%;height:100%}
.rp-choice{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:84px!important;background:#2d5058!important;color:#fff3d1!important;border:1px solid #d8b66b!important;white-space:normal}
.rp-clue{display:flex;align-items:center;justify-content:center;gap:12px;border-radius:10px;background:#254b50;padding:.5rem}
.rp-clue .rp-art{margin:0}
.rp-clue-label{font-size:14px}
.rp-open{background:#f7cf83!important;color:#183b42!important;font-weight:700}
.rp-close{margin-top:.35rem}
/* Build 44: readable pattern and odd-one-out boards */
.rp-pattern{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
.rp-pattern .rp-art{width:35px;height:35px}
.rp-missing{display:grid;place-items:center;width:35px;height:35px;border:2px dashed #f7cf83;border-radius:8px;color:#fff3d1;font-weight:700;font-size:22px}
.rp-clue:has(.rp-pattern){flex-direction:column;gap:7px}
.rp-grid.rp-odd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
/* Build 45: explicit optional difficulty selection */
.rp-levels{display:flex;gap:7px;flex-wrap:wrap;margin:.45rem 0}
.rp-level{background:#2d5058!important;color:#fff3d1!important;border:1px solid #b9aa7d!important}
.rp-level[aria-pressed="true"]{background:#f7cf83!important;color:#183b42!important;font-weight:700}
/* Build 46: clear feedback without flashing or continuous motion */
.rp-progress{display:flex;gap:5px;align-items:center;margin:.5rem 0}
.rp-step{display:grid;place-items:center;min-width:26px;height:26px;border:1px solid #d8b66b;border-radius:8px;color:#fff3d1;font-size:12px}
.rp-step-done{background:#f7cf83;color:#183b42;font-weight:700}
.rp-celebrate .rp-clue{background:#296447}
@media(prefers-reduced-motion:no-preference){.rp-celebrate .rp-clue .rp-art{animation:rp-cheer .35s ease-out 1}}
@keyframes rp-cheer{from{transform:scale(.9)}to{transform:scale(1)}}
/* Build 47: snowbank reveal board */
.rp-grid.rp-search-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.rp-grid .rp-revealed:disabled{opacity:.65;background:#20414b!important}
/* Build 48: compact mission card and accessible progress */
.rp-mission{margin:.7rem auto;padding:.8rem;max-width:900px;background:#243c50;color:#fff3d1;border:1px solid #cbb680;border-radius:14px}
.rp-mission[hidden],.rp-mission [hidden]{display:none!important}
.rp-mission h3{margin:0;font-size:16px;color:#fff3d1}
.rp-mission p{margin:.35rem 0;font-size:14px;line-height:1.4}
.rp-mission .rp-mission-name{font-weight:700;color:#f7cf83}
.rp-mission-steps{padding-left:1.4rem;margin:.45rem 0;font-size:14px;line-height:1.4}
.rp-mission-done{color:#cce7b5}
.rp-mission-actions{display:flex;flex-wrap:wrap;gap:7px}
.rp-mission button{min-height:44px;font-size:14px!important;padding:.5rem .7rem!important;border-radius:10px!important}
.rp-mission-next{background:#f7cf83!important;color:#183b42!important;font-weight:700}
.rp-mission .rp-mission-note{font-size:12px;color:#e7d7b7}
/* Build 50: completion CTA takes the full board width. */
.rp-celebrate .rp-grid{grid-template-columns:1fr}
.rp-card .rp-cargo { width:min(100%,25rem); padding:.45rem .3rem; text-align:center; }
.rp-cargo-label { display:block; color:#fff4dd; margin:0 0 .55rem; }
.rp-cargo-rack {
  display:flex; justify-content:center; gap:.35rem; padding:.55rem; background:#8f443f; border:3px solid #e1be80;
  border-bottom-width:6px; border-radius:10px 10px 23px 17px; box-shadow: inset 0 -5px 0 #6d3734;
}
.rp-cargo-slot {
  display:grid; place-items:center; flex:1; max-width:60px; aspect-ratio:1/1;
  border-radius:7px; background:#683d35; border:1px dashed #d7ab76;
}
.rp-cargo-slot .rp-art { width:82%; height:82%; }
.rp-cargo-slot.is-next { outline:3px solid #fff4dd; outline-offset:-3px; background:#5b3930; }
.rp-cargo-slot.is-next .rp-art { opacity:.72; }
.rp-cargo-slot.is-packed { background:#23513f; border:2px solid #e4ce8f; }
.rp-runners { width:92%; height:12px; margin:auto; border-bottom:4px solid #e2c184; border-right:4px solid #e2c184; border-radius:0 0 13px 8px; }
.rp-supply { touch-action:none; }
.rp-carrying { z-index:5; position:relative; pointer-events:auto; }
.rp-card :is(.rp-choice,.rp-close,.rp-open,.rp-level) { min-height:48px; }
.rp-card :is(.rp-clue-label,.rp-intro,.rp-status) { font-size:1rem; }
.rp-cargo-rack .rp-step { flex-shrink:0; }
