
/* 100% is the entire scene fitted to both available dimensions. Only zoom permits panning. */
.scene-scroll{max-height:none!important;min-width:0;overflow:hidden;scroll-behavior:auto}
.scene-scroll.is-zoomed{overflow:auto}
#scene{margin:auto;flex:none;min-height:0}
#scene svg{touch-action:auto}
.scene-scroll.is-zoomed svg{touch-action:pan-x pan-y;cursor:grab}
.hunt-layout:fullscreen{box-sizing:border-box;width:100vw;height:100vh;height:100dvh;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) clamp(220px,25vw,310px);gap:12px;align-items:stretch;background:var(--paper);overflow:hidden}
.hunt-layout:fullscreen .scene-panel{min-width:0;min-height:0;display:flex;flex-direction:column}
.hunt-layout:fullscreen .scene-scroll{flex:1;min-height:0}
.hunt-layout:fullscreen .clues-panel{min-height:0;height:100%;overflow:auto}
.hunt-layout:fullscreen .targets{max-height:40vh}
.hunt-layout:fullscreen .scene-tools{flex:none;flex-wrap:wrap}
.hunt-layout:fullscreen .scene-caption{flex:none}
@media(max-width:760px){
 .scene-panel{order:0}.clues-panel{order:1}
 .hunt-layout:fullscreen{grid-template-columns:minmax(0,1fr) clamp(125px,36vw,220px);padding:6px;gap:6px}
 .hunt-layout:fullscreen .clues-panel{width:auto;order:1;padding:8px}
 .hunt-layout:fullscreen .scene-panel{order:0;width:auto}
 .hunt-layout:fullscreen .targets{display:grid;grid-template-columns:1fr;overflow-x:hidden;max-height:none}
 .hunt-layout:fullscreen .target-row{width:100%;min-width:0;max-width:none;min-height:90px}
 .hunt-layout:fullscreen .clue-guide,.hunt-layout:fullscreen .clue-option{display:none}
 .hunt-layout:fullscreen .scene-tools{padding:5px;gap:3px}
 .hunt-layout:fullscreen .scene-tools>span{max-width:100%;flex-basis:100%}
 .hunt-layout:fullscreen .scene-tools .actions{gap:0}
 .hunt-layout:fullscreen .scene-tools button{min-width:32px;padding:5px 6px}
 .hunt-layout:fullscreen .scene-tools #zoom-label{min-width:36px}
 .hunt-layout:fullscreen .scene-caption>span:first-child{display:none}
 .hunt-layout:fullscreen .clues-heading{flex-wrap:wrap}
 .hunt-layout:fullscreen .clue-help{display:block}
}

@media(max-width:700px){header,html[data-static-demo] header{flex-wrap:wrap}.header-actions{max-width:100%;flex-wrap:wrap}}

/* The play view is one viewport; galleries keep their normal document flow. */
body.is-hunting{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
body.is-hunting>header{width:100%;flex:none;margin:0 auto;padding:8px 18px;gap:12px}
body.is-hunting>main{width:100%;flex:1;min-height:0;margin:0 auto;padding:12px 18px}
body.is-hunting>footer{display:none}
body.is-hunting #hunt{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
body.is-hunting .hunt-heading{min-width:0;gap:10px;margin-bottom:10px}
body.is-hunting .hunt-heading h1{min-width:0;font-size:clamp(19px,2.3vw,29px);overflow-wrap:anywhere}
body.is-hunting .hunt-layout:not(:fullscreen){height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) clamp(270px,27vw,340px);gap:14px;align-items:stretch}
body.is-hunting .scene-panel{min-width:0;min-height:0;display:flex;flex-direction:column}
body.is-hunting .scene-tools,body.is-hunting .scene-caption{flex:none}
body.is-hunting .scene-scroll{flex:1;min-height:0;display:flex}
body.is-hunting .clues-panel{position:relative;min-width:0;min-height:0;height:100%;display:flex;flex-direction:column;overflow:hidden;padding:12px}
body.is-hunting .clues-heading,body.is-hunting .clue-option,body.is-hunting .clues-panel progress{flex:none}
body.is-hunting .clues-heading{margin-bottom:4px}
body.is-hunting .clues-panel progress{margin-bottom:6px}
body.is-hunting .clue-option{margin:0 0 6px}
body.is-hunting .clue-guide,body.is-hunting .clue-step-note,body.is-hunting .clues-panel>.small{display:none}
body.is-hunting .targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(min-content,1fr);gap:6px;flex:1;min-height:0;max-height:none!important;overflow:auto;padding:3px}
body.is-hunting .target-row{width:100%;min-width:0;max-width:none;min-height:64px;padding:8px 3px 4px;gap:2px;justify-content:center}
body.is-hunting .target-row[aria-pressed=true]{padding:7px 2px 3px}
body.is-hunting .target-row strong{font-size:16px;line-height:1.2}
body.is-hunting .clue-image{width:clamp(30px,5vh,54px);height:clamp(30px,5vh,54px)}
body.is-hunting .clue-number{font-size:10px;left:4px;top:2px}
body.is-hunting .target-state{top:2px;right:4px}
body.is-hunting .clue-help{flex:0 1 auto;min-height:0;max-height:48%;overflow:auto;margin-top:8px;padding:8px}
body.is-hunting .clue-help-heading{margin-bottom:5px}
body.is-hunting .clue-context img{height:clamp(70px,14vh,132px)}
body.is-hunting .clue-description{margin:6px 0;font-size:16px;line-height:1.4}
body.is-hunting .completion{min-height:0;margin-top:8px;padding:10px 14px;gap:12px}
body.is-hunting .completion h2{font-size:18px;margin-bottom:2px}
body.is-hunting .completion .actions{flex-shrink:0}
@media(max-width:760px){
 body.is-hunting>header{padding:6px 10px;gap:6px}
 body.is-hunting>main{padding:8px 10px}
 body.is-hunting .hunt-heading{gap:6px;margin-bottom:6px}
 body.is-hunting .hunt-heading h1{font-size:20px;flex:1}
 body.is-hunting .hunt-heading .actions{margin-left:0}
 body.is-hunting .hunt-heading .actions button{min-height:44px;padding:6px 9px}
 body.is-hunting .scene-tools{flex-wrap:wrap;padding:4px 8px}
 body.is-hunting .scene-tools .actions{margin-left:auto}
 body.is-hunting .scene-tools button{min-height:44px;min-width:44px;padding:4px}
 body.is-hunting .scene-caption{padding:4px 8px}
 body.is-hunting .scene-caption>span:first-child{display:none}
 body.is-hunting .completion{padding:8px;gap:6px}
 body.is-hunting .completion .actions{gap:4px}
 body.is-hunting .completion button{padding:6px 8px;min-height:44px;font-size:13px}
 body.is-hunting .completion p{font-size:12px}
}
@media(max-width:760px) and (orientation:portrait){
 body.is-hunting .hunt-layout:not(:fullscreen){grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(174px,42%);gap:8px}
 body.is-hunting .hunt-layout:not(:fullscreen) .clues-panel{padding:8px}
 body.is-hunting .hunt-layout:not(:fullscreen) .clues-heading{margin:0}
 body.is-hunting .hunt-layout:not(:fullscreen) .clue-option{position:absolute;right:66px;top:8px;margin:0;font-size:12px}
 body.is-hunting .hunt-layout:not(:fullscreen) .targets{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;flex:1;min-height:54px;padding:3px}
 body.is-hunting .hunt-layout:not(:fullscreen) .target-row{width:84px;min-width:84px;max-width:84px;min-height:0;flex:0 0 auto;padding:8px 3px 3px}
 body.is-hunting .hunt-layout:not(:fullscreen) .clue-image{width:36px;height:36px}
 body.is-hunting .hunt-layout:not(:fullscreen) .clue-help{max-height:55%;margin-top:5px;padding:5px}
 body.is-hunting .hunt-layout:not(:fullscreen) .clue-help:not(:has(.clue-context:not([hidden]))){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:center}
 body.is-hunting .hunt-layout:not(:fullscreen) .clue-help-heading{margin:0}
 body.is-hunting .hunt-layout:not(:fullscreen) .clue-help #reveal-clue{min-height:44px;padding:5px 9px}
}
@media(max-width:760px) and (orientation:landscape){
 body.is-hunting .hunt-layout:not(:fullscreen){grid-template-columns:minmax(0,1fr) 220px;gap:8px}
 body.is-hunting .hunt-heading h1{font-size:18px}
 body.is-hunting .clues-panel{padding:8px}
}

body.is-hunting .clue-help:not(:has(.clue-context:not([hidden]))){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:center}
body.is-hunting .clue-help:not(:has(.clue-context:not([hidden]))) .clue-help-heading{margin:0}
body.is-hunting .clue-help:not(:has(.clue-context:not([hidden]))) #reveal-clue{width:auto;min-height:44px;padding:6px 9px}
@media(max-height:600px){
 body.is-hunting>header{padding:4px 10px}
 body.is-hunting>main{padding:6px 10px}
 body.is-hunting #account,body.is-hunting .scene-caption{display:none}
 body.is-hunting .hunt-heading{margin-bottom:6px}
 body.is-hunting .hunt-heading h1{font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.is-hunting .clues-heading h2{font-size:16px}
 body.is-hunting .clues-panel{padding:8px}
}
@media(max-width:760px) and (orientation:portrait){
 body.is-hunting .hunt-layout:not(:fullscreen){grid-template-rows:minmax(0,1fr) minmax(174px,34%)}
}
@media(max-width:700px) and (max-height:600px){
 body.is-hunting .brand{font-size:0;gap:0;margin:0}
 body.is-hunting .brand-mark{font-size:18px}
 body.is-hunting .header-actions{gap:2px}
 body.is-hunting .hunt-heading{flex-wrap:nowrap}
 body.is-hunting .hunt-heading h1{font-size:18px}
 body.is-hunting .hunt-heading .actions{flex-shrink:0}
 body.is-hunting .hunt-layout:not(:fullscreen){grid-template-rows:minmax(0,1fr) minmax(184px,34%)}
 body.is-hunting .clues-panel{padding:5px}
 body.is-hunting .clue-help{padding:3px;margin-top:3px}
 body.is-hunting .clue-image{width:30px;height:30px}
}


@media(max-width:700px) and (max-height:600px) and (orientation:portrait){body.is-hunting .clues-panel progress{display:none}body.is-hunting .hunt-layout:not(:fullscreen) .targets{min-height:64px}body.is-hunting .hunt-layout:not(:fullscreen) .clue-image{width:26px;height:26px}body.is-hunting .clue-help:not(:has(.clue-context:not([hidden]))){flex-shrink:0}}

@media(max-width:760px) and (orientation:landscape){body.is-hunting .hunt-layout:not(:fullscreen){grid-template-rows:minmax(0,1fr)}}
@media(max-width:700px) and (max-height:600px) and (orientation:portrait){
 body.is-hunting #hunt:has(.completion:not([hidden])) .hunt-layout:not(:fullscreen){grid-template-rows:minmax(0,1fr) 112px}
 body.is-hunting #hunt:has(.completion:not([hidden])) .clue-help{display:none}
 body.is-hunting .completion{padding:3px 5px;margin-top:6px}
 body.is-hunting .completion>div:first-child{display:none}
 body.is-hunting .completion .actions{width:100%;justify-content:space-between}
}
@media(max-width:760px){
 body.is-hunting .hunt-layout:fullscreen .clue-help:not(:has(.clue-context:not([hidden]))){display:block}
 body.is-hunting .hunt-layout:fullscreen .clue-help #reveal-clue{width:100%}
}

