/* Boss Chip's Backroom Poker — landing / seat & character select
   Design tokens per design_handoff_landing_page/README.md */

@keyframes billDriftL { 0% { opacity: 0; transform: translate(0,0) rotate(-8deg) scale(.7); } 12% { opacity: 1; } 45% { transform: translate(-64px,70px) rotate(-8deg) scale(.9); } 80% { opacity: .85; } 100% { opacity: 0; transform: translate(-98px,205px) rotate(-8deg) scale(1); } }
@keyframes billDriftR { 0% { opacity: 0; transform: translate(0,0) rotate(8deg) scale(.7); } 12% { opacity: 1; } 45% { transform: translate(64px,70px) rotate(8deg) scale(.9); } 80% { opacity: .85; } 100% { opacity: 0; transform: translate(98px,205px) rotate(8deg) scale(1); } }
@keyframes bossBob { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-7px) rotate(.5deg); } }
@keyframes landingStampIn { 0% { opacity: 0; transform: rotate(-14deg) scale(2.4); } 60% { opacity: 1; transform: rotate(-14deg) scale(.92); } 100% { opacity: 1; transform: rotate(-14deg) scale(1); } }
@keyframes dealFlash { 0% { opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

.landing-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: #14100b; font-family: 'Oswald', sans-serif;
}
.landing-stage { width: 1180px; height: 885px; position: relative; flex: none; transform-origin: center center; overflow: hidden; }
.landing-layer { position: absolute; }

.landing-bg { inset: 0; z-index: 0; overflow: hidden; }
/* 50% keeps the baked-in marquee sign fully in frame at the stage's 1180x885
   crop while preserving the lamp post and BAR sign on the right. */
.landing-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% center; filter: brightness(.72) saturate(.95); }
.landing-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 62% 75% at 40% 46%, rgba(20,16,11,0) 30%, rgba(20,16,11,.7) 100%); }

/* ---------- seats row ---------- */
.landing-seats { position: absolute; z-index: 15; right: 112px; top: 44px; width: 368px; display: flex; gap: 14px; }
.landing-seat {
  position: relative; flex: 1; background: rgba(26,21,14,.88); border: 2px solid rgba(201,168,106,.4); border-radius: 10px;
  padding: 8px 8px 6px; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.55);
}
.landing-seat.taken { border-color: #8a3a32; }
.landing-seat.mine { border-color: #c9a86a; }
.landing-seat-avatar {
  width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; border: 3px dashed #5c4f38; overflow: hidden;
  background: #0f0c08; display: flex; align-items: center; justify-content: center;
}
.landing-seat.taken .landing-seat-avatar { border-color: #8a3a32; }
.landing-seat.mine .landing-seat-avatar { border-color: #c9a86a; }
.landing-seat-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.landing-seat-avatar .landing-seat-empty { font-size: 28px; color: #5c4f38; }
.landing-seat-sub { margin-top: 6px; font-size: 11px; color: #c9a86a; letter-spacing: .06em; min-height: 14px; }
.landing-stamp-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.landing-stamp {
  font-family: 'Limelight', cursive; font-size: 16px; color: #c8372d; border: 2.5px solid #c8372d; border-radius: 6px;
  padding: 2px 7px; transform: rotate(-14deg); background: #ada183; box-shadow: 0 2px 6px rgba(0,0,0,.4);
  animation: landingStampIn .45s ease-out both; white-space: nowrap;
}
.landing-stamp.no-anim { animation: none; }

/* ---------- boss chip + signature (marquee title is baked into the bg art) ---------- */
.landing-boss-layer { position: absolute; z-index: 20; inset: 0; pointer-events: none; }
.landing-marquee-sig {
  position: absolute; left: 315px; top: 310px; transform: translateX(-50%) rotate(-6deg);
  font-family: 'Yellowtail', cursive; font-size: 20px; color: #1f4b57;
  text-shadow: 1px 1px 0 rgba(240,230,207,.6);
}
.landing-boss-wrap {
  position: absolute; left: 310px; bottom: 96px; transform: translateX(-50%); pointer-events: none;
}
.landing-boss {
  display: block; height: 520px;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)); animation: bossBob 4.2s ease-in-out infinite;
}

/* ---------- dollar bill animation ---------- */
.landing-bills { position: absolute; z-index: 18; left: 102px; bottom: 96px; width: 416px; height: 520px; pointer-events: none; }
.landing-bill {
  position: absolute; width: 36px; height: 19px; border-radius: 3px; background: #9fb287; border: 2px solid #16110c;
  color: #3d4a2c; font-size: 11px; font-weight: 700; font-family: 'Oswald', sans-serif;
  display: flex; align-items: center; justify-content: center; opacity: 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}

/* ---------- character tumbler ---------- */
.landing-tumbler {
  position: absolute; z-index: 10; right: 112px; top: 158px; bottom: 48px; width: 368px;
  display: flex; flex-direction: column; background: rgba(26,21,14,.9); border: 2px solid #c9a86a;
  border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.landing-tumbler-header {
  position: relative; z-index: 400; padding: 12px 14px 10px; border-bottom: 1px dashed rgba(201,168,106,.45);
  text-align: center; background: rgba(26,21,14,.92); border-radius: 9px 9px 0 0;
}
.landing-tumbler-eyebrow { font-size: 11px; letter-spacing: .28em; color: #c9a86a; text-transform: uppercase; }
.landing-tumbler-name { font-family: 'Limelight', cursive; font-size: 22px; line-height: 1.15; color: #f0e6cf; margin-top: 4px; min-height: 26px; }

.landing-reel-row { flex: 1; position: relative; display: flex; align-items: stretch; }
.landing-viewport {
  flex: 1; position: relative; overflow: visible; perspective: 1000px; cursor: grab; touch-action: none;
  background: linear-gradient(180deg, #0d0a07 0%, rgba(13,10,7,0) 20%, rgba(13,10,7,0) 80%, #0d0a07 100%);
}
.landing-viewport.dragging { cursor: grabbing; }
.landing-card {
  /* Rendered at 2x the design's 296x161 spec so the center card (which scales
     up to ~2x via JS transform) is composited at native resolution instead of
     being an upscaled, pixelated raster. renderReel() halves the transform
     scale to compensate, so on-screen size matches the original spec. */
  position: absolute; left: 50%; top: 50%; width: 592px; opacity: 0; will-change: transform, opacity; cursor: pointer;
}
.landing-card-art {
  width: 100%; height: 322px; background-size: cover; background-position: center; border-radius: 10px;
  border: 4px solid #1a140c; box-shadow: 0 10px 24px rgba(0,0,0,.55); pointer-events: none;
}
.landing-card.taken .landing-card-art { filter: grayscale(.9) brightness(.55); }
.landing-card-stamp {
  display: none; position: absolute; inset: 0; z-index: 5;
  align-items: center; justify-content: center; pointer-events: none;
}
.landing-card.taken .landing-card-stamp { display: flex; }
/* card renders at 2x and is scaled down by the reel, so double the stamp size */
.landing-card-stamp .landing-stamp { font-size: 34px; border-width: 5px; padding: 4px 16px; }
.landing-nudges { position: absolute; right: 8px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 0; z-index: 210; }
.landing-nudge {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg,#d9b972,#a97f3f); border: 1px solid #7a5c2c;
  color: #2a1f10; font-size: 15px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,.5); user-select: none;
}
.landing-nudge:active { transform: translateY(1px); }

.landing-deal-btn {
  position: relative; z-index: 400; background: linear-gradient(180deg,#e8cd8a,#c9a86a); color: #1a150e; text-align: center;
  font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: 15px; padding: 13px 6px; cursor: pointer;
  border-top: 2px solid #7a5c2c; border-radius: 0 0 9px 9px;
}
.landing-deal-btn:active { filter: brightness(.92); }
.landing-deal-btn.disabled { opacity: .5; cursor: default; pointer-events: none; }

.landing-footer {
  position: absolute; z-index: 15; left: 0; right: 0; bottom: 36px; text-align: center;
  font-family: 'Yellowtail', cursive; font-size: 15px; color: #c9a86a; text-shadow: 0 2px 6px rgba(0,0,0,.8);
}

.landing-dealing {
  position: absolute; inset: 0; z-index: 40; background: rgba(15,12,8,.82);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  animation: dealFlash 2s ease both;
}
.landing-dealing-title { font-family: 'Limelight', cursive; font-size: 52px; color: #f0e6cf; }
.landing-dealing-sub { font-size: 16px; letter-spacing: .2em; text-transform: uppercase; color: #c9a86a; }

.landing-error {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); color: #c8372d; font-size: 14px;
  min-height: 18px; z-index: 60;
}
