#scr-login, #scr-recover, #scr-support, #scr-legal,
#btn-logout, #btn-support, #btn-news,
[data-go="friends"], [data-go="rank"], #goals-tabs [data-tab="profile"] { display: none !important; }
#credits-line { font-size: 11px; }
.hub-box { width: min(900px, 100%); line-height: 1.5; }
.hub-box > .row:first-child { flex-wrap: nowrap; align-items: flex-start; }
.hub-box > .row:first-child h2 { flex: 1; min-width: 0; }
.hub-box .btn, .hub-backup .btn { min-height: 44px; }
#scr-hub { padding-top: 68px; padding-bottom: 28px; }
.hub-box > section, .hub-panel { margin-top: 18px; }
.hub-panel { border: 2px solid var(--edge); border-radius: 9px; padding: 14px; background: rgba(3, 6, 16, .3); }
.hub-partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.hub-partner { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 8px; }
.hub-partner canvas { max-width: 100%; }
.hub-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.hub-mode-list { flex-direction: column; }
.hub-goal { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--edge); }
.hub-goal p { margin: 0; }
.hub-goal small { color: var(--muted); }
.hub-objectives { margin-top: 16px; }
.hub-objectives summary { cursor: pointer; padding: 8px 0; color: var(--gold); }
.hub-goal progress { width: 100%; height: 12px; accent-color: var(--gold); }
.hub-menu-link { display: block; min-height: 48px; text-align: left; }
.menu-right { overflow-y: auto; }
#hub-menu-next { font-size: 13px; line-height: 1.4; color: var(--gold); margin-bottom: 0; }
#hub-run-hint { position: fixed; left: 12px; right: 12px; bottom: 102px; z-index: 10; margin: auto; width: fit-content; max-width: calc(100% - 24px); padding: 7px 12px; background: rgba(3, 6, 16, .88); border-radius: 7px; font-size: 13px; text-align: center; pointer-events: none; }
#hub-save-status { position: fixed; left: 8px; bottom: 20px; max-width: calc(100% - 16px); z-index: 65; font-size: 10px; background: rgba(3, 6, 16, .9); padding: 3px 7px; border-radius: 6px; }
#hub-save-status button { display: none; }
#hub-save-status.hub-save-failed { padding: 12px; font-size: 14px; color: #ffb0b8; border: 2px solid #ffb0b8; }
#hub-save-status.hub-save-failed button { display: inline-block; margin: 8px; }
.hub-over-next { grid-column: 1 / -1; text-align: left; border-top: 2px solid var(--edge); padding-top: 16px; }
.hub-over-next .btn { font-size: 14px; }
.hub-backup { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.hub-file { display: grid; gap: 8px; margin: 16px 0; }
.hub-file input { max-width: 100%; min-height: 44px; font: inherit; }
.hub-recovery { width: min(760px, 95vw); max-height: 65vh; overflow-y: auto; margin-top: 16px; }
.btn:focus-visible, .card:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 480px) {
  #scr-hub { padding: 88px 12px 42px; }
  .hub-box { padding: 16px 12px; }
  .hub-box h2 { font-size: 20px; line-height: 1.25; }
  .hub-partners { gap: 8px; }
  .hub-partner { font-size: 13px; padding: 6px 2px; }
  .hub-actions .btn { flex: 1 1 160px; }
  .hub-backup { flex-wrap: wrap; }
}
.hub-code-dialog { width: min(480px, calc(100% - 28px)); color: var(--ink); max-height: calc(100% - 28px); }
.hub-code-dialog::backdrop { background: rgba(3, 6, 16, .8); }
.hub-code-dialog form .btn { margin-top: 16px; }
.hub-code-dialog .field { text-transform: uppercase; }
.hub-code-dialog a { color: var(--ink); text-underline-offset: 3px; }
.hub-code-status { min-height: 44px; color: #ffb0b8; margin-bottom: 0; }
.hub-code-success { color: var(--green); }
/* Keep the portrait menu scrollable instead of shrinking its action boxes. */
@media (max-width: 760px) and (min-height: 521px) {
  #scr-menu { display: block; }
  .menu-left { padding: 105px 16px 12px; }
  .menu-left .logo { margin-bottom: 8px; }
  .menu-left .logo .t1 { font-size: 32px; }
  .menu-left .logo .t2 { font-size: 12px; }
  #menu-partner { height: 100px; }
  .partner-card { margin-top: 0; }
  .partner-card .nm { font-size: 19px; }
  .menu-right { width: 100%; padding: 12px 16px 65px; overflow: visible; }
  .menu-right .box { flex-shrink: 0; }
  .menu-list { display: flex; }
  .menu-item { grid-template-columns: 26px 1fr; }
  .topbar { left: 10px; right: 10px; top: 10px; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .topbar .pill { padding: 4px 8px; gap: 5px; font-size: 12px; }
  .topbar .btn.small { padding: 4px 6px; }
  #credits-line { left: 8px; right: 8px; bottom: 4px; padding: 4px; font-size: 9px; background: rgba(5, 10, 25, .85); }
}
