/* Original art, bright book colours, and a short tap-to-turn puzzle. */
.pw-entry { display:flex; align-items:center; gap:15px; width:100%; min-width:0; padding:16px 18px; border:2px solid #173d59; border-radius:19px; color:#173d59; background:#e7f8ff; box-shadow:0 4px 0 #93ccdf; text-align:left; cursor:pointer; font-family:var(--font-body, sans-serif); }
.pw-entry--guide { margin:14px 0 22px; }
.pw-entry-art { position:relative; flex:0 0 76px; width:76px; height:76px; border:2px solid #176d96; border-radius:17px; background:#fff; transform:rotate(-5deg); overflow:hidden; }
.pw-entry-art img { width:100%; height:100%; object-fit:contain; padding:5px; }
.pw-entry-art i { position:absolute; bottom:0; right:0; font-style:normal; font-size:23px; font-weight:bold; border:2px solid #173d59; border-radius:50%; width:28px; height:28px; line-height:22px; text-align:center; background:#ffdb47; }
.pw-entry-copy { display:flex; flex-direction:column; min-width:0; gap:5px; }
.pw-entry-copy small { color:#277995; font-size:12px; font-weight:800; }
.pw-entry-copy strong { font-size:19px; line-height:1.45; }
.pw-entry-copy > span { font-size:13px; line-height:1.55; }
.pw-play-item { grid-column:1 / -1; }
.pw-entry--play { background:#fff3b8; box-shadow:0 4px 0 #e2bd52; }
.pw-sheet .c-sheet__body { background:#eefaff; }
.pw-game { position:relative; max-width:620px; margin:0 auto; padding:18px 10px 12px; color:#173d59; font-family:var(--font-body, sans-serif); }
.pw-eyebrow { margin:0 0 5px; text-align:center; font-size:12px; font-weight:800; color:#177899; }
.pw-heading { margin:0; text-align:center; font:800 23px/1.55 var(--font-display, var(--font-body, sans-serif)); }
.pw-heading small,.pw-heading > span { display:block; }.pw-heading small { font-size:14px; }
.pw-intro { margin:9px 0 16px; font-size:15px; line-height:1.6; text-align:center; }
.pw-steps { display:flex; justify-content:center; gap:16px; padding:0; margin:0 0 18px; list-style:none; }
.pw-steps li { display:flex; flex-direction:column; align-items:center; gap:5px; font-size:12px; font-weight:800; color:#607c8e; }
.pw-steps li > span:first-child { display:grid; place-items:center; width:36px; height:36px; font-size:19px; border:2px solid #88a9bb; border-radius:12px; background:#fff; }
.pw-steps .is-current > span:first-child { color:#173d59; border-color:#173d59; background:#ffda49; }
.pw-steps .is-done > span:first-child { color:#fff; border-color:#267b58; background:#33865b; }
.pw-tools { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; }
.pw-button { min-height:44px; padding:9px 16px; border:2px solid #173d59; border-radius:13px; color:#173d59; background:#fff; box-shadow:0 3px 0 #c0dbe5; font:800 14px/1.5 var(--font-body, sans-serif); cursor:pointer; }
.pw-button--primary { background:#ffdc49; box-shadow:0 3px 0 #c89c28; }
.pw-button:disabled { cursor:default; opacity:.55; }
.pw-button:not(:disabled):active { box-shadow:none; transform:translateY(2px); }
.pw-progress { margin:14px 0 9px; text-align:center; font-size:14px; font-weight:800; }
.pw-board { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; width:min(100%,350px); margin:0 auto; padding:9px; border:3px solid #173d59; border-radius:20px; background:#9bd4e7; box-shadow:0 5px 0 #3c7f9c; transition:gap .3s,padding .3s,background .3s; }
.pw-piece { position:relative; aspect-ratio:1; width:100%; padding:0; min-width:0; border:2px solid #397894; border-radius:11px; background:#fff; box-shadow:0 3px 0 #5c9bb3; overflow:hidden; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.pw-piece__face { position:absolute; inset:0; display:block; overflow:hidden; transition:transform 260ms cubic-bezier(.18,.72,.25,1); }
.pw-piece .pw-piece__image { position:absolute; width:200%!important; height:200%!important; max-width:none!important; object-fit:contain; pointer-events:none; user-select:none; }
.pw-piece__number { position:absolute; left:5px; top:4px; width:21px; height:21px; text-align:center; color:#426c82; background:#ffffffd9; border-radius:50%; font-size:12px; font-weight:800; pointer-events:none; }
.pw-piece__check { position:absolute; right:4px; bottom:4px; display:grid; place-items:center; width:27px; height:27px; border:2px solid #1d5572; border-radius:50%; color:#1d5572; background:#fff6bb; font-size:21px; font-weight:800; pointer-events:none; }
.pw-piece.is-right { border-color:#36815b; cursor:default; }
.pw-piece.is-right .pw-piece__check { background:#33865b; border-color:#267b58; color:#fff; font-size:16px; }
.pw-stage.is-solved .pw-board { gap:0; padding:4px; background:#fff; border-color:#32845b; box-shadow:0 5px 0 #a2c588; }
.pw-stage.is-solved .pw-piece { border-width:0; border-radius:0; box-shadow:none; }
.pw-stage.is-loading .pw-piece__face { opacity:0; }.pw-stage.is-loading .pw-board { opacity:.55; }
.pw-stage.is-solved .pw-piece__number,.pw-stage.is-solved .pw-piece__check { opacity:0; }
.pw-result { text-align:center; padding:17px 0 0; }
.pw-result-name { display:block; margin-bottom:10px; font-size:20px; color:#27774f; }
.pw-status { min-height:2.9em; margin:16px 0 6px; line-height:1.55; text-align:center; font-size:14px; font-weight:700; }
.pw-note { margin:6px 0; font-size:12px; color:#5c7b8a; text-align:center; }
.pw-reference { display:flex; justify-content:center; align-items:center; gap:12px; max-width:350px; margin:14px auto 0; border:2px dashed #4594af; border-radius:14px; background:#fff; }
.pw-reference img { width:98px; height:98px; object-fit:contain; }
.pw-reference p { font-size:13px; line-height:1.6; }
.pw-medal { display:grid; place-items:center; width:88px; height:88px; margin:20px auto 14px; color:#173d59; border:3px solid #173d59; border-radius:25px; background:#ffdb49; box-shadow:0 5px 0 #d5a73a; font-size:58px; }
.pw-summary-copy { white-space:pre-line; font-size:18px; font-weight:800; text-align:center; line-height:1.7; }
.pw-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:20px 0; }
.pw-gallery > div { display:flex; align-items:center; flex-direction:column; gap:6px; min-width:0; padding:9px 4px; border:2px solid #a7caaa; border-radius:14px; background:#fff; }
.pw-gallery img { width:100%; max-width:110px; height:auto; aspect-ratio:1; object-fit:contain; }
.pw-gallery strong { font-size:13px; text-align:center; overflow-wrap:anywhere; }
.pw-gallery span { font-size:12px; color:#28764e; }
.pw-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.pw-effects { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:3; }
.pw-burst { position:absolute; width:1px; height:1px; }
.pw-burst i { position:absolute; width:9px; height:12px; border-radius:2px; background:#ffcc32; animation:pw-spark 640ms cubic-bezier(.15,.65,.25,1) both; }
.pw-burst i:nth-child(3n) { background:#29a7d2; }.pw-burst i:nth-child(3n + 1) { background:#4eae71; }
[data-motion="full"] .pw-pop { animation:pw-pop 350ms ease-out; }
[data-motion="full"] .pw-medal { animation:pw-medal 550ms cubic-bezier(.18,.72,.25,1); }
.pw-game [hidden] { display:none!important; }
.pw-entry:focus-visible,.pw-button:focus-visible,.pw-piece:focus-visible { outline:3px solid #0059b1; outline-offset:3px; }
@keyframes pw-pop { 0%,100% { scale:1; } 45% { scale:.94; } 70% { scale:1.025; } }
@keyframes pw-medal { from { opacity:.4; transform:scale(.65) rotate(-20deg); } to { opacity:1; transform:scale(1) rotate(0); } }
@keyframes pw-spark { 0% { opacity:0; transform:scale(.4); } 15% { opacity:1; } 100% { opacity:0; transform:translate(var(--pw-x),var(--pw-y)) rotate(var(--pw-r)) scale(.4); } }
@media(max-width:380px) { .pw-game { padding:12px 2px 8px; }.pw-heading { font-size:20px; }.pw-intro { font-size:14px; }.pw-entry { padding:13px 11px; gap:10px; }.pw-entry-art { flex-basis:62px; width:62px; height:62px; }.pw-entry-copy strong { font-size:17px; }.pw-entry-copy small { font-size:11px; }.pw-entry-copy > span { font-size:12px; }.pw-button { padding:8px 11px; } }
html.quality-paused .pw-game *,html.quality-paused .pw-game *::before { animation-play-state:paused!important; }
[data-motion="reduced"] .pw-game *,[data-motion="reduced"] .pw-game *::before { animation:none!important; transition:none!important; }
[data-motion="reduced"] .pw-effects { display:none!important; }
@media(prefers-reduced-motion:reduce) { .pw-game *,.pw-game *::before { animation:none!important; transition:none!important; }.pw-effects { display:none!important; } }
