.lobby-page {
  min-width: 320px;
  min-height: 100vh;
  background: radial-gradient(ellipse at 75% 5%, #36422c33, transparent 45%), var(--bg);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1328px;
  min-height: 92px;
  margin: auto;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line-soft);
}
.site-nav { display: flex; align-self: stretch; align-items: center; gap: 32px; }
.site-nav a { padding: 14px 0; color: var(--muted); font-size: 12px; }
.site-nav a:hover, .site-nav .active { color: var(--gold); }
.site-nav .active { position: relative; }
.site-nav .active::after { content: ""; position: absolute; bottom: -19px; left: 0; right: 0; height: 2px; background: var(--gold); }
.commander-tag { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
#header-account { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobby-shell { max-width: 1328px; margin: auto; padding: 0 40px 36px; }
.hero { position: relative; min-height: 390px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-copy { position: relative; z-index: 1; width: 53%; padding: 43px 0; }
.hero h1 { margin: 16px 0; font: 54px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.hero h1 em { color: var(--gold); font-weight: normal; }
.hero-description { max-width: 350px; margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.hero-art { position: absolute; width: 70%; height: 100%; right: -60px; top: 0; object-fit: cover; object-position: center; pointer-events: none; }
.hero-caption { position: absolute; right: 20px; bottom: 23px; color: #b2b18c; font: italic 12px Georgia, serif; letter-spacing: .03em; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 16px; }
.section-heading h2 { margin: 0; font: 23px Georgia, serif; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.setup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; scroll-margin-top: 20px; }
.setup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #202b2288, transparent 70%), #17211b;
}
.setup-card.featured { border-color: #746344; background: linear-gradient(135deg, #8070441c, transparent 80%), #1c261e; }
.card-heading { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-emblem { width: 37px; height: 37px; display: flex; align-items: center; justify-content: center; border: 1px solid #63593d; background: #b79a5e0b; color: var(--gold); }
.card-number { color: #949b84; font: 11px ui-monospace, monospace; }
.setup-card h3 { margin: 0 0 8px; font: 24px/1.25 Georgia, serif; }
.card-description { min-height: 40px; margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.setup-card form { width: 100%; }
.setup-card .button { width: 100%; margin-top: 14px; }
.setup-card > .button { margin-top: auto; }
.setup-card select { margin-bottom: 8px; }
.difficulty-note { min-height: 36px; margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.card-footnote { margin: 12px 0 0; width: 100%; text-align: center; color: var(--muted); font-size: 10px; }
.account-summary { margin: 13px 0 0; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.account-summary span { color: var(--green); }
.multiplayer-detail { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 68px; margin-bottom: 18px; padding: 12px; border: 1px solid var(--line-soft); color: var(--gold); }
.multiplayer-detail div { display: flex; flex-direction: column; font-size: 12px; color: var(--text); }
.multiplayer-detail small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.lobby-notice { margin: 18px 0 0; padding: 12px 16px; border: 1px solid var(--line); background: var(--panel); color: var(--green); font-size: 12px; overflow-wrap: anywhere; }
.lobby-notice[data-tone="error"] { color: #f1bca4; border-color: #815444; background: #36261f; }
.open-games { margin-top: 30px; border: 1px solid var(--line); background: #151f19; }
.open-games-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); }
.open-games-title { display: flex; align-items: center; gap: 12px; }
.open-games h2 { margin: 0; font: 20px Georgia, serif; }
.count-badge { min-width: 23px; padding: 1px 6px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; text-align: center; }
#list { list-style: none; padding: 0; margin: 0; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px; text-align: center; }
.empty-state > .icon { width: 28px; height: 28px; margin-bottom: 4px; color: #7b896a; }
.empty-state strong { font-size: 12px; font-weight: 500; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }
.match-row { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); }
.match-row:last-child { border-bottom: 0; }
.match-row > .icon { color: var(--gold); }
.match-row-copy { flex: 1; min-width: 0; }
.match-row-copy strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.match-row-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.match-row .button { flex-shrink: 0; }
.field-guide { margin: 24px 0; border-bottom: 1px solid var(--line-soft); }
.field-guide summary { display: flex; align-items: center; gap: 10px; padding: 16px 0; cursor: pointer; color: #bec5ad; font-size: 12px; }
.field-guide summary .icon:last-child { margin-left: auto; width: 15px; transition: transform .15s; }
.field-guide[open] summary .icon:last-child { transform: rotate(90deg); }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 6px 0 24px; }
.guide-grid h3 { margin: 9px 0 7px; color: var(--gold); font: 17px Georgia, serif; }
.guide-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.lobby-footer { display: flex; justify-content: space-between; gap: 20px; color: #98a08a; font-size: 10px; letter-spacing: .03em; }
@media (min-width: 1600px) { .hero { min-height: 440px; } .hero h1 { font-size: 62px; } }
@media (max-width: 900px) {
  .site-header, .lobby-shell { padding-left: 24px; padding-right: 24px; }
  .site-nav { gap: 20px; }
  .hero { min-height: 350px; }
  .hero h1 { font-size: 46px; }
  .hero-art { right: -115px; width: 80%; opacity: .75; }
  .hero-copy { width: 65%; }
  .setup-grid { gap: 10px; }
  .setup-card { padding: 18px; }
  .setup-card h3 { font-size: 21px; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .site-header { min-height: 78px; padding: 16px 18px; gap: 14px; }
  .brand-wordmark strong { font-size: 19px; }
  .brand > .icon { width: 30px; height: 36px; }
  .site-nav { display: none; }
  .commander-tag { gap: 7px; }
  #header-account { max-width: 100px; }
  .lobby-shell { padding: 0 18px 24px; }
  .hero { min-height: 365px; }
  .hero-copy { width: 100%; padding: 32px 0; }
  .hero h1 { font-size: 44px; }
  .hero-description { max-width: 280px; }
  .hero-art { width: 110%; right: -120px; opacity: .3; }
  .hero-caption { display: none; }
  .section-heading { align-items: flex-end; margin-top: 24px; }
  .section-heading p { max-width: 140px; text-align: right; }
  .setup-grid { grid-template-columns: 1fr; gap: 14px; }
  .setup-card { padding: 22px; }
  .card-description { min-height: 0; }
  .difficulty-note { min-height: 0; }
  .card-heading { margin-bottom: 14px; }
  .open-games-header, .match-row { padding-left: 16px; padding-right: 16px; }
  .open-games-title { gap: 8px; }
  .open-games h2 { font-size: 18px; }
  .guide-grid { gap: 20px; }
  .lobby-footer { flex-direction: column; gap: 6px; }
}
.lobby-product { margin: 24px 0; min-width: 0; }
