/* Lobby hero, side cards, "Jump back in" and the signed-out header (build_app.py LOBBY_HERO / LOBBY_AUTH). */
.tw-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.tw-feat-wrap { position: relative; min-width: 0; }
.tw-feat { position: relative; display: flex; align-items: flex-end; min-height: 380px; height: 100%; box-sizing: border-box; border-radius: 24px; overflow: hidden;
  border: 1px solid #1E2921; color: #EEF3EC; text-decoration: none; isolation: isolate; }
.tw-feat-art { position: absolute; top: 0; right: 0; height: 100%; width: 58%; object-fit: cover; object-position: center; z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%); mask-image: linear-gradient(to right, transparent 0, #000 38%); }
.tw-feat-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 36px 40px 40px; max-width: 520px; }
.tw-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #C6F432; text-transform: uppercase; }
.tw-h1 { margin: 0; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 60px; font-weight: 800; letter-spacing: -.04em; line-height: .95; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.tw-blurb { margin: 0; font-size: 16px; line-height: 1.5; color: #DCE4DA; max-width: 420px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.tw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tw-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(10,14,11,.72); border: 1px solid #253128; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tw-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; animation: twblink 1.4s ease-in-out infinite; }
@keyframes twblink { 50% { opacity: .35; } }
.tw-cta { margin-top: 6px; display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 14px; background: #C6F432; color: #0A0E0B; font-weight: 800; font-size: 16px; }
.tw-feat:hover .tw-cta, .tw-feat:focus-visible .tw-cta { filter: brightness(1.08); }
.tw-feat:focus-visible { outline: 3px solid #C6F432; outline-offset: 3px; }
.tw-dots { position: absolute; right: 22px; bottom: 22px; display: flex; gap: 6px; }
.tw-dotbtn { width: 28px; height: 28px; border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; }
.tw-dotbtn::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: rgba(238,243,236,.45); transition: width .2s, background .2s; }
.tw-dotbtn[aria-pressed="true"]::after { width: 22px; border-radius: 6px; background: #C6F432; }
.tw-side { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tw-card { display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; padding: 24px; border-radius: 24px; color: #EEF3EC; text-decoration: none; min-height: 150px; box-sizing: border-box; }
.tw-card strong { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.tw-card-text { font-size: 14px; line-height: 1.45; color: #C9D3C8; }
.tw-card-go { margin-top: 4px; font-size: 14px; font-weight: 800; color: #C6F432; }
.tw-card-a { background: #122016; border: 1px solid #1F3524; }
.tw-card-b { background: #1A1626; border: 1px solid #2C2540; }
.tw-card-b .tw-kicker, .tw-card-b .tw-card-go { color: #C9B6FF; }
.tw-card:hover { filter: brightness(1.08); }
.tw-recent { display: flex; flex-direction: column; gap: 12px; }
.tw-h2 { margin: 0; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.tw-recent-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.tw-rc { flex: 0 0 auto; width: 150px; height: 159px; border-radius: 16px; border: 1px solid #1E2921; display: flex; align-items: flex-end; padding: 10px; box-sizing: border-box; color: #EEF3EC; text-decoration: none; scroll-snap-align: start; }
.tw-rc-name { font-size: 13px; font-weight: 800; background: rgba(10,14,11,.75); padding: 3px 8px; border-radius: 6px; }
/* Signed out: Log in / Join instead of balance and Deposit (body.tw-out is set by 2win-lobby-online.js). */
.tw-auth-out { display: none; height: 44px; align-items: center; padding: 0 16px; border-radius: 12px; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.tw-login { border: 1px solid #253128; color: #EEF3EC; }
.tw-join { background: #C6F432; color: #0A0E0B; }
body.tw-out .tw-auth-out { display: inline-flex; }
body.tw-out .tw-auth-in { display: none !important; }
@media (max-width: 1000px) {
  .tw-hero { grid-template-columns: minmax(0, 1fr); }
  .tw-side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tw-feat { flex-direction: column; align-items: stretch; min-height: 0; }
  .tw-feat-art { position: static; width: 100%; height: auto; aspect-ratio: 179 / 150; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
  .tw-feat-body { padding: 0 18px 22px; margin-top: -28px; gap: 10px; max-width: none; }
  .tw-h1 { font-size: 36px; }
  .tw-blurb { font-size: 15px; }
  .tw-cta { align-self: stretch; justify-content: center; }
  .tw-dots { top: 12px; bottom: auto; right: 12px; }
  /* Side cards: a compact pair (title + link) so the game grid stays close to the top. */
  .tw-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tw-card { min-height: 0; padding: 14px; gap: 6px; border-radius: 18px; justify-content: space-between; }
  .tw-card strong { font-size: 17px; }
  .tw-card .tw-kicker { font-size: 10px; }
  .tw-card-text { display: none; }
  .tw-card-go { font-size: 13px; }
  .tw-rc { width: 120px; height: 127px; }
  html body .hdr .hright > a.tw-auth-out { height: 40px !important; padding: 0 12px !important; font-size: 13px !important; }
}
@media (prefers-reduced-motion: reduce) { .tw-dot { animation: none; } }
