:root {
  --sky: #8fe7ff;
  --sky-light: #dff9ff;
  --cream: #fff9e8;
  --paper: #fffdf5;
  --ink: #602274;
  --muted: #71457f;
  --purple: #b24cff;
  --purple-dark: #702c88;
  --pink: #ff70a6;
  --orange: #ff9852;
  --yellow: #ffd85c;
  --green: #8bdc9b;
  --line: rgba(147, 63, 196, 0.22);
  --max-width: 70rem;
  --radius: 1.7rem;
  --chunk-shadow: 0 0.45rem 0 rgba(147, 63, 196, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 7rem; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 9%, rgba(255, 255, 255, 0.7) 0 0.18rem, transparent 0.23rem) 0 0 / 1.7rem 1.7rem,
    linear-gradient(180deg, var(--sky) 0%, #baf1ff 34%, #ffe5a4 100%);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
  content: "";
  pointer-events: none;
}

a { color: var(--purple-dark); text-underline-offset: 0.2em; }
a:hover { color: #642679; text-decoration-thickness: 0.15em; }
a:focus-visible, button:focus-visible, [tabindex="-1"]:focus-visible { outline: 0.2rem solid var(--ink); outline-offset: 0.25rem; }
.skip-link { position: absolute; z-index: 20; top: 1rem; left: 1rem; max-width: calc(100% - 2rem); padding: 0.75rem 1rem; border: 0.15rem solid var(--ink); border-radius: 0.6rem; color: var(--ink); background: var(--paper); font-weight: 900; transform: translateY(calc(-100% - 2rem)); }
.skip-link:focus { transform: none; }
img, svg { max-width: 100%; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 0.22rem solid var(--purple-dark);
  background: var(--paper);
  box-shadow: 0 0.28rem 0 rgba(147, 63, 196, 0.12);
}

.nav-wrap, .section, .footer-wrap { width: min(100% - 2rem, var(--max-width)); margin-inline: auto; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0; line-height: 1.3; color: var(--ink); font-size: 1.05rem; font-weight: 900; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; }
.brand-logo { display: block; flex: 0 0 auto; width: 4rem; height: 4rem; border: 0.15rem solid var(--purple-dark); border-radius: 1rem; object-fit: contain; }
.brand:hover { color: var(--purple-dark); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.7rem; }
.site-nav a { display: inline-flex; min-height: 2.75rem; min-width: 2.75rem; align-items: center; justify-content: center; padding: 0.45rem 0.75rem; border: 0.12rem solid transparent; border-radius: 999px; color: var(--muted); font-size: 0.92rem; font-weight: 800; text-decoration: none; }
.site-nav a:hover { border-color: var(--pink); color: var(--ink); background: #fff; transform: rotate(-2deg); }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.95fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); min-height: min(45rem, calc(100vh - 4.7rem)); padding-block: clamp(3.5rem, 9vw, 7rem); }
.eyebrow { margin: 0 0 0.9rem; color: var(--purple-dark); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: "Arial Rounded MT Bold", "Trebuchet MS", ui-rounded, system-ui, sans-serif; line-height: 1.05; }
h1 { max-width: 9ch; color: var(--ink); font-size: clamp(3.5rem, 9vw, 7rem); letter-spacing: -0.06em; text-shadow: 0.16rem 0.18rem 0 rgba(255,255,255,0.82); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); letter-spacing: -0.04em; }
h3 { font-size: 1.6rem; }
.hero-copy { max-width: 36rem; }
.hero-copy > p:not(.eyebrow) { margin: 1.4rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 700; }

.hero-brand { width: 100%; max-width: 32rem; justify-self: center; animation: character-arrive 800ms ease-out both; }
.hero-brand img { display: block; width: 100%; height: auto; border: 0.25rem solid var(--purple-dark); border-radius: 2rem; box-shadow: 0 0.75rem 0 var(--purple-dark), 0 1.15rem 0 rgba(255,112,166,0.38); }

.art-placeholder { position: relative; display: grid; min-height: 22rem; place-items: center; overflow: hidden; border: 0.25rem solid var(--purple-dark); border-radius: 35% 28% 32% 25% / 25% 32% 24% 35%; background: linear-gradient(180deg, #77dcfb 0%, #b9f3ff 64%, #8bdc9b 65%, #6bc982 100%); box-shadow: 0 0.75rem 0 var(--purple-dark), 0 1.15rem 0 rgba(255,112,166,0.38); }
.placeholder-label { max-width: calc(100% - 1rem); padding: 0.6rem 0.8rem; border: 0.12rem solid var(--purple-dark); border-radius: 0.75rem; color: var(--ink); background: var(--paper); font-size: 0.9rem; font-weight: 800; text-align: center; }
.hero > *, .game-card > *, .content-grid > *, .screenshots > * { min-width: 0; }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-heading p { max-width: 28rem; margin: 0; color: var(--muted); font-weight: 700; }
.game-card { display: grid; grid-template-columns: minmax(13rem, 0.7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(1rem, 3vw, 2rem); border: 0.22rem solid var(--purple-dark); border-radius: var(--radius); background: var(--paper); box-shadow: 0 0.7rem 0 var(--purple-dark), 0 1rem 0 rgba(255,112,166,0.36); transform: rotate(-0.6deg); }
.game-card .game-teaser-art { display: block; align-self: center; width: 100%; height: auto; aspect-ratio: 1; border: 0.2rem solid var(--purple-dark); border-radius: 1.2rem; transform: rotate(1deg); }
.game-card-copy { align-self: center; padding-block: 1rem; }
.game-card-copy p { max-width: 42rem; margin: 1rem 0 0; color: var(--muted); font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; min-width: 2.75rem; padding-block: 0.5rem; margin-top: 1.5rem; font-weight: 900; }
.text-link:hover { transform: translateX(0.25rem) rotate(-2deg); }
.store-badge { display: block; max-width: 100%; margin-top: 1.5rem; }
.store-badge { width: 200px; }
.store-badge img { display: block; width: 100%; height: auto; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.75rem; }
.button { display: inline-flex; min-height: 3.1rem; align-items: center; justify-content: center; padding: 0.7rem 1.1rem; border: 0.17rem solid var(--purple-dark); border-radius: 1rem 0.8rem 1.1rem 0.75rem; color: var(--ink); background: var(--orange); box-shadow: 0 0.35rem 0 var(--purple-dark); font-weight: 900; text-decoration: none; transition: transform 120ms ease, box-shadow 120ms ease; }
.button:hover { color: var(--ink); background: var(--yellow); transform: translateY(-0.18rem) rotate(-1deg); }
.button:active { box-shadow: 0 0.12rem 0 var(--purple-dark); transform: translateY(0.15rem); }
.button.secondary { background: var(--cream); }

.page-main { padding-block: clamp(3rem, 8vw, 6rem); }
.page-intro { max-width: 48rem; padding-bottom: 2rem; }
.page-intro h1 { max-width: 15ch; font-size: clamp(2.9rem, 7vw, 5rem); }
.page-intro > p:last-child { margin: 1.25rem 0 0; color: var(--muted); font-size: 1.1rem; font-weight: 700; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr); gap: 1.5rem; }
.panel { padding: clamp(1.25rem, 3vw, 2rem); border: 0.2rem solid var(--purple-dark); border-radius: var(--radius); background: var(--paper); box-shadow: 0 0.6rem 0 rgba(147,63,196,0.85), 0.4rem 0.8rem 0 rgba(255,112,166,0.3); }
.panel h2 { margin-bottom: 1rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.panel h3 { margin-top: 2rem; font-size: 1.25rem; }
.panel h3:first-child { margin-top: 0; }
.panel p, .panel li { color: var(--muted); font-weight: 650; }
.panel ul { padding-left: 1.2rem; }
.art-placeholder.game-icon-placeholder { width: 100%; max-width: 28rem; min-height: 0; margin-inline: auto; padding: 0; background: var(--sky-light); }
.game-icon-placeholder::before, .game-icon-placeholder::after { display: none; }
.game-promo-art { display: block; width: 100%; height: auto; object-fit: contain; }

.store-buttons { display: grid; gap: 1rem; margin-top: 1.5rem; }
.store-buttons .button { width: 100%; }
.store-buttons .store-badge { margin-top: 0; }
.play-panel { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.play-panel h2 { width: 100%; margin: 0; }
.play-panel .store-buttons { display: flex; justify-content: center; width: 100%; margin-top: 0.5rem; }
.play-panel .button-row { justify-content: center; width: 100%; gap: 0.5rem 1.25rem; margin-top: 0; }
.play-panel .text-link { margin-top: 0; }
.screenshots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 0.9rem; margin-top: 1.25rem; }
.game-screenshot { display: block; overflow: hidden; border: 0.16rem solid var(--purple-dark); border-radius: 0.9rem; background: var(--cream); box-shadow: 0 0.25rem 0 var(--line); }
.game-screenshot img { display: block; width: 100%; height: auto; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.25rem; }
.game-badge { display: inline-block; padding: 0.38rem 0.62rem; border: 0.14rem solid var(--purple-dark); border-radius: 999px; color: var(--purple-dark); background: var(--yellow); box-shadow: 0.15rem 0.18rem 0 var(--pink); font-size: 0.73rem; font-weight: 900; transform: rotate(-2deg); }
.game-badge:nth-child(2) { background: var(--green); transform: rotate(2deg); }
.game-badge:nth-child(3) { background: #f5a4ff; transform: rotate(-1deg); }
.legal-copy { max-width: 52rem; }
.legal-copy h2 { margin-top: 2.5rem; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p, .legal-copy li { color: var(--muted); }
.review-note { margin-block: 1.5rem; padding: 1rem 1.15rem; border-left: 0.35rem solid var(--orange); border-radius: 0 0.9rem 0.9rem 0; color: #9b3e67; background: #fff0c9; }
.review-note strong { color: #9b3e67; }
.contact-card { margin-top: 1.5rem; padding: 1.25rem; border: 0.18rem solid var(--green); border-radius: 1rem; background: #effff0; }
.contact-card p { margin: 0; }
.site-footer { margin-top: 3rem; border-top: 0.22rem solid var(--purple-dark); background: linear-gradient(135deg, #efb8ff, #ffc4dd); }
.footer-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; color: var(--ink); font-size: 0.9rem; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; color: var(--ink); }
.footer-links a:hover { color: #642679; }

@keyframes character-arrive { from { transform: translateY(0.8rem) rotate(-2deg); } to { transform: none; } }

@media (max-width: 56rem) {
  html { scroll-padding-top: 1rem; }
  .site-header { position: relative; }
  .nav-wrap { align-items: flex-start; flex-direction: column; padding-block: 0.75rem; gap: 0.5rem; }
  .site-nav { justify-content: flex-start; }
  .hero, .content-grid, .game-card { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: auto; gap: 2.5rem; }
  .hero-copy { max-width: 40rem; }
  .hero-brand { max-width: 24rem; }
  .game-card { transform: none; }
}

@media (max-width: 42rem) {
  .brand { font-size: 0.95rem; letter-spacing: 0.015em; gap: 0.6rem; }
  .brand-logo { width: 3rem; height: 3rem; border-radius: 0.75rem; }
  .site-nav { justify-content: flex-start; gap: 0.4rem; }
  .site-nav a { padding-inline: 0.55rem; }
  .section { padding-block: 2.5rem; }
  .hero { padding-top: 2.5rem; }
  h1 { font-size: clamp(2.75rem, 12vw, 4rem); }
  .page-intro h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .screenshots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card .art-placeholder, .game-card .game-teaser-art { transform: none; }
  .art-placeholder, .game-card .art-placeholder { min-height: 12rem; }
  .hero-brand { max-width: 20rem; }
  .button-row > .button { width: 100%; text-align: center; }
  .panel { padding: 1.1rem; border-radius: 1.2rem; }
}

@media (max-height: 32rem) {
  html { scroll-padding-top: 1rem; }
  .site-header { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .site-nav a:hover, .text-link:hover, .button:hover, .button:active { transform: none; }
}
