/* The studio home page. */

.hero { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 90px; overflow: hidden; isolation: isolate; }
.hero .field { z-index: -1; }
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--void));
}
.hero-inner { max-width: 880px; }
.wordmark { font-size: clamp(64px, 15vw, 172px); margin: 22px 0 0; }
.wordmark-sub {
  display: block; font: 700 clamp(18px, 3.4vw, 34px) var(--ui); letter-spacing: 0.62em; text-transform: uppercase;
  color: var(--text); margin: 6px 0 0 0.3em; text-shadow: 0 0 18px rgba(157, 107, 255, 0.8);
}
.hero .lead { margin: 30px 0 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px;
  border: 2px solid rgba(238, 235, 255, 0.35); border-radius: 14px;
}
.scroll-hint::after {
  content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Games: each card in its own game's colour (site.json "color" → --accent). */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 24px; margin-top: 48px; }
.game-card {
  --accent: #22f3ff;
  position: relative; display: flex; flex-direction: column; overflow: hidden; color: var(--text);
  border-radius: 28px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, transparent), rgba(157, 107, 255, 0.06) 45%, color-mix(in srgb, var(--accent) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 65%, transparent);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s;
  transform-style: preserve-3d;
}
.game-card:hover { text-decoration: none; box-shadow: 0 40px 100px -36px color-mix(in srgb, var(--accent) 90%, transparent); }
.game-card .art { position: relative; aspect-ratio: 1024 / 500; overflow: hidden; }
.game-card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.game-card:hover .art img { transform: scale(1.05); }
.game-card .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 60%, rgba(13, 8, 48, 0.9)); }
.game-card .body { padding: 22px 28px 28px; display: grid; gap: 14px; }
.game-card h3 { margin: 0; font-size: 30px; line-height: 1.1; }
.game-card p { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px;
  background: rgba(34, 243, 255, 0.1); color: var(--cyan); border: 1px solid rgba(34, 243, 255, 0.3);
}
.game-card .chip {
  color: color-mix(in srgb, var(--accent) 80%, white); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
}
.game-card .chip.pink { background: rgba(255, 61, 200, 0.1); color: #ff8fe0; border-color: rgba(255, 61, 200, 0.35); }
.chip.live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 7px; box-shadow: 0 0 8px currentColor; animation: blink 1.6s infinite; vertical-align: 1px; }
@keyframes blink { 50% { opacity: 0.25; } }
.go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent, var(--cyan)); }
.go::after { content: '→'; transition: transform 0.2s; }
.game-card:hover .go::after { transform: translateX(5px); }

/* The next game: a wide strip under the cards. */
.lab {
  grid-column: 1 / -1;
  position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; text-align: left;
  min-height: 170px; padding: 30px 36px;
  border-radius: 28px; border: 1px dashed rgba(157, 107, 255, 0.45); overflow: hidden;
  background: repeating-linear-gradient(0deg, rgba(157, 107, 255, 0.05) 0 2px, transparent 2px 6px), rgba(13, 8, 48, 0.6);
}
.lab::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; left: -120px;
  background: linear-gradient(to right, transparent, rgba(157, 107, 255, 0.22), transparent);
  animation: scan 4.5s linear infinite;
}
@keyframes scan { to { left: 100%; } }
.lab .q { font-family: var(--neon); font-size: clamp(54px, 7vw, 76px); line-height: 1; }
.lab h3 { margin: 0 0 4px; font-size: 22px; }
.lab p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .lab { text-align: center; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.value { padding: 30px 28px; }
.value .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(34, 243, 255, 0.1); border: 1px solid rgba(34, 243, 255, 0.35); box-shadow: 0 0 24px -6px rgba(34, 243, 255, 0.6);
}
.value:nth-child(2) .icon { background: rgba(255, 61, 200, 0.1); border-color: rgba(255, 61, 200, 0.4); box-shadow: 0 0 24px -6px rgba(255, 61, 200, 0.6); }
.value:nth-child(3) .icon { background: rgba(198, 255, 61, 0.08); border-color: rgba(198, 255, 61, 0.4); box-shadow: 0 0 24px -6px rgba(198, 255, 61, 0.5); }
.value .icon svg { width: 26px; height: 26px; }
.value h3 { margin: 0 0 8px; font-size: 21px; }
.value p { margin: 0; color: var(--muted); }

/* Contact */
.contact { text-align: center; }
.contact .panel { padding: clamp(36px, 6vw, 64px) var(--gutter); max-width: 820px; margin: 0 auto; }
.contact .mail { font-size: clamp(22px, 4vw, 34px); font-weight: 700; color: var(--text); word-break: break-word; }
.contact .mail:hover { color: var(--cyan); text-decoration: none; }
