/* The splash page on arcadiastudio.games: pick the arcade or the Studio. */
:root {
  --line: rgba(255, 255, 255, .085);
  --text: #f4f7fb;
  --muted: #9cabbe;
  --soft: #c8d2df;
  --cyan: #67dcff;
  --blue: #2c8cff;
  --violet: #9d7dff;
  --radius: 26px;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--text); overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6;
  background:
    radial-gradient(circle at 14% 0%, rgba(58, 170, 255, .24), transparent 27rem),
    radial-gradient(circle at 82% 18%, rgba(174, 112, 255, .20), transparent 31rem),
    radial-gradient(circle at 60% 100%, rgba(81, 121, 255, .11), transparent 24rem),
    linear-gradient(135deg, #07101b 0%, #0b1827 42%, #1d1334 100%);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
  background-size: 42px 42px; mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}
#code-rain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .38; mix-blend-mode: screen; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.splash {
  position: relative; z-index: 1; width: min(calc(100% - 40px), 1080px); min-height: 100vh; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center; padding: 64px 0 32px;
}
.splash-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; }
.mark {
  width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(145deg, rgba(104, 224, 255, .18), rgba(168, 137, 255, .18)); border: 1px solid rgba(255, 255, 255, .14);
}
.mark::before { content: ""; width: 15px; height: 15px; border: 2px solid var(--cyan); border-radius: 5px; transform: rotate(45deg); box-shadow: 9px 9px 0 -5px var(--violet); }

.splash-title { margin: 34px 0 0; font-size: clamp(2.9rem, 7vw, 5.6rem); line-height: .95; letter-spacing: -.062em; }
.typed {
  display: block; min-height: 1.02em;
  background: linear-gradient(90deg, #b5baff 0%, var(--violet) 36%, var(--cyan) 75%, #86baff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(120, 140, 255, .16));
}
.typed::after {
  content: ""; display: inline-block; width: 3px; height: .82em; margin-left: .05em; vertical-align: -.02em; border-radius: 2px;
  background: rgba(140, 200, 255, .9); box-shadow: 0 0 10px rgba(120, 180, 255, .25); animation: caret .85s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.splash-lead { max-width: 640px; margin: 22px 0 0; color: var(--soft); font-size: clamp(1.02rem, 1.6vw, 1.18rem); }

.splash-cards { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-top: 40px; }
.splash-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-height: 280px; padding: 30px;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.splash-card.play { background: radial-gradient(circle at 100% 0%, rgba(104, 224, 255, .2), transparent 20rem), linear-gradient(160deg, rgba(20, 38, 58, .92), rgba(10, 14, 22, .92)); border-color: rgba(104, 224, 255, .28); }
.splash-card.make { background: radial-gradient(circle at 100% 0%, rgba(168, 137, 255, .2), transparent 20rem), linear-gradient(160deg, rgba(30, 22, 52, .92), rgba(10, 14, 22, .92)); border-color: rgba(168, 137, 255, .28); }
.splash-card:hover, .splash-card:focus-visible { transform: translateY(-5px); box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
.splash-card.play:hover { border-color: rgba(104, 224, 255, .6); }
.splash-card.make:hover { border-color: rgba(168, 137, 255, .6); }
.splash-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.play .splash-icon { color: var(--cyan); }
.make .splash-icon { color: #b9a6ff; }
.splash-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.splash-kicker { font: 800 .72rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.splash-card-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.02; letter-spacing: -.045em; }
.splash-card-text { color: var(--soft); font-size: .98rem; max-width: 440px; }
.splash-cta { margin-top: auto; padding-top: 18px; font-weight: 800; }
.play .splash-cta { color: var(--cyan); }
.make .splash-cta { color: #b9a6ff; }
.splash-cta span { display: inline-block; transition: transform .2s ease; }
.splash-card:hover .splash-cta span { transform: translateX(4px); }

.splash-note { margin: 22px 0 0; color: var(--muted); font-size: .86rem; }
.splash-note b { color: var(--soft); font-weight: 600; }
.splash-footer { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #7f8b9c; font-size: .84rem; }
.splash-footer a:hover { color: var(--cyan); }

@media (max-width: 760px) {
  .splash { padding-top: 40px; }
  .splash-cards { grid-template-columns: 1fr; }
  .splash-card { min-height: 0; padding: 24px; }
  .typed { min-height: 1.95em; }
}
@media (prefers-reduced-motion: reduce) {
  #code-rain { display: none; }
  .typed::after { animation: none; }
  .splash-card, .splash-cta span { transition: none; }
}
