:root {
  --bg: #050915;
  --bg2: #071b30;
  --ink: #e2f7ff;
  --dim: #8fc3d8;
  --neon: #35e0ff;
  --gold: #ffe071;
  --card: #0a1e33;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg2) 0%, var(--bg) 62%) fixed;
}

/* ---- animated ocean backdrop ---- */
.ocean {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ray {
  position: absolute;
  top: -20%;
  width: 18vw;
  height: 80vh;
  background: linear-gradient(180deg, rgba(83, 214, 255, 0.10), rgba(83, 214, 255, 0));
  transform: skewX(-14deg);
  animation: raySway 9s ease-in-out infinite alternate;
}
.r1 { left: 8%; }
.r2 { left: 42%; animation-delay: -3s; width: 12vw; }
.r3 { left: 74%; animation-delay: -6s; width: 22vw; }
@keyframes raySway {
  from { transform: skewX(-18deg) translateX(-3vw); opacity: 0.65; }
  to   { transform: skewX(-9deg) translateX(3vw); opacity: 1; }
}
.bub {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  border: 2px solid rgba(140, 226, 255, 0.35);
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.35), rgba(140,226,255,0.06) 60%);
  animation: rise linear infinite;
}
.b1 { left: 6%;  width: 18px; height: 18px; animation-duration: 11s; }
.b2 { left: 18%; width: 10px; height: 10px; animation-duration: 14s; animation-delay: -4s; }
.b3 { left: 33%; width: 26px; height: 26px; animation-duration: 17s; animation-delay: -9s; }
.b4 { left: 47%; width: 12px; height: 12px; animation-duration: 12s; animation-delay: -2s; }
.b5 { left: 61%; width: 20px; height: 20px; animation-duration: 15s; animation-delay: -7s; }
.b6 { left: 72%; width: 9px;  height: 9px;  animation-duration: 10s; animation-delay: -5s; }
.b7 { left: 84%; width: 24px; height: 24px; animation-duration: 18s; animation-delay: -12s; }
.b8 { left: 93%; width: 14px; height: 14px; animation-duration: 13s; animation-delay: -1s; }
@keyframes rise {
  from { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 1; }
  to   { transform: translateY(-115vh) translateX(-4vw); opacity: 0; }
}

/* ---- header ---- */
.hub-header, main, .hub-footer { position: relative; z-index: 1; }

.hub-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 22px 10px;
}
.marquee {
  display: flex;
  align-items: center;
  gap: 18px;
}
.glyph {
  font-size: 46px;
  filter: drop-shadow(0 0 14px rgba(53, 224, 255, 0.6));
}
h1 {
  margin: 0;
  font-size: clamp(30px, 5.5vw, 52px);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #003b55, 0 0 26px rgba(53, 224, 255, 0.55);
}
h1 em {
  font-style: normal;
  color: var(--neon);
}
.tagline {
  margin: 6px 0 0;
  color: var(--dim);
  font-size: clamp(14px, 2.4vw, 17px);
}

/* ---- game cards ---- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 22px 40px;
}
.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(53, 224, 255, 0.07), rgba(53, 224, 255, 0)) , var(--card);
  border: 1px solid rgba(53, 224, 255, 0.22);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card.playable:hover, .card.playable:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(53, 224, 255, 0.7);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(53, 224, 255, 0.18);
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #04121f;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card.playable:hover .thumb img { filter: brightness(1.1); }
.thumb.empty {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(53,224,255,0.05) 0 14px, rgba(53,224,255,0.0) 14px 28px),
    #04121f;
}
.thumb .q {
  font-size: 64px;
  font-weight: 900;
  color: rgba(143, 195, 216, 0.4);
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(6, 26, 44, 0.85);
  border: 1px solid rgba(143, 195, 216, 0.4);
  color: var(--dim);
}
.badge.live {
  background: rgba(11, 66, 51, 0.9);
  border-color: #38efa8;
  color: #7dffcf;
  box-shadow: 0 0 14px rgba(56, 239, 168, 0.35);
}
.card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-body h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.4px;
}
.card-body p {
  margin: 0;
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.5;
  flex: 1;
}
.meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.meta li {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dim);
  border: 1px solid rgba(143, 195, 216, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
}
.play-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #032334;
  background: linear-gradient(180deg, #7ceeff, var(--neon));
  box-shadow: 0 4px 0 #0b7f99, 0 0 22px rgba(53, 224, 255, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card.playable:active .play-btn {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0b7f99;
}
.card.soon { opacity: 0.75; }

/* ---- footer ---- */
.hub-footer {
  text-align: center;
  padding: 8px 22px 34px;
  color: var(--dim);
  font-size: 13px;
}
