/* The lobby shares its header, tabs, tables, and action controls with admin.css. */
a { color: var(--green); }
.inbox-heading { margin-top: 32px; }
.inbox-messages { display: grid; gap: 16px; }
.inbox-message { overflow-wrap: anywhere; }
.message-body { white-space: pre-wrap; }
#requestUpdatesDialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.activation-page { min-height: 100dvh; background: radial-gradient(ellipse at top, #244a34, var(--bg) 70%); }
.activation-page dialog { position: fixed; inset: 0; margin: auto; height: fit-content; }
.activation-button { display: inline-block; border: 1px solid #396347; border-radius: 8px; padding: 10px 18px; background: #244a34; color: #e4ffed; font-weight: 600; text-decoration: none; }
.activation-button:hover { background: #304c3c; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
h3 { margin: 0 0 16px; font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
.field { margin-bottom: 20px; min-width: 0; }
.field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 13px; }
.field input { width: 100%; }
.field p { margin: 7px 0 0; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.message { font-size: 13px; margin-top: 12px; overflow-wrap: anywhere; }
.message:empty { display: none; }
.message a { display: inline-block; margin-top: 8px; }
.heading-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; max-width: 1040px; margin: 32px auto; }
.auth-intro h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.2; margin-top: 14px; }
.auth-intro p { color: var(--muted); max-width: 340px; margin-top: 20px; font-size: 15px; }
.eyebrow { color: var(--green); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; }
.register-section { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; }
.register-section summary { cursor: pointer; color: var(--green); font-weight: 600; margin-bottom: 18px; }
.create-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.wide { grid-column: 1 / -1; }
.create-note { background: linear-gradient(145deg, #1e3929, #17221d); }
.create-note h3 { margin-top: 18px; }
.create-note p { color: var(--muted); line-height: 1.7; }
.note-divider { height: 1px; background: var(--line); margin: 24px 0; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 24px; margin-top: 24px; max-width: 1060px; align-items: start; }
.profile-side { display: grid; gap: 24px; }
.account-email { overflow-wrap: anywhere; color: var(--muted); padding: 10px 0; }
.credit-total { font-size: 32px; color: var(--green); font-weight: 650; }
.card-icon { float: right; display: grid; place-items: center; border: 1px solid #45624f; color: var(--green); border-radius: 9px; width: 36px; height: 36px; font-size: 22px; margin-left: 12px; }
.row-actions a { display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; border: 1px solid #396347; border-radius: 8px; white-space: nowrap; }
#passwordDialog .field { margin-top: 20px; }
#logoutBtn { background: #ffffff08; border-color: #4c715b; }
#accountSummary { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media(max-width:900px) {
  .auth-grid { gap: 32px; }
  .create-layout { grid-template-columns: 1fr; }
  .create-note { max-width: none; }
}
@media(max-width:700px) {
  .auth-grid, .profile-layout { grid-template-columns: 1fr; gap: 24px; }
  .auth-grid { margin-top: 4px; }
  .auth-intro h2 br { display: none; }
  .auth-intro p { max-width: none; }
  .panel { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .heading-row { align-items: flex-start; }
  .heading-row .good { padding-inline: 10px; font-size: 12px; }
  .stats { gap: 12px; }
  .stat { min-width: 0; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 10px; }
}

.tabs { flex-wrap: nowrap; }
.welcome-intro { max-width: 660px; padding-block: 32px 40px; }
.welcome-intro h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.15; margin-top: 14px; }
.welcome-intro p, .rules-grid p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rules-grid h3 { margin: 14px 0 12px; }
.auth-card { max-width: 480px; margin: 24px auto; }
.auth-card > p { margin-bottom: 24px; }
@media(max-width:900px) { .rules-grid { grid-template-columns: 1fr; } }
@media(max-width:700px) { .tabs button { padding-inline: 12px; } }

.site-showcase { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.showcase-heading { max-width: 800px; margin-bottom: 36px; }
.showcase-heading h2 { margin-top: 14px; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; }
.site-showcase p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0 36px; }
.showcase-grid h4 { margin: 12px 0; font-size: 18px; line-height: 1.4; }
.showcase-grid p { margin-bottom: 0; }
.dealer-feature { margin-bottom: 40px; background: linear-gradient(130deg, #1e3929, #17221d); }
.dealer-feature h3 { margin-top: 12px; font-size: 24px; }
.dealer-feature p { max-width: 900px; margin-bottom: 0; }
.showcase-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px; border: 1px solid #45624f; border-radius: 12px; background: #1d3225; }
.showcase-cta h3 { margin-bottom: 8px; }
.showcase-cta p { max-width: 720px; margin: 0; }
@media(max-width:900px) { .showcase-grid { grid-template-columns: 1fr; } }
@media(max-width:700px) { .site-showcase { margin-top: 36px; padding-top: 32px; } .showcase-cta { flex-direction: column; align-items: flex-start; padding: 22px; } }

.header { padding-block: 10px; }
.masthead .header { border-bottom: 1px solid #ffffff12; }
.lobby-brand-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; width: 100%; }
.lobby-brand-row .brand { min-width: 0; }
.lobby-brand-row .brand > div:last-child { min-width: 0; }
.lobby-brand-row h1 { font-size: 21px; }
.lobby-header-actions { grid-column: 3; display: flex; align-items: center; justify-self: end; gap: 16px; }
.header-support { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 10px; border: 1px solid #ffffff24; border-radius: 8px; background: #ffffff08; color: var(--text); text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.header-support:hover { background: #ffffff14; border-color: #69947a; }
.header-support svg { flex: 0 0 auto; }
.poker-emblem { display: block; width: 72px; height: auto; flex: 0 0 auto; }
#accountStats { order: 0; width: auto; justify-content: center; gap: 22px; padding: 0; border: 0; }
#accountStats .stat { min-width: 40px; text-align: center; }
#accountStats .stat-value { font-size: 22px; }
.masthead .tabs { margin-top: 0; gap: 4px; }
.masthead .tabs button { padding: 9px 14px; }
@media(max-width:1000px) {
  .lobby-brand-row { gap: 16px; }
  .lobby-brand-row .mark { width: 34px; height: 34px; font-size: 25px; border-radius: 9px; }
  .lobby-brand-row h1 { font-size: 19px; }
  #accountSummary { max-width: 200px; }
  #accountStats { gap: 12px; }
  .poker-emblem { width: 52px; }
  .lobby-header-actions { gap: 10px; }
  #logoutBtn { padding-inline: 10px; font-size: 12px; }
}
@media(max-width:820px) {
  .header { padding-block: 8px; }
  .lobby-brand-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .lobby-header-actions { grid-column: 2; grid-row: 1; }
  .poker-emblem { width: 44px; }
  #accountStats { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 8px; }
  #accountStats .stat { min-width: 0; }
  #accountStats .stat-value { font-size: 18px; }
  #accountStats .stat-label { margin-top: 1px; font-size: 10px; }
  .masthead .tabs button { padding: 8px 12px; min-height: 40px; }
}
@media(max-width:420px) {
  .lobby-brand-row .mark { display: none; }
  .lobby-brand-row h1 { font-size: 16px; }
  .lobby-brand-row .subhead { font-size: 10px; }
  #accountSummary { max-width: 170px; }
  .poker-emblem { width: 36px; }
  .lobby-header-actions { gap: 4px 8px; max-width: 145px; flex-wrap: wrap; justify-content: flex-end; }
  .header-support { min-height: 34px; padding: 6px 8px; font-size: 11px; gap: 5px; }
  #logoutBtn { min-height: 34px; padding: 6px 8px; }
}

.expired-tables-list { display: grid; gap: 24px; }
.expired-table-card h3 { margin-bottom: 0; overflow-wrap: anywhere; }
.archive-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.archive-totals dt { color: var(--muted); font-size: 12px; }
.archive-totals dd { margin: 6px 0 0; font-size: 18px; font-weight: 600; }
.archive-player-stats { margin-bottom: 22px; }
.archive-player-stats summary { cursor: pointer; color: var(--green); font-weight: 600; margin-bottom: 14px; }
.archive-download { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px; border: 1px solid #45624f; border-radius: 8px; text-decoration: none; font-weight: 600; background: #24372c; }
.archive-download:hover { background: #304c3c; }
@media(max-width:700px) { .archive-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
