@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/nunito-latin.woff2) format("woff2"); }

:root {
  --paper: #FBF6EC; --ink: #1E1B24; --tomato: #F2543D; --tomato-ink: #B63425; --sun: #FFC53D; --sea: #1E9E95;
  --night: #17151C; --cloud: #EDE5D6; --muted: #5E5866;
  --bg: var(--paper); --fg: var(--ink); --card: #fff; --rule: var(--cloud); --link: var(--tomato-ink);
  --radius: 18px; --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: var(--night); --fg: #F3EEE4; --card: #221F29; --rule: #34303D; --muted: #B4ADBD; --link: #FF8A75; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 "Nunito", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--tomato); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .3em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.top { border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.logo img { height: 40px; width: auto; }
.logo .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo img { display: none; } .logo .logo-dark { display: block; } }
.top nav { display: flex; gap: 20px; font-weight: 800; }
.top nav a { color: inherit; text-decoration: none; }
.top nav a:hover { color: var(--tomato); }

/* Buttons */
.btn { display: inline-block; background: var(--tomato); color: #1E1B24; font-weight: 900; text-decoration: none; padding: .7em 1.25em; border-radius: 999px; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.btn { transition: transform .15s, box-shadow .15s; }
.btn:hover { color: #1E1B24; transform: translateY(-2px); box-shadow: 0 5px 0 rgba(0,0,0,.2); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px rgba(251,246,236,.55); }
.btn.ghost:hover { color: var(--night); background: var(--paper); }

.promises { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.promises li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; }
.promises strong { display: block; font-size: 1.15rem; color: var(--tomato-ink); }
@media (prefers-color-scheme: dark) { .promises strong { color: var(--sun); } }

/* Game pages */
body.game .game-hero { background: var(--g-bg); color: var(--g-ink); padding: 8px 0 44px; position: relative; overflow: hidden; }
body.game .game-hero .wrap { position: relative; }
.glow { position: absolute; width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--g-accent) 32%, transparent), transparent 62%); animation: breathe 7s ease-in-out infinite alternate; pointer-events: none; }
.game-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .game-grid { grid-template-columns: 1fr auto; } }
.game-media { justify-self: center; }
body.game .game-hero a:not(.btn) { color: var(--g-ink); }
.subnav { display: flex; gap: 18px; padding: 14px 0; font-weight: 800; flex-wrap: wrap; }
.subnav a { text-decoration: none; color: inherit; opacity: .8; }
.subnav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--g-accent, var(--tomato)); }
.game-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.game-head h1 { margin: 0 0 .2em; }
.game-head .lede { color: inherit; opacity: .85; }
.game-icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.stores { list-style: none; padding: 0; margin: 12px 0 4px; display: flex; gap: 12px; flex-wrap: wrap; }
body.game .btn { background: var(--g-accent); color: var(--g-bg); }
.soon { font-weight: 800; opacity: .85; margin: 6px 0 0; }
.web-label { font-weight: 800; margin: 14px 0 0; font-size: .95rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; }
.facts dt { font-weight: 900; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }
.shots { list-style: none; padding: 0; margin: 24px 0; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.shots li { flex: 0 0 auto; scroll-snap-align: start; }
.shots img { height: 420px; width: auto; border-radius: 16px; border: 1px solid var(--rule); }
@media (max-width: 520px) { .shots img { height: 340px; } }

/* Prose */
.prose { max-width: 760px; padding-top: 16px; padding-bottom: 40px; }
.prose .date { color: var(--muted); font-weight: 700; }
.prose .contact { background: var(--card); border-left: 6px solid var(--tomato); border-radius: 12px; padding: 4px 18px; }
.prose li { margin: .35em 0; }
.help-list { font-weight: 800; }

/* Footer */
.foot { margin-top: 48px; border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: .95rem; }
.foot-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.foot-mark { width: 28px; height: 28px; color: var(--fg); }
@media (prefers-color-scheme: dark) { .foot-mark { filter: invert(1); } }
.foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot nav a { color: inherit; }
.legal { color: var(--muted); font-size: .85rem; margin-top: 16px; }

/* Home: the stage */
.stage { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 80% 10%, #2a2133 0%, var(--night) 55%); color: var(--paper); padding: 56px 0 72px; isolation: isolate; }
.stage .track { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.track-line { fill: none; stroke: var(--tomato); stroke-width: 22; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s .2s cubic-bezier(.6,.1,.2,1) forwards; }
.track-glow { fill: none; stroke: var(--tomato); stroke-width: 60; stroke-linecap: round; opacity: .14; filter: blur(14px); }
.marble { fill: var(--sun); stroke: #fff6; stroke-width: 3; }
.orb { position: absolute; z-index: -1; border-radius: 50%; width: 46px; height: 46px; background: radial-gradient(circle at 32% 28%, #fff 0 9%, var(--c) 24%, color-mix(in srgb, var(--c) 55%, #000) 100%); box-shadow: 0 10px 24px rgba(0,0,0,.4); animation: bob 5s ease-in-out infinite alternate; }
.o1 { --c: #3d8bff; left: 6%; top: 14%; }
.o2 { --c: var(--sea); left: 44%; bottom: 10%; width: 30px; height: 30px; animation-delay: -2s; }
.o3 { --c: var(--sun); right: 4%; top: 8%; width: 34px; height: 34px; animation-delay: -1s; }
.o4 { --c: #c35bff; left: 30%; top: 6%; width: 22px; height: 22px; animation-delay: -3s; }
.stage-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .stage-grid { grid-template-columns: 6fr 5fr; } }
.eyebrow { display: inline-block; margin: 0; padding: .35em .9em; border-radius: 999px; background: rgba(251,246,236,.1); font-weight: 900; font-size: .9rem; letter-spacing: .02em; color: var(--sun); animation: rise .7s .1s both; }
.stage h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; margin: .35em 0 .3em; animation: rise .7s .2s both; }
.stage h1 em { font-style: normal; color: var(--tomato); display: inline-block; animation: wobble 4s 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
.stage .lede { color: #d9d2c6; text-shadow: 0 2px 12px var(--night); animation: rise .7s .3s both; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; animation: rise .7s .4s both; }
.stage-phones { position: relative; display: flex; justify-content: center; gap: 0; min-height: 420px; }
.phone { display: block; border-radius: 30px; padding: 8px; background: #0b0a0e; box-shadow: 0 0 0 2px #39343f, 0 24px 60px rgba(0,0,0,.55); overflow: hidden; }
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 23px; background: #000; }
.stage-phone { position: relative; width: min(42vw, 230px); aspect-ratio: 9 / 18; text-decoration: none; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.stage-phone.p1 { transform: rotate(-7deg) translateY(10px); z-index: 2; animation: floatA 6s ease-in-out infinite alternate; }
.stage-phone.p2 { transform: rotate(6deg) translate(-18px, 46px); animation: floatB 7s ease-in-out infinite alternate; }
.stage-phone:hover { z-index: 3; }
.phone-tag { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; background: var(--g-accent); color: var(--g-bg); font-weight: 900; font-size: .85rem; padding: .3em .8em; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.motion-toggle { position: absolute; right: 16px; bottom: 14px; font: 800 .8rem "Nunito", sans-serif; color: #d9d2c6; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .4em .9em; cursor: pointer; }
.motion-toggle:hover { color: #fff; }

/* Ticker */
.ticker { display: flex; overflow: hidden; background: var(--tomato); color: var(--ink); font-weight: 900; font-size: 1.05rem; border-block: 3px solid var(--ink); transform: rotate(-1deg); margin: -14px -8px 0; position: relative; z-index: 2; }
.ticker ul { display: flex; flex: none; list-style: none; margin: 0; padding: .55em 0; animation: slide 38s linear infinite; }
.ticker li { padding: 0 1.1em; white-space: nowrap; }
.ticker li::after { content: "\25CF"; margin-left: 2.2em; color: var(--sun); -webkit-text-stroke: 1.5px var(--ink); }
.ticker:hover ul { animation-play-state: paused; }

/* Game cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; gap: 26px; } }
.card a { display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; background: var(--g-bg); color: var(--g-ink); text-decoration: none; border: 2px solid transparent; transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s; }
.card a:hover, .card a:focus-visible { transform: translateY(-6px) rotate(-.8deg); border-color: var(--g-accent); color: var(--g-ink); box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--g-accent) 60%, transparent); }
.card-media { height: 300px; overflow: hidden; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--g-accent) 35%, transparent), transparent 70%); }
.card-media .card-phone { width: 180px; height: 370px; margin-top: 96px; padding: 5px; border-radius: 22px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card-media .card-phone video { border-radius: 18px; }
.card a:hover .card-phone { transform: translateY(-58px) rotate(-3deg) scale(1.04); }
.card-body { padding: 18px 22px 22px; position: relative; flex: 1; }
.card-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.35); margin-top: -54px; position: relative; transition: transform .3s; }
.card a:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card h3 { margin: 12px 0 6px; font-size: 1.3rem; }
.card p { margin: 0 0 8px; }
.card .meta { font-size: .9rem; font-weight: 800; color: var(--g-accent); }
.card-go { display: inline-block; margin-top: 4px; font-weight: 900; color: var(--g-accent); transition: transform .25s; }
.card a:hover .card-go { transform: translateX(6px); }

/* Landscape gameplay (Below Ordinary) */
.screen { border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 2px #39343f, 0 20px 50px rgba(0,0,0,.5); }
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-media .card-screen { width: 100%; height: 100%; border-radius: 0; box-shadow: none; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.card a:hover .card-screen { transform: scale(1.06); }
.hero-screen { width: min(600px, 88vw); aspect-ratio: 844 / 390; transform: rotate(-1.5deg); animation: floatS 7s ease-in-out infinite alternate; box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 2px color-mix(in srgb, var(--g-accent) 50%, transparent); }
@keyframes floatS { to { transform: rotate(.5deg) translateY(-10px); } }
.shots img[width="1200"] { height: 300px; }
@media (max-width: 520px) { .shots img[width="1200"] { height: 180px; } }

/* Panning screenshots (games without video yet) */
.pan { position: relative; width: 100%; height: 100%; }
.pan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: pan 18s linear infinite, fade3 18s linear infinite; }
.pan .pan-2 { animation-delay: -6s; } .pan .pan-3 { animation-delay: -12s; }
.hero-pan { width: min(560px, 88vw); aspect-ratio: 16 / 9; height: auto; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 2px color-mix(in srgb, var(--g-accent) 50%, transparent); }

/* Scrolling badge wall */
.badges { width: 100%; height: 100%; display: grid; align-content: center; gap: 10px; overflow: hidden; }
.badge-row { display: flex; gap: 10px; width: max-content; animation: slide 30s linear infinite; }
.badge-row.rev { animation-direction: reverse; animation-duration: 36s; }
.badge-row img { width: 104px; height: 104px; flex: none; }
.badge-row img { filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.card a:hover .badge-row img { animation: jiggle .5s ease-in-out; }
.hero-badges { width: min(520px, 88vw); height: 260px; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.hero-badges .badge-row img { width: 120px; height: 120px; }

/* Game page media and trailer */
.hero-phone { width: 230px; aspect-ratio: 9 / 18.5; transform: rotate(4deg); animation: floatC 6s ease-in-out infinite alternate; }
.trailer h2 { margin-top: 1.2em; }
.trailer-video { width: 100%; height: auto; border-radius: 20px; background: #000; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }

/* Scroll reveals (where the browser supports scroll-driven animation) */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes bob { to { transform: translateY(-22px) rotate(25deg); } }
@keyframes floatA { from { transform: rotate(-7deg) translateY(10px); } to { transform: rotate(-4deg) translateY(-8px); } }
@keyframes floatB { from { transform: rotate(6deg) translate(-18px, 46px); } to { transform: rotate(3deg) translate(-18px, 28px); } }
@keyframes wobble { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-4deg) scale(1.06); } 95% { transform: rotate(3deg); } }
@keyframes slide { to { transform: translateX(-100%); } }
@keyframes pan { from { transform: scale(1.15) translateX(-4%); } to { transform: scale(1.15) translateX(4%); } }
@keyframes fade3 { 0% { opacity: 0; } 4%, 33% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes breathe { to { transform: scale(1.15) translate(-4%, 6%); opacity: .7; } }
@keyframes jiggle { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes floatC { from { transform: rotate(4deg) translateY(0); } to { transform: rotate(2deg) translateY(-14px); } }

/* Pause motion button, and visitors who prefer reduced motion */
.still *, .still *::before, .still *::after { animation-play-state: paused !important; }
.still .track-line { animation: none; stroke-dashoffset: 0; }
.still .marble { display: none; }
.still .eyebrow, .still .stage h1, .still .stage .lede, .still .cta, .still .reveal, .still .pan img { animation: none !important; }
.still .pan .pan-1 { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .track-line { stroke-dashoffset: 0; }
  .marble { display: none; }
  .pan img:first-child { opacity: 1; }
  .stage-phone.p1 { transform: rotate(-7deg); } .stage-phone.p2 { transform: rotate(6deg) translate(-18px, 46px); }
  .card a:hover, .btn:hover, .card a:hover .card-phone { transform: none; }
}
@media (max-width: 899px) {
  .stage { padding: 32px 0 64px; }
  .o1, .o4 { display: none; }
  .o3 { top: auto; bottom: 46%; }
  .stage-phones { min-height: 0; padding-bottom: 40px; }
  .stage-phone { width: min(40vw, 190px); }
}
