/* House of Wojo — the Obsidian lobby. Concierge top (your night, recent hits,
   the featured machine on its stage), room chips, then a rail per room.
   Pairs with js/lobby.js + js/lobby-data.js. Scoped to body.lobby. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Manrope:wght@500;700;800&display=swap');

body.lobby {
  --ob-ink: #efe9dd; --ob-gold: #d6b77a; --ob-pale: #f4e6c4; --ob-dim: #8c7a55; --ob-mid: #b8a47a;
  --ob-line: rgba(214,183,122,.22); --ob-line2: rgba(214,183,122,.45); --ob-green: #9fd8a8; --ob-red: #d88a8a;
  --ob-disp: 'Cormorant Garamond', Georgia, serif; --ob-num: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --glass: linear-gradient(180deg, #131317, #08080a);
  margin: 0; background: url(../img/brand/plate.webp) center top / cover no-repeat fixed #07070a; color: var(--ob-ink); font-family: var(--ob-num);
}
body.lobby::before { content: ""; position: fixed; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); pointer-events: none; z-index: 0; }
body.lobby > * { position: relative; z-index: 1; }
body.lobby a { color: inherit; text-decoration: none; }
body.lobby [hidden] { display: none !important; }
.lbl { font-size: 9px; letter-spacing: 4px; color: var(--ob-dim); font-weight: 700; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; font-weight: 800; }
.disp { font-family: var(--ob-disp); font-weight: 500; }
.hair { height: 1px; background: linear-gradient(90deg, var(--ob-gold), transparent); }

/* ---------- top strip ---------- */
body.lobby #topbar { display: flex; align-items: stretch; overflow: hidden; background: rgba(0,0,0,.35); border-bottom: 1px solid var(--ob-line2); min-height: 60px; padding: 0; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
body.lobby .brand { display: flex; align-items: center; padding: 0 26px; font-family: var(--ob-disp); font-size: 22px; letter-spacing: 6px; color: var(--ob-ink); border-right: 1px solid var(--ob-line); white-space: nowrap; text-shadow: none; }
body.lobby .brand .of { font-style: italic; color: var(--ob-gold); font-size: 17px; letter-spacing: 1px; margin: 0 8px; }
#lbLadder { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; overflow: hidden; }
#lbLadder .jp { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 14px; flex: 0 1 auto; min-width: 0; border-right: 1px solid var(--ob-line); position: relative; overflow: hidden; white-space: nowrap; }
#lbLadder .jp b { font-size: 18px; color: var(--ob-ink); }
#lbLadder .jp.major .lbl { color: var(--ob-gold); } #lbLadder .jp.grand .lbl { color: var(--ob-pale); } #lbLadder .jp.grand b { color: var(--ob-pale); }
#lbLadder .jp::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--ob-gold), transparent); opacity: .5; }
#lbLadder .jp::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(90deg, transparent, rgba(244,230,196,.16), transparent); transform: skewX(-20deg); animation: lbSweep 8s linear infinite; }
#lbLadder .jp:nth-child(2)::before { animation-delay: 1.6s } #lbLadder .jp:nth-child(3)::before { animation-delay: 3.2s } #lbLadder .jp:nth-child(4)::before { animation-delay: 4.8s } #lbLadder .jp:nth-child(5)::before { animation-delay: 6.4s }
@keyframes lbSweep { 0% { left: -50% } 18% { left: 120% } 100% { left: 120% } }
#lbLadder .at { display: flex; align-items: center; padding: 0 14px; border-right: 1px solid var(--ob-line); white-space: nowrap; }
body.lobby .hud { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 0 20px; flex: none; }
body.lobby .balance-box { background: transparent; border: 0; padding: 0 6px; display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
body.lobby .bal-label { font-size: 9px; letter-spacing: 4px; color: var(--ob-dim); font-weight: 700; }
body.lobby #balance { font-family: var(--ob-num); font-weight: 800; font-size: 22px; color: var(--ob-ink); }
body.lobby .hud-btn { background: transparent; color: var(--ob-gold); border: 1px solid var(--ob-line2); border-radius: 2px; padding: 9px 14px; font-family: var(--ob-num); font-weight: 700; font-size: 10px; letter-spacing: 3px; cursor: pointer; white-space: nowrap; }
body.lobby .hud-btn:hover { background: rgba(214,183,122,.08); }

/* ---------- main ---------- */
body.lobby #lobby { display: flex; flex-direction: column; gap: 22px; padding: 22px 40px 40px; max-width: 1480px; margin: 0 auto; align-items: stretch; }
body.lobby #lobby > *, .lb-section, .lb-rail { min-width: 0; max-width: 100%; }
.lb-card { border-radius: 14px; border: 1px solid var(--ob-line); background: var(--glass); padding: 18px 20px; display: flex; flex-direction: column; min-width: 0; }
.lb-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
.lb-hero-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lb-night { border-color: var(--ob-gold); background: radial-gradient(ellipse at 0% 0%, rgba(214,183,122,.16), transparent 60%), linear-gradient(180deg, #14110c, #07070a); box-shadow: 0 0 50px rgba(214,183,122,.12); gap: 6px; }
.lb-night .lbl { color: var(--ob-gold); }
.lb-night h2 { margin: 0; font-family: var(--ob-disp); font-weight: 500; font-size: 36px; letter-spacing: 3px; line-height: 1.05; }
.lb-night h2 i { color: var(--ob-gold); }
.lb-stats { display: flex; gap: 26px; margin-top: 10px; flex-wrap: wrap; }
.lb-stats .lbl { font-size: 8px; } .lb-stats b { font-size: 22px; display: block; }
.lb-stats b.pos { color: var(--ob-green); } .lb-stats b.neg { color: var(--ob-red); } .lb-stats b.pale { color: var(--ob-pale); }
.lb-note { font-size: 11px; line-height: 1.6; color: var(--ob-mid); margin-top: 8px; }
.lb-hits { flex: 1; }
.lb-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--ob-line); font-size: 11px; }
.lb-row span { color: var(--ob-mid); letter-spacing: 1px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lb-row small { color: var(--ob-dim); font-size: 9px; letter-spacing: 1px; flex: none; }
.lb-row b { color: var(--ob-pale); flex: none; }
.lb-empty { color: var(--ob-dim); font-size: 11px; line-height: 1.6; padding: 10px 0; }

/* featured stage */
#lbFeature { position: relative; border-radius: 16px; border: 1px solid var(--ob-gold); overflow: hidden; min-height: 400px; display: flex; flex-direction: column; padding: 22px 26px;
  background: radial-gradient(ellipse at 50% 0%, rgba(214,183,122,.18), transparent 60%), linear-gradient(180deg, #14110c, #07070a); box-shadow: 0 30px 80px rgba(0,0,0,.8), 0 0 60px rgba(214,183,122,.18); }
#lbFeature .ghost { position: absolute; inset: 60px 26px 90px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; opacity: .3; pointer-events: none; }
#lbFeature .ghost i { display: block; border-radius: 8px; border: 1px solid var(--ob-line); background: var(--glass); }
#lbFeature .ghost span { display: flex; flex-direction: column; gap: 10px; } #lbFeature .ghost span i { flex: 1; }
#lbFeature .head { display: flex; justify-content: space-between; align-items: center; position: relative; }
#lbFeature .tag { font-size: 9px; letter-spacing: 3px; color: var(--ob-pale); font-weight: 800; padding: 5px 10px; border: 1px solid var(--ob-gold); border-radius: 2px; }
#lbFeature .body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; padding: 20px 0; transition: opacity .45s, transform .45s; }
#lbFeature .body.out { opacity: 0; transform: translateY(8px); }
#lbFeature .body svg { width: 84px; height: 84px; }
#lbFeature .name { font-family: var(--ob-disp); font-weight: 500; font-size: clamp(34px, 4.2vw, 56px); letter-spacing: 10px; line-height: 1; margin-top: 10px; color: var(--ob-ink); }
#lbFeature .name .hair { width: 240px; margin: 12px auto 10px; background: linear-gradient(90deg, transparent, var(--ob-gold), transparent); }
#lbFeature .blurb { font-size: 12px; line-height: 1.65; color: var(--ob-mid); max-width: 520px; }
#lbFeature .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; }
#lbFeature .chips span { display: inline-block; padding: 6px 10px; border: 1px solid var(--ob-line); border-radius: 2px; font-size: 9px; letter-spacing: 2px; color: var(--ob-mid); margin-right: 6px; font-weight: 700; }
#lbFeature .dots { display: flex; gap: 6px; }
#lbFeature .dots i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ob-line2); display: block; } #lbFeature .dots i.on { background: var(--ob-gold); border-color: var(--ob-gold); }
.lb-play { width: 130px; height: 46px; border-radius: 23px; border: 1px solid var(--ob-gold); display: inline-flex; align-items: center; justify-content: center; font-family: var(--ob-disp); font-size: 17px; letter-spacing: 5px; color: var(--ob-pale); text-indent: 5px; background: radial-gradient(circle at 40% 35%, #2a2620, #0e0d0b 70%); box-shadow: 0 0 30px rgba(214,183,122,.2); transition: box-shadow .3s, transform .12s; }
.lb-play:hover { box-shadow: 0 0 50px rgba(214,183,122,.4); } .lb-play:active { transform: scale(.96); }

/* section heads, resume, chips */
.lb-head { display: flex; align-items: baseline; gap: 14px; }
.lb-head svg { width: 16px; height: 16px; align-self: center; }
.lb-head h3 { margin: 0; font-family: var(--ob-disp); font-weight: 500; font-size: 22px; letter-spacing: 5px; color: var(--ob-ink); white-space: nowrap; }
.lb-head .hair { flex: 1; }
.lb-head button { background: none; border: 0; color: var(--ob-gold); font-family: var(--ob-num); font-size: 9px; letter-spacing: 4px; font-weight: 700; cursor: pointer; padding: 4px 0; }
.lb-section { display: flex; flex-direction: column; gap: 12px; }
#lbResume .row { display: flex; gap: 12px; }
.lb-resume { flex: 1; min-width: 0; border-radius: 12px; border: 1px solid var(--ob-line); background: var(--glass); padding: 14px 16px; display: flex; align-items: center; gap: 14px; transition: border-color .25s, box-shadow .25s; }
.lb-resume:hover { border-color: var(--ob-gold); box-shadow: 0 0 30px rgba(214,183,122,.18); }
.lb-resume svg { width: 34px; height: 34px; flex: none; }
.lb-resume .t { min-width: 0; flex: 1; }
.lb-resume .t .disp { font-size: 18px; letter-spacing: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-resume .t .lbl { font-size: 8px; }
.lb-resume b { font-size: 16px; flex: none; } .lb-resume b.pos { color: var(--ob-green); } .lb-resume b.neg { color: var(--ob-red); }
.lb-resume .go { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ob-gold); display: flex; align-items: center; justify-content: center; flex: none; }
.lb-resume .go svg { width: 12px; height: 12px; }
#lbChips { position: sticky; top: 60px; z-index: 15; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; margin: -6px 0; background: linear-gradient(180deg, rgba(7,7,10,.95), rgba(7,7,10,.85)); scrollbar-width: none; }
#lbChips::-webkit-scrollbar { display: none; }
#lbChips a { padding: 8px 12px; border: 1px solid var(--ob-line); border-radius: 2px; font-size: 9px; letter-spacing: 2px; color: var(--ob-mid); font-weight: 700; white-space: nowrap; }
#lbChips a.on, #lbChips a:hover { border-color: var(--ob-gold); color: var(--ob-pale); background: rgba(214,183,122,.08); }

/* rails */
.lb-rail .cards { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: var(--ob-line) transparent; scroll-snap-type: x proximity; }
.lb-rail.open .cards { flex-wrap: wrap; overflow: visible; }
.gc { flex: 0 0 196px; scroll-snap-align: start; height: 150px; border-radius: 12px; border: 1px solid var(--ob-line); background: var(--glass); padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; position: relative; overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s; }
.gc:hover { border-color: var(--ob-gold); box-shadow: 0 0 34px rgba(214,183,122,.22), 0 12px 30px rgba(0,0,0,.6); transform: translateY(-3px); }
.gc.attract { animation: gcAttract 1.1s ease-out; }
@keyframes gcAttract { 0% { box-shadow: 0 0 0 1px var(--ob-pale), 0 0 40px rgba(244,230,196,.5) } 100% { box-shadow: none } }
.gc .top { display: flex; justify-content: space-between; align-items: flex-start; }
.gc .top svg { width: 34px; height: 34px; }
.gc .top .lbl { font-size: 7.5px; letter-spacing: 2.5px; text-align: right; max-width: 90px; line-height: 1.4; }
.gc .name { font-family: var(--ob-disp); font-weight: 500; font-size: 18px; letter-spacing: 1.5px; line-height: 1.05; margin-top: auto; color: var(--ob-ink); }
.gc .hit { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--ob-line); }
.gc .hit .lbl { font-size: 7.5px; } .gc .hit b { font-size: 12px; color: var(--ob-pale); }
.gc .hit b.none { color: var(--ob-dim); font-weight: 500; }
.gc.ob::after { content: "OBSIDIAN"; position: absolute; top: 12px; right: 12px; font-size: 7px; letter-spacing: 2px; color: var(--ob-pale); font-weight: 800; padding: 3px 6px; border: 1px solid var(--ob-gold); border-radius: 2px; }
.gc.ob .top .lbl { visibility: hidden; }

.lb-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--ob-line); font-size: 10px; letter-spacing: 2px; color: var(--ob-dim); font-weight: 700; flex-wrap: wrap; gap: 8px; }
.lb-foot a { color: var(--ob-gold); }

@media (max-width: 1100px) { .lb-hero { grid-template-columns: 1fr; } #lbFeature { min-height: 340px; } }
@media (max-width: 900px) {
  body.lobby #topbar { flex-wrap: wrap; position: static; }
  body.lobby .brand { padding: 10px 14px; border-right: 0; font-size: 16px; letter-spacing: 3px; flex: 1; }
  body.lobby .hud { padding: 0 12px; gap: 6px; } body.lobby #balance { font-size: 16px; } body.lobby .hud-btn { padding: 7px 8px; font-size: 8px; letter-spacing: 2px; }
  #lbLadder { order: 3; flex-basis: 100%; border-top: 1px solid var(--ob-line); overflow-x: auto; }
  #lbLadder .jp { flex: 1; padding: 6px 8px; } #lbLadder .jp b { font-size: 13px; } #lbLadder .at { display: none; }
  body.lobby #lobby { padding: 14px 12px 30px; gap: 16px; }
  .lb-night h2 { font-size: 26px; } .lb-stats { gap: 16px; } .lb-stats b { font-size: 18px; }
  #lbFeature { padding: 16px; min-height: 300px; } #lbFeature .name { letter-spacing: 5px; } #lbFeature .ghost { inset: 50px 16px 80px; }
  #lbResume .row { flex-direction: column; }
  #lbChips { top: 0; }
  .gc { flex-basis: 160px; height: 136px; }
  .lb-head { flex-wrap: wrap; gap: 8px 12px; } .lb-head h3 { font-size: 18px; letter-spacing: 3px; white-space: normal; } .lb-head .hair { flex-basis: 100%; order: 9; }
}

/* painted art */
.gc.has-art::before { content: ""; position: absolute; inset: 0; background: var(--art) center / cover no-repeat; opacity: .55; filter: saturate(.9); transition: opacity .3s, transform .4s; }
.gc.has-art:hover::before { opacity: .8; transform: scale(1.04); }
.gc.has-art > * { position: relative; }
.gc.has-art .name { text-shadow: 0 2px 10px rgba(0,0,0,.9); }
.gc.has-art .top .lbl, .gc.has-art .hit .lbl { text-shadow: 0 1px 6px rgba(0,0,0,.9); }
#lbFeature .stage-art { width: min(100%, 720px); height: auto; border-radius: 12px; border: 1px solid var(--ob-line2); box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 50px rgba(214,183,122,.15); margin-bottom: 14px; }

/* the Herald greets you */
.lb-night { position: relative; padding-right: 130px; }
.lb-night::after { content: ""; position: absolute; right: 18px; top: 18px; width: 96px; height: 96px; border-radius: 50%; background: url(../img/brand/herald.webp) center 12% / cover no-repeat; border: 1px solid var(--ob-gold); box-shadow: 0 0 30px rgba(214,183,122,.3); }
@media (max-width: 900px) { .lb-night { padding-right: 20px; } .lb-night::after { width: 56px; height: 56px; right: 14px; top: 14px; } }

@media (max-width: 900px) {
  body.lobby .brand { white-space: nowrap; font-size: 15px; letter-spacing: 2px; padding: 10px 10px; }
  body.lobby .hud-btn { min-height: 36px; font-size: 9px; }
  body.lobby .lbl { font-size: 9.5px; letter-spacing: 2.5px; }
  .gc .top .lbl, .gc .hit .lbl { font-size: 9.5px; letter-spacing: 1.8px; }
  #lbChips a { padding: 10px 12px; font-size: 10px; min-height: 36px; display: inline-flex; align-items: center; }
  .lb-head button, body.lobby .lb-tabs button, body.lobby .lb-filter button { min-height: 36px; padding: 8px 10px; font-size: 10px; }
  .lb-resume { padding: 12px; } .lb-resume .go { width: 40px; height: 40px; }
  body.lobby a, body.lobby button { touch-action: manipulation; }
}
