:root {
  --bg: #0d1440;
  --panel: #18215f;
  --panel-2: #222d74;
  --text: #f7f8ff;
  --muted: #c8d0ff;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #ffffff;
  --primary-text: #161b52;
  --secondary: rgba(255, 255, 255, 0.14);
  --secondary-text: #ffffff;
  --ghost: transparent;
  --danger: #ff9f9f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, #1b2672 0%, var(--bg) 45%, #091032 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  padding: 18px 12px 34px;
}

.app-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.hero-card,
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px 18px;
}

.panel {
  padding: 18px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.brand-copy {
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #171e5c;
  font-size: 28px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 2rem;
  line-height: 1.08;
}

h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.hero-copy {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 196, 0, 0.14);
  border: 1px solid rgba(255, 196, 0, 0.35);
  color: #fff2bc;
  line-height: 1.45;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
  flex: 1 1 260px;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-text);
  border-color: var(--line);
  flex: 1 1 260px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-small {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.status-stack {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.status-line {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
}

.status-muted {
  color: var(--muted);
}

.error-text {
  color: var(--danger) !important;
}

.hidden {
  display: none !important;
}

.panel-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.info-card,
.empty-state,
.error-card,
.table-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

:root {
  --bg: #0d1440;
  --panel: #18215f;
  --panel-2: #222d74;
  --text: #f7f8ff;
  --muted: #c8d0ff;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #ffffff;
  --primary-text: #161b52;
  --secondary: rgba(255, 255, 255, 0.14);
  --secondary-text: #ffffff;
  --ghost: transparent;
  --danger: #ff9f9f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, #1b2672 0%, var(--bg) 45%, #091032 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  padding: 18px 12px 34px;
}

.app-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.hero-card,
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px 18px;
}

.panel {
  padding: 18px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.brand-copy {
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #171e5c;
  font-size: 28px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 2rem;
  line-height: 1.08;
}

h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.hero-copy {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 196, 0, 0.14);
  border: 1px solid rgba(255, 196, 0, 0.35);
  color: #fff2bc;
  line-height: 1.45;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
  flex: 1 1 260px;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-text);
  border-color: var(--line);
  flex: 1 1 260px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-small {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.status-stack {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.status-line {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
}

.status-muted {
  color: var(--muted);
}

.error-text {
  color: var(--danger) !important;
}

.hidden {
  display: none !important;
}

.panel-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.info-card,
.empty-state,
.error-card,
.table-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.info-card,
.empty-state,
.error-card {
  padding: 16px;
  line-height: 1.6;
}

.empty-state {
  color: var(--muted);
}

.error-card {
  color: var(--danger);
}

.lobby-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.table-card {
  padding: 16px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  line-height: 1.7;
}

@media (max-width: 640px) {
  body {
    padding: 14px 10px 28px;
  }

  .hero-card,
  .panel {
    padding: 16px;
    border-radius: 18px;
  }

  .brand-row {
    align-items: flex-start;
  }

  h1 {
    font-size: 1.75rem;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }
}