/* DeckPop - "POP! x Sticker Party", matching the app's Theme.swift:
   cream dotted paper, charcoal outlines, hard offset shadows, white die-cut rings,
   sticker doodles and washi tape. Light only, like the app. */
:root {
  color-scheme: light;
  --cream: #FFF8ED;
  --pink: #FF4D6D;
  --yellow: #FFD93D;
  --purple: #6C5CE7;
  --ink: #212121;
  --green: #2ECC71;
  --blue: #4DA3FF;
  --soft: #6B6560;
  --outline: 3px;
  --drop: 6px;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 40px 20px 80px;
  font: 17px/1.6 var(--round);
  color: var(--ink);
  background-color: var(--cream);
  /* Dot grid at a fixed pitch, like the app's Paper view. */
  background-image: radial-gradient(rgba(33, 33, 33, 0.08) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
}

main { max-width: 46rem; margin: 0 auto; }

a { color: var(--purple); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); line-height: 1; font-weight: 900; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 1.45rem; font-weight: 900; margin: 2.6rem 0 0.9rem; }
.card h2:first-child, .card .doodle + h2 { margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 900; margin: 1.6rem 0 0.4rem; }
p { margin: 0 0 0.9rem; }
ul { padding-left: 1.2rem; }
li { margin: 0.35rem 0; }

/* ---------- Building blocks ---------- */

/* Outlined slab, hard shadow, white die-cut ring inside the outline. */
.card {
  position: relative;
  background: #fff;
  border: var(--outline) solid var(--ink);
  border-radius: 22px;
  box-shadow: inset 0 0 0 4px #fff, 0 var(--drop) 0 var(--ink);
  padding: 22px 22px 18px;
}
.card.pink { background: var(--pink); color: #fff; }
.card.purple { background: var(--purple); color: #fff; }
.card.yellow { background: var(--yellow); }
.card.pink a, .card.purple a { color: #fff; }

/* Chunky button: sinks onto its shadow when pressed. */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: var(--outline) solid var(--ink);
  border-radius: 18px;
  background: var(--pink);
  color: #fff;
  font: 900 1.1rem/1.2 var(--round);
  text-decoration: none;
  box-shadow: inset 0 0 0 3px #fff, 0 5px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
  cursor: pointer;
}
.btn:active { transform: translateY(5px); box-shadow: inset 0 0 0 3px #fff, 0 0 0 var(--ink); }
.btn.white { background: #fff; color: var(--ink); }
/* Nothing to tap until the app is live, so it reads as a label, not a button. */
.btn.soon { background: #fff; color: var(--soft); border-color: rgba(33, 33, 33, 0.3); box-shadow: none; cursor: default; }

/* Tilted label, like a sticker slapped on the page. */
.sticker {
  display: inline-block;
  padding: 5px 12px;
  border: var(--outline) solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font: 900 0.85rem/1.3 var(--round);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 3px #fff, 0 3px 0 var(--ink);
  transform: rotate(-5deg);
  white-space: nowrap;
}
.sticker.white { background: #fff; transform: rotate(3deg); }

/* Emoji cut out as a die-cut sticker. */
.doodle {
  position: absolute;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff,
               0 4px 4px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  user-select: none;
}

/* Washi tape strip with torn zigzag ends, taping a card to the page. */
.tape::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 96px;
  height: 26px;
  margin-left: -48px;
  background: var(--tape, rgba(77, 163, 255, 0.78));
  transform: rotate(-3deg);
  clip-path: polygon(0 0, 100% 0, 96% 20%, 100% 40%, 96% 60%, 100% 80%, 96% 100%, 0 100%, 4% 80%, 0 60%, 4% 40%, 0 20%);
}
.tape.yellow-tape { --tape: rgba(255, 217, 61, 0.85); }

/* ---------- Page header (inner pages) ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.page-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 1.8rem; }

/* ---------- Home ---------- */

.hero { display: flex; align-items: center; gap: 22px; margin: 6px 0 1.4rem; }
.hero .icon {
  width: 112px; height: 112px; flex: 0 0 auto;
  border-radius: 26px;
  border: var(--outline) solid var(--ink);
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--ink), 0 12px 0 var(--ink);
  transform: rotate(-5deg);
  margin: 8px;
}
.hero .title { position: relative; }
.hero .title .doodle { right: -34px; top: -18px; transform: rotate(14deg); }
.hero .sticker { margin-top: 12px; }
.tagline { font-size: 1.35rem; font-weight: 900; line-height: 1.3; margin: 0 0 0.6rem; }
.lead { font-size: 1.05rem; color: #3A3632; }
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 1.2rem 0 0.4rem; }
.small { color: var(--soft); font-size: 0.95rem; font-weight: 700; }

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
  margin: 2.4rem 0 0.5rem;
}
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--outline) solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 var(--drop) 0 var(--ink);
  background: #fff;
}
.shots img.wide { grid-column: 1 / -1; }
.shots img:nth-child(1) { transform: rotate(-1.5deg); }
.shots img:nth-child(2) { transform: rotate(1.5deg); }
.shots img:nth-child(3) { transform: rotate(0.8deg); }
.shots img:nth-child(4) { transform: rotate(-0.8deg); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.modes .card { padding-top: 26px; }
.modes .card:nth-child(1) { transform: rotate(-1.2deg); }
.modes .card:nth-child(2) { transform: rotate(1deg); }
.modes .card:nth-child(3) { transform: rotate(-0.6deg); }
.modes h3 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.modes p { margin: 0; font-size: 0.98rem; }
.modes .doodle { top: -18px; right: 4px; transform: rotate(12deg); }

.private { margin-top: 2.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 0.4rem; }
.chips a {
  padding: 8px 16px;
  border: var(--outline) solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 3px 0 var(--ink);
}

/* ---------- Shared deck page ---------- */

.deck-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deck-cards li {
  margin: 0;
  padding: 9px 14px;
  background: #fff;
  border: var(--outline) solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

footer {
  max-width: 46rem;
  margin: 3.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 3px dashed rgba(33, 33, 33, 0.18);
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 600;
}
footer a { color: var(--ink); }

@media (max-width: 600px) {
  body { padding: 28px 16px 64px; }
  .hero { gap: 14px; }
  .hero .icon { width: 84px; height: 84px; border-radius: 20px; }
  .modes { grid-template-columns: 1fr; }
  .deck-cards { grid-template-columns: 1fr; }
  .card { padding: 18px 18px 14px; }
}
