/* V8 approved feedback: preserve the universal popup shell. */
body:has(#popup[open]) .app>.question,body:has(#popup[open]) .app>.photos,body:has(#popup[open]) .app>.next-row,body:has(#popup[open]) #screen{visibility:hidden}
#popup.info-popup .rule-rows p{font-size:clamp(16px,2.65dvh,19px);font-weight:400;line-height:1.35;padding:8px 4px}
#popup.info-popup .rule-rows>p>span{font-weight:400}
#popup .medals{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,112px));justify-content:center;align-content:center;gap:16px 22px}
#popup .circle{width:clamp(60px,14dvh,90px);height:clamp(60px,14dvh,90px)}
/* The two columns touch the viewport edges. Each foreground frame is square. */
body:not(.panel) .app{max-width:500px;width:100%;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);grid-template-rows:var(--game-header,70px) var(--question-height,42px) auto 40px minmax(0,1fr) 48px;row-gap:4px}
body:not(.panel)>.fixed-brand{top:env(safe-area-inset-top,0px);height:var(--game-logo-height,76px)}
body:not(.panel) .photos{width:100%;max-width:none;margin:0;height:auto;aspect-ratio:auto;grid-template-rows:repeat(2,var(--frame-height));gap:4px}
body:not(.panel) .card{aspect-ratio:1}
body:not(.panel) .next-row{width:100%;grid-template-columns:1fr auto 1fr;height:40px}
body:not(.panel) .next-row .next-button{height:40px;min-height:40px}
body:not(.panel) .game-review{height:40px;min-width:44px;padding:2px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:none;border:0;color:white;font:700 11px/1.1 Arial}
.game-review .ui-icon{width:18px;height:18px}
body:not(.panel) .next-row:has(.game-review[hidden]){grid-template-columns:1fr 1fr}
.bottom-nav,body.panel .bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr));max-width:500px}
body:not(.panel) .bottom-nav{height:48px;padding:0 8px}
body:not(.panel) .nav-item{min-height:44px;font-size:11px}
@media(max-height:620px){body:not(.panel) .app{row-gap:3px}#popup .medals{gap:12px 18px}}

/* Approved square preview: narrow gaps, true squares, unchanged popup shell. */
body:not(.panel) .app{row-gap:2px}
body:not(.panel) .question{margin:0 4px}
body:not(.panel)>.fixed-brand{mix-blend-mode:normal}
