@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --ink: #071018;
  --panel: #101a28;
  --line: rgba(220, 235, 255, 0.14);
  --foam: #e8f1ff;
  --muted: rgba(232, 241, 255, 0.62);
  --sky: #4da3ff;
  --mint: #3dffb0;
  --gold: #ffd166;
  --f-display: 'Fraunces', 'Noto Sans SC', serif;
  --f-body: 'IBM Plex Sans', 'Noto Sans SC', sans-serif;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--foam);
  font-family: var(--f-body);
  background:
    radial-gradient(1100px 640px at 12% -12%, rgba(77, 163, 255, 0.18), transparent 55%),
    radial-gradient(800px 520px at 95% 0%, rgba(61, 255, 176, 0.1), transparent 50%),
    linear-gradient(180deg, #050b14 0%, var(--ink) 42%, #050910 100%);
  -webkit-font-smoothing: antialiased;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 48px);
  backdrop-filter: blur(14px);
  background: rgba(7, 16, 24, 0.72);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--sky);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--foam);
  background: rgba(255, 255, 255, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: var(--sky);
  color: #041018;
  box-shadow: 0 10px 28px rgba(77, 163, 255, 0.22);
}

.btn-primary:hover {
  background: #6bb4ff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--foam);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(77, 163, 255, 0.22), transparent 38%),
    radial-gradient(circle at 70% 65%, rgba(61, 255, 176, 0.14), transparent 40%),
    repeating-linear-gradient(-18deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 16px),
    #0a1422;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 24, 0.2), rgba(7, 16, 24, 0.88));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 48px) clamp(40px, 7vw, 80px);
  animation: rise 0.85s var(--ease) both;
}

.hero-brand {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-size: clamp(3.4rem, 12vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.hero-brand em {
  font-style: normal;
  color: var(--sky);
}

.hero-line {
  margin: 0 0 26px;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: clamp(48px, 8vw, 88px) clamp(16px, 4vw, 48px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 42ch;
}

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

.game-tile {
  display: block;
  min-height: 200px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  animation: rise 0.7s var(--ease) both;
}

.game-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 163, 255, 0.4);
}

.game-tile .thumb {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(77, 163, 255, 0.18), transparent 45%),
    linear-gradient(220deg, rgba(61, 255, 176, 0.1), transparent 40%),
    #0c1624;
}

.game-tile .meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 18, 0.92) 55%);
}

.game-tile h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
}

.game-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  font-size: 0.7rem;
  color: var(--mint);
  border: 1px solid rgba(61, 255, 176, 0.28);
  padding: 3px 8px;
  border-radius: 999px;
}

.empty {
  padding: 28px 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  padding: 28px clamp(16px, 4vw, 48px) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.92rem;
}

.site-footer strong {
  color: var(--foam);
  font-family: var(--f-display);
}

.page-shell {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px) 72px;
}

.page-shell h1 {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3rem);
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.6;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}
