@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/instrument-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('assets/fonts/barlow-semi-800.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --base: #07100f;
  --ink: #f5fcf9;
  --muted: #b8c6c3;
  --mint: #8af8c9;
  --accent: var(--mint);
  --line: rgb(218 253 240 / 16%);
  --display: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --edge: clamp(24px, 6.1vw, 100px);
  --header-height: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 0;
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font: 400 16px/1.5 'Instrument Sans', system-ui, sans-serif;
}

@view-transition { navigation: auto; }
::view-transition-group(root), ::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: page-fade .4s ease-in-out both; }
.fallback-fade main { animation: page-fade .35s ease-out both; }

@keyframes page-fade { from { opacity: 0; } }

h1, h2, p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

.frame { width: min(100% - 2 * var(--edge), 1320px); margin-inline: auto; }
.symbols, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgb(7 16 15 / 65%);
}

.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; flex: none; }
.brand-name { font-size: 19px; font-weight: 700; line-height: 1; white-space: nowrap; letter-spacing: -.055em; }
.brand-name span { margin-inline-start: .12em; color: #becdc7; font-weight: 400; letter-spacing: -.03em; }
.nav { align-self: stretch; display: flex; align-items: stretch; gap: clamp(22px, 3vw, 48px); }
.nav a { position: relative; display: grid; place-items: center; color: #c0ceca; font-size: 14px; font-weight: 600; text-decoration: none; }
.nav a:hover, .nav [aria-current] { color: var(--mint); }
.nav [aria-current]::after { position: absolute; content: ''; height: 2px; inset: auto 0 -1px; background: var(--mint); }

.showcase { position: relative; isolation: isolate; overflow: clip; }
.showcase[data-active="skyfire"] { --accent: #87e6ff; }
.showcase[data-active="cat"] { --accent: #ffce81; }
.showcase-inner { position: relative; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0; pointer-events: none; }
.scene { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .68s cubic-bezier(.22, .61, .36, 1); }
.scene.is-outgoing { z-index: 1; transition: opacity 0s .68s; }
.scene.is-active { opacity: 1; z-index: 2; }
.scene::after { content: ''; position: absolute; inset: 0; }
.scene img { display: block; }

.scene-shark { background: #091b1c; }
.scene-shark picture { position: absolute; inset: 0 0 0 min(22vw, 355px); }
.scene-shark img { width: 100%; height: 100%; object-fit: cover; object-position: 61% 48%; }
.scene-shark::after {
  background:
    linear-gradient(0deg, var(--base) 0%, rgb(7 16 15 / 95%) 12%, rgb(7 16 15 / 70%) 25%, transparent 58%),
    linear-gradient(90deg, #081313 7%, #081313 21%, rgb(8 19 19 / 84%) 35%, rgb(8 19 19 / 26%) 58%, transparent 77%),
    linear-gradient(180deg, rgb(8 19 19 / 42%), transparent 28%);
}

.scene-skyfire {
  background: #080f18;
}

.skyfire-battle {
  position: absolute;
  top: 0;
  right: 0;
  height: calc(100% - 226px);
  width: auto;
  max-width: 69%;
  object-fit: contain;
  mask-image: linear-gradient(90deg, transparent, #000 18%), linear-gradient(0deg, transparent, #000 12%);
  mask-composite: intersect;
}
.scene-skyfire::after {
  background: linear-gradient(0deg, var(--base) 1%, rgb(7 16 15 / 84%) 13%, transparent 32%), linear-gradient(90deg, #080f18 20%, rgb(8 15 24 / 96%) 28%, rgb(8 15 24 / 60%) 45%, transparent 68%);
}

.scene-orbit { position: absolute; width: min(55vw, 800px); aspect-ratio: 1; top: -12%; right: 4%; border: 1px solid rgb(139 228 255 / 20%); border-radius: 50%; }
.scene-orbit::after { content: ''; position: absolute; inset: 8%; border: 1px dashed rgb(139 228 255 / 15%); border-radius: inherit; }

.scene-cat {
  background: radial-gradient(ellipse at 70% 32%, #33736c, #255958 36%, transparent 71%), linear-gradient(148deg, #235657, #193e44 70%, #15373d);
}

.scene-cat::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, #b7e5d824 1px, transparent 1px), linear-gradient(#b7e5d824 1px, transparent 1px);
  background-size: clamp(24px, 4.6svh, 38px) clamp(24px, 4.6svh, 38px);
  mask-image: radial-gradient(ellipse at 77% 50%, #000 14%, transparent 73%), radial-gradient(ellipse at 6% 84%, #000 5%, transparent 48%);
}
.scene-cat::after { background: linear-gradient(0deg, var(--base) 0%, rgb(7 16 15 / 89%) 15%, transparent 59%), linear-gradient(90deg, #102729 9%, rgb(16 39 41 / 86%) 25%, rgb(16 39 41 / 28%) 50%, transparent 72%); }
.scene-cat .scene-orbit { right: 8%; top: -8%; border-color: rgb(255 223 150 / 23%); }
.scene-cat .scene-orbit::after { border-color: rgb(255 223 150 / 23%); }
.cat-wave, .cat-pendulum { position: absolute; filter: brightness(0) invert(1); }
.cat-wave { top: 12%; right: 36%; width: 26%; opacity: .43; }
.cat-pendulum { top: 14%; right: 6%; width: 14%; opacity: .49; }
.cat-lab { position: absolute; top: 34%; right: 1%; width: min(39vw, 590px); opacity: .85; filter: drop-shadow(0 22px 30px rgb(0 0 0 / 45%)); }
.cat-character { position: absolute; top: 5%; right: 22%; width: min(24vw, 360px); filter: drop-shadow(0 14px 32px rgb(0 0 0 / 42%)); }

.intro { min-height: clamp(465px, calc(100svh - 327px), 675px); display: grid; align-items: center; padding-block: 58px 54px; }
.intro-copy { max-width: min(100%, 680px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--accent); font: 600 12px/1.45 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 1px; background: currentColor; }
.eyebrow .joystick { width: 21px; height: 21px; }
.game-copy-stack { display: grid; }
.game-copy {
  grid-area: 1 / 1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s .16s ease-out, transform .48s .12s cubic-bezier(.2, .7, .3, 1), visibility 0s;
}
.game-copy[aria-hidden] {
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  transition: opacity .2s ease-in, transform .28s ease-in, visibility 0s .28s;
}
.game-title { display: flex; align-items: center; width: min(100%, 535px); height: clamp(120px, 16.3vw, 192px); }
.game-title img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; filter: drop-shadow(0 5px 9px rgb(0 0 0 / 35%)); }
.title-skyfire > span { display: grid; justify-items: center; gap: 8px; width: min(100%, 489px); }
.title-skyfire img { width: 100%; }
.title-skyfire b { display: flex; align-items: center; gap: 10px; color: #c9dce7; font: 650 clamp(12px, 1.25vw, 17px)/1.4 var(--mono); letter-spacing: .25em; text-transform: uppercase; }
.title-skyfire b::before, .title-skyfire b::after { content: ''; width: 22px; height: 1px; background: #688c9c; }

.about-copy h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(60px, 7.45vw, 116px);
  line-height: .86;
  text-transform: uppercase;
  letter-spacing: -.025em;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgb(0 0 0 / 22%);
}
.about-copy h1 span { display: block; margin-top: 10px; color: var(--accent); letter-spacing: -.015em; }
.game-copy p, .about-copy > p:last-child { max-width: 43ch; margin: 25px 0 21px; color: #d1dfdd; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; }
.game-copy p { margin-top: 14px; }

.release-label { margin-bottom: 9px; color: #c9dbd5; font: 600 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.store-badges { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.store-badges li { display: inline-flex; min-height: 45px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #55706d; border-radius: 5px; background: #091513; color: #f2faf7; font-size: 14px; font-weight: 700; }
.store-icon { width: 19px; height: 19px; flex: none; }

.action {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 15px 0 13px;
  background: var(--accent);
  color: #091816;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, box-shadow .2s ease;
}
.action:hover { background: #e2fff3; box-shadow: 0 0 25px rgb(138 248 201 / 26%); }
.action:disabled { opacity: .7; cursor: wait; box-shadow: none; }

.game-picker { padding-bottom: 32px; }
.picker-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 13px; border-top: 1px solid var(--line); }
.picker-heading h2 { font: 600 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .16em; }
.picker-controls { display: flex; align-items: center; gap: 7px; }
.picker-count { margin-right: 9px; white-space: nowrap; color: #9aadaa; font: 400 11px/1 var(--mono); }
.picker-count b { color: var(--accent); font-weight: 700; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgb(8 18 17 / 50%); color: #e5f6f1; }
.icon-button:hover { color: var(--accent); border-color: var(--accent); }
.icon-button .icon { width: 18px; height: 18px; }

.game-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.game-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  min-height: clamp(115px, 11vw, 155px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px 15px;
  background: #172724;
  color: var(--ink);
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.game-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(4 11 11 / 96%), rgb(4 11 11 / 28%) 65%, rgb(4 11 11 / 7%)), linear-gradient(90deg, rgb(4 11 11 / 55%), transparent 70%); }
.game-card:hover { border-color: rgb(229 255 248 / 55%); }
.game-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 13%, transparent); }
.card-visual { position: absolute; z-index: -2; inset: 0; transition: transform .35s ease; }
.game-card:hover .card-visual { transform: scale(1.04); }
.card-shark .card-visual { background: url('assets/shark-thumb.webp') center 52% / cover; }
.card-skyfire .card-visual { background: #080f18 url('assets/skyfire-battle-thumb.webp') 76% center / cover no-repeat; }
.card-cat .card-visual { background: linear-gradient(90deg, #b7e5d823 1px, transparent 1px) 0 0 / 21px 21px, linear-gradient(#b7e5d823 1px, transparent 1px) 0 0 / 21px 21px, radial-gradient(ellipse at 70% 20%, #33736c, #235657 45%, #15373d); }
.card-visual img { position: absolute; height: auto; }
.card-lab { top: 16%; right: -2%; width: 47%; }
.card-character { top: 0; right: 29%; width: 24%; }
.card-label { display: grid; gap: 2px; }
.card-label strong { font: 800 clamp(18px, 1.9vw, 28px)/1 var(--display); letter-spacing: .015em; }
.card-label small { color: #d1dbd7; font-size: 12px; line-height: 1.2; }
.card-arrow { align-self: end; width: 19px; height: 19px; color: #cfded9; }
.game-card[aria-pressed="true"] .card-arrow { color: var(--accent); }
.card-progress { position: absolute; inset: auto 0 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.about-page { min-height: 100svh; background: radial-gradient(ellipse at 25% 10%, #17362e, transparent 58%), var(--base); }
.about-layout { display: grid; grid-template-columns: 1fr minmax(0, .92fr); align-items: center; gap: clamp(32px, 7.5vw, 116px); padding-block: clamp(58px, 12vh, 150px); }
.about-copy h1 { font-size: clamp(62px, 8.1vw, 128px); }
.about-copy h1 span { font-size: .83em; }
.about-copy > p:last-child { margin-bottom: 0; }
.contact-panel { border: 1px solid var(--line); border-radius: 9px; padding: clamp(22px, 3.4vw, 44px); background: #0d1b19; }
.contact-panel h2 { font: 800 clamp(33px, 3vw, 48px)/1 var(--display); text-transform: uppercase; }
.contact-address { display: inline-block; margin-top: 9px; color: var(--mint); font-size: 14px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-panel form { margin-top: 28px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-panel label { display: grid; gap: 7px; margin-bottom: 15px; font-size: 13px; font-weight: 600; }
.contact-panel input, .contact-panel textarea { width: 100%; min-width: 0; border: 1px solid #3d524d; border-radius: 4px; padding: 10px 11px; background: #081311; color: var(--ink); font-size: 16px; }
.contact-panel textarea { resize: vertical; }
.contact-panel .action { margin-top: 3px; }
.form-note { margin-top: 12px; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .intro { min-height: 490px; }
  .skyfire-battle { height: calc(100% - 205px); }
  .cat-character { right: 16%; width: 29vw; }
  .card-character { width: 29%; }
}

@media (max-width: 620px) {
  :root { --header-height: 62px; --edge: clamp(17px, 5vw, 28px); }
  .brand { gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .brand-name { font-size: 16px; }
  .nav { gap: 20px; }
  .nav a { font-size: 13px; }
  .intro { min-height: 0; align-items: end; padding: clamp(230px, 69vw, 365px) 0 26px; }
  .intro-copy { width: 100%; }
  .hero-art { bottom: auto; height: clamp(415px, 114vw, 610px); }
  .scene-shark picture { inset: 0; }
  .scene-shark img { object-position: center 42%; }
  .scene-shark::after, .scene-skyfire::after, .scene-cat::after { background: linear-gradient(0deg, var(--base) 1%, rgb(7 16 15 / 95%) 16%, rgb(7 16 15 / 55%) 42%, transparent 71%), linear-gradient(90deg, rgb(7 16 15 / 28%), transparent 50%); }
  .skyfire-battle { width: 100%; max-width: none; height: 76%; object-fit: cover; object-position: 64% center; mask-image: linear-gradient(0deg, transparent, #000 12%); }
  .scene-skyfire::after { background: linear-gradient(0deg, var(--base) 0%, var(--base) 15%, rgb(7 16 15 / 55%) 28%, transparent 49%); }
  .scene-orbit { width: 85%; top: -6%; right: -2%; }
  .cat-character { width: 37%; top: 4%; right: 32%; }
  .cat-lab { width: 59%; top: 25%; right: -4%; }
  .cat-pendulum { width: 23%; right: 7%; top: 10%; }
  .cat-wave { width: 41%; right: 59%; }
  .eyebrow { margin-bottom: 13px; font-size: 10px; }
  .game-title { height: clamp(106px, 31vw, 150px); }
  .game-copy p { margin: 11px 0 19px; font-size: 15px; }
  .picker-heading { padding-block: 11px; }
  .picker-heading h2 { font-size: 10px; }
  .picker-count { margin-right: 3px; }
  .game-cards { gap: 8px; }
  .game-card { min-height: 101px; padding: 8px; border-radius: 5px; }
  .card-label strong { font-size: clamp(14px, 4.1vw, 20px); }
  .card-label small { font-size: clamp(9px, 2.6vw, 11px); }
  .card-arrow { display: none; }
  .card-shark .card-visual { background-position: 55% center; }
  .card-character { width: 40%; right: 31%; }
  .card-lab { width: 64%; }
  .about-layout { grid-template-columns: 1fr; padding-block: 48px; }
}

@media (max-width: 325px) {
  .brand img { width: 24px; height: 24px; }
  .brand-name { font-size: 15px; }
  .nav { gap: 13px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
