/* Discovery Games expansion — Discovery Patch colours, touch accessibility and calm pacing */
.discovery-games-page .game-section[hidden],.discovery-games-page .game-picker-card[hidden]{display:none!important}
.game-hub-tools{display:flex;flex-wrap:wrap;gap:10px;margin:23px 0 27px}
.game-filter{border:1.5px solid #b9c5a1;border-radius:24px;background:#fffdf6;color:#41502d;padding:11px 16px;min-height:48px;font:800 .91rem var(--body);cursor:pointer}
.game-filter.is-active,.game-filter[aria-pressed="true"]{background:#344f2a;border-color:#344f2a;color:#fff}
.game-filter span{font-size:.73rem;background:#e6c680;color:#333;padding:3px 7px;border-radius:99px;margin-left:5px}
.games-hub-note{color:#5e624f;font-size:1rem;margin:13px 0}
.game-back-link{display:inline-flex;align-items:center;color:#2c5130;font-size:.95rem;font-weight:900;margin-top:22px;border-bottom:2px solid #b4c39e;padding-bottom:5px;text-decoration:none}
.game-feature-title{font-size:clamp(1.25rem,2vw,1.58rem);line-height:1.32;margin:15px 0 18px;color:#334c28}
.game-hint{color:#5f5644;font-size:.96rem;line-height:1.55}
.game-answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:17px 0 12px}
.game-choice{min-height:63px;background:#fffdf7;border:2px solid #d9c9a5;color:#34432d;text-align:left;font:850 .96rem/1.35 var(--body);border-radius:16px;padding:13px 15px;cursor:pointer;transition:background .12s,border-color .12s}
.game-choice:hover:not(:disabled){background:#f0f6e9;border-color:#7e9e59}
.game-choice.is-correct{background:#ddedcf;border-color:#719257}
.game-choice.is-wrong{background:#f6e4d7;border-color:#b5805a}
.game-choice:disabled{cursor:default;opacity:.86}
.game-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:12px 0}
.game-row>.game-select{width:auto;flex:1;margin-bottom:0;min-width:170px}
.game-outline-btn{display:inline-flex;align-items:center;justify-content:center;min-height:45px;border:2px solid #8d9f77;border-radius:99px;background:#fffdf7;color:#31512d;font:850 .88rem var(--body);padding:10px 17px;cursor:pointer}
.game-outline-btn:hover{background:#ecf3e4}
.game-text-btn{border:0;background:transparent;color:#426338;text-decoration:underline;text-underline-offset:4px;font:850 .85rem var(--body);margin:13px 0 0 9px;padding:10px;cursor:pointer}
.game-nature-scene{position:relative;height:340px;overflow:hidden;border-radius:18px;background:#d9dcc9 url('assets/conservation.webp') center 55%/cover no-repeat;isolation:isolate;border:3px solid #ddc595;box-shadow:inset 0 0 0 1px #fff8}
.game-nature-scene:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 65%,#283d2040);pointer-events:none}
.spy-animal{position:absolute;transform:translate(-50%,-50%);z-index:1;display:grid;place-items:center;width:54px;height:54px;font-size:2.55rem;line-height:1;border:2px solid transparent;border-radius:50%;background:#fff8;cursor:pointer;filter:drop-shadow(0 2px 2px #20372180)}
.spy-animal:hover:not(:disabled),.spy-animal:focus-visible{background:#fcf3cb;border-color:#fff}
.spy-animal.is-found{background:#d6ecc4dd;border-color:#f3f4b3;box-shadow:0 0 0 3px #517c43}
.spy-animal.is-found:after{content:'✓';position:absolute;top:-10px;right:-8px;width:22px;height:22px;border-radius:50%;background:#3a5b31;color:white;font:900 14px/22px sans-serif}
.tracks-art,.sound-art,.vet-art,.everyday-art,.conservation-scene{min-height:105px;display:flex;align-items:center;justify-content:center;gap:18px;background:linear-gradient(130deg,#e1e9d4,#f9e6c9);border:1px solid #d8d8b7;border-radius:18px;font-size:3.5rem;line-height:1.2;letter-spacing:.09em;margin-bottom:15px}
.tracks-art span:nth-child(2){transform:rotate(-24deg)}.tracks-art span:nth-child(3){transform:rotate(13deg)}
.sound-art{background:linear-gradient(110deg,#e0ede8,#f8f0da)}
.grow-illustration{height:205px;display:grid;place-items:center;background:linear-gradient(#dce9df,#eff3d4);position:relative;overflow:hidden;border-radius:20px;border:2px solid #bccc9b}
.grow-illustration #grow-plant{position:relative;z-index:2;font-size:5rem;filter:drop-shadow(1px 2px 2px #6f5b2a3d)}
.grow-soil{height:52px;background:#a37e58;position:absolute;bottom:-17px;left:-10%;right:-10%;border-radius:50% 50% 0 0}
.sort-item{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;min-height:205px;background:linear-gradient(130deg,#f7eccc,#e3ead6);border-radius:21px;color:#40502c;font-size:1.2rem;font-weight:900}
.sort-item .sort-emoji{font-size:5rem;line-height:1.1}
.routine-list{list-style:none;padding:0!important;margin:5px 0 23px!important;display:grid;gap:8px}
.routine-step{display:flex;align-items:center;gap:9px;background:#fffaf0;border:1px solid #daceb7;border-radius:13px;padding:8px 10px;min-height:58px}
.routine-symbol{font-size:2rem;flex:0 0 42px;text-align:center}.routine-name{font-size:.95rem;font-weight:850;flex:1;line-height:1.25}
.routine-controls{display:flex;gap:4px}.routine-mini{min-width:34px;min-height:38px;border:1px solid #a8bc9a;background:#ecf3e4;border-radius:9px;color:#304e2a;font-size:1.2rem;font-weight:800;cursor:pointer}.routine-mini:disabled{opacity:.38;cursor:default}
.feeling-character{font-size:4rem;line-height:1;min-height:106px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(100deg,#fcebdc,#eef4e3)}
.spot-pictures{display:grid;grid-template-columns:1fr 1fr;gap:12px}.spot-pictures>div{min-width:0}.spot-pictures h3{margin:3px 0 7px}.spot-scene{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;border:2px solid #c6d1a9;border-radius:16px;background:linear-gradient(#c8e6eb 0%,#f4e6b9 64%,#a8c589 65%,#81a264 100%)}
.spot-scene:before{content:"";position:absolute;bottom:12%;left:-20%;right:-20%;height:40%;background:#8baf70;border-radius:50% 50% 0 0;opacity:.7}
.spot-tree{position:absolute;left:35%;top:30%;font-size:clamp(2.2rem,8vw,5rem);transform:translate(-50%,-50%);pointer-events:none}
.spot-grass{position:absolute;bottom:0;left:9%;font-size:clamp(.75rem,2.5vw,1.45rem);pointer-events:none}
.spot-symbol{position:absolute;transform:translate(-50%,-50%);font-size:clamp(1.3rem,3.2vw,2.1rem);border:2px solid transparent;min-width:32px;min-height:36px;display:grid;place-items:center;padding:1px;background:transparent;border-radius:50%}
button.spot-symbol{cursor:pointer}button.spot-symbol:hover:not(:disabled){background:#fff6;border-color:#fff}button.spot-symbol.is-found{border-color:#345b30;background:#e9f4c6bb}
.puzzle-layout{display:grid;grid-template-columns:1fr 145px;gap:17px;align-items:start}.puzzle-board{display:grid;aspect-ratio:1;gap:3px;background:#5e754d;border:5px solid #c7ab75;border-radius:16px;overflow:hidden}
.puzzle-tile{background-image:url('assets/explore-possum-branch.webp');background-repeat:no-repeat;border:2px solid transparent;border-radius:4px;cursor:pointer;min-height:0;padding:0;aspect-ratio:1}
.puzzle-tile.is-selected{border:5px solid #f8ce66;filter:brightness(1.15)}.puzzle-tile:hover:not(.is-selected){filter:brightness(1.09)}
.puzzle-preview img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;border:2px solid #d2b986}.puzzle-preview p{text-align:center;margin-top:8px}
.number-patch{min-height:190px;display:flex;align-items:center;align-content:center;justify-content:center;flex-wrap:wrap;gap:11px;padding:20px;background:linear-gradient(140deg,#eaf2e1,#fff3d8);border-radius:18px;border:1px solid #c5d3b1;margin:18px 0}
.number-patch span{font-size:clamp(2.1rem,4vw,3rem);line-height:1.25}
.game-safety-note{font-size:.79rem;color:#6c5d4b;margin-top:19px;line-height:1.5}
.story-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}.story-controls label{font-size:.83rem;font-weight:850;color:#465237}.story-controls .game-select{width:100%;margin:6px 0 10px;max-width:none}
.story-result{margin:18px 0 14px;padding:22px;min-height:150px;background:#fff8e9 url('assets/paper.webp') center/cover;border:1px solid #e2cca4;border-radius:17px;box-shadow:0 3px 12px #6f563711;white-space:pre-wrap}.story-result h3{font-family:var(--display);font-size:2rem;margin-bottom:13px;color:#3c542e}.story-result p{margin:12px 0;line-height:1.68}
.calm-corner{text-align:center;background:linear-gradient(130deg,#d9e9db,#f7f1dd);padding:20px;border:2px solid #c2d2bf;border-radius:22px;min-height:238px;display:grid;place-items:center;justify-content:center}
.calm-orb{display:grid;place-items:center;width:128px;height:128px;border-radius:50%;margin:5px auto 13px;background:#acc9a3;border:10px solid #e3f0db;box-shadow:0 8px 28px #516b4a25}
.calm-orb>span{font-size:3.6rem}.calm-corner.is-moving .calm-orb{animation:calmBreathe 8s ease-in-out infinite}
@keyframes calmBreathe{0%,100%{transform:scale(.9)}50%{transform:scale(1.16)}}.calm-corner p{font-size:.9rem;max-width:340px;margin:auto}
.trail-stops{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.trail-stop{flex:1 1 100px;min-width:100px;min-height:67px;padding:10px 8px;border:2px solid #d5d6bf;border-radius:13px;background:#f6f0e6;text-align:center;display:flex;align-items:center;justify-content:center;font-size:.79rem;font-weight:850;line-height:1.25;color:#4c5a3b}
.trail-stop.is-current{background:#f8e8b8;border-color:#d2a755}.trail-stop.is-done{background:#dceccf;border-color:#81a36b}
.trail-question-panel{border-top:1px dashed #c4ba9b;padding-top:13px}
/* Accessible focus & target sizes */
.discovery-games-page button:focus-visible,.discovery-games-page a:focus-visible,.discovery-games-page select:focus-visible{outline:3px solid #a16c19;outline-offset:3px}
.discovery-games-page button:disabled{cursor:default}
@media(max-width:720px){.spot-pictures{grid-template-columns:1fr 1fr;gap:7px}.spot-symbol{min-width:27px;min-height:30px}.puzzle-layout{grid-template-columns:1fr 108px}.game-answer-grid{grid-template-columns:1fr}.game-nature-scene{height:300px}.game-filter{padding:9px 12px;font-size:.8rem;min-height:44px}.game-hub-tools{gap:6px}}
@media(max-width:480px){.spot-pictures{grid-template-columns:1fr}.spot-scene{aspect-ratio:4/2.5}.spot-tree{font-size:3.5rem}.spot-symbol{font-size:1.8rem}.story-controls{grid-template-columns:1fr}.puzzle-layout{grid-template-columns:1fr}.puzzle-preview{display:flex;gap:12px;align-items:center}.puzzle-preview img{width:100px}.game-nature-scene{height:265px}.spy-animal{width:44px;height:44px;font-size:2rem}.trail-stop{flex-basis:85px;min-width:85px}}
@media(prefers-reduced-motion:reduce){.calm-corner.is-moving .calm-orb{animation:none!important}.game-choice{transition:none!important}}
@media print{body.printing-routine header,body.printing-routine footer,body.printing-routine .games-hero,body.printing-routine .games-picker-section,body.printing-routine .game-section,body.printing-routine .games-outro{display:none!important}body.printing-routine #day-game{display:block!important;padding:0!important}body.printing-routine #day-game .game-info,body.printing-routine #day-game .game-status-bar,body.printing-routine #day-game .game-play>*:not(.routine-list),body.printing-routine #day-game .routine-controls{display:none!important}body.printing-routine #day-game .routine-list{display:grid!important;gap:12px}body.printing-routine #day-game .game-shell{display:block!important;box-shadow:none;border:0}body.printing-routine #day-game .game-play{box-shadow:none;border:0}body.printing-routine #day-game .routine-step{page-break-inside:avoid;font-size:18pt}}
