:root {
  --bg-1: #0d0b1f;
  --bg-2: #1a1340;
  --ink: #fff5e1;
  --ink-dim: rgba(255, 245, 225, 0.55);
  --accent-1: #ffcc33;
  --accent-2: #ff4fa3;
  --accent-3: #4fd6ff;
  --tile-radius: 22px;
  --tile-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.6),
                 0 2px 0 rgba(255, 255, 255, 0.05) inset;
  --tile-shadow-hover: 0 18px 36px -10px rgba(0, 0, 0, 0.75),
                       0 2px 0 rgba(255, 255, 255, 0.08) inset;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(255, 79, 163, 0.25), transparent 60%),
    radial-gradient(900px 600px at 110% 20%, rgba(79, 214, 255, 0.20), transparent 60%),
    radial-gradient(700px 500px at 50% 120%, rgba(255, 204, 51, 0.18), transparent 65%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  color: var(--ink);
  font-family: 'Lilita One', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  min-height: 100dvh;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 56px) 64px;
}

.hub-header {
  text-align: center;
  margin: clamp(8px, 3vh, 32px) auto clamp(20px, 4vh, 44px);
  max-width: 980px;
}

.hub-title {
  margin: 0;
  font-size: clamp(40px, 8vw, 84px);
  line-height: 1;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, var(--accent-1) 0%, #ff8a3d 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.3));
}

.hub-subtitle {
  margin: 12px 0 0;
  color: var(--ink-dim);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 2.2vw, 18px);
  letter-spacing: 0.3px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 2.4vw, 24px);
  max-width: 1280px;
  margin: 0 auto;
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--tile-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: #1f1840;
  box-shadow: var(--tile-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  isolation: isolate;
}

.tile.available {
  cursor: pointer;
  outline: 3px solid transparent;
}

.tile.available:hover,
.tile.available:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--tile-shadow-hover);
  outline-color: var(--accent-1);
}

.tile.available:active {
  transform: translateY(-1px) scale(0.985);
}

.tile-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.tile-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 65%);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.tile-title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.05;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.tile-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-1);
  color: #2a1500;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-end;
}

/* Coming-soon: visible placeholder, no title, no thumb — just a hint of "more to come" */
.tile.coming-soon {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 14px,
      rgba(255, 255, 255, 0.06) 14px,
      rgba(255, 255, 255, 0.06) 28px
    ),
    rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(255, 255, 255, 0.18);
  box-shadow: none;
  cursor: default;
}

.hub-footer {
  margin: 48px auto 0;
  text-align: center;
  color: var(--ink-dim);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3px;
}

@media (max-width: 480px) {
  .tile-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .tile { aspect-ratio: 1 / 1; }
  .tile-title { font-size: 16px; }
  .tile-overlay { padding: 12px; }
}
