.deck-lobby main { margin-top: 16px; }

.deck-lobby .deck-toolbar,
.deck-lobby .deck-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deck-lobby .deck-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 16px;
}

.deck-lobby .deck-brand { color: var(--jf-text); font-weight: 700; text-decoration: none; }
.deck-brand img { display: block; border-radius: 50%; }

.deck-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 5vw, 48px);
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--jf-feature, #122f39);
  color: var(--jf-feature-text, #f5faf8);
}

.deck-lobby .deck-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.08; }
.deck-lobby .deck-hero p { margin: 12px 0 0; color: var(--jf-feature-muted, #c4d8d9); }

.deck-fan { position: relative; flex: 0 0 144px; height: 108px; }
.deck-fan span {
  position: absolute;
  display: grid;
  place-items: center;
  inset: 9px auto auto 40px;
  width: 60px;
  height: 84px;
  border: 1px solid #d1c9b8;
  border-radius: 8px;
  background: #fffcf4;
  color: #173a30;
  font: 2rem/1 Georgia, serif;
  box-shadow: 0 6px 14px #0004;
}
.deck-fan span:first-child { transform: translateX(-30px) rotate(-19deg); }
.deck-fan span:nth-child(2) { color: #a42c42; transform: translateY(-5px); }
.deck-fan span:last-child { transform: translateX(30px) rotate(19deg); }

.deck-lobby .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.deck-lobby .game-grid .panel { border-radius: 16px; gap: 8px; padding: 24px; }
.deck-lobby .game-grid h2 { margin: 4px 0 0; line-height: 1.2; }
.deck-lobby .game-grid p { margin: 0 0 12px; color: var(--jf-secondary); }
.deck-suit { color: var(--jf-accent); font: 2rem/1 Georgia, serif; }
.deck-lobby .deck-heart { color: #a42c42; }
html[data-theme="midnight"] .deck-lobby .deck-heart { color: #ffa0ae; }

.deck-lobby .game-grid .launch {
  align-self: stretch;
  justify-content: space-between;
  gap: 8px;
  border-radius: 8px;
  background: var(--jf-accent);
  border-color: var(--jf-accent);
  color: var(--jf-on-accent, #fff);
  text-decoration: none;
}
.deck-lobby .game-grid .launch:hover { text-decoration: underline; }

.deck-lobby .deck-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--jf-border);
  font-size: .85rem;
}
.deck-footer > a, .deck-more summary { display: inline-flex; align-items: center; min-height: 44px; }
.deck-footer > :is(a, button) { margin: 0 !important; }
.deck-footer > button { border-radius: 8px; }
.deck-more { order: 1; flex-basis: 100%; }
.deck-more summary { gap: 8px; cursor: pointer; color: var(--jf-accent); }
.deck-more summary::after { content: "+"; }
.deck-more[open] summary::after { content: "−"; }
.deck-more nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.deck-more nav a { display: inline-flex; align-items: center; min-height: 44px; }
.deck-lobby summary:focus-visible { outline: 3px solid var(--jf-accent); outline-offset: 4px; }

@media (max-width: 600px) {
  .deck-fan { display: none; }
  .deck-lobby .game-grid { grid-template-columns: 1fr; }
  .deck-lobby .game-grid .panel { padding: 16px; }
}
