:root{--ink:#233e32;--muted:#617160;--paper:#f3efdf;--line:#c7c8ac;--green:#31513b;--accent:#d6a94c;--shadow:none}body{background:var(--paper);color:var(--ink)}button,.button,input,select{border-radius:5px}button,.button{border-color:#9baf91}button:hover,.button:hover{background:#ece5c8;border-color:#687e5f}.primary{background:#34563e;border-color:#34563e;color:#fff6dd}.primary:hover{background:#25422f}.card{background:#fff9e9;border-color:#c7c7a9;border-radius:7px;box-shadow:none}h1{letter-spacing:-.6px}h2{font-size:23px}h3{font-size:18px;line-height:1.35}.eyebrow{color:#776437;letter-spacing:1.3px}.pill{border-radius:4px}.body-loading{pointer-events:none;opacity:1}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #c68721;outline-offset:3px}[hidden]{display:none!important}
.sprite{display:block;background-repeat:no-repeat;background-position:var(--sprite-x,0%) var(--sprite-y,0%);aspect-ratio:1}.chest-sprite{width:120px;background-image:url(game/chests.png);background-size:300% 200%}.traveler-sprite{width:170px;background-image:url(game/travelers.png);background-size:300% 100%}.item-sprite{width:170px;background-image:url(game/decorations.png);background-size:300% 100%}
.child-game{min-height:100svh;background:#1d5a60;display:grid;place-items:center;padding:16px}.child-game #app{width:100%;max-width:1180px;margin:0;padding:0}.game-shell{width:100%;height:min(720px,calc(50vw + 120px),100svh);min-height:240px;border:4px solid #314e3d;border-radius:8px;overflow:hidden;position:relative;display:grid;grid-template-rows:56px minmax(0,1fr)64px;background:#32aebd;box-shadow:0 15px 45px #102d3a40}.game-hud{display:flex;align-items:center;gap:14px;padding:7px 16px;background:#294934;color:#fff5d6;z-index:2}.game-hud button{color:#fff5d6;background:transparent;border:0;padding:5px 0}.traveler-name{font-size:16px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.level-meter{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.level-meter strong{white-space:nowrap;font-size:15px}.xp-bar{min-width:32px;max-width:230px;flex:1;height:9px;background:#162e21;border:1px solid #849775;border-radius:5px;overflow:hidden}.xp-bar span{height:100%;display:block;background:#e3bc61;transition:width .25s}.xp-label{font-size:12px;white-space:nowrap;color:#ddd8b7}.key-count{white-space:nowrap;font-size:16px}.sound-button{font-size:12px;white-space:nowrap}.map-stage{display:grid;place-items:center;overflow:hidden;background:#31adbd}.island-layers{width:100%;aspect-ratio:2;position:relative}.island-base{display:block;width:100%;height:100%;object-fit:contain}.map-traveler{position:absolute;left:34%;top:14%;width:10%;filter:drop-shadow(0 4px 2px #29482a35)}.map-chests{position:absolute;left:33%;top:52%;width:29%;display:grid;grid-template-columns:repeat(3,1fr);min-height:44px;gap:0;border:0!important;padding:0!important;border-radius:0;background:transparent!important}.map-chests .sprite{width:100%}.map-chests:hover{transform:translateY(-2px)}.map-decor{position:absolute}.decor-lamp{left:24%;top:26%;width:10%}.decor-plant{left:43%;top:30%;width:12%}.decor-bench{left:47%;top:65%;width:12%}.game-dock{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px;background:#294934;z-index:2}.game-dock button{background:#f6e9bd;border:2px solid #a1ad85;min-height:44px;padding:5px 8px;font-size:17px;border-radius:5px;box-shadow:0 2px 0 #172f21}.game-panel{position:absolute;inset:12px auto 12px 50%;transform:translateX(-50%);width:calc(100% - 24px);max-width:700px;background:#fff7dd;border:3px solid #53613e;border-radius:7px;padding:22px;z-index:5;overflow:auto;box-shadow:0 5px 25px #14343865}.game-panel-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #c7c2a2;margin-bottom:18px}.game-panel-top h2{margin:0}.close-panel{width:44px;min-height:44px;font-size:26px;padding:0;background:#eee3ba;flex:none}.task-focus h3{font-size:28px;max-width:530px;margin:15px 0}.task-focus .primary{min-width:180px}.task-status{font-size:16px;color:#61704f}.award-line{color:#52673e;font-weight:650}.task-pager{display:flex;justify-content:space-between;margin-top:28px}.task-pager button{min-height:44px}.chest-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.chest-tabs button{display:flex;flex-direction:column;gap:2px;padding:6px;border:2px solid #c2b58b;background:#f0e5bf}.chest-tabs .chest-sprite{width:min(100%,140px)}.chest-tabs button.selected{border-color:#33543c;background:#e0e3ba;box-shadow:inset 0 0 0 1px #33543c}.chest-tabs span:last-child{font-size:14px}.chest-details{margin-top:22px}.chest-details h3{font-size:22px}.possible-prizes{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 22px}.possible-prizes>span{padding:8px 11px;border:1px solid #c9c39e;border-radius:4px;background:#fbefc7;font-size:15px}.open-button{width:100%;min-height:48px}.won-list article{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 0;border-bottom:1px solid #c9c2a2}.won-list h3{margin-bottom:5px}.won-list .pill{white-space:nowrap}.empty-state{max-width:450px;padding:35px 0}.opening-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#f7edcc;padding:20px;isolation:isolate}.opening-art{position:relative;z-index:1}.opening-art .chest-sprite{width:220px}.opening-panel.open:before,.opening-panel.result-ready:before{content:"";position:absolute;width:310px;height:310px;top:15%;border-radius:50%;background:radial-gradient(circle,#efca6870 0%,#efca6820 45%,transparent 68%);z-index:-1}.opening-result{min-height:120px;max-width:520px}.opening-result h2{font-size:28px;overflow-wrap:anywhere;margin:8px 0 12px}.opening-result p{font-size:16px}.shake .opening-art{animation:chest-rattle .5s ease-in-out}.open .opening-art{animation:chest-lift .55s ease-out}.result-ready .opening-result{animation:prize-arrive .28s ease-out}.game-shell .retry-bar{position:absolute;z-index:10;left:8px;right:8px;top:8px;font-size:14px;margin:0;border:2px solid #ac8335}.avatar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.avatar-grid button,.avatar-choice{padding:8px;border:2px solid #c3bf98;border-radius:5px;position:relative;background:#f5e9c5;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;margin:0}.avatar-grid .traveler-sprite{width:100%;max-width:160px}.avatar-grid button.selected,.avatar-choice:has(input:checked){border-color:#3d6243;background:#e1e5bd}.avatar-choice input{position:absolute;width:16px;left:8px;top:8px;margin:0}.avatar-choice span:last-child{font-size:13px}
.parent-island .top{max-width:1196px;padding-top:18px;padding-bottom:12px;border-bottom:1px solid #c1c3a6}.parent-island .brand-dot{border-radius:4px;background:#dac47d}.parent-island .wide{max-width:1196px;margin-top:26px}.parent-title h1{font-size:36px;margin:9px 0}.parent-title p{margin:0}.parent-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:26px 0}.parent-stats>div{padding:17px 20px;border:1px solid #b9bc98;border-top:3px solid #496646;background:#eee9d3;border-radius:4px;display:flex;flex-direction:column}.parent-stats strong{font-size:28px;line-height:1.2}.parent-stats span{font-size:13px;color:#617154;margin-top:6px}.compact-actions{display:flex;gap:10px;flex-wrap:wrap}.task-form,.reward-form{margin-top:16px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-row label{min-width:0}.cost-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.add-details{margin-top:22px;border-top:1px solid #bcc1a2;padding-top:16px}summary{cursor:pointer;font-weight:650}.reward-group{border-bottom:1px solid #c9c5a8;padding:17px 0}.reward-group h3{font-size:17px;color:#6e633e}.reward-group .reward{border:0;padding:10px 0}.check-label input{width:auto;margin:0 6px 0 0;display:inline}.edit-form{width:100%;margin:10px 0;background:#eee7cd;border-radius:4px}.wizard-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:28px;align-items:start}.wizard-island{background:#2b99a8;border:2px solid #465c3e;border-radius:6px;overflow:hidden;position:sticky;top:24px}.wizard-island>img{width:100%;display:block}.wizard-caption{background:#ede6c9;padding:25px}.wizard-caption h1{font-size:28px;line-height:1.25;margin:10px 0 15px}.wizard-caption p{font-size:15px}.wizard-form{padding:27px}.wizard-steps{display:flex;gap:10px;margin:0 0 28px;padding-bottom:16px;border-bottom:1px solid #c9c7a9;font-size:13px}.wizard-steps span{color:#7a8065;flex:1}.wizard-steps .active{color:#294b32;font-weight:800}.wizard-steps .complete{color:#456d44}.wizard-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.wizard-chest{border:1px solid #c9c2a0;border-radius:4px;padding:13px;margin:18px 0}.wizard-chest legend{font-weight:700;padding:0 7px}.wizard-chest label:last-child{margin-bottom:0}
@keyframes chest-rattle{0%,100%{transform:rotate(0)}20%{transform:rotate(-5deg)}40%{transform:rotate(5deg)}60%{transform:rotate(-4deg)}80%{transform:rotate(3deg)}}@keyframes chest-lift{from{transform:translateY(10px) scale(.97)}60%{transform:translateY(-7px) scale(1.03)}to{transform:none}}@keyframes prize-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:750px){.wizard-layout{grid-template-columns:1fr;gap:18px}.wizard-island{position:static;display:none}.wizard-form{padding:20px}.parent-title h1{font-size:29px}.parent-stats{grid-template-columns:repeat(2,1fr)}.field-row{gap:9px}.parent-island .wide{padding:0 14px}.card{padding:19px}.game-hud{gap:8px;padding:6px 9px}.traveler-name{max-width:96px;font-size:13px}.level-meter{gap:5px}.key-count{font-size:14px}.xp-label{display:none}.sound-button{font-size:11px}.game-dock button{font-size:15px}.game-panel{padding:17px}.task-focus h3{font-size:24px}.opening-art .chest-sprite{width:180px}.opening-result h2{font-size:23px}.chest-tabs{gap:7px}.chest-tabs button{padding:3px}.possible-prizes>span{font-size:14px}.opening-result{min-height:90px}.chest-details{margin-top:16px}}
@media(max-width:600px){.child-game{padding:0}.game-shell{border-radius:0}.game-hud{gap:6px}.traveler-name{max-width:75px}.sound-button{max-width:52px;line-height:1.1}.game-panel-top{margin-bottom:12px}.game-panel-top h2{font-size:22px}.task-pager{margin-top:16px}.won-list article{flex-wrap:wrap}.game-panel .avatar-grid{gap:7px}.game-panel .avatar-grid button{padding:2px}}
@media(max-height:420px){.child-game{padding:0}.game-shell{height:100svh;min-height:0;border-width:0;border-radius:0;grid-template-rows:32px minmax(0,1fr)56px}.game-hud{gap:5px;padding:3px 7px}.level-meter strong{font-size:12px}.traveler-name{font-size:12px;max-width:68px}.key-count{font-size:13px}.sound-button{font-size:10px}.xp-label{display:none}.game-dock{padding:6px;gap:5px}.game-dock button{font-size:14px;min-height:44px;padding:3px}.game-panel{inset:5px auto 5px 50%;width:calc(100% - 10px);padding:10px}.game-panel-top{padding-bottom:7px;margin-bottom:8px}.game-panel-top h2{font-size:18px}.close-panel{width:35px;min-height:30px;height:30px;font-size:23px}.task-focus h3{font-size:18px;margin:8px 0}.task-focus p{font-size:13px;margin:8px 0}.task-focus .primary{min-height:36px;padding:5px 12px}.task-pager{margin-top:9px}.task-pager button{min-height:35px;padding:4px 8px}.opening-art .chest-sprite{width:95px}.opening-result{min-height:0}.opening-result h2{font-size:20px;margin:2px 0 5px}.opening-result p{font-size:13px;margin:4px 0 8px}.opening-panel .eyebrow{font-size:10px}.opening-panel .primary{padding:6px 13px;min-height:35px}.chest-tabs .chest-sprite{max-width:74px}.chest-tabs span:last-child{font-size:12px}.chest-details{margin-top:10px}.chest-details h3{font-size:17px;margin:0}.chest-details .muted{font-size:12px}.possible-prizes{margin:7px 0;gap:4px}.possible-prizes>span{padding:4px 6px;font-size:12px}.open-button{min-height:36px}.opening-panel.open:before,.opening-panel.result-ready:before{width:180px;height:180px;top:5%}}
@media(prefers-reduced-motion:reduce){.shake .opening-art,.open .opening-art{animation:none}.result-ready .opening-result{animation:prize-arrive .12s ease-out}.map-chests:hover{transform:none}.xp-bar span{transition:none}}

.chest-contents{margin:14px 0}.chest-contents summary{font-size:14px;padding:5px 0}.pool-rules{font-size:13px;color:#61704f}.chest-contents .possible-prizes{margin-bottom:7px}@media(max-height:420px){.chest-tabs .chest-sprite{max-width:40px}.chest-tabs button{gap:0;padding:2px}.chest-details{margin-top:6px}.chest-details>p.muted{display:none}.chest-details h3{font-size:15px;margin:0;line-height:18px}.chest-contents{margin:5px 0}.chest-contents summary{font-size:12px;line-height:16px;padding:3px 0}.game-panel-top{padding-bottom:5px;margin-bottom:5px}.open-button{min-height:36px;padding:5px 10px;font-size:14px}}

@media(max-height:420px){.task-focus>.eyebrow{display:none}.task-focus h3{margin:4px 0}.task-focus p{margin:4px 0;line-height:1.25}.task-focus .key-rule{display:none}.task-focus .primary{position:sticky;bottom:0;z-index:1;box-shadow:0 -4px 0 4px #fff7dd}}

.wizard-task{border:1px solid #c9c2a0;border-radius:4px;padding:16px;margin:18px 0}.wizard-task legend{font-weight:700;padding:0 7px}.wizard-task>button{margin-top:8px}.wizard-task-list{min-width:0}
