@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  color-scheme: dark;
  background: #080a12;
  font-family: Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  overscroll-behavior: none;
}

body {
  color: #f6f7fb;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 173, 57, .16), transparent 30rem),
    radial-gradient(circle at 88% 35%, rgba(80, 97, 255, .2), transparent 32rem),
    #080a12;
}

a { color: inherit; text-decoration: none; }

.lobby-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: auto;
  padding: 28px 0 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand, .eyebrow, .game-kicker {
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: .14em;
}

.brand { font-size: .95rem; font-weight: 700; }

.demo-badge {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #b9bdc9;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.hero { padding: clamp(54px, 9vw, 108px) 0 42px; }
.eyebrow { margin: 0 0 14px; color: #ffb747; font-size: .76rem; font-weight: 700; }

h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.06em;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.48);
}

.hero-copy {
  max-width: 580px;
  margin: 28px 0 0;
  color: #aeb3c2;
  font-size: clamp(.95rem, 2vw, 1.1rem);
  line-height: 1.7;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background: #11141e;
  isolation: isolate;
  transition: transform .25s ease, border-color .25s ease;
}

.game-card:hover, .game-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.38);
  outline: none;
}

.game-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  transition: transform .45s ease;
}

.game-card:hover .game-visual { transform: scale(1.04); }
.game-card.tiger .game-visual { background-image: url('/og.png'); }
.game-card.cosmic .game-visual { background-image: url('/games/cosmic-voyage/assets/bg-main-ab40d837bef391c1535f08055b0c8be6.png'); }

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 18%, rgba(5,7,13,.18) 43%, rgba(5,7,13,.96) 100%);
}

.game-copy {
  position: absolute;
  inset: auto 28px 26px;
  display: grid;
  gap: 7px;
}

.game-kicker { color: #ffc05d; font-size: .68rem; font-weight: 700; }
.game-copy strong { font-family: "Chakra Petch", sans-serif; font-size: clamp(1.65rem, 4vw, 2.35rem); }

.play-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #d7dae4;
  font-size: .86rem;
  font-weight: 700;
}

.play-cta b { font-size: 1.25rem; }

footer {
  padding: 28px 2px 4px;
  color: #777e90;
  font-size: .72rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 720px) {
  .lobby-shell { width: min(100% - 24px, 540px); padding-top: 18px; }
  .hero { padding: 54px 4px 30px; }
  .games-grid { grid-template-columns: 1fr; gap: 16px; }
  .game-card { min-height: 340px; border-radius: 22px; }
  .game-copy { inset: auto 22px 21px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
