@font-face {
  font-family: Manrope;
  src: url('/assets/manrope.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --paper: #fffdf8;
  --surface: #ffffff;
  --surface-soft: #f5f2ff;
  --surface-warm: #fff6ec;
  --ink: #1d2235;
  --muted: #5a6275;
  --purple: #6842ff;
  --purple-soft: #ede7ff;
  --coral: #ff6448;
  --mint: #16a374;
  --gold: #f59e0b;
  --line: #e6e4df;
  --radius: 24px;
  --shadow-sm: 0 8px 24px -6px rgba(29, 34, 53, 0.06);
  --shadow-md: 0 18px 38px -10px rgba(29, 34, 53, 0.12);
  --shadow-lg: 0 24px 48px -12px rgba(104, 66, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(104, 66, 255, 0.05), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(255, 100, 72, 0.06), transparent 28%);
  color: var(--ink);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.045em;
}

p {
  color: var(--muted);
}

.wrap {
  max-width: 1240px;
  width: calc(100% - 96px);
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 228, 223, 0.8);
}

.nav {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.brand svg {
  width: 44px;
  height: 44px;
  color: var(--purple);
  filter: drop-shadow(0 6px 12px rgba(104, 66, 255, 0.25));
  transition: transform 0.2s ease;
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.04);
}

.brand > span {
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -1.8px;
}

.brand-small {
  display: block;
  font-size: 9px;
  letter-spacing: 5px;
  margin-top: 5px;
  margin-left: 3px;
  font-weight: 800;
  color: var(--purple);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav nav a:not(.nav-support):hover {
  color: var(--purple);
}

.nav-support {
  background: var(--surface);
  border: 1.5px solid var(--line);
  padding: 10px 20px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(29, 34, 53, 0.04);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.nav-support:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(104, 66, 255, 0.1);
}

.nav-support span {
  margin-left: 10px;
}

/* Badges & Eyebrows */
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  color: var(--purple);
}

.status-dot {
  display: inline-block;
  border-radius: 50%;
  height: 8px;
  width: 8px;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(22, 163, 116, 0.16);
  margin-right: 10px;
}

/* Hero Section */
.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 44px;
  padding-bottom: 56px;
}

.hero h1 {
  font-size: clamp(58px, 6.2vw, 88px);
  margin: 22px 0 24px;
  letter-spacing: -0.06em;
  line-height: 1.03;
}

.hero-copy > p {
  font-size: 18px;
  line-height: 1.75;
  max-width: 500px;
}

.joy {
  color: var(--purple);
  display: inline-block;
  position: relative;
}

.joy svg {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 18px;
  fill: none;
  stroke: var(--coral);
  stroke-width: 5.5;
  stroke-linecap: round;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--purple);
  border: 1.5px solid var(--purple);
  color: white;
  border-radius: 99px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 12px 24px -6px rgba(104, 66, 255, 0.4);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.button:hover {
  background: #5630eb;
  border-color: #5630eb;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -6px rgba(104, 66, 255, 0.5);
}

.button span[aria-hidden] {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.button-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.button-ghost:hover {
  background: var(--surface-soft);
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: var(--shadow-md);
}

.hero-note {
  margin-top: 34px;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--surface);
  padding: 10px 18px 10px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.mini-icons {
  display: flex;
  padding-left: 5px;
}

.mini-icons img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 2.5px solid var(--surface);
  border-radius: 12px;
  margin-left: -6px;
}

.hero-art {
  height: 545px;
  position: relative;
  isolation: isolate;
}

.art-circle {
  position: absolute;
  background: radial-gradient(circle at 35% 35%, #ede6ff 0%, #ffe8d9 65%, #e2f5ec 100%);
  width: 470px;
  height: 470px;
  border-radius: 38% 62% 55% 45% / 48% 42% 58% 52%;
  top: 28px;
  left: 10px;
  z-index: -1;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.6);
}

.hero-phone {
  position: absolute;
  background: white;
  padding: 9px;
  border-radius: 28px;
  box-shadow: 0 24px 40px -10px rgba(29, 34, 53, 0.22);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-art:hover .phone-back {
  transform: rotate(-12deg) translate(-4px, -4px);
}

.hero-art:hover .phone-front {
  transform: rotate(8deg) translate(4px, -6px);
}

.hero-phone img {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-back {
  width: 212px;
  height: 378px;
  left: 18px;
  top: 54px;
  transform: rotate(-9deg);
}

.phone-front {
  width: 222px;
  height: 394px;
  left: 224px;
  top: 118px;
  transform: rotate(9deg);
}

.floating-icon {
  position: absolute;
  object-fit: cover;
  border: 4px solid white;
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(29, 34, 53, 0.16);
}

.float-flower {
  top: 12px;
  left: 324px;
  transform: rotate(12deg);
}

.float-nut {
  top: 382px;
  left: 8px;
  transform: rotate(-12deg);
}

.hero-sticker {
  position: absolute;
  bottom: 4px;
  left: 62px;
  transform: rotate(-5deg);
  background: #fff3c4;
  color: #5c4300;
  border: 1.5px solid #f6d365;
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 0 rgba(245, 158, 11, 0.22);
}

.hero-sticker span {
  font-size: 21px;
  vertical-align: middle;
  margin-right: 6px;
}

.art-spark {
  position: absolute;
  font-size: 56px;
  color: var(--purple);
  line-height: 1;
}

.spark-one {
  top: 14px;
  left: 232px;
  transform: rotate(10deg);
}

.spark-two {
  top: 290px;
  right: -4px;
  color: var(--coral);
  font-size: 48px;
}

/* Play Strip */
.play-strip {
  border-block: 1px solid var(--line);
  padding: 20px 0;
  background: linear-gradient(90deg, #f5f0ff 0%, #fff5eb 50%, #eefaf4 100%);
}

.play-strip > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.play-strip span[aria-hidden] {
  color: var(--purple);
  font-size: 20px;
}

/* Games Section */
.section {
  padding-block: 96px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: 52px;
  margin-top: 14px;
}

.section-heading > p {
  font-size: 16px;
  max-width: 360px;
  padding-bottom: 4px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 99px;
  padding: 11px 20px;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.filter:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--surface-soft);
}

.filter.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  box-shadow: 0 6px 16px rgba(29, 34, 53, 0.18);
}

.game-count {
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
  color: var(--muted);
}

/* Boxed Puzzle Game Cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}

.game-card[hidden] {
  display: none;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(104, 66, 255, 0.28);
}

.game-art {
  display: block;
  height: 270px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.7), transparent 55%),
    linear-gradient(145deg, var(--tint) 0%, color-mix(in srgb, var(--tint) 75%, white) 100%);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(29, 34, 53, 0.05);
}

/* Subtle puzzle pattern overlay inside game card art */
.game-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(29, 34, 53, 0.07) 1.25px, transparent 1.25px);
  background-size: 18px 18px;
  opacity: 0.65;
  pointer-events: none;
}

.card-screen {
  position: absolute;
  width: 154px;
  height: 272px;
  top: 28px;
  left: calc(50% - 60px);
  object-fit: cover;
  object-position: top;
  border: 5px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 16px 28px rgba(29, 34, 53, 0.22);
  transform: rotate(6deg);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-card:hover .card-screen {
  transform: rotate(1.5deg) translateY(-7px) scale(1.02);
}

.game-icon {
  border-radius: 22px;
  object-fit: cover;
}

.card-icon {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 68px;
  height: 68px;
  border: 3px solid white;
  box-shadow: 0 10px 18px rgba(29, 34, 53, 0.18);
  border-radius: 18px;
  transform: rotate(-6deg);
  transition: transform 0.25s ease;
}

.game-card:hover .card-icon {
  transform: rotate(0deg) scale(1.05);
}

.card-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card-badge-store {
  background: rgba(29, 34, 53, 0.86);
  color: white;
}

.card-badge-store svg {
  width: 10px;
  height: 11px;
  fill: #34d399;
}

.card-badge-archive {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.art-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(29, 34, 53, 0.12);
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.game-card:hover .art-arrow {
  background: var(--purple);
  color: white;
  transform: scale(1.08);
}

.card-copy {
  padding: 18px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.game-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 800;
  color: var(--purple);
  background: var(--surface-soft);
  padding: 4px 10px;
  border-radius: 99px;
}

.card-copy h3 {
  font-size: 23px;
  letter-spacing: -0.04em;
  margin: 12px 0 8px;
}

.card-copy h3 a:hover {
  color: var(--purple);
}

.card-copy p {
  font-size: 13.5px;
  line-height: 1.68;
  margin-bottom: 16px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  transition: color 0.15s, gap 0.15s;
}

.text-link:hover {
  color: var(--purple);
  gap: 14px;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--mint);
  background: #e8f8f2;
  padding: 5px 11px;
  border-radius: 99px;
  transition: background 0.15s, transform 0.15s;
}

.store-pill:hover {
  background: #d1f2e6;
  transform: translateY(-1px);
}

/* Studio Section */
.studio-section {
  background: linear-gradient(180deg, #f6f3ff 0%, #fff7ef 100%);
  padding-block: 90px;
  border-block: 1px solid var(--line);
}

.studio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.studio-art {
  height: 365px;
  position: relative;
}

.studio-circle {
  position: absolute;
  height: 330px;
  width: 330px;
  background: radial-gradient(circle, #e5dcff 0%, #fde5d2 100%);
  border-radius: 50%;
  left: 40px;
  top: 15px;
}

.icon-tile {
  position: absolute;
  border: 6px solid white;
  border-radius: 34px;
  background: white;
  box-shadow: 0 18px 32px rgba(29, 34, 53, 0.14);
}

.icon-tile img {
  border-radius: 26px;
  width: 130px;
  height: 130px;
}

.tile-one {
  left: 28px;
  top: 45px;
  transform: rotate(-12deg);
}

.tile-two {
  left: 212px;
  top: 44px;
  transform: rotate(12deg);
}

.tile-three {
  left: 123px;
  top: 210px;
  transform: rotate(-3deg);
}

.studio-spark {
  position: absolute;
  bottom: 10px;
  right: 21px;
  font-size: 66px;
  color: var(--purple);
}

.studio-copy h2 {
  font-size: 46px;
  margin: 16px 0 22px;
}

.studio-copy p {
  font-size: 15px;
  margin-bottom: 16px;
}

/* Support Banner */
.support-banner {
  background: linear-gradient(135deg, #1d2235 0%, #2f235a 100%);
  color: white;
  border-radius: 30px;
  margin-block: 90px;
  min-height: 270px;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.support-banner .eyebrow {
  color: #b79eff;
}

.support-banner h2 {
  font-size: 38px;
  margin: 14px 0;
}

.support-banner p {
  font-size: 14px;
  color: #d7d5e8;
}

.button-light {
  background: white;
  border-color: white;
  color: var(--ink);
  white-space: nowrap;
  z-index: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.button-light:hover {
  background: #f5f2ff;
  border-color: #f5f2ff;
  color: var(--purple);
}

.banner-spark {
  position: absolute;
  right: 24%;
  bottom: -42px;
  font-size: 210px;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  pointer-events: none;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding-top: 54px;
  background: var(--surface);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 45px;
}

.footer-top p {
  font-size: 13px;
  margin-top: 16px;
}

.footer-links {
  display: flex;
  gap: 100px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links .eyebrow {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--purple);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-block: 22px;
  font-size: 11px;
  color: var(--muted);
}

.footer-bottom a {
  font-size: 12px;
  font-weight: 700;
}

/* Game Detail Page */
.game-hero {
  padding-top: 38px;
  padding-bottom: 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.15s, color 0.15s;
}

.back-link:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.game-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
  margin-top: 36px;
}

.detail-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  border-radius: 26px;
  border: 3px solid white;
  box-shadow: 0 12px 24px rgba(29, 34, 53, 0.14);
}

.game-intro h1 {
  font-size: 62px;
  margin: 14px 0;
}

.game-intro h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 18px;
  color: var(--purple);
}

.lead {
  font-size: 17px;
  line-height: 1.85;
  max-width: 620px;
}

.play-button {
  margin-top: 28px;
  gap: 14px;
  border-radius: 16px;
  padding: 13px 26px;
  background: var(--ink);
  border-color: var(--ink);
}

.play-button svg {
  width: 22px;
  height: 26px;
}

.play-button span {
  font-size: 19px;
  line-height: 1.2;
  text-align: left;
  font-weight: 800;
}

.play-button small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.4px;
  margin-bottom: 2px;
  opacity: 0.85;
}

.fine-print {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 16px;
}

.availability {
  font-size: 13px;
  background: var(--surface-warm);
  border: 1px solid #f5dec3;
  color: var(--ink);
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 24px;
  font-weight: 600;
}

.game-hero-image {
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.7), transparent 60%), var(--tint);
  border-radius: 36px;
  height: 520px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(29, 34, 53, 0.06);
  box-shadow: var(--shadow-md);
}

.game-hero-image > img {
  width: auto;
  height: 450px;
  max-width: 75%;
  object-fit: contain;
  border: 8px solid white;
  border-radius: 24px;
  box-shadow: 0 22px 36px rgba(29, 34, 53, 0.25);
  transform: rotate(4deg);
}

.detail-spark {
  position: absolute;
  left: 25px;
  bottom: 20px;
  color: rgba(29, 34, 53, 0.14);
  font-size: 100px;
  line-height: 1;
}

.game-information {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line);
  padding-block: 65px;
  gap: 70px;
}

.game-information h2 {
  font-size: 38px;
  margin-top: 16px;
}

.how-to {
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-to li {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.how-to li:last-child {
  border: 0;
}

.how-to span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--purple);
  background: var(--surface-soft);
  padding: 4px 10px;
  border-radius: 99px;
}

.how-to p {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}

/* Screenshot Gallery & Lightbox */
.screenshot-section {
  padding-block: 75px;
}

.screenshot-section h2 {
  font-size: 40px;
}

.screenshot-gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
}

.screenshot-item {
  flex: 0 0 238px;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
  position: relative;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.screenshot-item img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(29, 34, 53, 0.78);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
}

.feature-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
}

.feature-row i {
  font-style: normal;
  color: var(--purple);
  margin-right: 8px;
}

.game-help {
  background: var(--surface-soft);
  border: 1px solid #dfd5ff;
  border-radius: 26px;
  padding: 40px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 85px;
  gap: 25px;
}

.game-help h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.game-help p {
  font-size: 14px;
}

.game-help > div:last-child {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* Lightbox Modal */
.lightbox {
  border: 0;
  border-radius: 24px;
  padding: 16px;
  background: rgba(29, 34, 53, 0.95);
  color: white;
  max-width: min(92vw, 460px);
  max-height: 92vh;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.lightbox::backdrop {
  background: rgba(15, 18, 30, 0.75);
  backdrop-filter: blur(6px);
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-inner img {
  max-height: 76vh;
  width: auto;
  border-radius: 16px;
  object-fit: contain;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 0;
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
}

.lightbox-btn:hover {
  background: var(--purple);
}

/* Legal & Support Pages */
.legal-hero {
  padding-block: 70px 50px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: 62px;
  margin: 18px 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 80px;
  padding-block: 60px 90px;
}

.legal-layout aside {
  align-self: start;
  position: sticky;
  top: 110px;
}

.legal-layout aside nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.legal-layout aside a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.legal-layout aside a:hover {
  color: var(--purple);
}

.legal-copy {
  max-width: 770px;
}

.legal-copy section {
  margin-bottom: 37px;
  scroll-margin-top: 110px;
}

.legal-copy h2 {
  font-size: 25px;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.legal-copy p,
.legal-copy li {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.legal-copy p + p {
  margin-top: 14px;
}

.legal-copy ul {
  padding-left: 23px;
}

.legal-copy li {
  margin-bottom: 10px;
}

.legal-copy a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--purple);
  font-weight: 600;
}

.legal-copy .button {
  margin-block: 18px;
}

.legal-contact {
  background: var(--surface-soft);
  padding: 28px;
  border-radius: 20px;
}

.legal-contact h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.legal-contact a {
  overflow-wrap: anywhere;
}

.support-hero {
  padding-block: 75px 60px;
  text-align: center;
}

.support-hero h1 {
  font-size: 72px;
  margin: 20px 0;
}

.support-hero .lead {
  margin-inline: auto;
}

.purple {
  color: var(--purple);
}

.support-hero .button {
  margin-top: 28px;
}

.support-address {
  font-size: 13px;
  font-weight: 700;
  margin-top: 15px;
}

.support-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  padding-block: 35px 100px;
}

.support-checklist {
  background: var(--surface-soft);
  border: 1px solid #dfd5ff;
  padding: 38px;
  border-radius: 25px;
  align-self: start;
}

.support-checklist h2 {
  font-size: 36px;
  margin: 18px 0;
}

.support-checklist p,
.support-checklist li {
  font-size: 13.5px;
}

.support-checklist ul {
  padding-left: 20px;
  color: var(--muted);
}

.support-checklist li {
  margin-block: 10px;
}

.faq > .eyebrow {
  margin-bottom: 13px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 20px;
}

.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary > span {
  font-size: 21px;
  line-height: 1.2;
  color: var(--purple);
  transition: transform 0.2s;
}

.faq details[open] summary > span {
  transform: rotate(45deg);
}

.faq details p {
  font-size: 14px;
  line-height: 1.85;
  margin-top: 16px;
}

.faq .text-link {
  margin-top: 30px;
}

.empty-page {
  padding-block: 120px;
}

.empty-page h1 {
  font-size: 64px;
  margin-block: 24px;
}

.empty-page .button {
  margin-top: 28px;
}

/* Responsive Breakpoints */
@media (min-width: 1500px) {
  .hero {
    min-height: 700px;
  }
  .hero-art {
    margin-left: 20px;
  }
  .hero h1 {
    font-size: 90px;
  }
}

@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero h1 {
    font-size: 68px;
  }
  .hero-art {
    transform: scale(0.86);
    transform-origin: center right;
    margin-left: -45px;
  }
  .hero {
    min-height: 620px;
    gap: 0;
  }
  .game-grid {
    gap: 28px 20px;
  }
  .game-art {
    height: 245px;
  }
  .card-screen {
    width: 140px;
    height: 248px;
  }
  .card-icon {
    width: 58px;
    height: 58px;
  }
  .studio-layout {
    gap: 30px;
  }
  .studio-circle,
  .tile-one {
    left: 0;
  }
  .tile-two {
    left: 175px;
  }
  .tile-three {
    left: 90px;
  }
  .studio-spark {
    right: 0;
  }
  .support-banner {
    padding: 42px;
  }
  .game-intro {
    gap: 45px;
  }
  .game-intro h1 {
    font-size: 52px;
  }
  .game-help > div:last-child {
    flex-direction: column;
    gap: 12px;
  }
  .support-content {
    gap: 45px;
  }
  .legal-layout {
    gap: 45px;
    grid-template-columns: 205px 1fr;
  }
}

@media (max-width: 820px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .nav {
    height: 80px;
  }
  .brand svg {
    width: 36px;
    height: 36px;
  }
  .brand > span {
    font-size: 30px;
  }
  .brand-small {
    font-size: 7.5px;
    letter-spacing: 4.5px;
  }
  .nav nav {
    gap: 18px;
    font-size: 13px;
  }
  .nav-support {
    padding: 8px 15px;
  }
  .nav-support span {
    margin-left: 4px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
    padding-bottom: 42px;
    gap: 28px;
  }
  .hero h1 {
    font-size: clamp(50px, 10.5vw, 74px);
    margin: 20px 0;
  }
  .hero-copy > p {
    font-size: 16px;
  }
  .hero-art {
    transform: none;
    margin: 0 auto;
    width: 460px;
    max-width: 100%;
    height: 500px;
  }
  .art-circle {
    width: 420px;
    height: 420px;
    left: 0;
    top: 40px;
  }
  .phone-back {
    left: 24px;
    top: 60px;
    width: 190px;
    height: 338px;
  }
  .phone-front {
    left: 218px;
    top: 125px;
    width: 192px;
    height: 343px;
  }
  .float-flower {
    left: 323px;
    width: 77px;
    height: 77px;
    top: 10px;
  }
  .float-nut {
    left: 12px;
    top: 370px;
    width: 72px;
    height: 72px;
  }
  .spark-one {
    top: 20px;
    left: 230px;
  }
  .spark-two {
    right: 0;
  }
  .hero-sticker {
    bottom: 0;
    left: 95px;
  }
  .play-strip > .wrap {
    justify-content: center;
    gap: 20px;
  }
  .play-strip > .wrap span:last-child,
  .play-strip > .wrap span:nth-child(4) {
    display: none;
  }
  .section {
    padding-block: 64px;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-heading h2 {
    font-size: 42px;
  }
  .section-heading > p {
    font-size: 15px;
  }
  /* Horizontal swipe filter bar on mobile/tablet */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar {
    display: none;
  }
  .game-count {
    display: none;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }
  .studio-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .studio-art {
    width: 360px;
    margin: auto;
  }
  .studio-copy {
    max-width: 540px;
  }
  .studio-copy h2 {
    font-size: 40px;
  }
  .studio-section {
    padding-block: 60px;
  }
  .support-banner {
    margin-block: 60px;
    padding: 36px;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
  .support-banner h2 {
    font-size: 34px;
  }
  .footer-links {
    gap: 50px;
  }
  .footer-top {
    gap: 30px;
  }
  .game-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .game-intro h1 {
    font-size: 52px;
  }
  .game-hero-image {
    max-width: 500px;
    height: 480px;
  }
  .game-information {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-block: 45px;
  }
  .game-help {
    padding: 30px;
    align-items: flex-start;
    flex-direction: column;
  }
  .game-help > div:last-child {
    align-items: flex-start;
    gap: 20px;
    flex-direction: row;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 30px;
  }
  .legal-layout aside {
    position: static;
    border-bottom: 1px solid var(--line);
    padding-bottom: 25px;
  }
  .legal-layout aside nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
  }
  .support-content {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

/* Mobile 1-Column Spacious Card Layout */
@media (max-width: 540px) {
  .nav nav > a:nth-child(2) {
    display: none;
  }
  .nav-support span {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    overflow: clip;
  }
  .hero h1 {
    font-size: clamp(42px, 12vw, 54px);
  }
  .hero-art {
    height: 430px;
    width: 345px;
  }
  .art-circle {
    width: 335px;
    height: 335px;
    top: 35px;
  }
  .phone-back {
    width: 155px;
    height: 276px;
    left: 5px;
    top: 60px;
    border-radius: 23px;
    padding: 7px;
  }
  .phone-front {
    width: 163px;
    height: 290px;
    left: 169px;
    top: 112px;
    border-radius: 23px;
    padding: 7px;
  }
  .float-flower {
    width: 64px;
    height: 64px;
    top: 13px;
    left: 254px;
  }
  .float-nut {
    width: 60px;
    height: 60px;
    top: 320px;
    left: 0;
  }
  /* Spacious 1-column cards on phone screens */
  .game-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .game-art {
    height: 235px;
  }
  .card-screen {
    width: 138px;
    height: 242px;
    top: 24px;
    left: calc(50% - 45px);
  }
  .card-icon {
    width: 62px;
    height: 62px;
  }
  .card-copy h3 {
    font-size: 22px;
  }
  .card-copy p {
    font-size: 14px;
  }
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Stable image geometry: reserve the frame before network/decode completes. */
html { scrollbar-gutter: stable; }
.screenshot-gallery { align-items: flex-start; }
.screenshot-item { aspect-ratio: 9 / 16; }
.screenshot-item img { width: 100%; height: 100%; object-fit: contain; }
.lightbox {
  width: min(92vw, 480px);
  max-width: calc(100vw - 24px);
  height: min(90vh, 860px);
  height: min(90dvh, 860px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}
.lightbox-inner { height: 100%; min-height: 0; }
.lightbox-stage {
  width: 100%; flex: 1; min-height: 0; position: relative;
  background: #ffffff08; border-radius: 16px;
}
.lightbox-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  max-height: none; object-fit: contain;
}
.lightbox-stage img[hidden] { display: none; }
.lightbox-stage[aria-busy="true"]::after {
  content: 'Loading…'; position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%); padding: 5px 12px; border-radius: 99px;
  background: #1d2235cc; color: white; font-size: 12px;
}
.lightbox-bar { flex: 0 0 auto; }
.lightbox-btn:disabled { opacity: .45; cursor: default; }
#lightbox-counter { font-size: 11px; text-align: center; }
@media (max-width: 820px) {
  .studio-layout, .game-intro, .game-information, .support-content, .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-copy { min-width: 0; max-width: 100%; }
}
@media (max-width: 540px) {
  .studio-art { width: min(100%, 300px); height: 330px; }
  .studio-circle { width: 280px; height: 280px; }
  .icon-tile img { width: 112px; height: 112px; }
  .tile-two { left: 165px; }
  .tile-three { left: 88px; top: 185px; }
  .game-help > div:last-child { flex-wrap: wrap; }
}

.home-picture { display: contents; }
.hero-phone img, .card-screen { image-rendering: auto; backface-visibility: hidden; }
