/* Entry screens show their key choices within a viewport; expanded collections remain readable. */
.entry-drawer{margin:10px 0;border:1px solid var(--challenge-edge,#b57492);border-radius:15px;background:#513348;color:var(--ink);overflow:hidden}
.entry-drawer>summary{list-style:none;cursor:pointer;min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;box-sizing:border-box}
.entry-drawer>summary::-webkit-details-marker{display:none}
.entry-drawer>summary span:first-child{min-width:0}.entry-drawer>summary b{display:block;font-size:16px;line-height:1.2}.entry-drawer>summary small{display:block;font-size:11px;color:#e7d0d9;margin-top:4px}.entry-drawer>summary>span:last-child{font-size:23px;color:var(--challenge-accent,#ffc38b)}
.entry-drawer[open]>summary>span:last-child{transform:rotate(90deg)}.entry-drawer>summary:focus-visible{outline:3px solid #ffd39f;outline-offset:-4px}
.entry-drawer-content{padding:13px 15px;border-top:1px solid #ad7894}.entry-drawer-content .round-list-card{margin-bottom:10px}
html[data-theme=light] .entry-drawer{background:#fff4ea;color:#332331;border-color:#ae788e}html[data-theme=light] .entry-drawer>summary small{color:#684757}
html[data-screen=sections] .simple-shell main{padding-top:12px}.simple-shell main>.simple-heading{min-height:0;margin-bottom:12px}.simple-shell main>.simple-heading h1{font-size:clamp(24px,2.5vw,32px);margin:3px 0}.simple-shell main>.simple-heading p{font-size:12px;line-height:1.35;margin:4px 0 0}
html[data-screen=sections] .main-section-card{height:clamp(178px,25dvh,230px)}html[data-screen=sections] .main-section-card .section-illustration{height:43%!important;flex-basis:auto}
html[data-experience=student][data-screen=sections] .approved-hero{min-height:0;padding:19px 25px}.approved-hero h1{font-size:clamp(28px,3vw,43px);margin:8px 0}.approved-hero p{font-size:13px;margin-bottom:10px}.approved-game-grid{gap:11px;margin-top:11px}.approved-game-card{min-height:0;height:clamp(140px,22dvh,195px);padding:14px 18px}.approved-game-card h2{margin:18px 0 8px;font-size:clamp(20px,2vw,27px)}.approved-card-bottom strong{padding-top:6px;font-size:12px}.approved-card-bottom>span{margin-top:5px;font-size:13px}
html[data-screen=subject] .simple-topic-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.simple-topic-grid .topic-box{padding:12px}.simple-topic-grid .topic-box h2{margin:7px 0;font-size:17px}.simple-topic-grid .subtopic-entry{padding:10px;min-height:60px}.simple-topic-grid .subtopic-entry h3{font-size:13px;margin:2px 0}.simple-topic-grid .planned-disclosure{margin-top:7px;font-size:11px}
html[data-screen=rounds] .round-list-card{padding:13px 17px!important;margin:9px 0}.round-list-card h2{font-size:19px!important;margin:5px 0!important}.round-list-card p{font-size:12px!important;margin:4px 0!important}.round-list-card .round-actions button{min-height:36px}.round-archive{margin-top:8px}
html:is([data-screen=solo],[data-screen=rooms],[data-screen=weekly]) .group-event-explainer{padding:10px 13px;margin:8px 0}.group-event-explainer p{margin:3px 0;font-size:11px}.group-events-list{margin:9px 0!important}.group-events-list .section-title h2{font-size:17px!important}.group-events-list .fixture-card{margin:5px 0!important;padding:9px 12px!important}.teacher-made-section{margin:9px 0}.challenge-catalog-drawer{margin:9px 0}.challenge-catalog-drawer>summary{min-height:62px}
html[data-screen=rewards] .rewards-overview{padding:13px!important}.reward-section-title{margin:12px 0 7px}.reward-cabinet{gap:8px}.reward-cabinet .reward-badge{padding:10px!important}.reward-archive{margin-top:10px}
html[data-screen=insights] .insight-header{padding:13px 18px;margin-bottom:10px}.insight-header h1{font-size:26px;margin:3px 0}.insight-header p{font-size:12px;margin:3px 0}.insight-navigation{margin-bottom:9px}.insight-summary{gap:8px}.insight-summary>div{padding:9px}.insight-summary strong{font-size:23px}.insight-detail{margin-top:9px}.insight-detail .insight-concept-chart{margin:0}.insight-limit{margin:7px 0}
@media(max-width:800px){
 html[data-screen=sections] .simple-shell main{padding-top:8px!important}
 html[data-experience=student][data-screen=sections] .approved-hero{padding:12px 14px}.approved-hero h1{font-size:clamp(25px,7vw,34px);margin:5px 0}.approved-hero p{font-size:11px;margin-bottom:7px}.approved-build{padding:7px 11px!important;font-size:12px}.approved-game-grid{gap:7px;margin-top:7px}.approved-game-card{height:clamp(112px,19dvh,150px);padding:9px 10px}.approved-game-card h2{font-size:clamp(15px,4vw,19px);margin:16px 0 5px}.approved-game-card .clubhouse-mark{width:35px;height:35px}.approved-card-bottom strong{font-size:10px}.approved-card-bottom>span{font-size:11px;margin-top:3px}
 html[data-screen=sections] .main-section-card{height:clamp(140px,25dvh,195px)}.main-section-card .section-card-copy p{display:none}.main-section-card .section-card-copy{padding:8px 11px!important}.main-section-card .section-card-copy h2{font-size:17px}.main-section-card .section-card-copy footer{font-size:10px;padding-top:5px!important}
 html[data-screen=subject] .simple-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.simple-topic-grid .topic-box{padding:8px}.simple-topic-grid .topic-box h2{font-size:13px;margin:4px 0}.simple-topic-grid .topic-icon{font-size:17px}.simple-topic-grid .subtopic-entry{padding:7px;min-height:48px}.simple-topic-grid .subtopic-entry h3{font-size:11px}.simple-topic-grid .planned-disclosure{font-size:10px;margin-top:4px}
 .entry-drawer>summary{min-height:53px;padding:8px 11px}.entry-drawer>summary b{font-size:14px}.entry-drawer-content{padding:10px}
 html[data-screen=rewards] .reward-cabinet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.reward-cabinet .reward-badge{min-height:0;padding:7px!important;font-size:11px}.reward-cabinet .reward-badge p{display:none}.reward-section-title{font-size:17px}
 html[data-screen=insights] .insight-header{padding:9px 12px}.insight-header h1{font-size:21px}.insight-header p{display:none}.insight-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.insight-summary>div{display:block;padding:7px}.insight-summary strong{font-size:18px}.insight-summary small{font-size:10px}
}
@media(max-width:380px){html[data-screen=sections] .main-section-card{height:135px}.approved-game-card{height:110px}.simple-shell main>.simple-heading h1{font-size:22px}}
/* Height constraints never hide content when zoom or a small viewport makes it impossible to fit. */
@media(max-height:560px){.approved-game-card,html[data-screen=sections] .main-section-card{height:auto;min-height:110px}}
/* Group and weekly entry pages keep the game list and the two discovery doors in view. */
@media(max-width:800px){
 html:is([data-screen=rooms],[data-screen=weekly]) .simple-shell main{padding:7px 10px calc(var(--phone-main-nav-height,68px) + 7px + env(safe-area-inset-bottom))!important}
 html:is([data-screen=rooms],[data-screen=weekly]) .simple-shell main>.simple-heading{display:grid;grid-template-columns:1fr;gap:6px;margin:0 0 6px;padding:8px 11px!important}
 html:is([data-screen=rooms],[data-screen=weekly]) .simple-shell main>.simple-heading h1{font-size:22px;margin:0}
 html:is([data-screen=rooms],[data-screen=weekly]) .simple-shell main>.simple-heading p{font-size:10px;margin:2px 0;line-height:1.25}
 html:is([data-screen=rooms],[data-screen=weekly]) .simple-shell main>.simple-heading>.row{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%;margin:0}
 html:is([data-screen=rooms],[data-screen=weekly]) .simple-shell main>.simple-heading>.row button{min-height:34px!important;padding:5px 7px!important;font-size:10px!important;margin:0}
 html:is([data-screen=rooms],[data-screen=weekly]) .group-event-explainer{padding:7px 10px;margin:5px 0}
 html:is([data-screen=rooms],[data-screen=weekly]) .group-event-explainer>b{font-size:11px}
 html:is([data-screen=rooms],[data-screen=weekly]) .group-event-explainer p{font-size:10px;line-height:1.25;margin:2px 0}
 html:is([data-screen=rooms],[data-screen=weekly]) .group-event-explainer summary{min-height:25px;font-size:10px}
 html:is([data-screen=rooms],[data-screen=weekly]) .group-events-list{margin:5px 0!important}
 html:is([data-screen=rooms],[data-screen=weekly]) .group-events-list .section-title{margin-bottom:4px}
 html:is([data-screen=rooms],[data-screen=weekly]) .group-events-list .section-title h2{font-size:14px!important}
 html:is([data-screen=rooms],[data-screen=weekly]) .compact-event-empty{padding:7px 10px;font-size:10px}
 html:is([data-screen=rooms],[data-screen=weekly]) .teacher-made-section,html:is([data-screen=rooms],[data-screen=weekly]) .challenge-catalog-drawer{margin:5px 0}
 html:is([data-screen=rooms],[data-screen=weekly]) .entry-drawer>summary,html:is([data-screen=rooms],[data-screen=weekly]) .challenge-catalog-drawer>summary{min-height:47px;padding:6px 10px}
 html:is([data-screen=rooms],[data-screen=weekly]) .challenge-catalog-drawer .drawer-symbol{height:30px;width:30px;flex-basis:30px}
}
/* Use the available viewport as the layout budget instead of shrinking cards into a corner. */
html[data-experience=student][data-screen=sections] .simple-shell main{width:100%;box-sizing:border-box;padding-bottom:12px}
html[data-experience=student][data-screen=sections] .approved-home{min-height:calc(100dvh - 70px - 28px);display:grid;grid-template-rows:minmax(190px,34fr) minmax(310px,66fr);gap:12px}
html[data-experience=student][data-screen=sections] .approved-hero{height:100%;box-sizing:border-box}
html[data-experience=student][data-screen=sections] .approved-game-grid{height:100%;min-height:0;margin:0;grid-template-rows:repeat(2,minmax(0,1fr));gap:12px}
html[data-experience=student][data-screen=sections] .approved-game-card{height:100%;min-height:0}
html[data-experience=teacher][data-screen=sections] .simple-shell main{width:100%;min-height:calc(100dvh - 70px);display:flex;flex-direction:column;box-sizing:border-box}
html[data-experience=teacher][data-screen=sections] .section-card-grid{flex:1;grid-auto-rows:minmax(0,1fr);align-items:stretch}
html[data-experience=teacher][data-screen=sections] .main-section-card{height:100%;min-height:170px}
@media(max-width:800px){
 html[data-experience=student][data-screen=sections] .simple-shell main{padding-bottom:calc(var(--phone-main-nav-height,68px) + env(safe-area-inset-bottom) + 6px)!important}
 html[data-experience=student][data-screen=sections] .approved-home{height:calc(100dvh - 84px - var(--phone-main-nav-height,68px) - env(safe-area-inset-bottom) - 16px);min-height:460px;grid-template-rows:minmax(150px,34fr) minmax(290px,66fr);gap:8px}
 html[data-experience=student][data-screen=sections] .approved-game-grid{gap:8px}
 html[data-experience=student][data-screen=sections] .approved-game-card{height:100%!important;min-height:0!important}
 html[data-experience=teacher][data-screen=sections] .simple-shell main{min-height:calc(100dvh - 84px);padding-bottom:calc(var(--phone-main-nav-height,68px) + env(safe-area-inset-bottom) + 7px)!important}
 html[data-experience=teacher][data-screen=sections] .main-section-card{height:100%!important;min-height:120px}
 html:is([data-screen=rooms],[data-screen=weekly]) .simple-shell main{min-height:calc(100dvh - 84px);display:flex;flex-direction:column;box-sizing:border-box;margin:0 auto}
 html:is([data-screen=rooms],[data-screen=weekly]) .group-events-list{flex:1;display:flex;flex-direction:column;min-height:0}
 html:is([data-screen=rooms],[data-screen=weekly]) .compact-event-empty{flex:1;min-height:65px;justify-content:center}
 html:is([data-screen=rooms],[data-screen=weekly]) .group-events-list>.fixture-card{flex:1;min-height:90px;display:flex;flex-direction:column;justify-content:center}
}
@media(max-height:620px){html[data-experience=student][data-screen=sections] .approved-home{height:auto;min-height:0;grid-template-rows:auto auto}html[data-experience=student][data-screen=sections] .approved-game-card{min-height:120px!important}}
/* Original supplied SEE-ME Labs PNG, kept small at the desktop sidebar foot. */
@media(min-width:801px){.simple-shell .sidebar .company-credit{max-height:none;max-width:100px;overflow:visible;padding-top:5px;margin-top:auto}.simple-shell .sidebar .company-credit img{width:90px;height:80px;object-fit:contain;object-position:left center;mask-image:none;-webkit-mask-image:none}}
@media(min-width:801px){.simple-shell .sidebar .company-credit{max-width:82px;gap:2px}.simple-shell .sidebar .company-credit>span{font-size:9px}.simple-shell .sidebar .company-credit img{width:82px;height:61px;object-fit:contain}}
/* Phone Home occupies exactly the space between its fixed header and bottom navigation. */
@media(max-width:800px) and (min-height:620px){
 html[data-experience=student][data-screen=sections],html[data-experience=teacher][data-screen=sections]{height:100dvh;overflow:hidden}
 html[data-experience=student][data-screen=sections] body,html[data-experience=teacher][data-screen=sections] body{height:100dvh;overflow:hidden}
 html[data-experience=student][data-screen=sections] .simple-shell,html[data-experience=teacher][data-screen=sections] .simple-shell{height:100dvh;min-height:0;overflow:hidden}
 html[data-experience=student][data-screen=sections] .main-shell,html[data-experience=teacher][data-screen=sections] .main-shell{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 html[data-experience=student][data-screen=sections] .topbar,html[data-experience=teacher][data-screen=sections] .topbar{flex:0 0 84px}
 html[data-experience=student][data-screen=sections] .simple-shell main,html[data-experience=teacher][data-screen=sections] .simple-shell main{height:calc(100dvh - 84px);min-height:0;flex:1 1 auto;overflow:hidden;margin:0 auto;width:100%;box-sizing:border-box}
 html[data-experience=student][data-screen=sections] .approved-home{height:100%;min-height:0;grid-template-rows:minmax(0,34fr) minmax(0,66fr)}
 html[data-experience=student][data-screen=sections] .approved-game-grid{min-height:0}
 html[data-experience=teacher][data-screen=sections] .section-card-grid{min-height:0}
}
/* Zoomed text and short screens retain scrolling instead of hiding controls. */
@media(max-width:800px) and (max-height:619px){html[data-experience=student][data-screen=sections] .approved-home{height:auto;min-height:0}html[data-experience=student][data-screen=sections] .approved-game-grid{height:auto;grid-auto-rows:minmax(120px,auto)}}
/* Desktop Home: the header, content, and sidebar share one viewport budget. */
@media(min-width:801px) and (min-height:620px){
 html[data-screen=sections][data-experience=student],html[data-screen=sections][data-experience=teacher],
 html[data-screen=sections][data-experience=student] body,html[data-screen=sections][data-experience=teacher] body{height:100dvh;overflow:hidden}
 html[data-screen=sections] .simple-shell{height:100dvh;min-height:0;overflow:hidden}
 html[data-screen=sections] .simple-shell .main-shell{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 html[data-screen=sections] .simple-shell .topbar{height:80px;min-height:80px;flex:0 0 80px;box-sizing:border-box}
 html[data-screen=sections] .simple-shell main{height:calc(100dvh - 80px);min-height:0;flex:1 1 auto;overflow:hidden;box-sizing:border-box;width:100%;max-width:1400px;margin:0 auto;padding:14px 28px 16px}
 html[data-screen=sections][data-experience=student] .approved-home{height:100%;min-height:0;grid-template-rows:minmax(0,34fr) minmax(0,66fr);gap:12px}
 html[data-screen=sections][data-experience=student] .approved-game-grid{height:100%;min-height:0;margin:0;grid-template-rows:repeat(2,minmax(0,1fr))}
 html[data-screen=sections][data-experience=student] .approved-game-card{height:100%;min-height:0}
 html[data-screen=sections][data-experience=teacher] .section-card-grid{flex:1;min-height:0;grid-auto-rows:minmax(0,1fr)}
 html[data-screen=sections][data-experience=teacher] .main-section-card{height:100%;min-height:0}
}
