/* The supplied Chapter 1 design, with tight image frames and a fitted stage. */
/* Keep the supplied Chapter 1 backgrounds, colours and decorative layers. */
html:has(#gameScr.on),html:has(#gameScr.on) body{height:100%;overflow:hidden}
html body #gameScr.on{height:100dvh;min-height:0;box-sizing:border-box;display:flex;align-items:center;justify-content:center}
html body #gameScr .card-shell{width:min(1400px,100%);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);min-height:0;display:flex;flex-direction:column;overflow:hidden}
html body #gameScr .topbar,html body #gameScr .bottombar{flex:0 0 auto}
html body #gameScr #gbody.gbody{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;align-items:center;justify-items:center;align-content:center;flex:1;min-height:0;overflow:hidden;gap:clamp(8px,1.5dvh,18px);padding:clamp(12px,2dvh,24px) clamp(12px,3vw,40px);margin:12px 28px;border-bottom-width:10px}
html body #gameScr #gbody .qbig{width:100%;max-width:1100px;margin:0;padding:0;font-size:clamp(19px,2vw,29px);line-height:1.25;text-wrap:pretty}
html body #gameScr #gbody>.qsub{margin:0;max-width:100%;font-size:clamp(13px,1.2vw,17px);line-height:1.3;padding:9px 23px}
html body #gameScr #gbody img.qimg{display:block;justify-self:center;align-self:center;max-width:min(560px,90%);max-height:min(33dvh,320px,100%)!important;width:auto!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;padding:0!important;background:transparent!important;box-sizing:border-box;flex-shrink:1;min-height:0}
html body #gameScr #gbody img.qimg.picture-scene{border:2px solid #ebcea0!important;border-radius:18px!important;box-shadow:0 8px 20px #5030131c!important}
html body #gameScr #gbody img.qimg.picture-cutout{max-width:min(500px,85%);max-height:min(31dvh,290px,100%)!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html body #gameScr #gbody .cards3{width:100%;max-width:1080px;gap:16px;margin:0;align-self:center;grid-template-columns:repeat(3,minmax(0,1fr))}
html body #gameScr #gbody .cards3:has(.opt:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
html body #gameScr #gbody .cards3:has(.opt:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));max-width:720px}
html body #gameScr #gbody .cards3 .opt{min-width:0;min-height:clamp(96px,14dvh,140px);padding:16px 15px 42px;height:auto;display:flex;align-items:center;justify-content:center}
html body #gameScr #gbody .cards3 .otext{font-size:clamp(15px,1.6vw,21px);line-height:1.3;overflow-wrap:break-word}
html body #gameScr #gbody .cards3 .radio{bottom:12px}
html body #gameScr #gbody .cards3 .opt:nth-child(3):last-child{grid-column:auto;width:auto}
@media(max-width:650px){
 html body #gameScr.on{padding:4px}
 html body #gameScr .card-shell{height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);border-radius:24px}
 html body #gameScr .topbar{padding:8px;gap:6px;min-height:64px}
 html body #gameScr #lvl{max-width:164px;font-size:11px;white-space:normal;line-height:1.2;padding:8px 12px}
 html body #gameScr #gname{display:none}
 html body #gameScr #gbody.gbody{margin:7px 8px;padding:12px 13px 16px;gap:10px;border-radius:24px;border-bottom-width:7px;grid-template-rows:auto auto minmax(0,1fr) auto}
 html body #gameScr #gbody .qbig{font-size:clamp(16px,4.2vw,20px);line-height:1.25}
 html body #gameScr #gbody>.qsub{font-size:12px;padding:7px 14px;max-width:95%}
 html body #gameScr #gbody img.qimg{max-width:94%;max-height:min(30dvh,100%)!important}
 html body #gameScr #gbody img.qimg.picture-cutout{max-height:min(29dvh,100%)!important;max-width:90%}
 html body #gameScr #gbody .cards3,html body #gameScr #gbody .cards3:has(.opt:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:100%}
 html body #gameScr #gbody .cards3:has(.opt:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
 html body #gameScr #gbody .cards3 .opt{padding:10px 8px 33px;min-height:90px;border-radius:20px}
 html body #gameScr #gbody .cards3 .otext{font-size:13px;line-height:1.28}
 html body #gameScr #gbody .cards3 .radio{width:19px;height:19px;bottom:8px}
 html body #gameScr #gbody .cards3 .opt:nth-child(3):last-child{grid-column:1/-1;width:calc(50% - 5px);justify-self:center}
 html body #gameScr .bottombar{min-height:59px;padding:8px;gap:7px}
 html body #gameScr .bottombar .bbtn{padding:10px 13px;min-width:0;font-size:13px;border-radius:15px}
 html body #gameScr #progPill{padding:8px 13px;font-size:14px}
}
@media(max-height:650px){html body #gameScr #gbody.gbody{gap:5px;margin:5px 8px;padding:8px 12px}html body #gameScr #gbody .qbig{font-size:16px}html body #gameScr #gbody .cards3 .opt{min-height:70px;padding-top:6px;padding-bottom:28px}html body #gameScr #gbody .cards3 .otext{font-size:12px}html body #gameScr #gbody img.qimg{max-height:25dvh!important}html body #gameScr .topbar{min-height:48px}html body #gameScr .bottombar{min-height:48px}}
@media(max-height:500px) and (min-width:651px){html body #gameScr #gbody.gbody{grid-template-columns:1fr 1fr;grid-template-rows:auto auto minmax(0,1fr)}html body #gameScr #gbody .qbig{grid-column:1/-1}html body #gameScr #gbody>.qsub{grid-column:1/-1}html body #gameScr #gbody img.qimg{max-height:45dvh!important;grid-column:1;grid-row:3}html body #gameScr #gbody .cards3{grid-column:2;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}}

html body #gameScr#gameScr #gbody img.qimg{border:2px solid #ebcea0!important;border-radius:18px!important;padding:0!important;box-shadow:0 7px 18px #50301318!important;animation:none!important;transform:none!important;max-height:min(34dvh,310px)!important}
html body #gameScr #gbody:has(.personal-entry){grid-template-rows:auto auto minmax(0,1fr) auto auto}.personal-entry{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;max-width:440px}.personal-entry label{font-size:19px;color:#851013}.personal-entry input{min-width:0;width:65%;padding:14px;border:2px solid #ebcea0;border-radius:16px;font:inherit;font-size:20px}.personal-help{margin:0;text-align:center;font-size:13px;color:#59657a}
@media(max-width:650px){html body #gameScr #gbody.gbody{grid-template-rows:auto auto auto auto;align-content:space-evenly}html body #gameScr#gameScr #gbody img.qimg{max-width:100%!important;max-height:31dvh!important}.personal-entry{gap:8px}.personal-entry label{font-size:16px}.personal-entry input{padding:10px;font-size:17px}html body #gameScr #gbody .cards3 .opt{min-height:104px}}html body #gameScr #gbody .cards3 .opt{animation:none!important;opacity:1!important;transform:none!important}

html body #gameScr#gameScr #gbody img.qimg.picture-cutout{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;max-height:min(32dvh,285px)!important}
