/* Shared lobby composition. Sport changes the accent and venue drawing only. */
#viewLobby { --sport-accent: #a3e3d5; --sport-wash: rgba(163,227,213,.07); }
#viewLobby[hidden] { display: none !important; }
#viewLobby[data-sport="nfl"] { --sport-accent: #ecd096; --sport-wash: rgba(236,208,150,.07); }
#viewLobby [hidden] { display: none !important; }
#viewLobby .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#viewLobby .lobby-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; }
#viewLobby .lobby-kicker { display: block; color: var(--dim); font: 600 .62rem var(--mono); letter-spacing: .13em; text-transform: uppercase; }
#viewLobby .sport-switch { display: flex; gap: 4px; margin: 0; padding: 4px; background: #0b1b24; border: 1px solid var(--rule); border-radius: 8px; }
#viewLobby .sport-switch button { border: 0; background: transparent; color: #a6bac2; padding: 9px 15px; gap: 9px; border-radius: 4px; min-height: 42px; }
#viewLobby .sport-switch b { font-size: 1.15rem; }
#viewLobby .sport-switch span { font-size: .72rem; }
#viewLobby .sport-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
#viewLobby button:focus-visible, #viewLobby a:focus-visible, #viewLobby input:focus-visible { outline: 2px solid var(--sport-accent); outline-offset: 4px; }
#viewLobby .lobby-status { border-color: var(--warn); background: #263535; line-height: 1.5; }
#viewLobby .league-hub-head { display: none; }
#viewLobby.league-hub .landing-hero,
#viewLobby.league-hub .sport-banner,
#viewLobby.league-hub #lobbyMovers,
#viewLobby.league-hub .next-sports,
#viewLobby.league-hub .lobby-foot { display: none !important; }
#viewLobby.league-hub .league-hub-head { display: block; order: 1; padding: 26px 0 24px; border-bottom: 1px solid var(--rule); }
#viewLobby.league-hub .league-hub-head .eyebrow { margin-bottom: 10px; color: var(--sport-accent); }
#viewLobby.league-hub .league-hub-head h2 { margin: 0; font: 800 clamp(2.5rem,7vw,4rem)/1 var(--display); }
#viewLobby.league-hub .league-hub-head > p:last-child { margin: 12px 0 0; color: var(--dim); font-size: .82rem; }
#viewLobby.league-hub #lobbyFloors { margin-top: 26px; }
#viewLobby .lobby-hero {
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
  padding: 32px 32px 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 12px;
  background: radial-gradient(ellipse at 100% 0, var(--sport-wash), transparent 70%), #132c38;
}
#viewLobby .hero-copy { position: relative; z-index: 1; padding-bottom: 28px; }
#viewLobby .eyebrow { color: var(--sport-accent); font-size: .65rem; margin-bottom: 15px; }
#viewLobby .lobby-hero h2 { margin: 0; max-width: 10ch; font: 800 clamp(2.8rem,6.5vw,4.2rem)/.95 var(--display); letter-spacing: -.015em; text-wrap: balance; }
#viewLobby .lede { font-size: .88rem; line-height: 1.7; max-width: 38ch; margin-top: 19px; color: #b3c4c9; }
#viewLobby .hero-guide { display: inline-flex; gap: 24px; margin-top: 20px; color: var(--paper); text-decoration: none; font-size: .78rem; border-bottom: 1px solid #6d878e; padding-bottom: 6px; }
#viewLobby .hero-guide span { color: var(--sport-accent); }
#viewLobby .venue-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--sport-accent); min-height: 140px; margin: -10px -12px 15px 15px; }
#viewLobby .venue-lines { position: absolute; width: 115%; max-width: 320px; opacity: .24; transform: rotate(-12deg); }
#viewLobby .field-lines { display: none; }
#viewLobby[data-sport="nfl"] .field-lines { display: block; }
#viewLobby[data-sport="nfl"] .rink-lines { display: none; }
#viewLobby .venue-art > b { position: relative; font: 800 clamp(4.5rem,10vw,7rem)/1 var(--display); letter-spacing: -.02em; text-shadow: 0 6px 30px #10242f; }
#viewLobby .venue-caption, #viewLobby .venue-foot { position: relative; font: .56rem var(--mono); text-transform: uppercase; letter-spacing: .14em; }
/* It carries the season on its own now that it is not echoing the eyebrow, so
   it can be read rather than squinted at. */
#viewLobby .venue-caption { margin-bottom: 9px; font-size: .9rem; letter-spacing: .1em; }
#viewLobby .venue-foot { color: #9aafb7; margin-top: 12px; }
#viewLobby .lobby-summary { grid-column: 1/-1; display: grid; grid-template-columns: 1fr .8fr 1.5fr; border-top: 1px solid var(--rule); padding: 18px 0; gap: 20px; }
#viewLobby .lobby-summary > div { display: flex; flex-direction: column; gap: 7px; }
#viewLobby .lobby-summary > div + div { border-left: 1px solid var(--rule); padding-left: 20px; }
#viewLobby .lobby-summary span { color: #a2b7bf; font: .57rem var(--mono); text-transform: uppercase; letter-spacing: .1em; }
#viewLobby .lobby-summary b { color: var(--paper); font: 600 .88rem var(--mono); }
#viewLobby .market-summary b { color: var(--sport-accent); }
#viewLobby .market-summary b::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: currentColor; vertical-align: middle; }

#viewLobby .lobby-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 28px; margin-top: 36px; align-items: start; }
#viewLobby .lobby-section + .lobby-section { margin-top: 30px; }
#viewLobby .lobby-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
#viewLobby .lobby-section-head h3 { color: var(--paper); margin: 0; font: 700 1.55rem var(--display); letter-spacing: .015em; }
#viewLobby .section-count { white-space: nowrap; color: #a4b9c1; font: .58rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
#viewLobby .section-intro { margin: 0 0 15px; color: #a4b9c1; font-size: .77rem; line-height: 1.6; }
#viewLobby .floors { display: grid; gap: 12px; }
#viewLobby .floor { position: relative; background: #17323f; border-color: #355261; padding: 18px; border-radius: 8px; overflow: hidden; transition: border-color 140ms, background 140ms, transform 140ms; }
#viewLobby .floor:not(:disabled):hover { background: #1c3b49; border-color: var(--sport-accent); transform: translateY(-2px); }
#viewLobby .floor:disabled { opacity: .65; cursor: default; }
#viewLobby .floor-topline { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 13px; }
#viewLobby .floor-kind { font: .55rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #b4c5cb; }
#viewLobby .floor-state { font: .55rem var(--mono); color: var(--sport-accent); }
#viewLobby .floor-state.final { color: var(--warn); }
#viewLobby .floor-name { display: block; font: 700 1.45rem/1.15 var(--display); overflow-wrap: anywhere; }
#viewLobby .floor-row { display: flex; gap: 14px 25px; flex-wrap: wrap; margin: 18px 0; }
#viewLobby .floor-stat > span { font-size: .55rem; letter-spacing: .06em; color: #a0b6be; }
#viewLobby .floor-stat b { font-size: .9rem; margin-top: 3px; }
#viewLobby .floor-stat b small { font-size: .67rem; }
#viewLobby .floor-card-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 13px; border-top: 1px solid #355261; }
#viewLobby .floor-when { white-space: normal; font: .66rem var(--sans); letter-spacing: 0; text-transform: none; }
#viewLobby .floor-action { color: var(--sport-accent); font-size: .73rem; font-weight: 600; white-space: nowrap; }
#viewLobby .floor-empty { padding: 23px 20px; border: 1px dashed #3d5865; border-radius: 8px; background: linear-gradient(120deg,var(--sport-wash),transparent); }
#viewLobby .empty-mark { display: block; color: var(--sport-accent); margin-bottom: 10px; }
#viewLobby .floor-empty b { font-weight: 500; font-size: .86rem; }
#viewLobby .floor-empty p { margin: 7px 0 0; color: #a4b9c1; font-size: .76rem; line-height: 1.65; max-width: 38ch; }

#viewLobby .floor-entry { display: grid; gap: 15px; }
#viewLobby .entry-card { position: relative; margin: 0; padding: 23px; background: var(--paper); color: var(--ink); border: 1px solid var(--paper); border-radius: 8px; }
#viewLobby .entry-card .lobby-kicker { color: #4c646f; font-size: .55rem; }
#viewLobby .entry-symbol { position: absolute; right: 17px; top: 15px; font-size: 1.4rem; color: #56716e; }
#viewLobby .entry-card h3 { font: 800 1.8rem/1.1 var(--display); margin: 0 0 9px; }
#viewLobby .entry-intro { font-size: .78rem; line-height: 1.65; color: #4b626c; margin: 0 0 20px; }
#viewLobby .entry-card label { display: block; color: #3b535d; font-size: .69rem; margin: 16px 0 7px; font-weight: 600; }
#viewLobby .entry-card input { display: block; min-width: 0; width: 100%; min-height: 44px; border: 1px solid #b6c0bc; border-radius: 4px; background: #fcfaf4; color: var(--ink); padding: 10px 11px; font: .88rem var(--sans); }
#viewLobby .entry-card input::placeholder { color: #65787b; opacity: 1; }
#viewLobby .entry-card input:focus-visible, #viewLobby .entry-card button:focus-visible { outline-color: #1f6b62; }
#viewLobby .entry-card .btn { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); min-height: 44px; border-radius: 4px; font: 600 .74rem var(--sans); letter-spacing: 0; text-transform: none; }
#viewLobby .entry-card .btn:hover { background: #244452; }
#viewLobby .entry-card .btn:disabled { opacity: .6; cursor: wait; }
#viewLobby .entry-submit { width: 100%; margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px; }
#viewLobby .entry-card .hint { color: #4d646d; font-size: .68rem; line-height: 1.6; margin-top: 13px; }
#viewLobby .entry-code { background: transparent; color: var(--paper); border-color: #3b5663; }
#viewLobby .entry-code .lobby-kicker, #viewLobby .entry-code label, #viewLobby .entry-code .hint { color: #a4b9c1; }
#viewLobby .entry-code h3 { font-size: 1.6rem; margin-top: 8px; }
#viewLobby .code-row { display: flex; gap: 8px; }
#viewLobby .entry-code input { background: #0c1e28; color: var(--paper); border-color: #3b5663; font: .85rem var(--mono); letter-spacing: .1em; }
#viewLobby .entry-code input::placeholder { color: #8199a4; }
#viewLobby .entry-code .btn { background: var(--sport-accent); color: var(--ink); border-color: var(--sport-accent); padding: 10px 14px; }
#viewLobby .entry-code input:focus-visible, #viewLobby .entry-code button:focus-visible { outline-color: var(--sport-accent); }

#viewLobby .team-explorer { margin-top: 38px; padding-top: 27px; border-top: 1px solid var(--rule); }
#viewLobby .team-explorer .lobby-kicker { margin-bottom: 7px; color: var(--sport-accent); }
#viewLobby .team-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 13px 0 20px; }
#viewLobby .team-tools .section-intro { margin: 0; max-width: 48ch; }
#viewLobby .team-search { flex: 0 0 190px; }
#viewLobby .team-search input { width: 100%; min-width: 0; min-height: 42px; padding: 9px 12px; border: 1px solid #3b5663; border-radius: 5px; color: var(--paper); background: #0c1e28; font: .8rem var(--sans); }
#viewLobby .team-search input::placeholder { color: #a4b9c1; }
#viewLobby .team-directory { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0; }
/* One block: a direction flag, the price over the code, and the club's mark
   bled off the right behind all of it. There is no separate price footer any
   more -- the price sits with the name it belongs to, which is what the rule
   under it used to be separating. */
#viewLobby .directory-team {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 13px minmax(0,1fr); align-items: center; gap: 9px;
  padding: 15px; border: 1px solid #2e4b59; background: #132c38; border-radius: 6px; min-width: 0;
}
#viewLobby .directory-team .team-logo {
  position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
  width: 116px; height: 116px; opacity: .26; pointer-events: none;
}
/* The ringed fallback would read as a second, empty crest. The code is already
   the size of a headline here, which was the fallback's whole job. */
#viewLobby .directory-team .team-logo-fallback { display: none; }
/* The flag keeps its column whether or not it has an arrow in it, so the codes
   line up down the grid instead of stepping in and out. */
#viewLobby .directory-move { position: relative; z-index: 1; font-style: normal; font-size: .7rem; line-height: 1; color: var(--dim); }
#viewLobby .directory-move.up { color: var(--bid); }
#viewLobby .directory-move.down { color: var(--ask); }
/* The height is set here on purpose. It used to come from a stray 48px box on
   the code, and when that went so did the room the mark needs to bleed into. */
#viewLobby .directory-body { position: relative; z-index: 1; min-width: 0; min-height: 62px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
#viewLobby .directory-price { display: block; color: var(--paper); font: 600 .95rem var(--mono); }
#viewLobby .directory-price.price-pending { font: 500 .72rem var(--sans); color: #b6c6cb; }
#viewLobby .directory-code {
  display: block; color: var(--sport-accent); font: 800 2.2rem/1 var(--display);
  /* Holds the letters off the busiest marks without outlining them. */
  text-shadow: 0 2px 12px #132c38, 0 0 20px #132c38, 0 0 5px #132c38;
}
#viewLobby .team-expand { display: block; width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid #35515f; border-radius: 5px; background: transparent; color: var(--sport-accent); font: .74rem var(--sans); cursor: pointer; }
#viewLobby .team-expand:hover { background: var(--sport-wash); }
#viewLobby .team-empty { grid-column: 1/-1; color: var(--dim); padding: 20px 0; font-size: .9rem; }
#viewLobby .lobby-foot { display: flex; gap: 17px; flex-wrap: wrap; color: #91aab5; font-size: .68rem; margin: 26px 0 0; }
#viewLobby .lobby-foot span { margin-right: auto; }
#viewLobby .lobby-foot a { color: #b7c9ce; }
@media (max-width: 700px) {
  #viewLobby .lobby-layout { grid-template-columns: 1fr; gap: 26px; }
  #viewLobby .floor-entry { grid-template-columns: 1fr 1fr; align-items: start; }
  #viewLobby .team-directory { grid-template-columns: repeat(4,minmax(0,1fr)); }
  #viewLobby .directory-team { padding: 12px; }
}
@media (max-width: 520px) {
  #viewLobby .lobby-toolbar { display: block; }
  #viewLobby .lobby-toolbar > .lobby-kicker { margin-bottom: 12px; }
  #viewLobby .sport-switch button { flex: 1; }
  #viewLobby .lobby-hero { padding: 23px 20px 0; grid-template-columns: minmax(0,1fr) 78px; }
  #viewLobby .lobby-hero h2 { font-size: 2.9rem; }
  #viewLobby .lede { font-size: .8rem; }
  #viewLobby .venue-art { margin: 0 -10px 0 0; justify-content: flex-start; padding-top: 49px; min-height: 0; }
  #viewLobby .venue-art > b { font-size: 3.2rem; }
  #viewLobby .venue-lines { width: 150px; max-width: none; top: 20px; }
  #viewLobby .venue-caption, #viewLobby .venue-foot { display: none; }
  #viewLobby .lobby-summary { gap: 10px; grid-template-columns: .8fr .75fr 1.4fr; padding: 15px 0; }
  #viewLobby .lobby-summary > div + div { padding-left: 10px; }
  #viewLobby .lobby-summary span { font-size: .5rem; letter-spacing: .04em; }
  #viewLobby .lobby-summary b { font-size: .7rem; line-height: 1.5; }
  #viewLobby .floor-entry { grid-template-columns: 1fr; }
  #viewLobby .team-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #viewLobby .team-tools { display: block; }
  #viewLobby .team-search { margin-top: 13px; }
  #viewLobby .team-explorer .section-count { font-size: .56rem; }
  #viewLobby .lobby-foot { gap: 12px; }
  #viewLobby .lobby-foot span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #viewLobby .floor { transition: none; }
  #viewLobby .floor:not(:disabled):hover { transform: none; }
}

#viewLobby .entry-card .hint:empty { display: none; }

/* Public-first home ------------------------------------------------------- */
#viewLobby { display: flex; flex-direction: column; }
#viewLobby .landing-hero { order: 1; margin-bottom: 34px; }
#viewLobby .sport-banner { order: 2; }
#viewLobby #lobbyFloors { order: 3; }
#viewLobby .next-sports { order: 5; }
#viewLobby .lobby-foot { order: 6; }
#viewLobby #sportPreview { order: 7; }
#viewLobby .lobby-status { order: 0; }

#viewLobby .landing-hero {
  min-height: 420px; grid-template-columns: minmax(0,1.55fr) minmax(210px,.75fr);
  background:
    linear-gradient(110deg, rgba(8,24,33,.25), rgba(8,24,33,.05)),
    radial-gradient(circle at 84% 18%, rgba(236,208,150,.16), transparent 35%), #132c38;
}
#viewLobby .landing-hero .hero-copy { padding: 32px 0 42px; align-self: center; }
#viewLobby .landing-hero h2 { max-width: 13ch; font-size: clamp(3.2rem,7.2vw,5rem); }
#viewLobby .landing-hero .lede { max-width: 43ch; color: #c1cdd0; }
#viewLobby .landing-hero .venue-art { min-height: 280px; }
#viewLobby .landing-hero .venue-art > b { font-size: clamp(5.5rem,12vw,8rem); }

#viewLobby .sport-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin: 0 0 10px; padding: 16px 0; border-top: 1px solid #526671; border-bottom: 1px solid var(--rule);
}
#viewLobby .sport-banner > div { display: flex; align-items: center; gap: 18px; }
#viewLobby .sport-number { color: var(--sport-accent); font: 600 .65rem var(--mono); }
#viewLobby .sport-banner small { display: block; color: var(--sport-accent); font: 600 .58rem var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
#viewLobby .sport-banner b { display: block; font: 700 1.25rem var(--display); }
#viewLobby .sport-banner > strong { font: 800 2.7rem var(--display); color: #536d78; }

#viewLobby .lobby-layout { margin-top: 18px; }
#viewLobby .lobby-layout { grid-template-columns: 1fr; }
#viewLobby:not(.has-leagues) .floor-selection { order: 3; }
#viewLobby:not(.has-leagues) .floor-entry { order: 1; }
#viewLobby:not(.has-leagues) #lobbyMovers { order: 2; }
#viewLobby:not(.has-leagues) #myFloorsTitle { font-size: 1.1rem; color: var(--dim); }
#viewLobby.has-leagues .floor-selection { order: 1; }
#viewLobby.has-leagues #lobbyMovers { order: 2; }
#viewLobby.has-leagues .floor-entry { order: 3; grid-template-columns: 1fr 1fr; }
#viewLobby .landing-movers { margin-top: 46px; }
#viewLobby .movers-note { margin: 2px 0 17px; max-width: 62ch; color: #9db2ba; font-size: .74rem; line-height: 1.55; }
#viewLobby .landing-mover { min-height: 88px; }
#viewLobby .landing-mover .team-code { font-size: 1.45rem; }

#viewLobby .next-sports { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule); }
#viewLobby .next-sports article { min-height: 185px; padding: 22px; border: 1px solid #294956; border-radius: 8px; background: linear-gradient(145deg,#142f3b,#10242f); }
#viewLobby .next-sports article:first-child { background: linear-gradient(145deg,rgba(163,227,213,.08),transparent),#142f3b; }
#viewLobby .next-sports span { color: var(--dim); font: .58rem var(--mono); text-transform: uppercase; letter-spacing: .12em; }
#viewLobby .next-sports b { display: block; margin-top: 10px; font: 800 2.3rem var(--display); }
#viewLobby .next-sports p { max-width: 34ch; color: #a6bbc2; font-size: .76rem; line-height: 1.55; }
#viewLobby .next-sports button { margin-top: 10px; border: 1px solid #3a5865; border-radius: 4px; padding: 9px 12px; background: transparent; color: #8198a1; font: .62rem var(--mono); text-transform: uppercase; }

@media (max-width: 700px) {
  #viewLobby .landing-hero { min-height: 0; grid-template-columns: minmax(0,1fr) 110px; }
  #viewLobby .landing-hero .venue-art { min-height: 210px; }
  #viewLobby.has-leagues .floor-entry { grid-template-columns: 1fr; }
  #viewLobby .next-sports { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  #viewLobby .landing-hero { grid-template-columns: 1fr; }
  #viewLobby .landing-hero .hero-copy { padding: 14px 0 28px; }
  #viewLobby .landing-hero .venue-art { display: none; }
  #viewLobby .landing-hero h2 { font-size: 3.45rem; }
  #viewLobby .landing-hero .lobby-summary { grid-template-columns: 1fr 1fr; }
  #viewLobby .landing-hero .lobby-summary > div:last-of-type { display: none; }
}
