/* Card Parlor — landing & privacy pages (shares the game's design language) */
:root {
  --purple: #46178f;
  --purple-dark: #2e0e6b;
  --purple-deep: #1d0b47;
  --red: #e21b3c;
  --blue: #1368ce;
  --yellow: #ffa602;
  --green: #26890c;
  --white: #ffffff;
  --ink: #333333;
  --muted: #6e6e6e;
  --radius: 14px;
  --shadow-btn: inset 0 -4px 0 rgba(0, 0, 0, 0.25);
  --font: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); font-weight: 500; color: var(--white);
  background: var(--purple);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.06) 0 140px, transparent 140px),
    radial-gradient(circle at 88% 65%, rgba(255, 255, 255, 0.05) 0 180px, transparent 180px),
    radial-gradient(circle at 55% 95%, rgba(255, 255, 255, 0.04) 0 110px, transparent 110px);
  min-height: 100vh; min-height: 100dvh;
}
a { color: var(--yellow); }
button { font-family: inherit; cursor: pointer; border: none; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 18px; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 10px; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; color: var(--white); text-decoration: none; }
.logo span { color: var(--yellow); }
.header-right { display: flex; align-items: center; gap: 10px; }

/* buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 800; font-size: 1rem; color: var(--white); text-decoration: none; text-align: center;
  box-shadow: var(--shadow-btn); transition: transform 0.06s, filter 0.15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.btn-green { background: var(--green); }
.btn-blue { background: var(--blue); }
.btn-red { background: var(--red); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.btn-big { padding: 16px 34px; font-size: 1.15rem; }

/* hero */
.hero { text-align: center; padding: 44px 0 30px; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; }
.hero h1 .accent { color: var(--yellow); }
.hero .tagline { margin: 14px auto 0; max-width: 560px; font-size: 1.1rem; opacity: 0.9; line-height: 1.5; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #6ee26a; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* live counter */
.live-counter {
  display: inline-flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; justify-content: center;
  background: rgba(0, 0, 0, 0.26); border-radius: 22px; padding: 9px 20px;
  font-size: 0.92rem; font-weight: 700;
}
.live-counter .lc-item { display: inline-flex; align-items: center; gap: 6px; }
.live-counter b { color: var(--yellow); font-weight: 800; }

/* live tables — condensed tile grid so it doesn't stretch across the page */
.live-tables-section { margin-top: 30px; }
.lobby-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lobby-list .lobby-row {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white); color: var(--ink); border-radius: 12px; padding: 16px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}
.lobby-list .lr-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lobby-list .lr-meta { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.lobby-list .lr-game { display: inline-block; background: var(--purple); color: #fff; font-weight: 800; font-size: 0.64rem; border-radius: 5px; padding: 2px 7px; margin-right: 6px; vertical-align: middle; }
.lobby-list .btn { text-decoration: none; width: 100%; padding: 10px; }
.lobby-list .lr-actions { display: flex; gap: 8px; align-items: stretch; }
.lobby-list .lr-actions .btn-blue { flex: 1 1 auto; }
.lobby-list .lr-share { width: auto; flex: 0 0 auto; padding: 10px 13px; background: #efeafb; color: var(--purple); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.14); }
.lobby-list .lr-share.copied { background: var(--green); color: #fff; }
.hero .cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* decorative card fan */
.fan { display: flex; justify-content: center; margin-top: 34px; height: 96px; }
.fan .fcard {
  width: 64px; height: 90px; background: var(--white); border-radius: 8px;
  border: 2px solid #e8e8ef; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 800; margin: 0 -12px; position: relative;
}
.fan .fcard:nth-child(1) { transform: rotate(-16deg) translateY(12px); color: var(--ink); }
.fan .fcard:nth-child(2) { transform: rotate(-6deg) translateY(2px); color: var(--red); }
.fan .fcard:nth-child(3) { transform: rotate(4deg) translateY(0); color: var(--ink); }
.fan .fcard:nth-child(4) { transform: rotate(14deg) translateY(10px); color: var(--red); }

/* game shelf */
.section-title { font-size: 1.35rem; font-weight: 800; margin: 42px 0 16px; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.game-card {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  display: flex; flex-direction: column; gap: 10px; position: relative;
  text-decoration: none; transition: transform 0.12s ease;
}
a.game-card:hover { transform: translateY(-4px); }
.game-emoji { font-size: 2.2rem; line-height: 1; }
.game-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.game-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; flex: 1; }
.game-cta { font-weight: 800; color: var(--green); font-size: 0.95rem; }
.game-card .players-tag {
  position: absolute; top: 14px; right: 14px; background: #f0ecfa; color: var(--purple);
  border-radius: 6px; padding: 3px 8px; font-size: 0.7rem; font-weight: 800;
}
.game-card.soon { opacity: 0.72; }
.game-card.soon .ribbon {
  position: absolute; top: 14px; right: 14px; background: var(--yellow); color: #4a3200;
  border-radius: 6px; padding: 3px 8px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
}

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step {
  background: rgba(255, 255, 255, 0.1); border-radius: var(--radius); padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.step .num {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 10px; color: var(--white);
}
.step:nth-child(1) .num { background: var(--red); }
.step:nth-child(2) .num { background: var(--blue); }
.step:nth-child(3) .num { background: var(--green); }
.step h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 0.88rem; opacity: 0.85; line-height: 1.5; }

/* footer */
.site-footer {
  margin-top: 56px; padding: 26px 0 34px; border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-size: 0.85rem; opacity: 0.85;
}
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--white); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--yellow); }

/* privacy page */
.doc { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 30px; margin: 20px 0 40px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2); }
.doc h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 4px; }
.doc .effective { color: var(--muted); font-size: 0.85rem; margin-bottom: 22px; }
.doc h2 { font-size: 1.1rem; font-weight: 800; margin: 24px 0 8px; color: var(--purple); }
.doc p, .doc li { font-size: 0.94rem; line-height: 1.65; color: #444; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc a { color: var(--blue); }
