.picture-search-game{display:flex;flex-direction:column;gap:10px;min-width:0}
.picture-search-clues{display:flex;justify-content:center;gap:8px}
.picture-search-clue{position:relative;display:flex;align-items:center;gap:10px;min-width:0;flex:1;max-width:200px;min-height:64px;padding:7px 30px 7px 10px;border-radius:14px;background:#eef5e9;color:#294c43;font-size:12px;font-weight:800}
.picture-search-clue img{width:44px;height:44px;flex:none;object-fit:contain}
.picture-search-clue strong{position:absolute;right:8px;top:8px;display:grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:#fff;color:#006f68;font-size:15px}
.picture-search-clue.is-complete{opacity:.58}
.picture-search-selection{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#526c61}
.picture-search-selection label{display:flex;align-items:center;gap:7px;min-width:0;font-weight:800}
.picture-search-selection select{font:800 13px var(--body);min-height:44px;max-width:100%;min-width:0;border:1px solid var(--game-line);border-radius:10px;padding:6px 28px 6px 9px;background:#fffef8;color:#294c43}
.picture-search-selection>span{white-space:nowrap}
.picture-search-stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-width:0}
.picture-search-canvas{position:relative;width:100%;max-width:650px;aspect-ratio:1;flex:none;border-radius:15px;overflow:hidden;background:#eef2e4;isolation:isolate}
.picture-search-background{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.picture-search-sprite{position:absolute;object-fit:fill;pointer-events:none;user-select:none;z-index:1}
#play-view .picture-search-target{position:absolute;min-width:44px;min-height:44px;padding:0;border:0;border-radius:10px;background:transparent;touch-action:manipulation;-webkit-tap-highlight-color:transparent;z-index:2;box-shadow:none}
#play-view .picture-search-target:hover{background:transparent}
#play-view .picture-search-target:focus-visible,#play-view .picture-search-target.hint-target{outline:3px solid #f7c852;outline-offset:-3px;box-shadow:0 0 0 2px #24483a80;background:#fff8bc22}
@media(max-width:600px){
 .picture-search-game{gap:7px}
 .picture-search-clues{gap:5px}
 .picture-search-clue{min-height:60px;max-width:none;flex-direction:column;gap:2px;padding:3px 5px;font-size:10px;line-height:1.15;text-align:center}
 .picture-search-clue img{width:36px;height:36px}
 .picture-search-clue strong{right:4px;top:4px;min-width:19px;height:19px;font-size:13px}
 .picture-search-clue:only-child{flex-direction:row;justify-content:center;gap:12px;padding-right:30px;font-size:13px}
 .picture-search-selection label{flex:1;max-width:calc(100% - 48px)}
 .picture-search-selection select{font-size:12px;max-width:calc(100% - 29px)}
}
@media(min-width:700px) and (max-width:1100px) and (min-height:700px) and (orientation:portrait){
 #play-view.playing-picture-search .picture-search-game{height:100%;min-height:0;gap:8px}
 .picture-search-stage{flex:1;min-height:0;container-type:size}
 .picture-search-canvas{width:min(100%,100cqh)}
 .picture-search-clues,.picture-search-selection{flex:none}
 .picture-search-clue{min-height:58px;padding-block:5px}
}

/* In wide, short windows the clues sit beside the square picture. */
@media(min-width:900px) and (max-height:1000px) and (orientation:landscape){
 #play-view.playing-picture-search .picture-search-game{display:grid;grid-template-columns:180px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:12px 18px;align-items:start}
 .picture-search-clues{grid-column:1;grid-row:1;flex-direction:column}
 .picture-search-clue{max-width:none;flex:none}
 .picture-search-selection{grid-column:1;grid-row:2;flex-wrap:wrap;align-content:start}
 .picture-search-selection label{width:100%;flex-direction:column;align-items:flex-start}
 .picture-search-selection select{width:100%;max-width:100%}
 .picture-search-stage{grid-column:2;grid-row:1/3}
 .picture-search-canvas{width:min(100%,max(220px,calc(100dvh - 330px)))}
}
.picture-search-clue>span{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px) and (max-height:780px){
 .picture-search-canvas{width:min(100%,max(220px,calc(100dvh - 500px)))}
}
@media(min-width:900px) and (max-height:1000px) and (orientation:landscape){
 .picture-search-clue{min-height:52px;padding-block:5px;font-size:11px}
 .picture-search-clue img{width:36px;height:36px}
}
