/* ════════════════════════════════════════════════════════════
   play.apeiron.games — front page ("the lobby") only.
   Loaded after portal.css; every selector is scoped under body.lobby
   so nothing here leaks to any other portal page.
   Diptych: Age of Pericles (65%) | Pyramid of the Gods (35%),
   "Coming to Play" band peeking at the bottom of the first screen.
   ════════════════════════════════════════════════════════════ */

.lobby {
  --lobby-bar: 4.1rem;                 /* approx. height of the shared top bar */
  --lobby-gutter: clamp(24px, 3.5vw, 56px);
  --lobby-ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
:root:has(body.lobby) { scrollbar-color: var(--gold-dim) var(--navy-deep); }
.lobby ::selection { background: var(--gold); color: var(--navy-deep); }

/* Visible keyboard focus on everything interactive */
.lobby a:focus-visible,
.lobby button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ── Personal strip (filled by portal.js for signed-in players) ── */
.lobby [data-personal].personal-strip {
  margin: 0;
  border-radius: 0;
  border-width: 0 0 1px 0;
  padding: 0.75rem var(--lobby-gutter);
}

/* ── The diptych ───────────────────────────────────────────── */
.lobby-diptych {
  display: grid;
  grid-template-columns: 65fr 35fr;
  height: calc(100svh - var(--lobby-bar) - 11svh);
  min-height: 560px;
  position: relative;
}
/* 1px gold divider between the panels */
.lobby-diptych::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 65%;
  width: 1px; background: rgba(201, 168, 76, 0.6);
  z-index: 4; pointer-events: none;
}

/* neutralise the shared .game-card card look: these are panels, not cards */
.lobby .lobby-diptych .game-card {
  border: 0;
  border-radius: 0;
  background: none;
  transform: none;
  transition: none;
  min-width: 0;
}
.lobby .lobby-diptych .game-card:hover { transform: none; border-color: transparent; }

/* "Recommended for you" badge (added by portal.js): small gold label, top-left */
.lobby .lobby-diptych .game-card .rec-badge {
  top: 1rem; left: var(--lobby-gutter); right: auto;
  z-index: 6;
  font-size: 0.6rem; letter-spacing: 0.14em;
}
.lobby .lobby-ahau .rec-badge { left: 1rem; }

/* shared little pieces */
.lobby .lobby-diptych .game-card p { flex: none; }
.lobby .lobby-era {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 6px rgba(10, 14, 22, 0.95), 0 1px 12px rgba(10, 14, 22, 0.9);
}
.lobby .lobby-line {
  text-wrap: balance;
  font-family: var(--font-body);
  color: var(--ash);
  line-height: 1.35;
}
.lobby .btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.lobby .btn-outline:hover { background: rgba(201, 168, 76, 0.12); color: var(--gold-light); border-color: var(--gold-light); }
.lobby .btn-gold { text-transform: uppercase; letter-spacing: 0.1em; }
.lobby .btn:hover { transform: none; }
.lobby .btn-gold:hover { filter: brightness(1.06); }

/* ── Left panel: Age of Pericles ───────────────────────────── */
.lobby .lobby-stage {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--lobby-gutter) 8%;
}
.lobby .stage-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 14% 18%;            /* keeps the Acropolis in the top-left */
  z-index: 0;
  animation: lobby-settle 1.6s var(--lobby-ease) backwards;
}
.lobby .stage-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 25, 40, 0.94) 0%, rgba(17, 25, 40, 0.86) 30%, rgba(17, 25, 40, 0.55) 46%, rgba(17, 25, 40, 0) 64%),
    linear-gradient(0deg, rgba(17, 25, 40, 0.8) 0%, rgba(17, 25, 40, 0) 48%);
  /* keep the Acropolis (top-left) bright: the scrim builds up toward the text */
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, #000 34%);
          mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, #000 34%);
}
.lobby .stage-hero {
  position: absolute; z-index: 2;
  bottom: 1%; right: 0.5%;
  height: 92%; width: auto;
  max-width: 48%;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  animation: lobby-rise 1.1s var(--lobby-ease) 0.3s backwards;
}
.lobby .stage-copy {
  position: relative; z-index: 3;
  max-width: min(40rem, 58%);
  display: flex; flex-direction: column; align-items: flex-start;
}
.lobby .lobby-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.6vw, 6rem);
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--gold-light);
  margin: 0.55rem 0 0;
  text-shadow: 0 2px 24px rgba(10, 14, 22, 0.55);
}
.lobby .lobby-rule {
  display: block; width: 170px; height: 1px;
  background: var(--gold);
  margin: 1.3rem 0 1.1rem;
}
.lobby .stage-copy .lobby-line {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  max-width: 30ch;
  text-shadow: 0 1px 12px rgba(10, 14, 22, 0.7);
}
.lobby .stage-copy .lobby-play { margin-top: 1.3rem; padding: 1rem 2rem; font-size: 0.95rem; }
.lobby .lobby-note {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--ash);
  text-shadow: 0 1px 10px rgba(10, 14, 22, 0.8);
}
/* the bridge from the slice to the campaign: quiet, one line, never a second button */
.lobby .lobby-follow {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--paper-dim);
  text-shadow: 0 1px 10px rgba(10, 14, 22, 0.8);
}
.lobby .lobby-follow a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  white-space: nowrap;
}
.lobby .lobby-follow a:hover { color: var(--ash); }

/* ── Right panel: Pyramid of the Gods ──────────────────────── */
.lobby .lobby-diptych .lobby-ahau { background: var(--navy-deep); }   /* beats the card reset above */
.lobby .lobby-ahau {
  position: relative;
  background: var(--navy-deep);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.lobby .ahau-art {
  position: relative;
  flex: 66 1 0;
  min-height: 0;
  overflow: hidden;
}
.lobby .ahau-art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;            /* pyramid and the figure */
  transition: transform 600ms var(--lobby-ease);
  animation: lobby-settle 1.6s var(--lobby-ease) backwards;
}
.lobby .lobby-ahau:hover .ahau-art img { transform: scale(1.03); }
.lobby .ahau-copy {
  flex: 34 1 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0.9rem clamp(16px, 2vw, 32px) 1.1rem;
  gap: 0.35rem;
}
.lobby .ahau-copy h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.1;
  color: var(--gold-light);
  margin: 0;
}
.lobby .ahau-copy .lobby-line { font-size: 1rem; color: var(--paper-dim); max-width: 40ch; }
.lobby .ahau-copy .lobby-play { margin-top: 0.7rem; width: min(100%, 22rem); padding: 0.8rem 1rem; }

/* ── "Coming to Play" band ─────────────────────────────────────────── */
.lobby .lobby-workshop {
  background: var(--obsidian);
  border-top: 1px solid var(--gold);
  padding: 1.6rem var(--lobby-gutter);
  display: flex; align-items: center; gap: 0;
}
.lobby .ws-label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-right: clamp(1.2rem, 3vw, 2.6rem);
  border-right: 1px solid rgba(201, 168, 76, 0.45);
  line-height: 1.2;
}
.lobby .ws-list { list-style: none; display: flex; align-items: center; }
.lobby .ws-list li {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 0.25rem clamp(1.2rem, 3vw, 2.6rem);
  line-height: 1.2;
}
.lobby .ws-list li + li { border-left: 1px solid rgba(201, 168, 76, 0.45); }
.lobby .ws-join { margin-left: auto; padding: 0.9rem 2.2rem; white-space: nowrap; }

/* ── Load moment: one authored settle, content visible by default ── */
@keyframes lobby-settle { from { transform: scale(1.06); } }
@keyframes lobby-rise   { from { opacity: 0; transform: translateY(12px); } }

/* Pericles' ground: a soft contact shadow where his feet meet the stage floor */
@media (min-width: 1024px) {
  .lobby .lobby-stage::before {
    content: "";
    position: absolute; z-index: 2; pointer-events: none;
    left: 66%; width: 30%; bottom: -2%; height: 9%;
    background: radial-gradient(ellipse at 50% 50%, rgba(8, 11, 18, 0.7) 0%, rgba(8, 11, 18, 0.35) 45%, rgba(8, 11, 18, 0) 72%);
  }
}

/* ── Tablet and mobile: single column ──────────────────────── */
@media (max-width: 1023px) {
  .lobby-diptych {
    display: block;
    height: auto; min-height: 0;
  }
  .lobby-diptych::after { display: none; }
  .lobby .lobby-stage {
    min-height: 82svh;
    padding: 0 var(--lobby-gutter) 2.2rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.6);
  }
  .lobby .stage-img { object-position: 12% 12%; }
  .lobby .stage-scrim {
    z-index: 2;
    -webkit-mask-image: none; mask-image: none;
    background:
      linear-gradient(0deg, rgba(17, 25, 40, 0.94) 0%, rgba(17, 25, 40, 0.86) 34%, rgba(17, 25, 40, 0) 64%),
      linear-gradient(90deg, rgba(17, 25, 40, 0.55) 0%, rgba(17, 25, 40, 0) 55%);
  }
  .lobby .stage-hero {
    z-index: 1;
    height: 74%;
    max-width: 64%;
    right: -6%; bottom: 0;
  }
  .lobby .stage-copy { max-width: 100%; width: 100%; }
  .lobby .stage-copy .lobby-play { width: 100%; min-height: 48px; }
  .lobby .lobby-ahau { display: block; }
  .lobby .ahau-art { aspect-ratio: 16 / 10; flex: none; }
  .lobby .ahau-art img { object-position: 50% 40%; }
  .lobby .ahau-copy { padding: 1.6rem var(--lobby-gutter) 2rem; gap: 0.5rem; }
  .lobby .ahau-copy h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .lobby .ahau-copy .lobby-play { width: 100%; min-height: 48px; margin-top: 0.9rem; }
  .lobby .lobby-workshop {
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.6rem var(--lobby-gutter) 1.8rem;
  }
  .lobby .ws-label { border-right: 0; padding-right: 0; font-size: 1.35rem; }
  .lobby .ws-list li { padding: 0.25rem 0.8rem; font-size: clamp(0.66rem, 2.9vw, 0.8rem); letter-spacing: 0.1em; white-space: nowrap; }
  .lobby .ws-list li:first-child { padding-left: 0; }
  .lobby .ws-join { margin-left: 0; width: 100%; min-height: 48px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .lobby .lobby-stage { min-height: 70svh; }
  .lobby .stage-hero { height: 80%; right: 3%; }
  .lobby .ahau-art { aspect-ratio: 21 / 9; }
}
@media (max-width: 767px) {
  /* the shared top bar's three links + sign-in cannot fit a phone; both games are
     on the page itself and the main-site link lives in the footer */
  .lobby .portal-bar nav { display: none; }
  /* Pericles stands in the upper half, clear of the text block, and dissolves
     into the dark band instead of sitting under it */
  .lobby .stage-hero {
    height: 54%; max-width: 70%;
    right: -2%; bottom: 44%;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .lobby .lobby-title { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .lobby .lobby-era { font-size: 0.74rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lobby .stage-img,
  .lobby .stage-hero,
  .lobby .ahau-art img { animation: none !important; transition: none !important; }
  .lobby .lobby-ahau:hover .ahau-art img { transform: none; }
}

/* ── Single-panel rows (Imperial Throne, Populus Romanus) ──── */
/* The diptych's gold divider belongs between two panels; on a one-panel row it ran down the middle of the painting. */
.lobby-diptych.lobby-solo::after { display: none; }
.lobby-diptych.lobby-solo { grid-template-columns: 1fr; }   /* one panel fills the row (AoP moved to the Workshop, 2026-10-28) */
/* An era line breaks only at its dots, never inside a phrase. */
.lobby .lobby-era span { white-space: nowrap; }

/* ── Populus Romanus: the Workshop panel (2026-10-06) ──────── */
.lobby .lobby-populus .stage-img { object-position: 50% 40%; }

/* ── The Workshop: games in development (2026-10-07) ─────────
   Tamás 2026-10-07, "Workshop row, compact cards": one row under Imperial Throne, one compact card per game.
   Cards sit in a 1px gold hairline grid (the band's language); a card lays out art beside words when it has the room
   (one game today) and art over words when it shares the row. */
.lobby .lobby-bench {
  background: var(--obsidian);
  border-top: 1px solid var(--gold);
  padding: clamp(2.2rem, 4vw, 3.2rem) var(--lobby-gutter) clamp(2.6rem, 5vw, 4rem);
}
.lobby .bench-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.6rem; margin-bottom: 1.5rem; }
.lobby .bench-label {
  font-family: var(--font-head); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); line-height: 1.2; margin: 0;
}
.lobby .bench-intro { margin: 0; font-family: var(--font-body); font-size: 1rem; color: var(--paper-dim); }
.lobby .bench-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
  gap: 1px; background: rgba(201, 168, 76, 0.45); border: 1px solid rgba(201, 168, 76, 0.45);
}
.lobby .bench-card {
  border: 0; border-radius: 0; background: var(--navy-deep); container-type: inline-size;
}
.lobby .bench-card:hover { transform: none; border-color: transparent; }
.lobby .bench-card p { flex: none; }
.lobby .bench-body { display: grid; grid-template-columns: 1fr; height: 100%; }
.lobby .bench-art { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.lobby .bench-art img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
  transition: transform 600ms var(--lobby-ease);
}
.lobby .bench-card:hover .bench-art img { transform: scale(1.03); }
.lobby .bench-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.4rem, 4cqi, 2.6rem) clamp(1.3rem, 4cqi, 2.6rem);
}
.lobby .bench-name {
  font-family: var(--font-head); font-weight: 400; font-size: clamp(1.45rem, 2.1vw, 2rem); line-height: 1.1;
  color: var(--gold-light); margin: 0;
}
.lobby .bench-meta {
  margin: 0.6rem 0 0; font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.lobby .bench-meta span { white-space: nowrap; }
.lobby .bench-line { margin: 0.9rem 0 0; font-size: 1.05rem; line-height: 1.4; color: var(--ash); max-width: 40ch; }
.lobby .bench-copy .interest { margin-top: 1.3rem; }
.lobby .bench-copy .btn { padding: 0.9rem 1.6rem; font-size: 0.9rem; }
.lobby .bench-note { margin: 0.8rem 0 0; font-size: 0.9rem; color: var(--paper-dim); }
@container (min-width: 46rem) {
  .lobby .bench-body { grid-template-columns: 1.2fr 1fr; }
  .lobby .bench-art { aspect-ratio: auto; min-height: 22rem; }
}

/* ── "Tell me when I can play": the form inside a card (app/lobby-interest.js) ── */
/* the shell gives .btn a display value, which beats the hidden attribute; the form replaces its open button */
.lobby .interest [hidden] { display: none !important; }
.lobby .interest-form {
  margin-top: 1.1rem; max-width: 31rem;
  display: grid; gap: 0.9rem;
  font-family: var(--font-body); color: var(--ash);
}
.lobby .interest-consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 1rem; line-height: 1.4; cursor: pointer; }
.lobby .interest-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0.15rem 0 0; accent-color: var(--gold); cursor: pointer; }
.lobby .interest-form input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.lobby .interest-small { margin: 0; font-size: 0.88rem; color: var(--paper-dim); }
.lobby .interest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; }
.lobby .interest-actions .btn { margin: 0; padding: 0.85rem 1.6rem; font-size: 0.9rem; }
.lobby .interest-actions .btn:disabled { opacity: 0.6; cursor: progress; }
.lobby .interest-cancel {
  min-height: 44px; padding: 0 0.2rem; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper-dim); text-decoration: underline; text-underline-offset: 4px;
}
.lobby .interest-cancel:hover { color: var(--gold-light); }
.lobby .interest-msg { margin: 0; font-size: 0.92rem; color: var(--gold-light); }
.lobby .interest-msg:empty { display: none; }
.lobby .interest-done { margin: 0; font-size: 1.05rem; color: var(--gold-light); max-width: 34ch; }
.lobby .interest-done:focus { outline: none; }

@media (max-width: 1023px) {
  .lobby .bench-copy .btn, .lobby .interest-actions .btn { width: 100%; min-height: 48px; }
  .lobby .interest-form { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lobby .bench-art img { transition: none !important; }
  .lobby .bench-card:hover .bench-art img { transform: none; }
}

/* ── The Inner Circle band (2026-10-07, replaces the Coming to Play band) ──
   Tamás 2026-10-07, "Inner Circle band": the free list, with its perks on the page. Same language as the band it
   replaces: Obsidian, a 1px gold top edge, a gold Cinzel label, perks set off by 45% gold hairlines, one outline button. */
.lobby .lobby-circle {
  background: var(--obsidian);
  border-top: 1px solid var(--gold);
  padding: clamp(2rem, 3.6vw, 2.8rem) var(--lobby-gutter);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem clamp(1.4rem, 3vw, 2.8rem);
}
.lobby .ic-label {
  font-family: var(--font-head); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); line-height: 1.2; margin: 0;
}
.lobby .ic-line { margin: 0.35rem 0 0; font-size: 1rem; color: var(--paper-dim); }
.lobby .ic-perks {
  list-style: none; margin: 0; padding: 0 0 0 clamp(1.4rem, 3vw, 2.8rem);
  border-left: 1px solid rgba(201, 168, 76, 0.45);
  display: grid; gap: 0.55rem;
}
.lobby .ic-perks li {
  position: relative; padding-left: 1.1rem;
  font-family: var(--font-body); font-size: 1.02rem; line-height: 1.35; color: var(--ash);
}
.lobby .ic-perks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45rem; height: 1px; background: var(--gold);
}
.lobby .ic-join { display: grid; justify-items: center; gap: 0.55rem; }
.lobby .ic-btn { padding: 0.9rem 2.2rem; white-space: nowrap; }
.lobby .ic-small { margin: 0; font-size: 0.88rem; color: var(--paper-dim); text-align: center; }
.lobby .ic-small.ic-member { font-size: 1.02rem; color: var(--gold-light); }
.lobby .ic-small:focus { outline: none; }
@media (max-width: 1023px) {
  .lobby .lobby-circle { grid-template-columns: 1fr; }
  .lobby .ic-label { font-size: 1.35rem; }
  .lobby .ic-perks { padding-left: 0; border-left: 0; border-top: 1px solid rgba(201, 168, 76, 0.45); padding-top: 1rem; }
  .lobby .ic-join { justify-items: stretch; }
  .lobby .ic-btn { width: 100%; min-height: 48px; text-align: center; }
}

/* ── The Inner Circle offer after a game sign-up, and the Gamefound next step (2026-10-07) ── */
.lobby .ic-offer {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(201, 168, 76, 0.45);
  display: grid; gap: 0.7rem; justify-items: start; max-width: 34rem;
}
.lobby .ic-offer p { margin: 0; font-size: 0.98rem; line-height: 1.4; color: var(--ash); }
.lobby .ic-offer .btn { padding: 0.85rem 1.6rem; font-size: 0.9rem; }
.lobby .ic-offer .ic-welcome { color: var(--gold-light); }
.lobby .ic-welcome:focus { outline: none; }
.lobby .ic-follow {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--gold-light);
  text-decoration: underline; text-underline-offset: 4px;
}
.lobby .ic-follow:hover { color: var(--ash); }
.lobby .ic-join .ic-follow { text-align: center; }
@media (max-width: 1023px) {
  .lobby .ic-offer { justify-items: stretch; max-width: none; }
  .lobby .ic-offer .btn { width: 100%; min-height: 48px; }
}

/* ── The Workshop on its own address (2026-10-12) ─────────────
   Tamás 2026-10-12: "Put the Workshop on https://workshop.apeiron.games/". The Workshop page (workshop-home/index.html)
   reuses the bench cards above; the play front page keeps a short band of tiles that points there. */
.lobby .ws-hero {
  padding: clamp(2.6rem, 6vw, 4.6rem) var(--lobby-gutter) clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, rgba(17, 25, 40, 0.97) 0%, rgba(17, 25, 40, 0.88) 55%, rgba(17, 25, 40, 0.7) 100%),
    url("/assets/lobby/inti-cover-1254.webp") 85% 35% / cover no-repeat, var(--navy-deep);
  border-bottom: 1px solid var(--gold);
}
.lobby .ws-title {
  font-family: var(--font-head); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05;
  color: var(--gold-light); margin: 0.4rem 0 0;
}
.lobby .ws-line { margin: 1rem 0 0; max-width: 46ch; font-size: 1.12rem; line-height: 1.5; color: var(--ash); }
.lobby .ws-steps {
  margin: 1.4rem 0 0; padding: 0 0 0 1.4rem; max-width: 52ch; display: grid; gap: 0.5rem;
  font-size: 1rem; line-height: 1.45; color: var(--paper-dim);
}
.lobby .ws-steps b { color: var(--ash); font-weight: 600; }
.lobby .ws-steps li::marker { color: var(--gold); font-family: var(--font-head); }
.lobby .bench-art--inti img { object-position: 50% 30%; }

/* The play front page's pointer band: four tiles and one button. */
.lobby .ws-teaser .bench-head { margin-bottom: 1.2rem; }
.lobby .ws-tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1px; background: rgba(201, 168, 76, 0.45); border: 1px solid rgba(201, 168, 76, 0.45);
}
/* Four tiles since AoP joined the Workshop (2026-10-28): 2 x 2, or one row of four on a wide screen, never 3 + 1. */
.lobby .ws-tiles { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px) { .lobby .ws-tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .lobby .ws-tiles { grid-template-columns: 1fr; } }
.lobby .ws-tile {
  display: grid; grid-template-rows: auto auto auto; background: var(--navy-deep); color: inherit; text-decoration: none;
  height: 100%;
}
.lobby .ws-tile img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; object-position: 50% 40%; display: block; }
.lobby .ws-tile--inti img { object-position: 50% 28%; }
.lobby .ws-tile-name {
  padding: 0.9rem 1.1rem 0; font-family: var(--font-head); font-size: 1.15rem; color: var(--gold-light); line-height: 1.2;
}
.lobby .ws-tile-meta {
  padding: 0.35rem 1.1rem 1rem; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.lobby .ws-tile:hover .ws-tile-name { text-decoration: underline; text-underline-offset: 0.2em; }
.lobby .ws-tile:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.lobby .ws-visit { margin-top: 1.4rem; padding: 0.9rem 1.8rem; font-size: 0.9rem; }
@media (max-width: 640px) {
  .lobby .ws-visit { width: 100%; min-height: 48px; text-align: center; }
}

/* The Inner Circle's "who can join" line (2026-10-12): said first and plainly, in the band's lighter ink. */
.lobby .ic-who { margin: 0.45rem 0 0; font-size: 1.05rem; line-height: 1.4; color: var(--ash); max-width: 27ch; }
.lobby .ic-btn.btn-gold { min-width: 11rem; text-align: center; }
@media (max-width: 1023px) {
  .lobby .ic-who { max-width: none; }
}
/* Three games side by side on the Workshop page when the window allows (a 2 + 1 grid left Inti alone on its row). */
.lobby.workshop-home .bench-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.lobby.workshop-home .bench-copy { justify-content: flex-start; }
.lobby.workshop-home .bench-copy .interest { margin-top: auto; padding-top: 1.3rem; }
.lobby.workshop-home .bench-body { grid-template-rows: auto 1fr; }
.lobby.workshop-home .bench-note { min-height: 3.2em; }
/* Workshop tiles, two to a row (2026-10-13). Tamás: "tiles instead of current layout. 2 tiles in a row. Shorten the
   intro text. So I can see everything in one at first glance even in laptop." A short hero (title beside one line),
   then a 2 x 2 grid of wide tiles: art on the left and words on the right while the tile has the room, art over
   words when it does not (phone, narrow pane). Overrides the bench-card rules above on this page only. */
.lobby.workshop-home .ws-hero {
  padding: clamp(1rem, 2vw, 1.5rem) var(--lobby-gutter);
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.8rem clamp(1.6rem, 4vw, 3.6rem);
}
.lobby.workshop-home .ws-title { font-size: clamp(2rem, 3.6vw, 3rem); }
.lobby.workshop-home .ws-hero-copy { padding-bottom: 0.25rem; }
.lobby.workshop-home .ws-line { margin: 0; max-width: 54ch; font-size: 1.05rem; line-height: 1.45; }
.lobby.workshop-home .ws-invited { margin: 0.35rem 0 0; font-size: 0.95rem; color: var(--paper-dim); }
.lobby.workshop-home .ws-hero-copy a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.lobby.workshop-home .ws-hero-copy a:hover { color: var(--ash); }
.lobby.workshop-home .lobby-bench { padding-top: 1.1rem; padding-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.lobby.workshop-home .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Tamás 2026-10-13: "better separation of the games a bit, esp. around covers". Each tile stands on its own: a gap
   between tiles instead of one shared hairline, a gold frame per tile, and a gold edge between cover and words. */
.lobby.workshop-home .bench-grid { grid-template-columns: 1fr; gap: 0.9rem; background: none; border: 0; }
.lobby.workshop-home .bench-card { border: 1px solid rgba(201, 168, 76, 0.45); }
.lobby.workshop-home .bench-art { border-bottom: 1px solid rgba(201, 168, 76, 0.45); }
@media (min-width: 760px) {
  .lobby.workshop-home .bench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lobby.workshop-home .bench-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.lobby.workshop-home .bench-art { aspect-ratio: 16 / 9; min-height: 0; }
.lobby.workshop-home .bench-copy { padding: 0.85rem 1.2rem 0.95rem; }
.lobby.workshop-home .bench-name { font-size: clamp(1.25rem, 1.7vw, 1.6rem); }
.lobby.workshop-home .bench-meta { margin-top: 0.4rem; font-size: 0.7rem; letter-spacing: 0.18em; }
.lobby.workshop-home .bench-line { margin-top: 0.55rem; max-width: none; font-size: 0.98rem; line-height: 1.38; }
.lobby.workshop-home .bench-copy .interest { padding-top: 0.7rem; }
.lobby.workshop-home .bench-copy .btn { padding: 0.6rem 1.2rem; font-size: 0.82rem; }
.lobby.workshop-home .bench-note { margin-top: 0.4rem; min-height: 0; font-size: 0.82rem; }
.lobby.workshop-home .bench-art--rockemup img { object-position: 50% 30%; }
.lobby.workshop-home .bench-art--pillars-solo img { object-position: 50% 35%; }
/* The game button (Tamás 2026-10-13: "a better and brighter button (text and texture)"; picked "I want to play").
   Gilded: a gold-leaf gradient with dark lettering, a lit top edge, a soft glow, and a sheen that crosses on hover. */
.lobby.workshop-home .bench-copy .btn-gild {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid #F3DC97; color: var(--obsidian); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.62rem 1.3rem;
  background: linear-gradient(180deg, #F6E3A6 0%, var(--gold-light) 38%, var(--gold) 62%, #B08D35 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.18),
              0 0 0 1px rgba(0, 0, 0, 0.35), 0 6px 18px -6px rgba(232, 201, 122, 0.55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.lobby.workshop-home .bench-copy .btn-gild::after {
  content: ""; position: absolute; z-index: -1; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease);
}
.lobby.workshop-home .bench-copy .btn-gild:hover {
  color: var(--obsidian);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.35), 0 10px 26px -6px rgba(232, 201, 122, 0.8);
}
.lobby.workshop-home .bench-copy .btn-gild:hover::after { left: 120%; }
.lobby.workshop-home .bench-copy .btn-gild:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .lobby.workshop-home .bench-copy .btn-gild::after { display: none; }
}
@container (min-width: 30rem) {
  .lobby.workshop-home .bench-body { grid-template-columns: 3fr 5fr; grid-template-rows: none; }
  .lobby.workshop-home .bench-art { aspect-ratio: auto; min-height: 12rem; border-bottom: 0; border-right: 1px solid rgba(201, 168, 76, 0.45); }
}
/* Age of Pericles on the Workshop (Tamás 2026-10-14: "invite only, but you can also apply"; picked "Wide card on top").
   One card across both columns: the square box cover on the left at its own shape, the words on the right. Stacked
   (phone, narrow pane): the cover's top half, title and sky, as a 16:9 band like the other tiles. */
@media (min-width: 760px) {
  .lobby.workshop-home .bench-card--wide { grid-column: 1 / -1; }
}
.lobby.workshop-home .bench-art--aop img { object-position: 50% 18%; }
@container (min-width: 30rem) {
  .lobby.workshop-home .bench-card--wide .bench-body { grid-template-columns: minmax(9rem, 15rem) 1fr; }
  .lobby.workshop-home .bench-card--wide .bench-art { aspect-ratio: 1 / 1; min-height: 0; align-self: start; }
  .lobby.workshop-home .bench-card--wide .bench-art img { object-position: 50% 50%; }
  .lobby.workshop-home .bench-card--wide .bench-copy { padding: 1.1rem 1.5rem 1.2rem; }
  .lobby.workshop-home .bench-card--wide .bench-line { max-width: 62ch; }
  .lobby.workshop-home .bench-card--wide .interest { margin-top: 0; }
}
