/* The game owns one viewport. Reserve a scroll container for unusually short
   screens, larger text settings and longer artwork titles after the reveal. */
html:has(.game-shell){height:100%;overflow:hidden}
body.game-shell{height:100vh;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.game-shell>.masthead,.game-shell>.sandbox-note,.game-shell>.game-foot{flex:none}
.game-shell>main.gallery-main{flex:1 1 0;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-inline:4px}
.game-foot{width:min(1180px,92%);margin:0 auto;min-height:32px;display:flex;justify-content:flex-end;align-items:center;gap:16px;border-top:1px solid var(--rule);padding:2px 4px max(2px,env(safe-area-inset-bottom))}
.game-foot button,.game-foot a,#site-links>button{font:inherit;font-size:.85rem;color:var(--ink);background:none;border:0;text-decoration:underline;cursor:pointer}
#site-links{background:var(--paper);color:var(--ink);width:min(420px,92vw);max-height:85dvh;overflow:auto;padding:22px;border:1px solid var(--rule);border-radius:4px}
#site-links::backdrop{background:#14201980}#site-links .site-foot{display:grid;width:100%;margin:0;padding:0 0 16px;border:0}#site-links .site-foot nav{display:flex;flex-wrap:wrap}
.game-shell:has(#round-start[hidden]):not(:has(#game[hidden])) .house-slot{display:none}
.game-shell .house-slot{margin-block:clamp(7px,2dvh,20px)}
.game-shell .intro{padding-block:clamp(12px,3dvh,28px) 12px}
.game-shell:has(#round-start[hidden]) .intro .instruction{display:none}
.game-shell .gallery-main:has(.revealed) .intro h1{font-size:clamp(1.75rem,4vw,3.2rem)}
@media(max-width:700px){
  .game-shell:has(#round-start[hidden]) .intro{padding-block:7px 4px}
  .game-shell:has(#round-start[hidden]) .intro .edition{margin:0}
  .game-shell:has(#round-start[hidden]) .intro h1{font-size:clamp(1.75rem,6vw,2.35rem)}
  .game-shell .card.revealed .wall{height:clamp(75px,13dvh,125px)}
  .game-shell .card.revealed .meta{padding-block:3px}
  .game-shell .feedback{gap:5px}.game-shell .feedback .primary{padding:7px 15px}
  .game-shell .header-inner{min-height:48px}
}
@media(min-width:701px){
  html:not([data-design]) .game-shell .house-slot{margin-block:7px}
  html:not([data-design]) .game-shell .round-invite{min-height:clamp(200px,34dvh,295px)}
}
@media(max-width:700px){
  html:not([data-design]) .game-shell .card.revealed .wall{height:clamp(70px,11dvh,114px)}
}

.share-preview{display:block;width:100%;max-height:44dvh;object-fit:contain;margin:12px auto}.share-panel .actions{display:flex;flex-wrap:wrap;gap:8px}.share-panel textarea{width:100%}
