:root {
  --milk: #FFF7FB;
  --bubblegum: #FF8FAB;
  --mint: #7DDE92;
  --grape: #3A2148;
  --ink: #2A1428;
  --card: #FFFFFF;
  --soft: rgba(58, 33, 72, 0.08);
  --radius: 1.5rem;
  --pill: 999px;
  --shadow: 0 18px 40px rgba(42, 20, 40, 0.12);
  --font-display: "Young Serif", Georgia, serif;
  --font-ui: "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 143, 171, 0.28), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(125, 222, 146, 0.22), transparent 38%),
    linear-gradient(180deg, #FFEAF2 0%, var(--milk) 38%, #FFF9FC 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--grape);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--bubblegum);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--grape);
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0.85rem;
  z-index: 40;
  width: min(1120px, calc(100% - 1.4rem));
  margin: 0.85rem auto 0;
  padding: 0.7rem 1rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--grape);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  font-size: 1.02rem;
}

.nav-toggle {
  margin-left: auto;
  display: none;
  border: 0;
  background: var(--milk);
  color: var(--grape);
  border-radius: var(--pill);
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.site-nav a:hover {
  background: rgba(255, 143, 171, 0.18);
  color: var(--grape);
}

.auth-box {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: var(--pill);
  padding: 0.72rem 1.25rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--bubblegum);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 143, 171, 0.45);
}

.btn-primary:hover {
  color: #fff;
  background: #ff7a9c;
}

.btn-secondary {
  background: var(--grape);
  color: #fff;
}

.btn-secondary:hover {
  color: #fff;
}

.btn-mint {
  background: var(--mint);
  color: var(--grape);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--grape);
  border: 2px solid rgba(58, 33, 72, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--mint);
  color: var(--grape);
  border-radius: var(--pill);
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 0 rgba(58, 33, 72, 0.08);
  transform: rotate(-2deg);
}

.hero {
  position: relative;
  margin: 1.4rem auto 2rem;
  width: min(1120px, calc(100% - 1.4rem));
  min-height: clamp(340px, 68vw, 560px);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--grape);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(42, 20, 40, 0.72) 0%, rgba(42, 20, 40, 0.28) 48%, rgba(255, 143, 171, 0.18) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  padding: clamp(1.4rem, 5vw, 3.4rem);
  color: #fff;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  margin-bottom: 0.85rem;
}

.hero-copy p {
  font-size: 1.08rem;
  max-width: 30rem;
  color: rgba(255, 247, 251, 0.95);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.section {
  padding: 2rem 0 1rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head > :last-child {
  margin-left: auto;
}

.section-head p {
  max-width: 36rem;
  margin: 0;
}

.polaroid-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: start;
  padding: 0.5rem 0 1.5rem;
}

.polaroid {
  background: var(--card);
  border-radius: 1rem 1rem 1.2rem 1.2rem;
  padding: 0.85rem 0.85rem 1.15rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.polaroid:nth-child(1) {
  transform: rotate(-4deg);
}

.polaroid:nth-child(2) {
  transform: rotate(3deg);
  margin-top: 1.2rem;
}

.polaroid:nth-child(3) {
  transform: rotate(-2deg);
}

.polaroid:hover {
  box-shadow: 0 22px 48px rgba(42, 20, 40, 0.18);
}

.polaroid:nth-child(1):hover {
  transform: rotate(-2deg) translateY(-6px);
}

.polaroid:nth-child(2):hover {
  transform: rotate(1deg) translateY(-6px);
}

.polaroid:nth-child(3):hover {
  transform: rotate(0deg) translateY(-6px);
}

.polaroid-frame {
  border-radius: 0.55rem;
  overflow: hidden;
  background: #f3e7ee;
  aspect-ratio: 4 / 3;
}

.polaroid-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid h3 {
  margin-top: 0.85rem;
  font-size: 1.35rem;
}

.polaroid p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(42, 20, 40, 0.82);
}

.story-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--card);
  border-radius: 2rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.story-block img {
  width: 100%;
  border-radius: 1.4rem;
  min-height: 240px;
  object-fit: cover;
}

.story-copy {
  padding: 0.4rem 0.6rem 0.6rem;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.sticker {
  background: var(--card);
  border: 2px solid rgba(125, 222, 146, 0.75);
  border-radius: 1.2rem;
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 10px 0 rgba(125, 222, 146, 0.35);
  transform: rotate(-1.5deg);
}

.sticker:nth-child(2) {
  transform: rotate(2deg);
  background: #fff4f8;
}

.sticker:nth-child(3) {
  transform: rotate(-2.5deg);
}

.sticker:nth-child(4) {
  transform: rotate(1.5deg);
  background: #f3fff6;
}

.sticker h3 {
  font-size: 1.15rem;
}

.band {
  position: relative;
  margin: 2rem auto 1rem;
  width: min(1120px, calc(100% - 1.4rem));
  border-radius: 2rem;
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow);
}

.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(58, 33, 72, 0.78), rgba(255, 143, 171, 0.35));
}

.band-copy {
  position: relative;
  z-index: 1;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  color: #fff;
  max-width: 34rem;
}

.band-copy h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-hero {
  padding: 2rem 0 0.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.page-card {
  background: var(--card);
  border-radius: 1.6rem;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  margin: 1rem 0 1.4rem;
}

.page-card h2 {
  margin-top: 1.2rem;
}

.page-card h2:first-child {
  margin-top: 0;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 2px solid rgba(58, 33, 72, 0.12);
  border-radius: 1rem;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: var(--milk);
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(255, 143, 171, 0.45);
  border-color: var(--bubblegum);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
}

.check-row input {
  width: auto;
  margin-top: 0.25rem;
}

.form-error {
  color: #9b1c48;
  font-weight: 700;
  min-height: 1.3em;
}

.form-ok {
  background: #eaffef;
  border: 2px solid var(--mint);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: var(--grape);
}

.site-footer {
  margin: 2.5rem auto 1.5rem;
  width: min(1120px, calc(100% - 1.4rem));
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.8rem;
  padding: 1.4rem 1.3rem 1.2rem;
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.2rem;
}

.footer-grid h2 {
  font-size: 1.15rem;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 700;
}

.disclaimer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(58, 33, 72, 0.1);
  font-size: 0.92rem;
  color: rgba(42, 20, 40, 0.78);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(42, 20, 40, 0.48);
}

.overlay[hidden],
[hidden] {
  display: none !important;
}

.modal-card,
.gate-card,
.cookie-card {
  width: min(420px, 100%);
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.3rem 1.25rem 1.2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-card h2,
.gate-card h2 {
  margin-bottom: 0.5rem;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 0;
  background: var(--milk);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: var(--grape);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: flex;
  justify-content: center;
}

.cookie-card {
  width: min(720px, 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  justify-content: flex-start;
}

.cookie-card .btn {
  margin-left: auto;
}

.cookie-card p {
  margin: 0;
  flex: 1 1 280px;
}

.game-list {
  display: grid;
  gap: 1.2rem;
}

.game-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.1rem;
  align-items: center;
  background: var(--card);
  border-radius: 1.5rem;
  padding: 0.9rem;
  box-shadow: var(--shadow);
}

.game-row img {
  width: 100%;
  border-radius: 1rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding-top: 0.4rem;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .polaroid-row {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .polaroid:nth-child(1),
  .polaroid:nth-child(2),
  .polaroid:nth-child(3) {
    transform: rotate(-1deg);
    margin-top: 0;
  }

  .polaroid:nth-child(1):hover,
  .polaroid:nth-child(2):hover,
  .polaroid:nth-child(3):hover {
    transform: rotate(0deg) translateY(-4px);
  }

  .story-block,
  .sticker-grid,
  .footer-grid,
  .game-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .brand span {
    font-size: 0.92rem;
  }

  .sticker {
    transform: none;
  }
}
