/* Sticker Crafted Universe - apps site.
   Concept: game art presented as die-cut stickers (white outline, slight tilt, peel on hover),
   taken from the studio's name. Light/dark follow the system. One accent: the logo's purple. */

@import url('fonts/fonts.css');

:root {
  --bg: #f6f5fb;
  --bg-raised: #ffffff;
  --ink: #1b1828;
  --ink-soft: #57536b;
  --line: #e4e1ef;
  --accent: #6b45d8;
  --accent-ink: #ffffff;
  --sticker-edge: #ffffff;
  --shadow: 0 10px 28px rgba(52, 33, 120, 0.16), 0 2px 6px rgba(52, 33, 120, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(18px, 4vw, 40px);
  --max: 1180px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14121d;
    --bg-raised: #1d1a2a;
    --ink: #f1eff8;
    --ink-soft: #b2adc6;
    --line: #2d2940;
    --accent: #a58bff;
    --accent-ink: #14121d;
    --sticker-edge: #f4f2fb;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--bg-raised);
  padding: 10px 14px;
  border-radius: 10px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 {
  font-size: clamp(40px, 6vw, 72px);
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
}
h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-soft);
  max-width: 34ch;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav__inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 800 18px/1 var(--font-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img {
  width: 44px;
  height: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  font-weight: 600;
  font-size: 16px;
}
.nav__links a {
  text-decoration: none;
  color: var(--ink-soft);
}
.nav__links a:hover,
.nav__links a[aria-current='page'] {
  color: var(--ink);
}
@media (max-width: 560px) {
  .brand span {
    display: none;
  }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: 700 17px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn--primary:hover {
  transform: translateY(-2px);
}
.btn--ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 2px var(--ink-soft);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------------------------------------------ stickers */
/* A die-cut sticker: white outline that follows the artwork (alpha images) or the box
   (photos), a soft tinted shadow, a slight tilt, and a peel lift on hover. */
.sticker {
  --tilt: 0deg;
  transform: rotate(var(--tilt));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.sticker--cut {
  filter: drop-shadow(0 0 0 var(--sticker-edge)) drop-shadow(3px 0 0 var(--sticker-edge))
    drop-shadow(-3px 0 0 var(--sticker-edge)) drop-shadow(0 3px 0 var(--sticker-edge))
    drop-shadow(0 -3px 0 var(--sticker-edge)) drop-shadow(0 10px 14px rgba(52, 33, 120, 0.22));
}
.sticker--box {
  border-radius: var(--radius);
  box-shadow:
    0 0 0 6px var(--sticker-edge),
    var(--shadow);
  overflow: hidden;
}
.sticker--box img {
  width: 100%;
}
@media (hover: hover) {
  .sticker:hover {
    transform: rotate(calc(var(--tilt) * 0.3)) translateY(-6px) scale(1.03);
  }
}

/* ------------------------------------------------------------------ hero */
.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero__copy {
  display: grid;
  gap: 22px;
}
.hero__copy h1 em {
  font-style: normal;
  color: var(--accent);
}
.collage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  justify-self: end;
  width: 100%;
}
.collage > * {
  position: absolute;
}
.collage .c-cv {
  width: 46%;
  left: 4%;
  top: 6%;
  --tilt: -7deg;
}
.collage .c-ds {
  width: 40%;
  right: 4%;
  top: 22%;
  --tilt: 6deg;
}
.collage .c-mochi {
  width: 42%;
  left: 26%;
  bottom: 0;
  --tilt: 3deg;
}
.collage .c-postcard {
  width: 26%;
  right: 10%;
  bottom: 6%;
  --tilt: -10deg;
}
@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .collage {
    justify-self: center;
    max-width: 420px;
  }
}

/* ------------------------------------------------------------------ games */
.games {
  padding: clamp(48px, 7vw, 96px) 0;
}
.hero + .games {
  padding-top: 0;
}
.games > .wrap > h2 {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.feature-cv {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(160deg, #3fe8ff 0%, #0bc6fb 55%, #0a9be0 100%);
  color: #06233d;
  overflow: hidden;
}
.feature-cv h3 {
  font-size: clamp(30px, 3.6vw, 44px);
}
.feature-cv p {
  color: #0c3a5c;
  max-width: 38ch;
}
.feature-cv .btn--ghost {
  color: #06233d;
  box-shadow: inset 0 0 0 2px rgba(6, 35, 61, 0.35);
}
.feature-cv .head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.feature-cv .head img {
  width: 72px;
}
.status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font: 700 13px/1 var(--font-body);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.75);
  color: #06233d;
}
.feature-cv .copy {
  display: grid;
  gap: 18px;
  align-content: center;
}
.phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 20px);
  align-items: end;
}
.phones .sticker--box {
  border-radius: 18px;
}
.phones > :nth-child(1) {
  --tilt: -4deg;
  margin-bottom: 18px;
}
.phones > :nth-child(2) {
  --tilt: 2deg;
}
.phones > :nth-child(3) {
  --tilt: 5deg;
  margin-bottom: 30px;
}
@media (max-width: 860px) {
  .feature-cv {
    grid-template-columns: 1fr;
  }
}

.feature-ds {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.6fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.feature-ds .copy {
  display: grid;
  gap: 16px;
}
.feature-ds .head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-ds .head img {
  width: 64px;
  border-radius: 15px;
  box-shadow: 0 0 0 1px var(--line);
}
.reel {
  /* Fade the right edge so the scroller reads as "more this way", not as clipped. */
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
  mask-image: linear-gradient(to right, #000 88%, transparent);
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 14px 6px 22px;
  scrollbar-width: thin;
}
.reel > * {
  flex: 0 0 clamp(150px, 18vw, 200px);
  scroll-snap-align: start;
}
.reel .sticker--box {
  border-radius: 18px;
}
.reel > :nth-child(odd) {
  --tilt: -2deg;
}
.reel > :nth-child(even) {
  --tilt: 2deg;
}
@media (max-width: 860px) {
  .feature-ds {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ studio */
.studio {
  padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.studio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.studio__grid .points {
  display: grid;
  gap: 22px;
}
.point h3 {
  margin-bottom: 4px;
}
.point p {
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .studio__grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ game page */
.game-hero {
  padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px);
}
.game-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.game-hero__copy {
  display: grid;
  gap: 20px;
}
.game-hero__copy .head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.game-hero__copy .head img {
  width: 84px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--line);
}
.game-hero__art {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
}
.game-hero__art .mochi {
  position: absolute;
  width: 34%;
  left: -12%;
  bottom: -6%;
  --tilt: -6deg;
  z-index: 2;
}
.game-hero__art > :nth-child(2) {
  --tilt: -3deg;
}
.game-hero__art > :nth-child(3) {
  --tilt: 4deg;
  margin-bottom: 36px;
}
@media (max-width: 860px) {
  .game-hero__grid {
    grid-template-columns: 1fr;
  }
  .game-hero__art .mochi {
    left: -4%;
  }
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  padding-bottom: clamp(48px, 7vw, 96px);
}
.tile {
  border-radius: var(--radius);
  padding: 26px;
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: hidden;
  position: relative;
}
.tile p {
  color: var(--ink-soft);
}
.tile--postcards {
  grid-column: span 4;
  background: linear-gradient(165deg, #fff2e3, #ffd9e8);
  color: #3b2440;
}
.tile--postcards p {
  color: #6a4a6d;
}
.tile--mochi {
  grid-column: span 2;
  background: linear-gradient(170deg, #3fe8ff, #0aa6ea);
  color: #06233d;
}
.tile--mochi p {
  color: #0c3a5c;
}
.tile--mochi {
  grid-template-rows: auto auto 1fr;
}
.tile--mochi img {
  width: 66%;
  justify-self: center;
  align-self: end;
  margin: 6px 0 -34px;
}
.tile--missions,
.tile--boosters,
.tile--languages {
  grid-column: span 2;
}
.stamps {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.stamps .sticker--box {
  width: clamp(76px, 10vw, 104px);
  border-radius: 10px;
  box-shadow:
    0 0 0 5px #fff,
    0 8px 16px rgba(90, 40, 80, 0.2);
}
.stamps > :nth-child(odd) {
  --tilt: -5deg;
}
.stamps > :nth-child(even) {
  --tilt: 4deg;
}
@media (max-width: 860px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .tile--postcards,
  .tile--mochi,
  .tile--missions,
  .tile--boosters,
  .tile--languages {
    grid-column: auto;
  }
}

.status--plain {
  background: var(--bg-raised);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.status--live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-raised);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.status--live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22b573;
}

/* Drift & Stack page */
.game-hero__art--ds {
  max-width: 460px;
  justify-self: end;
  width: 100%;
}
.ds-section {
  padding-bottom: clamp(48px, 7vw, 88px);
}
.ds-section > h2 + .lede {
  margin-top: 14px;
  max-width: 52ch;
}
.ds-section > .reel {
  margin-top: 20px;
}
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(24px, 3vw, 36px);
}
.mode {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mode p {
  color: var(--ink-soft);
}
.mode--rush {
  background: var(--ink);
  color: var(--bg);
  box-shadow: none;
}
.mode--rush p {
  color: color-mix(in srgb, var(--bg) 75%, var(--ink));
}
.tag {
  justify-self: start;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font: 700 13px/1 var(--font-body);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.mode--rush .tag {
  background: var(--accent);
  color: var(--accent-ink);
}
.ds-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.themes {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.themes li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.themes li::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  border-top: 1px solid var(--line);
}
.checklist li {
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  position: relative;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 21px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.checklist strong {
  color: var(--ink);
}
.ds-cta {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-bottom: clamp(48px, 7vw, 88px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--ink);
  color: var(--bg);
}
.ds-cta p {
  color: color-mix(in srgb, var(--bg) 75%, var(--ink));
}
@media (max-width: 860px) {
  .modes,
  .ds-split {
    grid-template-columns: 1fr;
  }
  .game-hero__art--ds {
    justify-self: center;
  }
}

/* support hub: pick a game */
.pick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.pick__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}
.pick__item img {
  width: 40px;
  border-radius: 10px;
}
.pick__item:hover {
  box-shadow: inset 0 0 0 2px var(--ink-soft);
}
.doc .note {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--ink);
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-bottom: clamp(48px, 7vw, 96px);
  font-weight: 600;
}

/* ------------------------------------------------------------------ documents (privacy, terms, support) */
.doc {
  padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 104px);
}
.doc__inner {
  max-width: 72ch;
}
.doc__back {
  display: inline-flex;
  margin-bottom: 18px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.doc h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 10px;
}
.doc h2 {
  font-size: 24px;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.doc h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}
.doc p,
.doc li {
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.doc strong {
  color: var(--ink);
}
.doc .meta {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 24px;
}
.doc .box {
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 18px 0;
}
.doc .box,
.doc .box * {
  color: var(--ink);
}
.doc ul {
  padding-left: 22px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0 18px;
  display: block;
  overflow-x: auto;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  min-width: 120px;
}
.doc th {
  color: var(--ink);
  border-bottom: 2px solid var(--line);
}
.doc tr + tr td {
  border-top: 1px solid var(--line);
}
.doc :is(p, li, td, .box) a {
  color: var(--accent);
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.faq details {
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font: 700 18px/1.3 var(--font-display);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 16px;
}
.contact-card {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.contact-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------------------------------------------ footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--ink-soft);
  font-size: 15px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.footer h4 {
  margin: 0 0 10px;
  font: 700 15px/1 var(--font-display);
  color: var(--ink);
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--ink);
}
@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
  .collage > .sticker {
    animation: drop-in 0.8s cubic-bezier(0.34, 1.4, 0.64, 1) both;
    animation-delay: calc(var(--i, 0) * 110ms + 150ms);
  }
  @keyframes drop-in {
    from {
      opacity: 0;
      transform: translateY(-24px) rotate(calc(var(--tilt) * 3)) scale(0.9);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sticker,
  .btn {
    transition: none;
  }
}
