/* V8.6.6 — color-rich but restrained game-first island, fits mobile and tablets. */
.z866-page{--z866-navy:#163e67;--z866-cream:#fff9e9;box-sizing:border-box;max-width:1450px;width:100%;margin-inline:auto;min-width:0;overflow-x:hidden;padding:clamp(10px,1.5vw,22px)!important;color:var(--z866-navy);border:3px solid #ffffffeb;border-radius:clamp(15px,2vw,25px);background:radial-gradient(circle at 90% 9%,#fff6dbaa,transparent 30%),linear-gradient(136deg,#e4f7ff 2%,#f5eaff 62%,#fff4d9);box-shadow:0 9px 35px #598db93a}
.z866-page *{box-sizing:border-box;min-width:0}
.z866-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.z866-head h1{font:1000 clamp(22px,3.3vw,39px)/1.07 system-ui,sans-serif;color:#174675;margin:5px 0;text-shadow:0 2px #fff}
.z866-head p{font:720 clamp(10px,1.3vw,14px)/1.35 system-ui,sans-serif;color:#3a6c90;margin:5px 0}
.z866-eyebrow{font:900 clamp(9px,1.1vw,12px) system-ui,sans-serif;color:#bd6b37;letter-spacing:.045em}
.z866-home{flex-shrink:0;border:2px solid white;border-radius:999px;padding:10px 13px;background:#fff;color:#24547a;font:900 clamp(10px,1.3vw,13px) system-ui;box-shadow:0 3px 0 #a7cde0}
.z866-summary,.z866-related{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 13px}
.z866-summary span{display:inline-flex;align-items:center;gap:5px;border:2px solid white;border-radius:12px;background:#fff9ebed;padding:8px 11px;color:#32678c;font:800 12px system-ui}
.z866-games{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(7px,1vw,15px)}
.z866-game-card{position:relative;min-height:clamp(190px,23vw,315px);overflow:hidden;border:4px solid #fff;border-radius:23px;display:flex;align-items:stretch;text-align:left;background:var(--z866-color);color:#fff;box-shadow:0 7px 19px #427a9a51;transition:transform .18s,box-shadow .18s}
.z866-game-card:hover,.z866-game-card:focus-visible{transform:translateY(-3px);box-shadow:0 11px 26px #477cb177}
.z866-game-bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:saturate(1.17)}
.z866-game-content{z-index:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;width:100%;padding:clamp(9px,1.25vw,19px);gap:5px;text-shadow:0 1px 4px #15365d88}
.z866-game-icon{font-size:clamp(35px,5vw,68px);line-height:1;filter:drop-shadow(0 6px 7px #132c4966);animation:z866-bob 3s ease-in-out infinite}
.z866-game-content>small{font:900 clamp(9px,1vw,12px) system-ui;letter-spacing:.05em}
.z866-game-content strong{font:1000 clamp(17px,2.2vw,26px)/1.02 system-ui}
.z866-game-description{font:700 clamp(10px,1.13vw,13px)/1.25 system-ui;color:#f5fbff}
.z866-play-pill{display:inline-flex;align-items:center;min-height:31px;background:linear-gradient(120deg,#ffdb7e,#ffbe8f);color:#604121;padding:7px 12px;border:2px solid white;border-radius:999px;font:900 clamp(10px,1vw,12px) system-ui;text-shadow:none}
.z866-best{color:#fff6c4}
.z866-related button,.z866-topline button{border:2px solid white;background:#fff;color:#285b7b;padding:9px 13px;border-radius:12px;font:900 12px system-ui;box-shadow:0 3px 0 #bedce7}
.z866-legal{font:650 11px/1.4 system-ui;color:#557390;margin:8px 0 0}
.z866-game-page{display:flex;flex-direction:column;gap:6px}
.z866-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:1px 3px}
.z866-topline span{font:1000 12px system-ui;color:#946221}
.z866-field{border:3px solid white;border-radius:20px;background:#f0faffad;padding:clamp(8px,1.5vw,16px);box-shadow:0 6px 19px #75abd53a}
.z866-field-label{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font:700 clamp(10px,1vw,13px) system-ui;color:#547598;margin-bottom:9px}
.z866-field-label b{font:1000 clamp(12px,1.5vw,17px) system-ui;color:#1d5680}
.z866-sky{background:linear-gradient(180deg,#a6e5ff,#ecfaff 70%,#cbf4d7)}
.z866-bird-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.z866-sky-tile{display:grid;place-items:center;min-height:clamp(45px,8vh,86px);border:2px solid #fffc;border-radius:15px;background:#ffffff72;font-size:clamp(27px,4.5vw,46px);box-shadow:inset 0 2px 7px #ffffff77}
.z866-bird-flying{background:#ffefb9;border-color:#fff3ba;box-shadow:0 0 18px #fff7ca}
.z866-bird-flying .z866-fly-symbol{display:inline-block;animation:z866-bird-flight 1.5s ease-in-out infinite alternate;pointer-events:none}
.z866-field-footer{font:700 12px system-ui;color:#427596;margin-top:6px}
.z866-forest{background:linear-gradient(140deg,#e9fff0,#cdeecb)}
.z866-fox-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,25%);gap:14px;align-items:center}
.z866-fox-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;padding:5px;border-radius:16px;background:#5f946760}
.z866-fox-cell{display:grid;place-items:center;min-height:clamp(36px,8vh,61px);border:2px solid #fff7;background:#f9ffdb;border-radius:12px;font-size:clamp(20px,3vw,34px)}
.z866-fox-cell.is-tree{background:#b7d7ab}.z866-fox-cell.is-fox{background:#ffedb7;border-color:#ffa757;box-shadow:0 0 12px #ffe7a2;animation:z866-bob 1.1s ease-in-out infinite}
.z866-fox-actions{display:flex;flex-direction:column;align-items:center;gap:5px}
.z866-fox-actions>div{display:flex;gap:5px}
.z866-fox-actions button{border:3px solid white;border-radius:12px;background:#fff4d2;color:#2a5c72;font:1000 clamp(22px,3vw,32px) system-ui;min-width:clamp(41px,5vw,54px);height:clamp(39px,6.5vh,54px);box-shadow:0 3px 0 #88b895}
.z866-fox-actions small{font:700 10px system-ui;color:#446e55;text-align:center}
.z866-garden{background:linear-gradient(160deg,#f8fff1,#ffe7f4)}
.z866-garden-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.z866-seed{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:clamp(63px,10vh,100px);font-size:clamp(26px,4vw,45px);border:3px solid white;border-radius:14px;background:#dcf2ce;color:#315d55;box-shadow:0 3px 8px #6aa29433;transition:transform .15s}
.z866-seed.is-bloom{background:#fff4ca;animation:z866-bob 2.6s ease-in-out infinite}
.z866-seed small{font:850 9px system-ui}
.z866-music{background:linear-gradient(145deg,#f0e7ff,#fce5f3)}
.z866-notes-preview{display:flex;align-items:center;justify-content:center;gap:clamp(6px,2vw,20px);flex-wrap:wrap;margin:clamp(8px,4vh,25px) auto}
.z866-notes-preview span{font-size:clamp(28px,5vw,62px);background:#fff8;border:3px solid white;border-radius:18px;padding:clamp(5px,1vw,12px)}
.z866-music-keys{display:flex;justify-content:center;gap:clamp(6px,2vw,20px);margin:clamp(8px,3vh,20px) auto;flex-wrap:wrap}
.z866-music-keys button{font-size:clamp(28px,6vw,64px);min-width:clamp(48px,8vw,105px);min-height:clamp(48px,10vh,95px);border:3px solid white;border-radius:18px;background:#fff9fa;box-shadow:0 4px 0 #d9bad9}
.z866-ready,.z866-show-again,.z866-victory button{display:block;margin:8px auto;border:3px solid white;border-radius:999px;background:linear-gradient(110deg,#ffd87e,#ffc5a2);color:#664523;padding:10px 17px;font:900 12px system-ui;box-shadow:0 3px 0 #d8b36f}
.z866-hint{background:#fffdf5;border-radius:13px;border:2px solid white;padding:10px 12px;color:#2d6385;font:760 12px system-ui;text-align:center}
.z866-victory{text-align:center;background:#fff7d0;border:3px solid white;border-radius:21px;padding:clamp(12px,2vw,27px)}
.z866-victory-icon{display:block;font-size:clamp(50px,11vh,92px);animation:z866-bob 2s ease-in-out infinite}
.z866-victory h2{font:1000 clamp(21px,3vw,33px) system-ui;color:#245879;margin:6px}.z866-victory p{color:#536e85;font:750 13px system-ui}
@keyframes z866-bob{50%{transform:translateY(-4px)}}@keyframes z866-bird-flight{30%{transform:translate(7px,-3px) rotate(6deg)}70%{transform:translate(-5px,3px) rotate(-5deg)}}
@media(max-width:1040px){.z866-games{grid-template-columns:repeat(2,minmax(0,1fr))}.z866-game-card{min-height:215px}}
@media(orientation:landscape) and (max-height:500px){
 .z866-page{padding:8px 11px!important;border-radius:16px}.z866-head h1{font-size:clamp(17px,2.5vw,26px)}.z866-head p{display:none}.z866-summary{margin:5px 0 7px}.z866-summary span{padding:4px 7px;font-size:10px}.z866-games{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.z866-game-card{min-height:180px;border-width:3px}.z866-game-content{padding:8px;gap:3px}.z866-game-content strong{font-size:clamp(13px,1.9vw,18px)}.z866-game-icon{font-size:clamp(28px,4vw,42px)}.z866-game-description{font-size:10px}.z866-best{font-size:9px}.z866-related{margin:6px 0}.z866-related button{padding:5px 9px;font-size:10px}.z866-legal{display:none}
 .z866-field{padding:7px}.z866-field-label{margin-bottom:5px}.z866-sky-tile{min-height:clamp(36px,10vh,48px);font-size:clamp(24px,3.3vw,32px)}.z866-fox-cell{min-height:clamp(32px,9vh,46px);font-size:clamp(19px,2.5vw,27px)}.z866-garden-grid{gap:5px}.z866-seed{min-height:clamp(40px,12vh,60px);font-size:clamp(23px,3.2vw,35px)}.z866-notes-preview{margin:6px auto}.z866-notes-preview span{font-size:clamp(25px,4vw,36px)}.z866-music-keys{margin:7px auto}.z866-music-keys button{font-size:clamp(24px,4vw,35px);min-height:clamp(38px,9vh,48px)}.z866-fox-actions button{height:37px;min-width:39px}
}
@media(max-width:560px) and (orientation:portrait){
 .z866-page{padding:8px!important}.z866-head h1{font-size:clamp(18px,5vw,24px)}.z866-head p{font-size:10px}.z866-eyebrow{font-size:9px}.z866-summary{gap:4px;margin:7px 0}.z866-summary span{font-size:9px;padding:5px 6px}
 .z866-games{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.z866-game-card{min-height:clamp(145px,23vh,186px);border-width:3px;border-radius:15px}.z866-game-content{padding:7px;gap:3px}.z866-game-icon{font-size:30px}.z866-game-content strong{font-size:clamp(13px,3.5vw,17px)}.z866-game-description{font-size:clamp(9px,2.35vw,11px)}.z866-game-content>small{font-size:9px}.z866-play-pill{font-size:9px;min-height:27px;padding:5px 8px}.z866-best{font-size:8px}.z866-related{gap:5px;margin:8px 0}.z866-related button{font-size:9px;padding:6px 8px}.z866-legal{font-size:9px}
 .z866-fox-body{grid-template-columns:1fr}.z866-garden-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.z866-fox-cell{min-height:39px}.z866-fox-actions button{height:38px}.z866-fox-actions{gap:4px}
}

@media(prefers-reduced-motion:reduce){.z866-game-icon,.z866-bird-flying,.z866-fox-cell.is-fox,.z866-seed.is-bloom,.z866-victory-icon{animation:none}}

/* Direction keys must not shrink when a touch tablet turns to portrait. */
@media (pointer:coarse){
 .z866-page button{touch-action:manipulation}
 .z866-home,.z866-related button,.z866-topline button,.z866-ready,.z866-show-again,.z866-victory button{min-height:44px}
 .z866-fox-actions button{min-width:48px;min-height:48px;height:48px}
 .z866-fox-actions>div{gap:8px}
 .z866-fox-body{grid-template-columns:minmax(0,1fr) minmax(160px,25%)}
 .z866-sky-tile,.z866-seed,.z866-music-keys button{min-height:48px}
}
@media (pointer:coarse) and (orientation:portrait) and (max-width:620px){
 .z866-fox-body{grid-template-columns:1fr}
}
@media (pointer:coarse) and (min-width:700px) and (min-height:600px){
 .z866-fox-actions button{min-width:56px;min-height:56px;height:56px}
 .z866-fox-body{grid-template-columns:minmax(0,1fr) minmax(184px,25%)}
}
