/* Site controls overlay the supplied full-viewport game. */
:root{--font:"Source Sans 3",system-ui,sans-serif;--ink:#1c1c1a;--red:#e0533a}
body{font-family:var(--font);padding-bottom:0!important}
.hud{position:fixed;z-index:20;top:max(8px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none;padding:0}
.hud>*{pointer-events:auto}.hud .site{margin-right:auto}.site ul{max-height:calc(100dvh - 90px - env(safe-area-inset-top));overflow:auto}
#popcorn-overlay-shield{position:fixed;inset:0;z-index:15;touch-action:none}
.fw-share-key{position:fixed;right:max(12px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top))}
.fw-tray{z-index:30;right:max(12px,env(safe-area-inset-right))}.fw-status{z-index:35;bottom:max(24px,env(safe-area-inset-bottom))}
.dy-count-card{z-index:40}.dy-count-link{font-family:var(--font)}
/* One compact row on ordinary phones; icons retain their accessible action names. */
@media(max-width:560px){
 .hud{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));height:48px;align-items:flex-start}
 .site-title>button{box-sizing:border-box;width:108px;padding:8px 10px;gap:8px;justify-content:space-between}
 .fw-share-key{right:max(8px,env(safe-area-inset-right));width:44px;min-width:44px;height:46px;padding:4px 4px 7px}
 .fw-keycap{padding:0;gap:0}.fw-keycap>span{display:none}.fw-keycap svg{width:18px;height:18px}
 .fw-tray{right:max(8px,env(safe-area-inset-right))}
}
/* Preserve generous taps on narrow phones: two close, left-aligned rows. */
@media(max-width:370px){
 .hud{height:96px}
 .fw-share-key{top:calc(max(8px,env(safe-area-inset-top)) + 48px);left:calc(max(8px,env(safe-area-inset-left)) + 195px);right:auto}
 .fw-tray{left:max(8px,env(safe-area-inset-left));right:auto}
}
