/* StakeQuiz 1.1.99
   Compact single game header, icon table metadata, currency suffix and full mobile identity. */

.sq-table-icon-row{display:inline-flex;align-items:center;gap:4px;vertical-align:middle}
.sq-toolbar-icon{display:inline-grid;place-items:center;min-width:26px;height:24px;padding:0 6px;border-radius:7px;border:1px solid rgba(255,255,255,.13);background:rgba(6,16,25,.72);font-size:12px;font-weight:900;line-height:1;color:#dfeef7;box-sizing:border-box}
.sq-toolbar-icon.is-real{color:#ffd15b;border-color:rgba(255,209,91,.34)}
.sq-toolbar-icon.is-play{color:#60e6d0;border-color:rgba(96,230,208,.30)}
.sq-image-question-toolbar-icon{color:#7bdfff;border-color:rgba(80,190,240,.34)}
.sq-pot-currency{font-size:.9em;font-weight:900;color:inherit;opacity:.86}
.sq-mobile-wallets,.sq-mobile-profile-link{display:none}

/* Compact the UI template control when a narrow topbar is ever shown. The native
   select stays clickable, but only the UI label consumes visible space. */
@media(max-width:1400px){
  .topbar .ui-template-switch{position:relative;width:31px;min-width:31px;height:28px;padding:0!important;display:inline-grid!important;place-items:center!important;overflow:hidden!important}
  .topbar .ui-template-switch .ui-switch-label{display:block!important;font-size:9px!important;line-height:1!important;pointer-events:none!important}
  .topbar .ui-template-switch select{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;opacity:0!important;cursor:pointer!important;padding:0!important}
}

/* JS-independent media fallback. */
@media(max-width:1400px) and (orientation:landscape), (max-height:820px) and (orientation:landscape){
  body.game-page>.topbar,body.lobby-page>.topbar{display:none!important}
}

/* The html class is set in head.ejs before BODY is painted, so desktop-browser
   mobile emulation and unusual DPR/viewport combinations get the same layout. */
html.sq-compact-landscape body.game-page>.topbar,
html.sq-compact-landscape body.lobby-page>.topbar{display:none!important}

html.sq-compact-landscape body.game-page .game-shell{height:100dvh!important;min-height:0!important;padding:2px!important;overflow:hidden!important}
html.sq-compact-landscape body.game-page .game-toolbar{
  display:flex!important;align-items:center!important;gap:5px!important;
  min-height:36px!important;height:36px!important;max-height:36px!important;
  padding:3px 5px!important;overflow:visible!important;white-space:nowrap!important;
  position:relative!important;z-index:2147483000!important
}
html.sq-compact-landscape body.game-page #leave-lobby-shortcut{flex:0 0 auto!important;height:28px!important;min-height:28px!important;padding:2px 7px!important;font-size:10px!important}
html.sq-compact-landscape body.game-page .table-title-block.sq-compact-table-meta{display:flex!important;align-items:center!important;gap:5px!important;flex:1 1 190px!important;min-width:125px!important;max-width:310px!important;overflow:hidden!important}
html.sq-compact-landscape body.game-page .sq-table-name{display:block!important;min-width:0!important;max-width:150px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important;line-height:1!important}
html.sq-compact-landscape body.game-page .sq-table-icon-row{flex:0 0 auto!important;gap:3px!important}
html.sq-compact-landscape body.game-page .sq-toolbar-icon{min-width:23px!important;width:23px!important;height:23px!important;padding:0!important;border-radius:6px!important;font-size:11px!important}
html.sq-compact-landscape body.game-page .sq-toolbar-icon.sq-money-mode-icon.is-play{font-size:8px!important;letter-spacing:-.03em!important}

html.sq-compact-landscape body.game-page .round-meta{display:flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important;margin-left:0!important;min-width:0!important;font-size:9px!important}
html.sq-compact-landscape body.game-page .round-meta>span:nth-child(3){display:none!important}
html.sq-compact-landscape body.game-page #connection-state{display:none!important}
html.sq-compact-landscape body.game-page .sq-round-chip,
html.sq-compact-landscape body.game-page .sq-pot-chip{display:inline-flex!important;align-items:center!important;gap:2px!important;padding:3px 5px!important;border-radius:6px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.08)!important;line-height:1!important}
html.sq-compact-landscape body.game-page .sq-pot-currency{font-size:8px!important}
html.sq-compact-landscape body.game-page #mobile-fullscreen,
html.sq-compact-landscape body.game-page #mobile-chat-toggle{width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;padding:0!important}
html.sq-compact-landscape body.game-page #mobile-chat-toggle{font-size:0!important}
html.sq-compact-landscape body.game-page #mobile-chat-toggle:before{content:'💬';font-size:12px!important;line-height:1!important}

html.sq-compact-landscape body.game-page .sq-mobile-unified-tools.sq-mobile-game-tools{display:flex!important;align-items:center!important;gap:3px!important;flex:0 0 auto!important;margin-left:auto!important;min-width:0!important;position:relative!important;z-index:2147483400!important}
html.sq-compact-landscape body.game-page .sq-mobile-wallets{display:flex!important;align-items:center!important;gap:2px!important;min-width:0!important}
html.sq-compact-landscape body.game-page .sq-mobile-wallet{display:inline-flex!important;align-items:center!important;gap:2px!important;height:26px!important;padding:0 5px!important;border-radius:7px!important;border:1px solid rgba(255,255,255,.10)!important;background:rgba(255,255,255,.035)!important;font-size:7px!important;font-weight:800!important;line-height:1!important}
html.sq-compact-landscape body.game-page .sq-mobile-wallet b{font-size:8px!important;max-width:54px!important;overflow:hidden!important;text-overflow:ellipsis!important}
html.sq-compact-landscape body.game-page .sq-play-wallet{color:#65e3cf!important}
html.sq-compact-landscape body.game-page .sq-real-wallet{color:#ffd264!important}
html.sq-compact-landscape body.game-page .sq-mobile-shop-link{height:26px!important;min-height:26px!important;padding:0 6px!important;font-size:8px!important;border-radius:7px!important}

html.sq-compact-landscape body.game-page .sq-mobile-profile-link{display:flex!important;align-items:center!important;gap:4px!important;height:28px!important;min-width:0!important;max-width:126px!important;padding:1px 5px 1px 2px!important;border-radius:8px!important;border:1px solid rgba(255,255,255,.10)!important;background:rgba(255,255,255,.035)!important;color:inherit!important;text-decoration:none!important;overflow:hidden!important}
html.sq-compact-landscape body.game-page .sq-mobile-profile-link img{display:block!important;width:24px!important;height:24px!important;min-width:24px!important;border-radius:50%!important;object-fit:cover!important;border:1px solid rgba(225,181,71,.55)!important}
html.sq-compact-landscape body.game-page .sq-mobile-profile-copy{display:grid!important;min-width:0!important;line-height:1!important}
html.sq-compact-landscape body.game-page .sq-mobile-profile-copy strong{display:block!important;max-width:86px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:8px!important;line-height:1.05!important}
html.sq-compact-landscape body.game-page .sq-mobile-profile-copy .sqp-stars{display:block!important;white-space:nowrap!important;font-size:6px!important;line-height:1!important;letter-spacing:-.02em!important}
html.sq-compact-landscape body.game-page .sq-mobile-profile-copy .sqp-stars i{font-style:normal!important;color:#46535d!important}
html.sq-compact-landscape body.game-page .sq-mobile-profile-copy .sqp-stars i.filled{color:#d7ad4e!important}
html.sq-compact-landscape body.game-page .sq-mobile-language-switch select{width:40px!important;min-width:40px!important;height:27px!important;min-height:27px!important;padding:1px 2px!important;font-size:8px!important;border-radius:7px!important}
html.sq-compact-landscape body.game-page .sq-mobile-game-menu>summary{width:27px!important;height:27px!important;min-width:27px!important}

/* Keep the compact POT pill from 1.1.98 away from the question text. */
html.sq-compact-landscape body.game-page #question-card #pot-stack.sq-pot-question-dock-198{top:-9px!important;max-width:108px!important;height:23px!important;min-height:23px!important;padding:2px 7px!important}

/* Very narrow landscape: preserve identity first, then trim secondary controls. */
@media(max-width:920px) and (orientation:landscape){
  html.sq-compact-landscape body.game-page .sq-table-name{max-width:95px!important}
  html.sq-compact-landscape body.game-page .sq-mobile-wallets{display:none!important}
  html.sq-compact-landscape body.game-page .sq-mobile-profile-link{max-width:112px!important}
  html.sq-compact-landscape body.game-page .sq-mobile-shop-link{font-size:0!important;width:26px!important;padding:0!important}
  html.sq-compact-landscape body.game-page .sq-mobile-shop-link:before{content:'S';font-size:9px!important;font-weight:900!important}
}
