:root{--jade:#17483f;--brass:#d8b267;--ivory:#fff3d2}
.home-chapters .home-chapter-card img{object-position:50% 8%}
.home-hub.entrance{display:block;inset:0;margin:auto;width:min(100%,700px);height:100dvh;overflow:auto;padding:0 22px 18px;background:radial-gradient(ellipse at 50% 12%,#426652,#153b37 58%,#0b2728);box-shadow:0 0 0 100vmax #092729;color:var(--ivory)}
.home-hub:after{display:none}.home-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0 14px;text-align:center}.home-header p{font-size:9px;letter-spacing:.2em;font-weight:900;margin:0 0 2px;color:#c4d9bb}.home-header h1{font-size:35px;line-height:1.1;margin:0;color:#ffe5a9;text-shadow:0 2px #76552c}.home-header>a,.home-header>button{display:grid;place-items:center;width:43px;height:43px;flex-shrink:0;border:1px solid #ddb87599;border-radius:14px;background:linear-gradient(#426858,#1b403a);box-shadow:inset 0 1px #eddbaf44,0 3px #071e20;color:#fff1c6;text-decoration:none;font-size:25px}.home-header svg{width:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.home-window{height:clamp(160px,28dvh,265px);margin:0;position:relative;overflow:hidden;border:2px solid #ac8748;border-radius:70px 70px 24px 24px;box-shadow:0 12px 25px #051d2366,inset 0 1px #fff1bd}.home-window>img{width:100%;height:100%;object-fit:cover;object-position:50% 64%}.home-window:after{content:'';position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#102f2deb);pointer-events:none}.home-window figcaption{position:absolute;bottom:17px;left:20px;right:20px;z-index:1;text-align:center;text-shadow:0 2px 6px #071b24}.home-window figcaption small{font-size:9px;letter-spacing:.24em;color:#ffda84}.home-window figcaption strong{display:block;font:800 30px/1.3 Baloo,Georgia,serif}.home-window figcaption>span{font-size:12px;color:#dbe7ca}
.home-continue{width:min(100%,380px);margin:18px auto;text-align:center}.home-continue .play-button{min-height:58px;border-radius:19px;font-size:26px;gap:7px;background:linear-gradient(#ffdf91,#e7ad43);border-color:#ffeab5;color:#423915;text-shadow:0 1px #ffedb1;box-shadow:inset 0 2px #fff9d999,0 5px #8b5c24,0 10px 20px #001b2444}.home-continue .play-button span{font-size:26px}.home-continue .play-button span:last-child{font-size:15px;margin-left:12px}.home-continue #menu-progress{margin:12px 0 0;color:#bcd3be;font-size:11px}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.home-section-heading h2{font:700 19px Baloo,Georgia,serif;margin:0;color:#f6eac4}.home-section-heading .map-entry{width:auto;min-height:38px;margin:0;padding:4px 8px;border:0;background:none;box-shadow:none;color:#e6c281;font-size:10px}
.home-chapters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.home-chapter-card{min-width:0;position:relative;padding:0 0 11px;border:1px solid #d3b1717a;border-radius:13px;background:linear-gradient(#517b65,#21483d);overflow:hidden;box-shadow:0 4px #0b2325;color:#fcebb8;text-align:left}.home-chapter-card img{width:100%;height:94px;object-fit:cover;object-position:50% 48%;display:block}.home-chapter-card strong{display:block;font-size:12px;line-height:1.3;padding:11px 9px 4px}.home-chapter-card small{display:block;font-size:8px;line-height:1.3;padding:0 9px;color:#cbd6be}.home-chapter-card.locked img{filter:saturate(.25) brightness(.62)}.home-chapter-card.locked{background:linear-gradient(#344d43,#193631);border-color:#87a18e66}.chapter-seal{position:absolute;top:63px;left:9px;display:grid;place-items:center;min-width:28px;height:28px;padding:0 4px;border:2px solid #ffe5a2;border-radius:50%;background:linear-gradient(#dfbc77,#986b2d);box-shadow:0 3px 8px #071b2388;font-size:13px;color:#302e1b;font-weight:900}.locked .chapter-seal{border-color:#c6c8ad;background:linear-gradient(#798375,#354c47);color:white}
.home-nav{display:grid;grid-template-columns:1.15fr 1fr;gap:10px;margin:19px 0 12px}.home-nav>button,.home-nav>a{display:block;text-align:center;padding:12px 8px;border:1px solid #c0d0a342;border-radius:13px;background:#264d4199;color:#faedc7;font:900 12px Nunito,sans-serif;text-decoration:none}.home-nav small{display:block;font-size:9px;font-weight:500;color:#bbcfbc;margin-top:4px}.home-promise{text-align:center;font-size:9px;color:#91b5a4;margin:8px 0}
#scene{aspect-ratio:.94}#scene .realm-stage-img{object-fit:cover;object-position:center 59%;filter:none;mask-image:none}#scene .realm-stage-img.loaded{opacity:1}#scene .stage-halo{background:linear-gradient(#092c2822,transparent 30%,#082d2722);inset:0}#scene .stage-shelf,#scene:before{display:none}#scene:after{opacity:.15}.jar-button{filter:drop-shadow(0 5px 4px #001e2499)}.jar-button.hint-target{filter:drop-shadow(0 0 8px #ffd96b);outline:2px dashed #ffe9a1;outline-offset:3px}.game-card{background:linear-gradient(#184840,#0e3433);border-color:#a98c56aa}.scene-heading h1{background:linear-gradient(#416d55,#1b453d);border-color:#d7b464}.level-detail{color:#c2d2b1}.scene-heading{padding-bottom:7px}.paper-footer{padding-top:12px}.paper-footer .tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.paper-footer .tools button{width:100%;min-width:0;min-height:58px;padding:8px 5px;gap:4px;font-size:11px;display:flex;flex-direction:column;align-items:center;justify-content:center}.tools button small{display:block;font-size:8px;font-weight:600;opacity:.82}.tools button svg{width:21px;height:21px}.tools #restart,.tools #sound{min-height:35px;flex-direction:row;border:0;background:transparent;box-shadow:none;color:#bbd3c5;font-size:10px}.tools #restart{grid-column:1/3}.tools #sound{grid-column:3}.tools #restart svg,.tools #sound svg{width:17px;height:17px}.subinstruction{margin-bottom:13px}.instruction{margin-bottom:5px}.retry-status{font-size:10px;color:#9bbdae}
.tool-guide h3{font:800 23px Baloo,Georgia,serif;color:#fce0a1;margin:18px 0 0}.tool-guide p{font-size:13px;line-height:1.6;color:#cde2cf}.recovery-actions{display:grid;gap:12px}.recovery-actions a{text-align:center;min-height:44px;padding:10px}.home-hub button:focus-visible,.home-hub a:focus-visible{outline:3px solid #fff1af;outline-offset:3px}dialog{max-width:calc(100vw - 26px)}
@media(max-width:360px){.home-hub.entrance{padding-inline:14px}.home-header h1{font-size:28px}.home-section-heading h2{font-size:17px}.home-chapters{gap:6px}.home-chapter-card strong{font-size:10px;padding-inline:7px}.home-chapter-card small{font-size:8px;padding-inline:7px}.home-nav>button,.home-nav>a{font-size:10px}.home-window{height:180px}}
@media(max-height:540px) and (min-width:600px){.home-hub.entrance{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px 22px;padding:10px 25px}.home-header{grid-column:1/3;padding:0}.home-window{grid-column:1;grid-row:2/5;height:255px}.home-continue{grid-column:2;margin:0 auto}.home-journey{grid-column:2;grid-row:3/5}.home-nav{grid-column:1/3;margin:0}.home-promise{grid-column:1/3}.home-chapter-card img{height:66px}.chapter-seal{top:37px}.home-window figcaption strong{font-size:24px}.home-header h1{font-size:28px}#scene{aspect-ratio:auto}.paper-footer{padding:3px 10px}.paper-footer .tools{gap:5px;width:100%}.paper-footer .tools button{min-height:40px;font-size:10px;padding:3px}.tools button svg{width:17px;height:17px}.tools button small{font-size:7px}.instruction{font-size:12px}.subinstruction{font-size:10px;margin-bottom:8px}.tools #restart,.tools #sound{min-height:27px}.retry-status{margin:4px 0;font-size:9px}.scene-heading h1{font-size:22px}.scene-heading{padding:1px}.game-card{grid-template-rows:76px 1fr}}
@media(prefers-reduced-motion:no-preference){.home-window{animation:workshop-arrive .7s ease both}.home-chapter-card{animation:workshop-arrive .55s ease both}.home-chapter-card:nth-child(2){animation-delay:.07s}.home-chapter-card:nth-child(3){animation-delay:.14s}@keyframes workshop-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
@media(min-height:541px){
 html.ka-immersive body[data-ka-fullscreen-route="orchard-pour"] .game-shell{width:min(100%,650px);height:100dvh;display:flex;flex-direction:column;padding-bottom:max(5px,env(safe-area-inset-bottom))}
 html.ka-immersive .masthead{flex:0 0 auto}
 html.ka-immersive #game-card{display:flex;flex:1;min-height:0;flex-direction:column}
 html.ka-immersive #game-card .scene-heading{flex:0 0 auto;padding:4px 0}
 html.ka-immersive #game-card .scene-heading h1{font-size:26px;margin:1px auto 4px;padding:6px 22px}
 html.ka-immersive .chapter-link{min-height:36px;margin:0;font-size:11px}
 html.ka-immersive #game-card .level-detail{display:none}
 html.ka-immersive #scene{flex:1;aspect-ratio:auto;min-height:190px;width:100%;margin:0}
 html.ka-immersive #game-card .paper-footer{flex:0 0 auto;padding:8px 12px 6px}
 html.ka-immersive .instruction{font-size:12px;line-height:1.25;min-height:30px;display:flex;align-items:center;justify-content:center;margin:0 0 6px}
 html.ka-immersive .subinstruction{display:none}
 html.ka-immersive .paper-footer .tools{gap:4px 8px}
 html.ka-immersive .paper-footer .tools button{min-height:54px}
 html.ka-immersive .paper-footer .tools :is(#restart,#sound){min-height:44px}
 html.ka-immersive .music-bar{margin:2px 0;min-height:44px}
 html.ka-immersive .retry-status{margin:3px 0 0;font-size:9px}
 html.ka-immersive .page-footer{padding:4px 0 0;font-size:9px;line-height:1.2;flex:0 0 auto}
 html.ka-immersive .page-footer .studio-link{display:none}
}
@media(max-height:540px) and (min-width:600px){html.ka-immersive .page-footer{height:auto;min-height:0;padding:3px 0;font-size:9px;line-height:1.1}html.ka-immersive .page-footer .studio-link{display:none}}
@media(max-height:680px) and (max-width:600px){
 html.ka-immersive body[data-ka-fullscreen-route="orchard-pour"] .masthead:has(.ka-fullscreen-button){min-height:54px;height:54px;padding:2px 0}
 html.ka-immersive body[data-ka-fullscreen-route="orchard-pour"] .masthead .brand{display:none}
 html.ka-immersive body[data-ka-fullscreen-route="orchard-pour"] .masthead :is(#home,#pause,.ka-fullscreen-button){grid-row:1}
 html.ka-immersive #game-card .scene-heading{padding:2px 0}
 html.ka-immersive #game-card .scene-heading h1{font-size:22px;padding:4px 20px;margin:0 auto 3px}
 html.ka-immersive #game-card .chapter-link{min-height:30px}
 html.ka-immersive #game-card .paper-footer{padding:5px 10px}
 html.ka-immersive .instruction{min-height:25px;margin-bottom:3px;font-size:11px}
 html.ka-immersive .paper-footer .tools{gap:2px 6px}
 html.ka-immersive .paper-footer .tools button{min-height:48px}
 html.ka-immersive .paper-footer .tools :is(#restart,#sound){min-height:44px}
}
