/* Tidebet layout  -  navbar, page shell, topbar spacing */
@import url("site-ax-shell.css");

:root {
  --navbar-height: 56px;
  --site-content-max: 1260px;
  /* Duel-style split: darker top bar, lighter play area */
  --site-header-bg: rgb(9 11 22);
  --site-bg: rgb(15 18 32);
  --site-surface: rgb(18 23 49);
}

html.scrollbar,
body {
  margin: 0;
}

html.scrollbar {
  overflow-x: clip;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.text-light-000 {
  background-color: var(--site-header-bg);
}

#site-topbar-mount:empty {
  min-height: var(--navbar-height);
  background-color: var(--site-header-bg);
}

/* Top bar pinned to viewport  -  always above chat rail */
body:has(.site-header-themed) {
  padding-top: var(--navbar-height);
}

#site-topbar-mount:has(.site-header-themed) {
  height: 0;
  min-height: 0;
  overflow: visible;
}

.site-header-themed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 150;
  background-color: var(--site-header-bg) !important;
  border-bottom: 1px solid rgba(52, 60, 100, 0.55) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  transform: none;
}

.site-header-inner {
  height: var(--navbar-height);
  min-height: var(--navbar-height);
  max-height: var(--navbar-height);
  box-sizing: border-box;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

#topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(100%, 720px);
}

#topbar-actions select,
#topbar-actions .topbar-balance-pill {
  height: 40px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
}

#topbar-actions #navigation-header-login-button,
#topbar-actions #navigation-header-register-button {
  height: 40px;
  padding-left: 16px;
  padding-right: 16px;
  font-size: 0.9375rem;
}

.site-page-shell {
  min-height: calc(100vh - var(--navbar-height));
  background-color: var(--site-bg);
}

.site-page-shell > main {
  background-color: var(--site-bg);
}

.site-content {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--site-content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 16px;
}

.site-content--games {
  background-color: var(--site-bg);
}

@media (min-width: 768px) {
  .site-content {
    padding: 20px 32px 28px;
  }
}

.site-content--admin {
  max-width: 720px;
  padding-top: 24px;
  padding-bottom: 32px;
}

#game-root > .flex.flex-col {
  gap: 20px;
}

@media (max-width: 1023px) {
  #topbar-actions {
    gap: 6px;
  }

  #topbar-actions select,
  #topbar-actions .topbar-balance-pill {
    font-size: 0.8125rem;
    padding-left: 10px;
    padding-right: 10px;
  }
}
