/* Stronger photographs on tiles, with readable labels confined to the top and bottom. */
.sp::before{background:linear-gradient(#fffdf7dc 0%,#fffdf7cc 20%,#fffdf720 39%,transparent 72%,#fffdf7d9 100%)}
.sp .nm{background:#fffdf7e8;padding:1px 2px}.cw::after{background:linear-gradient(#fffdf4e8 0%,#fffdf4d9 25%,#fffdf430 53%,#fffdf4d9 100%)}
#pictureFocus{flex:0 0 auto;min-height:128px;display:flex;gap:12px;align-items:center;padding:10px 18px;background:#f6f0e2;border-top:1px solid #baa780;color:#30291f;z-index:21;margin-right:346px}
.focus-picture{display:flex;align-items:center;gap:14px;flex:1;min-width:0;padding:0;background:transparent;border:0;text-align:left;cursor:zoom-in}.focus-picture img{width:145px;height:100px;object-fit:cover;border-radius:8px;border:1px solid #bda882;box-shadow:0 3px 10px #21180d22}.focus-picture strong{display:block;font:700 16px/1.3 Georgia;margin:6px 0}.focus-picture small{display:block;font-size:12px;color:#77664d}.focus-tools{display:flex;flex-direction:column;gap:5px;align-items:stretch}.focus-tools button,.focus-tools a{font:600 12px/1.2 "Segoe UI",sans-serif;border:1px solid #bba784;border-radius:6px;padding:7px 9px;text-align:center;background:#fffaf0;color:#443726;text-decoration:none;cursor:pointer}
#pictureBrowser{box-sizing:border-box;width:min(1000px,96vw);max-height:94dvh;border:1px solid #b39a72;border-radius:12px;padding:16px;background:#fffaf0;color:#30291f;overflow:auto;box-shadow:0 20px 80px #0008}#pictureBrowser::backdrop{background:#1c170ee0}#pictureBrowser>img{width:100%;height:auto;max-height:65dvh;object-fit:contain;display:block;border-radius:8px}#pictureBrowser h2{font:700 23px/1.3 Georgia;margin:14px 0}#pictureBrowser p{font:16px/1.5 Georgia}.picture-actions{display:flex;gap:8px;align-items:center;justify-content:space-between}.picture-actions button{min-height:40px;cursor:pointer}.picture-actions span{font-size:12px;color:#746449}
.picture-zoom #stage{display:block;overflow:auto;overscroll-behavior:contain}.picture-zoom #boardWrap{width:max-content;transform:none!important;margin:0}
@media(max-width:799px){#pictureFocus{margin-right:0;padding:10px;min-height:136px;gap:8px}.focus-picture{gap:10px}.focus-picture img{width:112px;height:100px}.focus-picture strong{font-size:14px}.focus-picture small{font-size:11px}.focus-tools button,.focus-tools a{font-size:11px;padding:7px}.picture-zoom #stage{padding:12px}}
@media(max-width:390px){#pictureFocus{flex-wrap:wrap}.focus-tools{flex-direction:row;width:100%;justify-content:center}.focus-picture img{width:128px;height:90px}.focus-tools button,.focus-tools a{flex:1}}
@media(max-height:540px){#pictureFocus{min-height:86px;padding:6px 12px}.focus-picture img{height:68px;width:102px}.focus-tools{flex-direction:row}.focus-picture strong{font-size:13px}}

.wg img.mission-photo{object-fit:cover;border-radius:5px}.cwartbig img.mission-photo{width:100%;height:auto;max-height:65vh;object-fit:contain}
.wg>img.mission-photo{width:100%;height:100%;top:50%;opacity:.85}.wg:has(>img.mission-photo)>b{position:relative;z-index:1;background:rgba(255,250,233,.9);border-radius:3px;padding:1px 2px}

#landingPicture{position:fixed;left:calc((100vw - 346px)/2);top:48%;transform:translate(-50%,-50%);z-index:35;width:min(560px,calc(100vw - 380px));max-height:80dvh;overflow:auto;background:#fffaf0;border:2px solid #b39a72;border-radius:12px;padding:14px;box-sizing:border-box;box-shadow:0 12px 50px #0007;color:#30291f}
#landingPicture h2{font:700 18px Georgia;margin:0 28px 10px 0}#landingPicture img{width:100%;max-height:52dvh;object-fit:contain;display:block;border-radius:7px}#landingPicture p{font:14px/1.4 Georgia}.landing-close{position:absolute;right:8px;top:8px;width:32px;height:32px;cursor:pointer}
#modal.has-landing-art{max-width:700px;max-height:88dvh}.landing-banner-art{margin:10px 0}.landing-banner-art img{display:block;width:100%;max-height:45dvh;object-fit:contain;border-radius:7px}.landing-banner-art figcaption{font-size:12px;text-align:center;margin-top:4px}#modal.has-landing-art>.row:last-child{position:sticky;bottom:-18px;background:var(--paper);padding:10px 0;z-index:2}
@media(max-width:799px){#landingPicture{left:50%;width:min(560px,94vw);top:45%;max-height:76dvh}#modalBg{padding:10px}#modal.has-landing-art{padding:12px;max-height:90dvh}.landing-banner-art img{max-height:36dvh}#modal.has-landing-art>.row:last-child{bottom:-12px}}
@media(max-height:540px){#landingPicture img{max-height:38dvh}.landing-banner-art img{max-height:30dvh}}

/* V2.1 mobile terms fix: scroll the page, never clip the controls below a 100vh shell. */
#mobileTermsLink{display:none}
@media(max-width:799px){
 html{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
 body{height:auto;min-height:100vh;min-height:100dvh;overflow-x:hidden;overflow-y:auto}
 #app{height:auto;min-height:100vh;min-height:100dvh;overflow:visible;padding-bottom:env(safe-area-inset-bottom,0px)}
 #strip{height:auto;min-height:52px;flex-wrap:wrap;gap:6px;padding:8px}
 #strip .stripspacer{display:none}
 #mobileTermsLink{display:flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:8px 12px;background:#fff5d6;color:#44351c;font-weight:700;text-align:center;text-decoration:underline}
 #stage{flex:0 0 auto;height:calc(100vh - 320px);height:calc(100svh - 320px);min-height:240px;min-width:0;width:100%;padding:10px;overflow:hidden}
 #pictureFocus{flex:none;width:100%;min-height:0;margin:0;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:10px}
 .focus-picture{flex:none;width:100%;min-width:0}
 .focus-picture img{flex:none;width:96px;height:72px}
 .focus-picture span{min-width:0;overflow-wrap:anywhere}
 .focus-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}
 .focus-tools button,.focus-tools a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;font-size:12px;padding:8px;overflow-wrap:anywhere}
 .picture-zoom #stage{overflow:auto;-webkit-overflow-scrolling:touch}
}

/* Picture-only cards must never strand a player behind an overlay. */
#landingPicture{top:80px;transform:translateX(-50%);max-height:calc(100vh - 210px);max-height:calc(100dvh - 210px);width:min(480px,calc(100vw - 380px));padding:10px;overscroll-behavior:contain}
#landingPicture .landing-card-header{position:sticky;top:-10px;z-index:3;background:#fffaf0;padding:8px 0;display:flex;flex-direction:column;gap:6px}
#landingPicture .landing-close{position:static;width:100%;height:auto;min-height:44px;font-weight:700;cursor:pointer}#landingPicture h2{margin:0;font-size:16px}#landingPicture img{max-height:32vh;max-height:32dvh}#landingPicture p{margin:8px 0}#landingPicture small{display:block;font-size:11px}
#modal{touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#modal.has-landing-art{max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px)}
.hide-outcome-picture{position:sticky;top:-18px;z-index:4;display:block;min-height:44px;width:100%;background:var(--paper);margin-bottom:8px}
#modal.art-hidden .landing-banner-art,#modal.art-hidden .cwartbig,#modal.art-hidden .space-figure,#modal.art-hidden .card-banner-art{display:none!important}
#modal.has-landing-art>.row:last-child{bottom:0;display:flex;flex-wrap:wrap;gap:6px;background:var(--paper);padding:8px 0}#modal.has-landing-art>.row:last-child button{min-height:44px}
#modal.has-landing-art .landing-banner-art img,#modal.has-landing-art .space-picture{max-height:28vh;max-height:28dvh;object-fit:contain}
#pictureBrowser .picture-actions{position:sticky;top:-16px;z-index:5;background:#fffaf0;padding:8px 0}#pictureBrowser .picture-actions button{min-height:44px}
#crosswayPictureViewer .picture-close{position:sticky;top:0;z-index:5;float:none;display:block;width:100%;min-height:44px;background:#fffaf0}
.tap-to-enlarge{cursor:zoom-in}
.tap-to-enlarge:focus-visible{outline:3px solid #8b651f;outline-offset:-3px}
.space-figure figcaption{pointer-events:none}
@media(max-width:799px){#landingPicture{top:88px;width:min(440px,92vw);max-height:calc(100vh - 220px);max-height:calc(100dvh - 220px)}.hide-outcome-picture{top:-12px}#modal.has-landing-art{max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px)}}
@media(max-height:500px){#landingPicture{top:56px;max-height:calc(100vh - 130px);max-height:calc(100dvh - 130px)}#landingPicture img{max-height:20dvh}#modal.has-landing-art .landing-banner-art img{max-height:20dvh}}
