/* Three small worlds; shared classroom colours, rounded cards and existing art. */
html body.learning-page #game-hub.py-games-added{grid-template-rows:none!important;grid-auto-rows:minmax(185px,1fr);overflow:visible!important}
#game-hub [data-py-open] .hub-art{height:125px;max-height:125px;flex:1 1 auto}#game-hub [data-py-open] .hub-art svg{height:100%;width:100%}#game-hub [data-py-open] small{font-size:14px;color:#53664f}#game-hub [data-py-open]{overflow:hidden}
html body.learning-page #activities:has(.py-games-added){height:auto!important;max-height:none!important;min-height:calc(100dvh - var(--panel-top,100px));overflow:visible!important}
#py-picture-game[hidden]{display:none!important}.py-picture-open>:not(#py-picture-game){display:none!important}
#py-picture-game{--pg-ink:#294a42;--pg-accent:#397f6b;--pg-light:#edf6ef;--pg-line:#d8e6dc;width:100%;max-width:1100px;margin:0 auto;color:var(--pg-ink);font-family:inherit;flex:1 0 auto;overflow:visible}
#py-picture-game[data-game=quest]{--pg-ink:#354c76;--pg-accent:#617faa;--pg-light:#edf2fb;--pg-line:#dce5f3}
#py-picture-game[data-game=match]{--pg-ink:#654947;--pg-accent:#b77970;--pg-light:#fbefeb;--pg-line:#eedbd5}
#py-picture-game *{box-sizing:border-box}#py-picture-game button{font:inherit;font-size:17px;min-height:44px;border:1px solid var(--pg-line);border-radius:15px;background:#fff;color:var(--pg-ink);padding:10px 18px;cursor:pointer;line-height:1.45;box-shadow:none;transform:none;transition:background .15s,box-shadow .15s,border-color .15s}
#py-picture-game button::before,#py-picture-game button::after{content:none!important}#py-picture-game button:hover{background:var(--pg-light);border-color:var(--pg-accent)}#py-picture-game button:focus-visible{outline:3px solid #d79b3e;outline-offset:4px}#py-picture-game button:disabled{cursor:default;opacity:.65}#py-picture-game button[aria-pressed=true]{border-color:var(--pg-accent);background:var(--pg-light);box-shadow:0 0 0 3px color-mix(in srgb,var(--pg-accent) 16%,transparent)}
#py-picture-game h2,#py-picture-game h3,#py-picture-game p{padding:0;letter-spacing:normal}#py-picture-game h3{font-size:clamp(24px,3vw,32px);font-weight:650;line-height:1.45;margin:10px 0 14px}#py-picture-game p{font-size:17px;line-height:1.7;margin:10px 0}#py-picture-game .py-kicker{display:block;font-size:14px;letter-spacing:.12em;color:var(--pg-accent);font-weight:600;background:transparent;border:0;border-radius:0;box-shadow:none}
#py-picture-game .py-picture-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 4px 18px}#py-picture-game .py-picture-bar h2{font-size:25px;margin:0;font-weight:650}#py-picture-game .py-picture-bar button{font-size:15px;border-color:transparent;background:transparent;padding:8px 12px}#py-picture-game .py-picture-bar button:hover{background:var(--pg-light)}
#py-picture-game .py-picture-setup,#py-picture-game .py-picture-play,#py-picture-game .py-picture-finish{border:1px solid var(--pg-line);border-radius:28px;overflow:hidden;background:#fff;box-shadow:0 8px 28px #2f4c3610}
#py-picture-game .py-picture-setup{display:grid;grid-template-columns:.9fr 1fr;text-align:left}#py-picture-game .py-setup-art{padding:42px 36px;background:var(--pg-light);display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;position:relative}#py-picture-game .py-setup-art>:is(svg,img){height:210px;width:280px;max-width:100%;margin:16px auto}#py-picture-game .py-setup-art>p{max-width:300px;color:#62776a}#py-picture-game .py-setup-options{padding:34px 38px;display:flex;flex-direction:column;justify-content:center;gap:8px}#py-picture-game fieldset{border:0;padding:0;margin:0 0 12px;display:flex;gap:10px}#py-picture-game legend{font-size:15px;color:var(--pg-accent);padding:0;margin-bottom:12px}#py-picture-game fieldset label{flex:1;border:1px solid var(--pg-line);border-radius:13px;padding:14px 10px;justify-content:center;white-space:nowrap}#py-picture-game fieldset label:has(input:checked){background:var(--pg-light);border-color:var(--pg-accent)}#py-picture-game label{display:flex;align-items:center;gap:10px;font-size:16px;line-height:1.6;margin:5px 0}#py-picture-game input{width:19px;height:19px;accent-color:var(--pg-accent);flex:none}#py-picture-game select{font:inherit;font-size:16px;padding:10px 30px 10px 12px;border:1px solid var(--pg-line);border-radius:12px;max-width:100%;min-width:0;background:white;color:var(--pg-ink);flex:1}#py-picture-game .py-picture-note{font-size:14px;color:#738279;margin:6px 0;line-height:1.7}
#py-picture-game .py-picture-primary{display:block;margin:16px 0 0;padding:12px 24px;background:var(--pg-accent);border:1px solid var(--pg-accent);color:white;border-radius:14px;box-shadow:0 4px 12px color-mix(in srgb,var(--pg-accent) 18%,transparent);min-width:140px;font-weight:600}#py-picture-game .py-picture-primary:hover{filter:brightness(.95)}#py-picture-game .py-listen{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-color:var(--pg-line);background:#fff;border-radius:99px;font-size:15px;min-height:44px;padding:10px 16px;box-shadow:0 2px 7px #294f4310}#py-picture-game .py-listen::before{content:'♪'!important;display:inline-block;font:23px Georgia;color:var(--pg-accent);position:static!important;filter:none!important}#py-picture-game .py-hint{font-size:14px;border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;padding:8px;margin-top:4px}
#py-picture-game .py-picture-play{padding:22px 26px;background:linear-gradient(145deg,var(--pg-light),#fff 55%)}#py-picture-game .py-picture-progress{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 24px}#py-picture-game .py-route{display:flex;align-items:center;gap:6px;flex-wrap:wrap}#py-picture-game .py-route span{display:grid;place-items:center;height:25px;width:25px;border-radius:50%;background:#fff;color:#97a69d;border:1px solid var(--pg-line);font:12px Arial;box-shadow:none;min-height:0;min-width:0;padding:0}#py-picture-game .py-route .is-current{color:white;background:var(--pg-accent);border-color:var(--pg-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--pg-accent) 12%,transparent)}#py-picture-game .py-route .is-done{background:var(--pg-light);color:var(--pg-accent);border-color:var(--pg-accent)}#py-picture-game .py-progress-caption{font-size:14px;white-space:nowrap;color:var(--pg-accent)}
/* Hunt: every location stays invisible until it has actually been found. */
#py-picture-game .py-hunt-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:28px;align-items:center}#py-picture-game .py-clue{padding:8px 0;text-align:left}#py-picture-game .py-clue h3{font-size:27px}#py-picture-game .py-clue>p{font-size:16px;color:#6b8074;max-width:220px}#py-picture-game .py-target{width:112px;height:112px;display:grid;place-items:center;background:#fff;border:1px solid #d6e5d8;border-radius:27px;box-shadow:0 8px 0 #dfece2;margin:20px 0 26px;transform:rotate(-4deg)}#py-picture-game .py-letter,#py-picture-game .py-ear{font:75px Andika,sans-serif;color:#397f6b;line-height:1;border:0;border-radius:0;background:none;box-shadow:none;margin:0;padding:0;min-width:0;min-height:0;transform:none}
#py-picture-game .py-scene-frame{background:#fff;border:1px solid #dce9df;border-radius:22px;box-shadow:0 9px 24px #284a3c0d;padding:10px;min-width:0}#py-picture-game .py-scene-top{display:flex;justify-content:space-between;align-items:center;padding:8px 8px 14px;font-size:13px;color:#82978b;letter-spacing:.04em}#py-picture-game .py-hunt-image{position:relative;width:100%;margin:0 auto;border-radius:14px;overflow:hidden;cursor:default}#py-picture-game .py-hunt-image>img{width:100%;display:block;user-select:none;-webkit-user-drag:none}#py-picture-game .py-scene-caption{font-size:13px;color:#819588;text-align:center;margin:12px 0 3px}
#py-picture-game .py-hunt-image>button,#py-picture-game .py-hunt-image>button:hover,#py-picture-game .py-hunt-image>button:focus,#py-picture-game .py-hunt-image>button:active{position:absolute;background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;transform:none!important;border-radius:16px;padding:0!important;min-height:0!important;min-width:0!important;color:transparent!important;cursor:inherit;display:grid;place-items:center;opacity:1!important;transition:none!important}
#py-picture-game .py-hunt-image>button:focus-visible:not(.py-spot-found){outline:3px solid #377e6b!important;outline-offset:-4px!important}
#py-picture-game .py-hunt-image>.py-spot-found,#py-picture-game .py-hunt-image>.py-spot-found:hover{background:#d9efc845!important;border:3px solid #4c9d76!important;box-shadow:0 0 0 4px #fff9,0 0 25px #62ad6d44!important;color:#28735b!important}#py-picture-game .py-spot-found>span{display:flex;flex-direction:column;align-items:center;justify-content:center;font:42px Andika,sans-serif;background:#fffffff0;padding:4px 12px;border-radius:14px;box-shadow:0 3px 14px #244c2e14}#py-picture-game .py-spot-found small{font:12px inherit;letter-spacing:.06em}
/* Quest: one large picture card, four clear tone choices, a route through the sky. */
#py-picture-game .py-quest-layout{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;max-width:880px;margin:0 auto}#py-picture-game .py-quest-card{position:relative;text-align:center;isolation:isolate;padding:22px 18px 12px;min-height:355px;border-radius:24px;background:linear-gradient(#e0ebf9,#f6f9fe);overflow:hidden}#py-picture-game .py-quest-card::before{content:'';position:absolute;inset:35px 25px;background:radial-gradient(circle,#fff9,transparent 70%);z-index:-1}#py-picture-game .py-quest-card .py-kicker{font-size:12px;margin-bottom:12px;color:#7893b4}#py-picture-game .py-quest-answer>p{color:#8290a5;font-size:16px}#py-picture-game .py-quest-answer{padding:12px 0}#py-picture-game .py-cloud{position:absolute;background:#fff9;width:110px;height:28px;border-radius:50px;z-index:-1;bottom:32px;left:-20px}#py-picture-game .py-cloud::before{content:'';position:absolute;background:inherit;width:50px;height:50px;border-radius:50%;left:24px;bottom:0}#py-picture-game .py-cloud-two{left:auto;right:-45px;bottom:100px;transform:scale(.8)}
#py-picture-game .py-picture-card{margin:auto;width:150px;height:205px;position:relative;background:#fff;border-radius:12px;overflow:hidden}#py-picture-game .py-picture-card img{height:100%;width:100%;object-fit:contain;display:block}#py-picture-game .py-picture-card>strong{font-size:100px}#py-picture-game .py-picture-focus{position:relative;width:200px;margin:10px auto 0;transform:rotate(-3deg);padding:10px 5px 6px;background:white;border-radius:17px;box-shadow:0 12px 26px #354e7326,3px 3px 0 #fff8}#py-picture-game .py-picture-focus .py-picture-card{width:175px;height:240px}#py-picture-game .py-picture-syllable{font:27px Andika,sans-serif!important;margin:8px 0!important;color:var(--pg-ink)}#py-picture-game .py-hide-standard .py-picture-card img{position:absolute;width:100%;height:auto;top:-43%;left:0}#py-picture-game .py-hide-standard .py-picture-card{height:145px}#py-picture-game .py-hide-standard.py-picture-focus .py-picture-card{height:200px}
#py-picture-game .py-picture-tones{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px auto 0}#py-picture-game .py-picture-tones>button{position:relative;padding:16px 10px 12px;display:flex;flex-direction:column;align-items:center;border:1px solid color-mix(in srgb,var(--tone) 32%,#fff);border-radius:17px;background:#fff;box-shadow:0 4px 0 color-mix(in srgb,var(--tone) 17%,#fff);font-size:17px}#py-picture-game .py-picture-tones>button:hover{background:color-mix(in srgb,var(--tone) 10%,white);border-color:var(--tone);box-shadow:0 6px 14px color-mix(in srgb,var(--tone) 14%,transparent)}#py-picture-game .py-picture-tones svg{width:100%;max-width:90px;height:48px;display:block;margin:2px 0 8px}#py-picture-game .py-tone-number{font:11px Arial;color:var(--tone);letter-spacing:.08em;align-self:flex-start}#py-picture-game .py-quest-answer .py-picture-tones{grid-template-columns:repeat(2,minmax(0,1fr));max-width:340px;margin:22px 0}#py-picture-game .py-quest-answer .py-picture-tones button{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:2px 8px;padding:12px}#py-picture-game .py-quest-answer .py-tone-number{width:100%;text-align:left}#py-picture-game .py-quest-answer .py-picture-tones svg{width:65px;height:40px;margin:0}
/* Match: paper cards above a row of four coloured tone docks. */
#py-picture-game .py-match-title{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:0 6px}#py-picture-game .py-match-title h3{font-size:27px;margin-bottom:0}#py-picture-game .py-match-count{font:38px Andika,sans-serif;color:#bc8177}#py-picture-game .py-match-count small{font-size:15px;color:#ac9791}#py-picture-game .py-match-instruction{font-size:15px;color:#9a8780;margin:8px 6px 18px}#py-picture-game .py-match-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px auto 18px;max-width:900px;padding:8px 4px 18px;border-bottom:1px dashed #e4cbc3}#py-picture-game .py-match-cards>button{padding:16px 8px 10px;background:white;border:1px solid #e8d8d0;position:relative;min-width:0;border-radius:17px;box-shadow:0 5px 0 #efdfd8,0 6px 18px #73463b08;transition:transform .15s,border-color .15s}#py-picture-game .py-match-cards>button:hover{transform:translateY(-3px)}#py-picture-game .py-match-cards>button[aria-pressed=true]{border-color:#c38c69;box-shadow:0 0 0 3px #f4ddc7,0 7px 0 #e8c9b3;background:#fffdf7;transform:translateY(-4px)}#py-picture-game .py-card-pin{display:block;position:absolute;top:-7px;left:calc(50% - 18px);width:36px;height:14px;border-radius:3px;background:#e5c7a7b3;transform:rotate(-5deg)}#py-picture-game .py-match-cards .py-picture-card{width:100%;max-width:145px;height:190px}#py-picture-game .py-match-cards .py-picture-syllable{font-size:25px!important}#py-picture-game .py-card-prompt{font-size:12px;color:#b6a39a;letter-spacing:.04em}#py-picture-game .py-card-solved{opacity:1!important;border-color:#b9d4be!important;background:#f4faf2!important;box-shadow:0 4px 0 #d7e6d7!important;transform:none!important}#py-picture-game .py-card-solved .py-picture-card{opacity:.7}#py-picture-game .py-solved{display:block;color:#528060;font-size:14px}#py-picture-game .py-match-sound{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;min-height:44px}#py-picture-game .py-tone-dock{max-width:720px;margin:auto}#py-picture-game .py-tone-dots{height:8px;font:8px Arial;color:var(--tone);margin-top:6px}
#py-picture-game .py-picture-hint{font:23px Andika,sans-serif;color:var(--pg-accent);min-height:0}#py-picture-game #py-picture-status{min-height:28px;color:var(--pg-accent);font-size:16px;text-align:center;line-height:1.6;margin:18px 0 0;padding:0}#py-picture-game #py-picture-status.has-message{padding:10px 18px;background:var(--pg-light);border:1px solid var(--pg-line);border-radius:12px}#py-picture-game .py-picture-finish{padding:45px 25px;text-align:center;background:linear-gradient(135deg,var(--pg-light),#fff)}#py-picture-game .py-finish-mark{font-size:78px;color:#d7a350}#py-picture-game .py-picture-finish .py-picture-primary{margin:24px auto 12px}
@media(max-width:760px){html body.learning-page #game-hub.py-games-added{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:185px!important}#py-picture-game .py-picture-bar{padding:5px 0 15px;gap:5px}#py-picture-game .py-picture-bar h2{font-size:21px}#py-picture-game .py-picture-bar button{font-size:13px;padding:8px 4px}#py-picture-game .py-picture-play{padding:16px 12px;border-radius:21px}#py-picture-game .py-picture-setup{grid-template-columns:1fr;border-radius:21px}#py-picture-game .py-setup-art{padding:24px 20px 20px}#py-picture-game .py-setup-art>:is(svg,img){height:130px;margin:10px auto;width:180px}#py-picture-game .py-setup-art h3{font-size:24px;margin:0}#py-picture-game .py-setup-art>p{font-size:15px;margin:8px 0 0}#py-picture-game .py-setup-options{padding:22px 18px}#py-picture-game fieldset label{padding:10px 7px;font-size:15px}#py-picture-game label{font-size:15px;flex-wrap:wrap}#py-picture-game .py-picture-progress{margin-bottom:18px;gap:10px}#py-picture-game .py-route{gap:4px;max-width:70%}#py-picture-game .py-route span{width:12px;height:12px;font-size:0}#py-picture-game .py-route .is-done{font-size:10px}#py-picture-game .py-progress-caption{font-size:12px}#py-picture-game .py-hunt-layout{grid-template-columns:1fr;gap:16px}#py-picture-game .py-clue{display:grid;grid-template-columns:75px 1fr;gap:4px 14px;padding:2px 6px;align-items:center}#py-picture-game .py-clue>.py-kicker,#py-picture-game .py-clue>h3{grid-column:2;margin:0}#py-picture-game .py-clue>h3{font-size:22px}#py-picture-game .py-clue>.py-target{grid-column:1;grid-row:1 / span 3;width:70px;height:75px;margin:0;border-radius:19px}#py-picture-game .py-letter,#py-picture-game .py-ear{font-size:50px}#py-picture-game .py-clue>p{grid-column:2;font-size:13px;max-width:none;margin:2px 0 4px}#py-picture-game .py-clue>.py-listen,#py-picture-game .py-clue>.py-hint,#py-picture-game .py-clue>.py-picture-primary{grid-column:1 / -1;justify-self:center;margin:8px 0 0}#py-picture-game .py-scene-frame{padding:7px;border-radius:17px}#py-picture-game .py-scene-top{font-size:11px;padding:6px 6px 10px}#py-picture-game .py-scene-caption{font-size:12px}#py-picture-game .py-spot-found>span{font-size:28px;padding:3px 8px}#py-picture-game .py-spot-found small{font-size:10px}#py-picture-game .py-quest-layout{grid-template-columns:1fr;gap:18px}#py-picture-game .py-quest-card{min-height:0;padding:15px 15px 12px;max-width:100%}#py-picture-game .py-quest-card .py-kicker{margin-bottom:5px}#py-picture-game .py-picture-focus{width:150px;padding:6px;margin:6px auto;transform:rotate(-3deg)}#py-picture-game .py-picture-focus .py-picture-card{width:132px;height:180px}#py-picture-game .py-picture-focus .py-picture-syllable{font-size:24px!important;margin:3px 0!important}#py-picture-game .py-hide-standard.py-picture-focus .py-picture-card{height:145px}#py-picture-game .py-quest-answer{padding:0 4px;text-align:center}#py-picture-game .py-quest-answer>.py-kicker,#py-picture-game .py-quest-answer>p{display:none}#py-picture-game .py-quest-answer>h3{font-size:23px;margin:0 0 12px}#py-picture-game .py-quest-answer .py-picture-tones{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none;margin:18px 0 12px;gap:7px}#py-picture-game .py-quest-answer .py-picture-tones button{flex-direction:column;gap:0;font-size:14px;padding:10px 4px}#py-picture-game .py-quest-answer .py-picture-tones svg{width:100%;height:32px;margin:3px 0}#py-picture-game .py-picture-primary{margin:12px auto}#py-picture-game .py-match-title{padding:0 2px;gap:10px}#py-picture-game .py-match-title h3{font-size:21px}#py-picture-game .py-match-title .py-kicker{font-size:11px}#py-picture-game .py-match-count{font-size:30px;white-space:nowrap}#py-picture-game .py-match-count small{font-size:12px}#py-picture-game .py-match-instruction{font-size:13px;margin:8px 2px 14px}#py-picture-game .py-match-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 13px;margin:14px 0;padding:8px 3px 18px}#py-picture-game .py-match-cards>button{padding:10px 6px 6px;border-radius:14px}#py-picture-game .py-match-cards .py-picture-card{width:90px;height:115px}#py-picture-game .py-match-cards.py-hide-standard .py-picture-card{height:85px}#py-picture-game .py-match-cards .py-picture-syllable{font-size:21px!important;margin:2px 0!important}#py-picture-game .py-card-prompt{font-size:10px}#py-picture-game .py-match-sound{gap:4px;min-height:40px}#py-picture-game .py-listen{font-size:14px;padding:8px 12px;min-height:40px}#py-picture-game .py-picture-tones{gap:8px;margin-top:14px}#py-picture-game .py-picture-tones>button{padding:10px 5px 8px;font-size:14px;border-radius:13px}#py-picture-game .py-picture-tones svg{height:30px;margin:3px 0}#py-picture-game .py-tone-number{font-size:9px}#py-picture-game #py-picture-status{font-size:14px;margin-top:14px}#py-picture-game #py-picture-status.has-message{padding:8px}#py-picture-game .py-picture-hint{font-size:20px}#py-picture-game .py-tone-dots{height:4px;font-size:6px;margin-top:3px}}
@media(prefers-reduced-motion:reduce){#py-picture-game *{transition:none!important;animation:none!important}}
/* Keep all input locations hidden, including while tabbing or hovering. */
#py-picture-game .py-hunt-image>button:focus-visible:not(.py-spot-found){outline:0!important}
#py-picture-game .py-hunt-image:has(>button:focus-visible){outline:3px solid #397f6b;outline-offset:4px}
#py-picture-game .py-scene-frame{max-width:650px;width:100%;justify-self:end}
#py-picture-game select{border:1px solid var(--pg-line)!important;border-radius:12px!important;background-color:#fff!important;box-shadow:none!important;outline-offset:3px}
@media(min-width:761px){#py-picture-game[data-game=match] .py-picture-play{padding:18px 26px}#py-picture-game .py-match-cards{margin:18px auto 12px;padding-bottom:15px}#py-picture-game .py-match-cards .py-picture-card{height:145px;max-width:110px}#py-picture-game .py-match-cards.py-hide-standard .py-picture-card{height:115px}#py-picture-game .py-match-cards>button{padding:12px 8px 8px}#py-picture-game .py-match-cards .py-picture-syllable{font-size:23px!important;margin:4px 0!important}#py-picture-game .py-tone-dock .py-picture-tones{margin-top:14px}#py-picture-game .py-tone-dock .py-picture-tones>button{padding-top:10px}#py-picture-game .py-tone-dock .py-picture-tones svg{height:36px;margin:0 0 4px}}

#game-hub [data-py-open] .hub-art img{display:block;width:100%;height:100%;object-fit:contain}#py-picture-game .py-generated-icon{display:block;object-fit:contain}#py-picture-game .py-bar-title{display:flex;align-items:center;gap:10px}#py-picture-game .py-bar-title>img{width:48px;height:42px}#py-picture-game .py-setup-art>img{object-fit:contain}
@media(max-width:760px){#py-picture-game .py-bar-title{gap:5px}#py-picture-game .py-bar-title>img{width:35px;height:30px}#py-picture-game .py-picture-bar h2{font-size:19px}}

/* Listening comes first. A full, upright picture fills its own frame; no tilted postcard or answer before listening. */
#py-picture-game[data-game=quest] .py-quest-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;max-width:850px;align-items:stretch}
#py-picture-game[data-game=quest] .py-quest-card{min-height:0;padding:0;background:#fff;border:1px solid var(--pg-line);border-radius:18px;display:flex;align-items:center;justify-content:center;overflow:hidden}
#py-picture-game[data-game=quest] .py-quest-card::before{display:none}
#py-picture-game[data-game=quest] .py-picture-focus{width:100%;height:100%;margin:0;padding:0;background:#fff;border-radius:0;box-shadow:none;transform:none;display:flex;flex-direction:column;align-items:center;justify-content:center}
#py-picture-game[data-game=quest] .py-picture-focus .py-picture-card{width:100%;height:auto;aspect-ratio:1064/1478;max-height:400px;border-radius:0;flex:1 1 auto}
#py-picture-game[data-game=quest] .py-picture-focus .py-picture-card img{width:100%;height:100%;position:static;object-fit:contain;display:block}
#py-picture-game[data-game=quest] .py-picture-focus .py-picture-syllable{flex:none;width:100%;text-align:center;background:var(--pg-light);padding:10px 0;margin:0!important;min-height:54px;font-size:27px!important}
#py-picture-game[data-game=quest] .py-quest-answer{display:flex;flex-direction:column;justify-content:center;padding:18px 0}
#py-picture-game[data-game=quest] .py-quest-answer>.py-listen{align-self:flex-start}
#py-picture-game[data-game=quest] .py-quest-answer .py-picture-tones{width:100%;max-width:none}
#py-picture-game[data-game=quest] .py-quest-next{min-height:66px}
#py-picture-game .py-letter,#py-picture-game .py-picture-syllable,#py-picture-game .py-picture-hint,#py-picture-game .py-spot-found>span{font-family:Andika,'Noto Sans',sans-serif}
@media(max-width:760px){#py-picture-game[data-game=quest] .py-quest-layout{grid-template-columns:1fr;gap:16px}#py-picture-game[data-game=quest] .py-picture-focus .py-picture-card{max-height:300px;aspect-ratio:1064/1478;width:100%}#py-picture-game[data-game=quest] .py-quest-card{width:100%;border-radius:15px}#py-picture-game[data-game=quest] .py-quest-answer{padding:0;text-align:center}#py-picture-game[data-game=quest] .py-quest-answer>.py-listen{align-self:center}#py-picture-game[data-game=quest] .py-quest-next{min-height:0}#py-picture-game[data-game=quest] .py-picture-focus .py-picture-syllable{font-size:24px!important;min-height:46px;padding:7px 0}#py-picture-game[data-game=quest] .py-quest-answer .py-picture-tones{margin:16px 0 0}#py-picture-game[data-game=quest] .py-quest-answer h3{font-size:23px}}
/* Fit the frame to the original card ratio instead of centering a smaller postcard inside a large box. */
#py-picture-game[data-game=quest] .py-quest-layout{align-items:center}
#py-picture-game[data-game=quest] .py-quest-card{width:100%;max-width:288px;aspect-ratio:1064/1478;max-height:400px;border:0;justify-self:center}
#py-picture-game[data-game=quest] .py-picture-focus .py-picture-card{width:100%;height:100%;max-height:none;aspect-ratio:auto;min-height:0}
#py-picture-game[data-game=quest] .py-picture-focus.py-answer-revealed .py-picture-card{flex:1 1 0}
@media(max-width:760px){#py-picture-game[data-game=quest] .py-quest-card{max-width:216px;max-height:300px}#py-picture-game[data-game=quest] .py-picture-focus .py-picture-card{max-height:none;width:100%;height:100%}}

/* Actual textbook scenes; a quiet selector in textbook order. */
#py-picture-game .py-hunt-setup{display:block;background:#fff}
#py-picture-game .py-hunt-setup>.py-setup-art{display:none}
#py-picture-game .py-hunt-setup>.py-setup-options{padding:24px 30px;gap:6px}
#py-picture-game .py-hunt-setup>.py-setup-options>fieldset{max-width:420px;margin-bottom:4px}
#py-picture-game .py-range-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0}
#py-picture-game .py-range-heading strong{font-size:19px;font-weight:600}
#py-picture-game .py-range-heading button{font-size:14px;min-height:36px;padding:4px 10px;border-radius:7px;margin-left:6px}
#py-picture-game fieldset.py-range-family{display:grid;grid-template-columns:155px 1fr;align-items:start;gap:12px;margin:0;padding:10px 0;border-bottom:1px solid #edf0ec}
#py-picture-game fieldset.py-range-family legend{display:contents;font-size:15px;color:#55665b;letter-spacing:normal}
#py-picture-game .py-range-family>div{display:flex;flex-wrap:wrap;gap:6px}
#py-picture-game .py-range-family label{flex:0 0 auto!important;justify-content:flex-start;padding:6px 10px!important;font-size:17px;line-height:1.3;border:1px solid #e0e7e1;border-radius:7px;margin:0;gap:7px;white-space:nowrap}
#py-picture-game .py-range-family label:has(input:checked){border-color:#71937b;background:#eff5ef}
#py-picture-game .py-range-family input{width:17px;height:17px}
#py-picture-game .py-range-family span{font-family:Andika,'Century Gothic',sans-serif}
#py-picture-game .py-range-count{font-size:14px;color:#607066;margin:8px 0}
#py-picture-game .py-hunt-image .py-scene-token{font-family:Andika,'Century Gothic',sans-serif;font-weight:400;font-size:clamp(26px,4.2vw,50px);line-height:1.2;color:#276b79!important;background:transparent;padding:0;border:0;box-shadow:none;text-shadow:0 1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff;white-space:nowrap;pointer-events:none}
#py-picture-game .py-hunt-image>.py-spot-found .py-scene-token{color:#21583d!important;font-weight:600;background:#ffffffc9;border-radius:7px;padding:2px 7px;box-shadow:none}
#py-picture-game .py-hunt-image>.py-spot-found,#py-picture-game .py-hunt-image>.py-spot-found:hover{border:2px solid #669978!important;border-radius:10px;box-shadow:none!important;background:#e0f2dd55!important}
#py-picture-game .py-scene-frame{box-shadow:none;background:#fff;padding:10px}
#py-picture-game .py-picture-play{background:#fff}
@media(max-width:600px){#py-picture-game .py-hunt-setup>.py-setup-options{padding:18px 14px}#py-picture-game fieldset.py-range-family{grid-template-columns:1fr;gap:7px}#py-picture-game .py-range-family label{font-size:16px;padding:8px!important}#py-picture-game .py-hunt-image .py-scene-token{font-size:clamp(21px,7vw,32px)}}


/* Keep letters legible inside the smaller, object-specific hit regions. */
#py-picture-game .py-hunt-image .py-scene-token{font-size:clamp(23px,3vw,36px)}
@media(max-width:600px){#py-picture-game .py-hunt-image .py-scene-token{font-size:clamp(18px,5.7vw,26px)}}

/* Keep letters legible inside the smaller, object-specific hit regions. */
#py-picture-game .py-hunt-image .py-scene-token{font-size:clamp(23px,3vw,36px)}
@media(max-width:600px){#py-picture-game .py-hunt-image .py-scene-token{font-size:clamp(18px,5.7vw,26px)}}
/* Tap the card or the compact speaker beside the listening question. */
#py-picture-game[data-game=quest] button.py-quest-card{padding:0;background:transparent;appearance:none;cursor:pointer;color:inherit;overflow:hidden;display:block}
#py-picture-game[data-game=quest] .py-quest-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;margin:0 0 16px}
#py-picture-game[data-game=quest] .py-quest-heading h3{margin:0;text-align:left}
#py-picture-game[data-game=quest] .py-quest-speaker{display:inline-flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:46px;min-height:46px;padding:10px;border:1px solid #d6e3dc;border-radius:50%;background:#eff5f0;color:#356950;cursor:pointer;box-shadow:none}
#py-picture-game[data-game=quest] .py-quest-speaker svg{width:24px;height:24px}
#py-picture-game[data-game=quest] .py-quest-speaker:hover{background:#e1eee4}
#py-picture-game[data-game=quest] button.py-quest-card:focus-visible,#py-picture-game[data-game=quest] .py-quest-speaker:focus-visible{outline:3px solid #d79545;outline-offset:4px}
/* Center the twelve steps; leave more air between the tone choices. */
#py-picture-game[data-game=quest] .py-picture-progress{justify-content:center}
#py-picture-game[data-game=quest] .py-route{justify-content:center;max-width:100%}
#py-picture-game[data-game=quest] .py-progress-caption{display:none}
#py-picture-game[data-game=quest] .py-quest-answer{align-self:stretch;justify-content:flex-start;padding:30px 0 0}
#py-picture-game[data-game=quest] .py-quest-heading{margin:0}
#py-picture-game[data-game=quest] .py-quest-answer .py-picture-tones{margin:44px 0 0;gap:24px 22px}
@media(max-width:760px){
#py-picture-game[data-game=quest] .py-route{gap:4px}
#py-picture-game[data-game=quest] .py-route span{width:18px;height:18px;font-size:10px}
#py-picture-game[data-game=quest] .py-quest-answer{padding:0}
#py-picture-game[data-game=quest] .py-quest-answer .py-picture-tones{margin:24px 0 0;gap:12px}
}

