/* Landing-page-specific styles */

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px 60px;
  position: relative;
  z-index: 1;
}

/* Brand mark in topbar */
.brand-mini {
  display: flex;
  align-items: baseline;
  gap: 10px;
  user-select: none;
}
.brand-mini .brand-script {
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  color: var(--gold-soft);
  font-size: 22px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.brand-mini .brand-mark {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 16px;
}

/* Ambient suit symbols floating gently in the background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.ambient .float {
  position: absolute;
  font-size: 90px;
  color: rgba(230, 183, 69, 0.035);
  filter: blur(0.5px);
  animation: drift 28s ease-in-out infinite;
  user-select: none;
}
.ambient .s1 { top: 8%;  left: 6%;  animation-delay:  -2s; }
.ambient .s2 { top: 22%; left: 82%; font-size: 70px; color: rgba(198, 40, 40, 0.07); animation-delay:  -8s; }
.ambient .s3 { top: 65%; left: 12%; font-size: 60px; color: rgba(198, 40, 40, 0.06); animation-delay: -14s; }
.ambient .s4 { top: 78%; left: 78%; font-size: 80px; animation-delay:  -5s; }
.ambient .s5 { top: 45%; left: 50%; font-size: 110px; opacity: 0.7; animation-delay: -18s; }
.ambient .s6 { top: 12%; left: 45%; font-size: 50px; color: rgba(198, 40, 40, 0.05); animation-delay: -22s; }

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(-8deg); }
  50%  { transform: translate(20px, -25px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(-8deg); }
}

/* Hero */
.hero {
  text-align: center;
  padding: 36px 12px 22px;
}
.hero-flourish {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 8px;
  opacity: 0.65;
  margin-bottom: 10px;
}
.hero-flourish span:nth-child(2),
.hero-flourish span:nth-child(3) { color: var(--red); }
.hero h2 {
  margin: 4px 0 6px;
  font-size: clamp(22px, 3.4vw, 30px);
  color: var(--gold-soft);
  font-weight: 500;
}
.hero h2 #hello-name {
  color: var(--gold);
  font-weight: 600;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.hero-stats {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(230, 183, 69, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  letter-spacing: 0.5px;
}
.hero-stats .stat-sep { color: rgba(230, 183, 69, 0.5); }

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1f4a30, #0e2e1c);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 200px;
  overflow: hidden;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 110%, rgba(230, 183, 69, 0.22), transparent 55%),
    radial-gradient(circle at 110% -10%, rgba(255, 255, 255, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.game-card.playable:hover::before { opacity: 1; }
.game-card.playable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #f7d266;
}
.game-card .card-watermark {
  position: absolute;
  right: -18px;
  bottom: -34px;
  font-size: 180px;
  line-height: 1;
  color: rgba(230, 183, 69, 0.07);
  pointer-events: none;
  transition: transform 0.3s ease, color 0.3s ease;
}
.game-card.playable:hover .card-watermark {
  transform: translate(-4px, -6px) rotate(-6deg);
  color: rgba(230, 183, 69, 0.13);
}
.game-card[data-suit="heart"] .card-watermark,
.game-card[data-suit="diamond"] .card-watermark {
  color: rgba(198, 40, 40, 0.10);
}

.game-card .icon {
  font-size: 42px;
  margin-bottom: 10px;
  line-height: 1;
  position: relative;
}
.game-card[data-suit="heart"] .icon,
.game-card[data-suit="diamond"] .icon { color: var(--red); text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.game-card[data-suit="spade"] .icon,
.game-card[data-suit="club"] .icon  { color: #f3eedb; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }

.game-card h3 {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 22px;
  letter-spacing: 1px;
  position: relative;
}
.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
  position: relative;
}
.game-card .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 13px;
  position: relative;
}
.game-card .play-cta {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
  transition: transform 0.18s ease;
}
.game-card.playable:hover .play-cta {
  transform: translateX(4px);
}

.game-card.disabled {
  border-color: rgba(230, 183, 69, 0.3);
  cursor: not-allowed;
  opacity: 0.78;
}
.game-card.disabled .play-cta { color: var(--muted); }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge.ready {
  background: var(--gold);
  color: #2a1d00;
  box-shadow: 0 0 0 0 rgba(230, 183, 69, 0.55);
  animation: ready-pulse 2.4s ease-out infinite;
}
.badge.soon  { background: rgba(255,255,255,0.08); color: var(--muted); border: 1px solid rgba(255,255,255,0.15); }

@keyframes ready-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(230, 183, 69, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(230, 183, 69, 0); }
  100% { box-shadow: 0 0 0 0   rgba(230, 183, 69, 0); }
}

/* Top-right user menu */
.who-menu {
  position: relative;
}
.who-menu button {
  background: transparent;
  border: 1px solid rgba(230, 183, 69, 0.4);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.who-menu .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #0e2e1c;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 10;
}
.who-menu.open .menu { display: block; }
.who-menu .menu button {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
}
.who-menu .menu button:hover { background: rgba(230, 183, 69, 0.1); }

.lobby-footnote {
  margin-top: 36px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 600px) {
  .ambient .float { font-size: 60px; }
  .ambient .s5 { font-size: 80px; }
  .game-card .card-watermark { font-size: 130px; right: -10px; bottom: -20px; }
  .hero-flourish { letter-spacing: 6px; gap: 10px; }
}
