/* One canonical currency image throughout the game. */
.coin,.coin-price .coin{display:inline-block!important;background:transparent url('assets/heckler-coin.png') center/contain no-repeat!important;border:0!important;box-shadow:none!important;color:transparent!important;font-size:0!important;font-style:normal;aspect-ratio:1;width:24px;height:24px;min-width:24px;flex-shrink:0}
.coin::before,.coin::after{display:none!important}.reward-coins .coin{width:74px;height:74px}.coin-price{vertical-align:middle}
/* The balance belongs in the home header; the Parlour keeps its own nav art. */
.dashboard header #wallet{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:5px 9px;background:#fff7df;border:1px solid #c6a75c;border-radius:22px;white-space:nowrap}
.dashboard #wallet #coins{font-size:16px;font-variant-numeric:tabular-nums}.dashboard #wallet>small{font-size:10px;color:#776749}
@media(max-width:420px){.dashboard .brand>span{display:none}.dashboard header{gap:6px}.dashboard header #wallet{padding:5px 7px}}
/* The full chain is optional reference material, never a fixed large header. */
body.play-screen #merge-chain-strip{display:grid;grid-template-columns:minmax(0,1fr) 82px;min-height:64px;align-items:center;padding:2px 5px;gap:2px}
body.play-screen .merge-chain-heading{display:contents}
body.play-screen #merge-chain-label,body.play-screen #merge-chain-key{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.play-screen #merge-chain-button{grid-column:2;grid-row:1;align-self:start;min-height:28px;font-size:10px;margin:0;padding:3px 5px}
body.play-screen #merge-chain-collapse{grid-column:2;grid-row:1;align-self:end;min-width:44px;min-height:28px;margin:0;border:0;border-radius:6px;background:#e4e6d3;color:#315c49;font-size:20px;line-height:1;cursor:pointer}
body.play-screen .merge-chain-scroll{grid-column:1;grid-row:1}
body.play-screen #merge-chain-items{grid-template-columns:repeat(10,minmax(42px,1fr));min-width:500px;gap:4px}
body.play-screen .chain-specimen{grid-template-rows:30px minmax(14px,auto);min-width:40px;padding:7px 1px 0;border-radius:6px}
body.play-screen .chain-specimen canvas{width:48px;height:30px}
body.play-screen .chain-animal-name,body.play-screen .chain-specimen strong{font-size:10px;line-height:14px}
body.play-screen .chain-step:not(:last-child)::after{font-size:16px;right:-5px;top:18px}
body.play-screen .chain-current-marker{border-left-width:5px;border-right-width:5px;border-bottom-width:8px}
body.play-screen .chain-target-marker{width:8px;height:8px}
body.play-screen #merge-chain-strip.is-collapsed{min-height:38px;grid-template-columns:minmax(0,1fr) auto auto}
body.play-screen #merge-chain-strip.is-collapsed #merge-chain-label{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;font-size:12px;grid-column:1}
body.play-screen #merge-chain-strip.is-collapsed .merge-chain-scroll{display:none}
body.play-screen #merge-chain-strip.is-collapsed #merge-chain-button{grid-column:2;align-self:center;min-height:34px}
body.play-screen #merge-chain-strip.is-collapsed #merge-chain-collapse{grid-column:3;align-self:center;min-height:34px}
/* Always-visible balance; prices belong on the undo button before activation. */
body.play-screen .hud{flex-wrap:wrap;gap:8px;justify-content:space-between}
.play-coin-balance{display:inline-flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap}
body.play-screen .play-coin-balance strong{font-size:17px}.play-coin-balance small{font-size:9px}
body.play-screen #undo-v5{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:54px;min-height:44px;padding:4px;font-size:11px;flex:1;background:#eee5cf;color:#315c49;border:1px solid #c4b58b;border-radius:7px}
body.play-screen #undo-v5[hidden]{display:none!important}#undo-v5 small{font-size:9px;line-height:1.1;font-weight:600}
body.play-screen #puzzle-actions{min-height:48px;gap:3px}
.undo-options,.comment-fact{grid-column:1/-1;width:100%;max-width:540px;margin:auto;line-height:1.5}
.undo-options .action{display:block;width:100%;margin:14px 0}.undo-pass-status{padding:12px;border:1px solid #9dac80;border-radius:9px;background:#e8eedc}.undo-options .coin-price{justify-content:start}
.comment-fact h3{font-size:22px;color:#315c49}.comment-fact p{font-size:16px}.comment-fact .fact-aside{padding:12px;background:#efe7ce;border-radius:9px;font-size:14px}.comment-fact a{overflow-wrap:anywhere}
/* The tail belongs on the side facing Heckler, with room for the entire copy. */
body.play-screen #play-speaker{align-items:center;gap:12px}
body.play-screen #play-quip{position:relative;max-height:none;height:auto;overflow:visible;min-width:0;white-space:normal;overflow-wrap:anywhere;margin:0;cursor:default}
body.play-screen #play-quip::before{content:'';position:absolute;left:-8px;top:calc(50% - 7px);width:14px;height:14px;background:inherit;border:0;border-left:1px solid #c8ac63;border-bottom:1px solid #c8ac63;transform:rotate(45deg)}
body.play-screen #play-quip[data-kind="fact"]{cursor:pointer;background:#edf1df;border-color:#a1b181}
body.play-screen #play-quip[data-kind="fact"]::after{content:'↗';display:inline-block;margin-left:5px;font-weight:850;color:#315c49}
body.play-screen #play-quip:focus-visible{outline:3px solid #397d6b;outline-offset:3px}
@media(min-width:851px),(min-width:600px) and (min-aspect-ratio:11/10){
 body.play-screen .board{column-gap:10px;padding:4px 6px;row-gap:5px}
 body.play-screen #play-sidebar-content{gap:8px;padding:0 2px 3px}
 body.play-screen .hud{order:-1;min-height:54px;padding:1px 2px;gap:4px}
 body.play-screen .hud strong{font-size:20px}.play-screen .hud .inline-next{gap:2px}
 body.play-screen .hud .inline-next canvas{width:48px;height:26px}body.play-screen .hud #queue-button{min-height:34px;padding:3px;font-size:9px}
 body.play-screen .goal-card{padding:7px}
 body.play-screen .goal-card #goal-title{font-size:12px;line-height:1.3;margin:5px 0 7px}
 body.play-screen #goal-context{font-size:10px;padding-right:31px}
 body.play-screen #goal-details-button{min-width:32px;min-height:32px;font-size:18px;right:2px;top:2px}
 body.play-screen .goal-card .goal-order{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:46px auto;gap:1px 3px;min-height:82px;padding:5px 6px}
 body.play-screen .goal-card .goal-order>b{grid-column:1;grid-row:1;align-self:start}
 body.play-screen .goal-card .goal-order>canvas{grid-column:2;grid-row:1;width:100%;height:46px;object-fit:contain}
 body.play-screen .goal-card .goal-order>span{grid-column:1/-1;grid-row:2;text-align:center}
 body.play-screen .goal-card .goal-order>span small{font-size:12px;line-height:1.3}
 body.play-screen .goal-card .goal-order .goal-rule{display:none}
 body.play-screen .goal-card .goal-order.quantity-goal>span strong{display:block;font-size:11px}
 body.play-screen .coach canvas{width:65px;height:78px}
 body.play-screen .coach .speech-bubble{font-size:12px!important;line-height:1.4;padding:9px!important}
 body.play-screen #play-sidebar .mini-row{flex-wrap:wrap}
 body.play-screen #play-sidebar #pause-button,body.play-screen #play-sidebar #help-button{font-size:10px;min-width:44px}
 body.play-screen #play-tools-button{flex:0 0 36px;min-width:36px}
}
@media(max-width:599px){
 body.play-screen .hud{gap:5px;padding:0 5px}
 body.play-screen .hud strong{font-size:17px}body.play-screen .hud .inline-next canvas{width:44px;height:22px}
 body.play-screen .hud #queue-button{font-size:9px;padding:3px}
 body.play-screen .coach{max-height:none;overflow:visible}
 body.play-screen #play-speaker{min-height:48px}
 body.play-screen .coach canvas{width:35px;height:43px}
 body.play-screen .coach .speech-bubble{font-size:11px!important;line-height:1.25;padding:5px!important}
}
body.play-screen.large-text .chain-animal-name{font-size:12px;line-height:16px}
body.play-screen.large-text .goal-card .goal-order>span small{font-size:14px;line-height:1.4}

body.play-screen .has-output-goals .hud>div:has(#score){display:none}

/* Goals keep their natural height. Only the whole play layout may scroll. */
@media(min-width:851px),(min-width:600px) and (min-aspect-ratio:11/10){
 body.play-screen #play-sidebar{align-self:start;overflow:visible}
 body.play-screen #play-sidebar-content{display:flex;flex:0 0 auto;flex-direction:column;height:auto;overflow:visible;scrollbar-gutter:auto}
 body.play-screen #play-sidebar-content>.hud{order:-1}
 body.play-screen #play-sidebar-content>.goal-card{flex:none;overflow:visible;height:auto}
 body.play-screen #play-sidebar-content>.coach{height:auto;max-height:none;overflow:visible}
 body.play-screen .goal-card>div{height:auto;min-height:0}
 body.play-screen #goal-context,body.play-screen #goal-title,body.play-screen #goal-progress{flex:none}
 body.play-screen #goal-list{flex-flow:column nowrap;flex:none;width:100%;height:auto;max-height:none;overflow:visible}
}
/* APK portrait keeps the actual animal-specific task under each target image. */
@media(max-width:850px) and (max-aspect-ratio:11/10),(max-width:599px){
 body.play-screen .goal-card{grid-template-rows:17px auto;min-height:96px}
 body.play-screen #goal-list{align-items:stretch}
 body.play-screen .goal-card .goal-order{grid-template-columns:16px minmax(0,1fr);grid-template-rows:30px auto;min-height:70px;gap:2px;padding:3px}
 body.play-screen .goal-card .goal-order>b{grid-column:1;grid-row:1;align-self:start;width:15px;height:18px;font-size:9px}
 body.play-screen .goal-card .goal-order>canvas{grid-column:2;grid-row:1;width:100%;height:30px}
 body.play-screen .goal-card .goal-order>span{display:block;grid-column:1/-1;grid-row:2;text-align:center}
 body.play-screen .goal-card .goal-order>span strong,body.play-screen .goal-card .goal-order .goal-rule{display:none}
 body.play-screen .goal-card .goal-order>span small{display:block;font-size:10px;line-height:1.2;margin:0}
 body.play-screen .goal-card .goal-order::after{display:none}
 body.play-screen .goal-card .goal-order.quantity-goal,body.play-screen .goal-card .goal-order.clear-goal{flex:1;grid-template-columns:20px minmax(0,1fr);padding:3px}
 body.play-screen .goal-card .goal-order.quantity-goal>span strong,body.play-screen .goal-card .goal-order.clear-goal>span strong{display:block;font-size:10px;line-height:1.2}
 body.play-screen .goal-card .goal-order.quantity-goal>canvas{width:100%;height:30px}
 body.play-screen .goal-card:has(#goal-list[hidden]){min-height:60px}
}
