/* Studio Wahoti: one stylesheet for every page.
   A rainy neon city at night: grey structure, rain and neon as the highlight.
   No white: every light color is a tinted neon or a steel grey. */

@font-face {
  font-family: 'Silkscreen';
  src: url('/assets/Silkscreen-Regular-latin.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* the night */
  --bg: #08070d;
  --bg-2: #0e0c17;
  --violet-night: #160d26;
  /* grey structure */
  --wall: #1a1922;
  --wall-2: #24232e;
  --rim: #3b3a49;
  /* text: steel, never white */
  --text: #b3c0d6;
  --text-dim: #8592ab;
  /* neon, the game's own */
  --cyan: #38e6ff;
  --cyan-hi: #49ecff;
  --pink: #ff4fb8;
  --pink-hot: #ff2fa0;
  --violet: #8f76ff;
  --yellow: #ffd23f;

  --pixel: 'Silkscreen', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(122, 92, 255, 0.16), transparent 60%),
    radial-gradient(80% 50% at 85% 110%, rgba(255, 47, 160, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}

/* RAIN: two thin slanted layers drifting down, faint; still for reduced motion */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    102deg,
    transparent 0 23px,
    rgba(150, 190, 255, 0.09) 23px 24px,
    transparent 24px 61px
  );
  background-size: 100% 140px;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 28px, transparent 28px 70px);
  mask-image: repeating-linear-gradient(180deg, #000 0 28px, transparent 28px 70px);
  animation: rain 0.9s linear infinite;
}
body::after {
  background-image: repeating-linear-gradient(
    100deg,
    transparent 0 41px,
    rgba(56, 230, 255, 0.06) 41px 42px,
    transparent 42px 97px
  );
  background-size: 100% 220px;
  animation-duration: 1.4s;
  opacity: 0.8;
}
@keyframes rain {
  from { transform: translate3d(0, -140px, 0); }
  to { transform: translate3d(-24px, 0, 0); }
}

body > * { position: relative; z-index: 1; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan-hi); text-shadow: 0 0 8px rgba(56, 230, 255, 0.6); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  padding: 8px 12px; background: var(--bg-2); border: 1px solid var(--pink);
  color: var(--pink); font: 12px var(--pixel); text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* HEADER */
.site-head { border-bottom: 1px solid var(--wall-2); background: rgba(8, 7, 13, 0.72); backdrop-filter: blur(6px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.home { display: inline-flex; align-items: center; line-height: 0; }
.home svg { height: 18px; width: auto; filter: drop-shadow(0 0 3px rgba(56, 230, 255, 0.7)); }
.home:hover { text-shadow: none; }
.nav { display: flex; gap: clamp(14px, 3vw, 28px); flex-wrap: wrap; }
.nav a { font: 12px/1 var(--pixel); letter-spacing: 0.08em; color: var(--text-dim); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--pink); text-shadow: 0 0 8px rgba(255, 79, 184, 0.6); }

main { flex: 1; }

/* PIXEL TYPE */
.pixel { font-family: var(--pixel); font-weight: normal; letter-spacing: 0.06em; }
.eyebrow { font: 12px/1.4 var(--pixel); letter-spacing: 0.18em; color: var(--pink); text-shadow: 0 0 8px rgba(255, 79, 184, 0.55); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--pixel); font-weight: normal; letter-spacing: 0.05em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(18px, 2.6vw, 22px); color: var(--cyan); text-shadow: 0 0 10px rgba(56, 230, 255, 0.45); margin-bottom: 18px; }

/* THE MARK: WAHOTI in neon squares, as the game's studio card draws it */
.mark { position: relative; display: block; width: min(100%, 560px); margin: 0 auto; }
.mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.mark .main { filter: drop-shadow(0 0 2px rgba(47, 216, 255, 0.9)) drop-shadow(0 0 14px rgba(255, 60, 180, 0.35)); animation: strike 1.6s linear both; }
.mark .ghost { position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0; }
.mark .pink { animation: splitPink 1.6s linear both; }
.mark .violet { animation: splitViolet 1.6s linear both; }
.mark .mark-label { display: block; width: 32%; max-width: 180px; margin: 0 auto 4.5%; filter: drop-shadow(0 0 3px rgba(255, 70, 180, 0.8)); animation: labelIn 1.6s linear both; }
.mark .line { position: absolute; left: -4%; right: -4%; top: 50%; height: 2px; margin-top: -1px; background: var(--cyan); opacity: 0;
  box-shadow: 0 0 6px #18c8ff, 0 0 16px rgba(255, 60, 180, 0.6); animation: line 1.6s linear both; }
@keyframes line {
  0%, 4% { opacity: 0; transform: scaleX(0); animation-timing-function: cubic-bezier(0.3, 0, 0.1, 1); }
  6% { opacity: 1; }
  22% { opacity: 1; transform: scaleX(1); }
  40%, 100% { opacity: 0; transform: scaleX(1); }
}
@keyframes strike {
  0%, 22% { opacity: 0; transform: scaleY(0.03); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1); }
  23% { opacity: 1; }
  32% { opacity: 1; transform: scaleY(1); }
  35% { opacity: 0.3; }
  38% { opacity: 1; }
  41% { opacity: 0.55; }
  45%, 100% { opacity: 1; transform: none; }
}
@keyframes splitPink {
  0%, 23% { opacity: 0; transform: translateX(-4%); }
  26% { opacity: 0.85; transform: translateX(-4%); animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  48%, 100% { opacity: 0; transform: none; }
}
@keyframes splitViolet {
  0%, 23% { opacity: 0; transform: translateX(4%); }
  26% { opacity: 0.85; transform: translateX(4%); animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  48%, 100% { opacity: 0; transform: none; }
}
@keyframes labelIn {
  0%, 44% { opacity: 0; transform: scaleX(1.7); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1); }
  47% { opacity: 0.6; }
  50% { opacity: 0.2; }
  60%, 100% { opacity: 1; transform: none; }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 22px;
  font: 14px/1 var(--pixel); letter-spacing: 0.12em; text-decoration: none;
  color: var(--cyan); background: rgba(56, 230, 255, 0.06);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 0 1px rgba(56, 230, 255, 0.15), 0 0 18px rgba(56, 230, 255, 0.25), inset 0 0 14px rgba(56, 230, 255, 0.12);
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn::before { content: ''; width: 9px; height: 9px; background: currentColor; box-shadow: 0 0 8px currentColor; flex: none; }
.btn:hover { color: var(--cyan-hi); background: rgba(56, 230, 255, 0.14); box-shadow: 0 0 0 1px rgba(56, 230, 255, 0.3), 0 0 28px rgba(56, 230, 255, 0.45), inset 0 0 18px rgba(56, 230, 255, 0.2); transform: translateY(-1px); }
.btn-big { min-height: 64px; padding: 18px 34px; font-size: clamp(16px, 2.4vw, 20px); }
.btn-ghost { color: var(--pink); border-color: rgba(255, 79, 184, 0.7); background: transparent; box-shadow: 0 0 14px rgba(255, 79, 184, 0.18); }
.btn-ghost:hover { color: var(--pink); background: rgba(255, 79, 184, 0.1); box-shadow: 0 0 22px rgba(255, 79, 184, 0.35); }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; font: 12px/1.2 var(--pixel); letter-spacing: 0.1em;
  color: var(--yellow); border: 1px dashed rgba(255, 210, 63, 0.55);
  text-shadow: 0 0 8px rgba(255, 210, 63, 0.45);
}
.chip::before { content: ''; width: 7px; height: 7px; border: 1px solid currentColor; flex: none; }

/* LANDING */
.studio-hero { padding-top: clamp(56px, 12vh, 120px); padding-bottom: clamp(40px, 8vh, 80px); text-align: center; overflow-x: clip; }
.studio-hero h1 { margin: 0; }
.tagline { max-width: 34em; margin: clamp(28px, 5vh, 44px) auto 0; font-size: clamp(16px, 2.2vw, 19px); color: var(--text); }
.tagline strong { color: var(--pink); font-weight: normal; }

/* a featured game: a panel with a neon rim, like a lit building front */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
  margin: 0 0 clamp(56px, 10vh, 96px);
  background: linear-gradient(180deg, var(--wall), var(--bg-2));
  border: 1px solid var(--rim);
  box-shadow: 0 0 0 1px rgba(56, 230, 255, 0.05), 0 24px 60px rgba(0, 0, 0, 0.5);
}
.feature-art { position: relative; margin: 0; min-height: 240px; overflow: hidden; border-right: 1px solid var(--rim); }
.feature-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.feature-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(14, 12, 23, 0.6)); }
.feature-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.feature-body h2 { font-size: clamp(26px, 4vw, 38px); margin: 0; }
.feature-body p { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* GAME PAGE */
.game-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--wall-2); }
.game-hero-art { position: absolute; inset: 0; z-index: 0; }
.game-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: 0.62; }
.game-hero-art::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 7, 13, 0.94) 0%, rgba(8, 7, 13, 0.7) 45%, rgba(8, 7, 13, 0.15) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.game-hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 14vh, 140px); padding-bottom: clamp(56px, 12vh, 120px); }
.game-title { font-size: clamp(38px, 8vw, 76px); color: var(--cyan-hi); line-height: 1;
  text-shadow: 0 0 2px var(--cyan), 0 0 18px rgba(56, 230, 255, 0.55), 3px 0 0 rgba(255, 47, 160, 0.55), -3px 0 0 rgba(122, 92, 255, 0.5); }
.pitch { max-width: 30em; margin: 22px 0 34px; font-size: clamp(17px, 2.3vw, 20px); }
.platforms { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.small-note { margin: 18px 0 0; font-size: 14px; color: var(--text-dim); }

section.block { padding-top: clamp(48px, 9vh, 88px); }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--wall-2); border: 1px solid var(--wall-2); }
.features li { position: relative; padding: 22px 22px 22px 52px; background: var(--bg-2); }
.features li::before { content: ''; position: absolute; left: 22px; top: 29px; width: 10px; height: 10px; border: 1px solid var(--k, var(--cyan)); background: color-mix(in srgb, var(--k, var(--cyan)) 25%, transparent); box-shadow: 0 0 8px var(--k, var(--cyan)); }
.features li:nth-child(4n + 2) { --k: var(--pink); }
.features li:nth-child(4n + 3) { --k: var(--violet); }
.features li:nth-child(4n + 4) { --k: var(--yellow); }
.features strong { display: block; font: 13px/1.4 var(--pixel); letter-spacing: 0.08em; color: var(--k, var(--cyan)); margin-bottom: 6px; font-weight: normal; }
.features span { color: var(--text); }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.shots figure { margin: 0; border: 1px solid var(--rim); background: var(--bg-2); }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shots figcaption { padding: 10px 14px; font: 11px/1.4 var(--pixel); letter-spacing: 0.12em; color: var(--text-dim); border-top: 1px solid var(--wall-2); }

.cta-row { padding-top: clamp(56px, 10vh, 96px); padding-bottom: clamp(56px, 10vh, 96px); text-align: center; }
.cta-row .actions { justify-content: center; }

/* PROSE (privacy, 404) */
.prose { max-width: 720px; padding-top: clamp(48px, 9vh, 88px); padding-bottom: clamp(48px, 9vh, 88px); }
.prose h1 { font-size: clamp(26px, 5vw, 38px); color: var(--cyan-hi); text-shadow: 0 0 14px rgba(56, 230, 255, 0.45); margin-bottom: 10px; }
.prose h2 { font-size: 16px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 24px; margin: 8px 0; }
.prose li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border: 1px solid var(--pink); box-shadow: 0 0 6px rgba(255, 79, 184, 0.6); }
.prose strong { color: var(--pink); font-weight: 600; }
.meta { font: 12px/1.6 var(--pixel); letter-spacing: 0.08em; color: var(--text-dim); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--wall-2); }
.prose th { font: 11px/1.4 var(--pixel); letter-spacing: 0.1em; color: var(--violet); font-weight: normal; }
.prose code { font: 13px ui-monospace, Menlo, monospace; color: var(--yellow); }
.table-scroll { overflow-x: auto; }

/* THE SKYLINE: grey structure along the foot of the page, a few lit rims */
.skyline { display: block; width: 100%; height: clamp(70px, 12vw, 130px); margin-top: auto; }
.site-foot { background: #0b0a12; border-top: 1px solid var(--wall-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 26px; font-size: 13px; color: var(--text-dim); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { color: var(--text-dim); font: 11px/1.6 var(--pixel); letter-spacing: 0.1em; text-decoration: none; }
.site-foot a:hover { color: var(--cyan); }

/* 404 */
.lost { text-align: center; }
.lost .code { font: clamp(64px, 16vw, 140px)/1 var(--pixel); color: var(--pink); text-shadow: 0 0 4px var(--pink-hot), 0 0 28px rgba(255, 47, 160, 0.5), 4px 0 0 rgba(56, 230, 255, 0.4); margin: 0 0 12px; }

/* PHONE */
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--rim); }
  .feature-art::after { background: linear-gradient(0deg, rgba(14, 12, 23, 0.6), transparent 50%); }
  .features, .shots { grid-template-columns: 1fr; }
  .game-hero-art img { object-position: 70% 40%; opacity: 0.45; }
  .game-hero-art::after { background: linear-gradient(180deg, rgba(8, 7, 13, 0.55), rgba(8, 7, 13, 0.92) 70%, var(--bg)); }
  .btn-big { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .mark .main, .mark .ghost, .mark .line, .mark .mark-label { animation: none; }
  .mark .ghost, .mark .line { opacity: 0; }
  .btn { transition: none; }
}
