.game-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 1660px;
  margin: 0 auto;
  padding: 10px 14px;
  gap: 10px;
  overflow: hidden;
}

/* 모던 슬림 상단 앱 바 */
.top-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 8px 14px;
  min-height: 54px;
  flex-shrink: 0;
  z-index: 30;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  max-width: 420px;
}

.brand-emblem {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(243, 201, 105, 0.18), rgba(99, 102, 241, 0.18));
  border: 1px solid rgba(243, 201, 105, 0.3);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-title-row h1 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.65);
}

.status-dot.offline {
  background: var(--accent-amber);
}

/* 데스크톱 인라인 미니 게이지 */
.top-bar-gauges {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
}

.mini-gauge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 78px;
}

.mini-gauge-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.mini-gauge-top strong {
  color: var(--text-main);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mini-gauge-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.mini-gauge-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.35s ease;
}

/* 상단 우측 액션 필 버튼 */
.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.nav-pill-accent {
  color: var(--accent-indigo-light);
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.24);
}

.nav-pill-accent:hover {
  background: rgba(99, 102, 241, 0.22);
  color: #fff;
}

.nav-pill-gold {
  color: var(--accent-gold);
  background: rgba(243, 201, 105, 0.12);
  border-color: rgba(243, 201, 105, 0.25);
}

.nav-pill-gold:hover {
  background: rgba(243, 201, 105, 0.22);
}

.nav-pill-danger {
  color: var(--accent-crimson);
  background: rgba(251, 113, 133, 0.12);
}

.nav-pill-muted {
  padding: 6px 8px;
}

/* 데스크톱 3단 메인 그리드 */
.main-grid {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 310px;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.panel-header {
  padding: 11px 15px;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.panel-title-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-main);
}

.panel-title-group .ui-icon {
  color: var(--accent-indigo-light);
}

.panel-body {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 모달 내부 반응형 그리드 유틸리티 */
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trade-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.invite-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 80px auto;
  gap: 8px;
  margin-top: 8px;
}
