:root {
  --bg-0: #06060e;
  --ink: #eef1ff;
  --ink-dim: #9097bd;
  --line: #20243f;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(110% 70% at 15% -10%, #16224a 0%, rgba(22,34,74,0) 50%),
    radial-gradient(110% 70% at 100% 0%, #2a1140 0%, rgba(42,17,64,0) 45%),
    var(--bg-0);
  color: var(--ink); font-family: var(--font);
  min-height: 100dvh; padding: env(safe-area-inset-top) 18px env(safe-area-inset-bottom);
}
.wrap { max-width: 880px; margin: 0 auto; padding: 40px 0 28px; }

.hero { text-align: center; margin-bottom: 38px; }
.hero h1 {
  margin: 0; font-size: clamp(40px, 12vw, 76px); font-weight: 900; letter-spacing: -0.02em; line-height: 1;
  background: linear-gradient(180deg, #fff, #aab2e8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .dot { color: #00d3ff; -webkit-text-fill-color: #00d3ff; }
.hero .tag { margin: 14px 0 0; color: var(--ink-dim); font-size: clamp(13px, 3.6vw, 16px); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 16px; }

.game {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #12152a, #0c0f1f);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: transform .16s cubic-bezier(.2,.9,.3,1.2), border-color .16s, box-shadow .16s;
}
.game[href]:hover { transform: translateY(-4px); border-color: #3b4570; box-shadow: 0 18px 50px rgba(0,0,0,.5); }

.thumb { position: relative; height: 132px; display: grid; place-items: center; overflow: hidden; }
.blox .thumb { background: radial-gradient(120% 120% at 30% 20%, #11204a, #0a1124); }
.stacked .thumb { background: radial-gradient(120% 120% at 70% 20%, #1a1430, #0c0a18); }
.thumb.tbd { background: #0c0f1f; }

/* BLOX thumb blocks */
.blox .thumb .b { position: absolute; width: 34px; height: 34px; border-radius: 8px; box-shadow: inset 0 2px 0 rgba(255,255,255,.3); }
.blox .b1 { background: linear-gradient(180deg,#39dbff,#0090c4); transform: translate(-22px,-18px); }
.blox .b2 { background: linear-gradient(180deg,#ffd23f,#e0a400); transform: translate(20px,-18px); }
.blox .b3 { background: linear-gradient(180deg,#ff7bd2,#d6359a); transform: translate(-22px,22px); }
.blox .b4 { background: linear-gradient(180deg,#a784ff,#6c34d6); transform: translate(20px,22px); }
.game.blox:hover .b1 { transform: translate(-24px,-22px) rotate(-6deg); }
.game.blox:hover .b4 { transform: translate(22px,24px) rotate(6deg); }
.blox .b { transition: transform .25s; }

/* STACKED thumb tiles */
.stacked .tile { width: 38px; height: 38px; border-radius: 8px; display: inline-grid; place-items: center; font-weight: 800; font-size: 20px; color: #06160c; margin: 0 3px; box-shadow: inset 0 2px 0 rgba(255,255,255,.25); }
.stacked .t1, .stacked .t2 { background: linear-gradient(180deg,#5be08c,#1f9e54); }
.stacked .t3 { background: linear-gradient(180deg,#ffd23f,#e0a400); color: #1c1303; }
.stacked .t3.tilt { transform: rotate(-12deg); }

.thumb.tbd span { font-size: 44px; font-weight: 800; color: #2c3358; }

.meta { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meta h2 { margin: 0; font-size: 19px; letter-spacing: .08em; }
.meta p { margin: 0; color: var(--ink-dim); font-size: 13.5px; line-height: 1.5; flex: 1; }
.play { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; letter-spacing: .04em; color: #00d3ff; margin-top: 4px; }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play em { color: var(--ink-dim); font-style: normal; font-weight: 600; margin-left: 2px; }
.stacked .play { color: #ffd23f; }
.play.muted { color: var(--ink-dim); }

.soon { opacity: .72; }
.soon .play.muted { font-weight: 700; }

.foot { text-align: center; color: #555c82; font-size: 12px; margin-top: 34px; }
