﻿:root {
  --panel: rgba(13, 19, 32, 0.92);
  --panel-strong: rgba(13, 19, 32, 0.97);
  --line: rgba(255, 191, 128, 0.12);
  --line-strong: rgba(255, 191, 128, 0.28);
  --ink: #eef4ff;
  --muted: #8da0c1;
  --accent: #ff9a52;
  --accent-strong: #ffbf80;
  --good: #88d66f;
  --warn: #ffd07a;
  --bad: #ef6b6b;
  --shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  --team-border: #8da0c1;
  --team-soft: rgba(141, 160, 193, 0.14);
  --team-fill: rgba(141, 160, 193, 0.22);
  --team-strong: rgba(141, 160, 193, 0.72);
  --team-glow: rgba(141, 160, 193, 0.28);
  --team-text: #f8fbff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.team-color-dot {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--team-border) 72%, white);
  background: var(--team-border);
  box-shadow:
    0 0 0 2px var(--team-soft),
    0 0 14px var(--team-glow);
}

.console-shell--runtime {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  transition: grid-template-columns 0.18s ease;
}

.console-shell--runtime .console-sidebar {
  position: sticky;
  inset: auto;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  width: auto;
  z-index: 20;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  transition: width 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  box-shadow: none;
}

.console-shell--runtime.is-sidebar-collapsed {
  grid-template-columns: 92px minmax(0, 1fr);
}

.console-shell--runtime.is-sidebar-collapsed .console-brand {
  padding: 1rem 0.75rem 0.9rem;
  text-align: center;
}

.console-shell--runtime.is-sidebar-collapsed .console-brand-row {
  justify-content: center;
}

.console-shell--runtime.is-sidebar-collapsed .console-home-link {
  width: 56px;
  height: 44px;
  margin: 0 auto;
}

.console-shell--runtime.is-sidebar-collapsed .console-home-logo {
  width: 40px;
}

.console-shell--runtime.is-sidebar-collapsed .console-brand h1,
.console-shell--runtime.is-sidebar-collapsed .console-nav__label,
.console-shell--runtime.is-sidebar-collapsed .console-nav__item span {
  display: none;
}

.console-shell--runtime.is-sidebar-collapsed .console-nav {
  padding: 1rem 0 0.85rem;
  align-items: center;
}

.console-shell--runtime.is-sidebar-collapsed .console-nav__item {
  width: 56px;
  justify-content: center;
  margin: 0 auto 0.4rem;
  padding: 0.8rem 0;
  border-left-color: transparent;
  border-radius: 14px;
}

.console-shell--runtime.is-sidebar-collapsed .console-nav__item.is-active {
  border-left-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 154, 82, 0.22);
}

.console-shell--runtime.is-sidebar-collapsed .console-footer {
  padding: 1rem 0.75rem;
  align-items: center;
}

.console-shell--runtime.is-sidebar-collapsed .console-account-slot {
  width: 56px;
}

.console-shell--runtime.is-sidebar-collapsed .console-account-slot .xjk-account-widget__mini-profile {
  justify-content: center;
  padding-inline: 0;
}

.console-shell--runtime.is-sidebar-collapsed .console-account-slot .xjk-account-widget__copy,
.console-shell--runtime.is-sidebar-collapsed .console-account-slot .xjk-account-widget__chevron {
  display: none;
}

.shell-scrim {
  display: none;
}

.console-shell--runtime .console-main {
  min-width: 0;
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1rem 2rem;
}

.shell-edge-toggle {
  position: fixed;
  top: 1.25rem;
  left: calc(280px - 12px);
  z-index: 35;
  width: 24px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 13, 20, 0.96);
  color: var(--muted);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
  transition:
    left 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.shell-edge-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(14, 18, 28, 0.98);
}

.shell-edge-toggle__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.shell-edge-toggle__glyph svg {
  width: 14px;
  height: 14px;
  display: block;
}

.console-shell--runtime.is-sidebar-collapsed .shell-edge-toggle {
  left: calc(92px - 12px);
}

.console-shell--runtime.is-sidebar-collapsed .shell-edge-toggle__glyph {
  transform: rotate(180deg);
}

.console-route {
  max-width: 1440px;
}

.console-route--bingo {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}

.runtime-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.runtime-bar__lead {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.runtime-bar__lead h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
}

.bingo-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.bingo-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bingo-tab {
  min-width: 92px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 0.72rem 0.9rem;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-weight: 600;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.bingo-tab:hover:not(:disabled) {
  border-color: var(--line-strong);
  color: var(--ink);
}

.bingo-tab.is-active {
  background: rgba(255, 154, 82, 0.08);
  border-color: rgba(255, 154, 82, 0.32);
  color: var(--ink);
}

.bingo-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.room-settings-button {
  min-width: 134px;
}

.tab-panel {
  display: block;
}

.panel,
.detail-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 16px;
}

.panel {
  padding: 1rem;
}

.panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.lobby-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lobby-leave-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 82px;
  border-color: rgba(239, 107, 107, 0.28);
  color: #ffc4c4;
}

.lobby-leave-btn:hover {
  border-color: rgba(239, 107, 107, 0.5);
  background: rgba(239, 107, 107, 0.08);
}

.lobby-leave-btn.is-loading {
  color: rgba(238, 244, 255, 0.8);
  border-color: rgba(141, 160, 193, 0.3);
  background: rgba(141, 160, 193, 0.1);
}

.panel__eyebrow,
.room-card__eyebrow,
.detail-card__label {
  margin: 0 0 0.4rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-weight: 600;
}

.panel__compact-copy,
.path-note,
#selectedMapSubtitle,
#claimStatusBody,
.team-picker__copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.team-required-banner {
  border: 1px solid rgba(255, 154, 82, 0.36);
  background: rgba(255, 154, 82, 0.08);
  border-radius: 18px;
  padding: 1rem;
}

.team-required-banner__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.team-required-banner h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
}

.team-required-banner p:last-child {
  max-width: 760px;
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

h2,
h3 {
  margin: 0;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.panel--games,
.panel--lobby,
.panel--room {
  display: grid;
  gap: 0.85rem;
}

.panel--empty {
  max-width: 460px;
}

.ghost-btn,
.primary-btn,
.team-btn {
  border-radius: 12px;
  padding: 0.72rem 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
}

.primary-btn {
  background: var(--accent);
  color: #1b1010;
  font-weight: 800;
}

.ghost-btn,
.team-btn {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-color: var(--line);
}

.primary-btn:hover,
.ghost-btn:hover,
.team-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.primary-btn:disabled,
.ghost-btn:disabled,
.team-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.primary-btn.is-loading,
.ghost-btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.private-form__row {
  display: flex;
  gap: 0.6rem;
}

.private-form input {
  min-width: 0;
  flex: 1 1 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 16, 0.76);
  color: var(--ink);
  padding: 0.72rem 0.9rem;
}

.lookup-result {
  min-height: 0;
}

.room-list,
.team-picker__list,
.lobby-grid {
  display: grid;
  gap: 0.8rem;
}

.team-picker {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.team-picker__copy {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.team-picker__copy strong {
  color: var(--ink);
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 1.05rem;
}

.team-picker__copy span {
  color: var(--muted);
}

.team-picker__list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.team-picker .team-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.65rem;
  row-gap: 0.16rem;
  min-height: 82px;
  border-color: color-mix(in srgb, var(--team-border) 42%, transparent);
  background:
    linear-gradient(90deg, var(--team-soft), rgba(255, 255, 255, 0.025) 62%),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 3px 0 0 var(--team-border);
}

.team-picker .team-btn strong {
  min-width: 0;
  font-size: 1.02rem;
  color: var(--ink);
}

.team-picker .team-btn__meta {
  grid-column: 2;
  margin-top: 0;
}

.team-picker .team-btn:hover {
  border-color: color-mix(in srgb, var(--team-border) 64%, transparent);
  box-shadow:
    inset 3px 0 0 var(--team-border),
    0 0 18px var(--team-glow);
}

.room-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 480px));
  align-items: start;
  justify-content: start;
}

.lobby-players {
  display: grid;
  gap: 0.7rem;
}

.lobby-team-column {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--team-border) 32%, transparent);
  background:
    linear-gradient(90deg, var(--team-soft), rgba(255, 255, 255, 0.015) 72%),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 3px 0 0 var(--team-border);
}

.lobby-team-column__head {
  display: grid;
  gap: 0.18rem;
}

.lobby-team-column__head strong {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  line-height: 1.1;
}

.lobby-team-column__head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.lobby-team-column__list {
  display: grid;
  gap: 0.65rem;
}

.room-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  padding: 0.85rem;
  display: grid;
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
}

.room-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.72;
}

.room-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.room-card__phase,
.live-pill {
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.34rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 154, 82, 0.1);
  color: var(--accent-strong);
}

.room-card__stats,
.detail-list {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.room-card__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.room-card__stats div,
.detail-list div {
  padding: 0.62rem 0.68rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 191, 128, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.room-card__stats dt,
.detail-list dt {
  color: var(--muted);
  font-size: 0.73rem;
  margin-bottom: 0.32rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
}

.room-card__stats dd,
.detail-list dd {
  margin: 0;
  font-weight: 700;
}

.room-card__detail {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.room-card__action {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  gap: 0.45rem;
}

.room-card__action.is-loading {
  background: rgba(141, 160, 193, 0.22);
  border-color: rgba(141, 160, 193, 0.3);
  color: rgba(238, 244, 255, 0.86);
}

.button-spinner {
  width: 1em;
  height: 1em;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: button-spin 0.75s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.match-summary {
  display: grid;
  gap: 0.65rem;
}

.lobby-subtabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lobby-subtab {
  min-width: 88px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 0.62rem 0.88rem;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-weight: 600;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.lobby-subtab:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.lobby-subtab.is-active {
  background: rgba(255, 154, 82, 0.08);
  border-color: rgba(255, 154, 82, 0.32);
  color: var(--ink);
}

.lobby-subpanel {
  display: block;
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.summary-chip {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
}

