/* Lobby — rides on table.css for the Felt tokens, buttons, fields and modals. */
body.lobby { overflow: auto; height: auto; min-height: 100%; background-color: var(--page); background-image: var(--grain); background-size: 3px 3px; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.lb-top { max-width: 1180px; margin: 0 auto; padding: 20px 24px 8px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lb-brand { font: 700 30px var(--serif); color: var(--ink); text-decoration: none; }
.lb-tag { color: var(--muted); font-size: 13px; }
.lb-account { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.lb-account b { color: var(--ink); }
.lb-main { max-width: 1180px; margin: 0 auto; padding: 12px 24px 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.lb-card { padding: 22px; border-radius: 16px; background: var(--board); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.lb-card h2 { margin: 0 0 4px; font: 700 26px var(--serif); }
.lb-decks { flex: 999 1 560px; min-width: 0; }
.lb-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lb-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.lb-row { display: flex; gap: 8px; }
.lb-row .field.grow { min-width: 0; }
.lb-status { margin: 0; min-height: 18px; font-size: 13px; color: var(--muted); }
.lb-error { margin: 0; min-height: 18px; font-size: 13px; color: var(--danger); }
.lb-hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.lb-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-opt.stack { flex-direction: column; align-items: stretch; gap: 6px; }
.lb-opt.stack .seg { display: grid; grid-template-columns: repeat(3, 1fr); }
.lb-opt.stack .seg button { white-space: nowrap; }
.field.code { width: 130px; height: 48px; font-size: 22px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; text-align: center; }
.active-deck { display: flex; gap: 14px; padding: 10px; border-radius: 12px; background: var(--bar); border: 1px solid var(--line2); }
.ad-art { width: 190px; height: 128px; object-fit: cover; border-radius: 9px; flex-shrink: 0; }
.ad-art.blank { background: repeating-linear-gradient(45deg, #183326 0 6px, #14291f 6px 12px); }
.ad-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ad-info small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ad-info b { font: 700 22px var(--serif); }
.ad-info > span { font-size: 13px; color: var(--muted); }
.ad-actions { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; padding-top: 6px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.deck-tile { position: relative; }
.dt-use { width: 100%; display: flex; flex-direction: column; text-align: left; padding: 0 0 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: var(--bar); cursor: pointer; }
.dt-use img, .dt-blank { width: 100%; height: 88px; object-fit: cover; display: flex; align-items: center; justify-content: center; font: 700 34px var(--serif); color: var(--muted);
  background: repeating-linear-gradient(45deg, #183326 0 6px, #14291f 6px 12px); }
.dt-use b { padding: 8px 12px 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-use small { padding: 2px 12px 0; color: var(--muted); font-size: 12px; }
.deck-tile.on .dt-use { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.deck-tile.on small { color: var(--gold); font-weight: 600; }
.dt-del { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, .55); }
.my-tables { display: flex; flex-direction: column; gap: 6px; }
.mt { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--bar); border: 1px solid var(--line); }
.mt b { letter-spacing: .14em; }
.mt span { flex: 1 1 0; font-size: 12px; color: var(--muted); }
.lb-foot { max-width: 1180px; margin: 0 auto; padding: 0 24px 28px; display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.whatsnew { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border-radius: 999px; border: 1px solid var(--gold); }
.whatsnew .x { width: 22px; height: 22px; font-size: 14px; }
.lb-form { display: flex; flex-direction: column; gap: 8px; }
.veil { inset: 0; }
.veil-t { font: 700 26px var(--serif); }
.dv section { margin-bottom: 14px; }
.dv h4 { margin: 4px 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dv .inspector { position: fixed; }
.changelog h3, .changelog h4 { font-family: var(--serif); margin: 14px 0 6px; }
.changelog h3 { font-size: 22px; color: var(--gold); }
.changelog ul { padding-left: 20px; margin: 4px 0; }
.changelog li { margin: 4px 0; line-height: 1.5; }
@media (max-width: 760px) {
  .lb-top { padding: 14px 16px 4px; }
  .lb-main { padding: 8px 16px 16px; }
  .lb-tag { display: none; }
  .active-deck { flex-direction: column; }
  .ad-art { width: 100%; height: 120px; }
}

/* first-visit welcome: the tutorial offer */
.lb-welcome { flex: 1 1 100%; flex-direction: row; align-items: center; gap: 24px; border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft); animation: rise .35s cubic-bezier(.2, .8, .3, 1); }
.lb-welcome[hidden] { display: none; }
.lw-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lw-text h2 { margin: 0; }
.lw-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.lw-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .lb-welcome { flex-direction: column; align-items: stretch; } .lw-acts { justify-content: flex-start; } }
