/* Rinse & Repeat Offenders: the same retro-kitchen palette as the game (Palette.swift). */
:root {
  --ink: #29262f;
  --paper: #fcfaf2;
  --cream: #f7f2e8;
  --pink: #e85c8c;
  --pink-stripe: #ef769e;
  --mint: #78bfb5;
  --mint-dark: #4d948c;
  --mustard: #ffcc4f;
  --tomato: #ed5447;
  --steel: #40404f;
  --steel-light: #dbdbe6;
  --lilac: #9e8cd9;
  --sky: #bae0f0;
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 8px 0 rgba(41, 38, 47, 0.35);
}

* { box-sizing: border-box; }

html { background: var(--pink); }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--round);
  font-size: 18px;
  line-height: 1.5;
  background: repeating-linear-gradient(45deg, var(--pink) 0 18px, var(--pink-stripe) 18px 36px);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: min(1040px, 100% - 32px);
  margin: 0 auto;
}

/* Big chunky type with a hard ink shadow, like the title screen. */
.shout {
  margin: 0;
  font-weight: 900;
  color: var(--paper);
  text-shadow: 3px 4px 0 var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.02;
}

/* ---------- Top ---------- */

.hero {
  padding: 48px 0 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  text-transform: uppercase;
}

.hero h1 span { display: block; font-size: 0.78em; }

.tagline {
  max-width: 34rem;
  margin: 20px auto 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--paper);
  text-shadow: 2px 2px 0 rgba(41, 38, 47, 0.55);
}

/* The dishwasher's control panel: face on the left, opinions on the right. */
.dishwasher {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(560px, 100%);
  margin: 34px auto 0;
  padding: 16px 20px 22px;
  position: relative;
  font: inherit;
  color: inherit;
  text-align: left;
  background: var(--steel);
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.dishwasher:focus-visible { outline: 4px solid var(--mustard); outline-offset: 4px; }
.dishwasher.still { cursor: default; }

.face { flex: 0 0 38%; height: auto; }

.face .eyes { transform-origin: 50% 52%; animation: blink 4.6s infinite; }
.face .brow { transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.dishwasher.annoyed .brow-left { transform: rotate(10deg); }
.dishwasher.annoyed .brow-right { transform: rotate(-10deg); }

@keyframes blink {
  0%, 94%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}

.bubble {
  flex: 1;
  position: relative;
  margin: 0;
  padding: 12px 16px;
  font-size: clamp(1rem, 3.4vw, 1.25rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
}

.bubble::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--paper);
  border-left: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}

.bubble.pop { animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.leds {
  position: absolute;
  right: 18px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}

.leds i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.leds i:nth-child(2) { background: var(--mustard); opacity: 0.4; }
.leds i:nth-child(3) { background: var(--tomato); opacity: 0.4; }

.poke-hint {
  margin: 14px 0 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--paper);
  opacity: 0.85;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 8px 20px 8px 8px;
  font-weight: 900;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.availability img { width: 44px; height: 44px; border-radius: 11px; }

/* ---------- Sections ---------- */

section { padding: 40px 0; }

section > .wrap > h2 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  text-align: center;
  text-transform: uppercase;
}

.lede {
  max-width: 36rem;
  margin: 12px auto 28px;
  text-align: center;
  font-weight: 800;
  color: var(--paper);
  text-shadow: 2px 2px 0 rgba(41, 38, 47, 0.55);
}

.card {
  padding: 22px 24px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.card h3 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 900; line-height: 1.2; }
.card p { margin: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  font-weight: 900;
  font-size: 1.3rem;
  background: var(--mustard);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

/* Screenshots, framed like the app's chunky cards. */
.evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.shot { margin: 0; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid var(--ink);
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: var(--pink);
}

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

.shot figcaption {
  margin-top: 18px;
  padding: 10px 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
}

.shot figcaption b { display: block; font-weight: 900; }

/* The rap sheet of things the dishwasher is tired of saying. */
.rap-sheet {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 24px;
  list-style: none;
}

.rap-sheet li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 2px dashed rgba(41, 38, 47, 0.25);
}

.rap-sheet li:last-child { border-bottom: 0; }
.rap-sheet strong { font-weight: 900; }

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.mode-badge {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.mode-badge svg { width: 28px; height: 28px; fill: var(--ink); }
.mode-menace .mode-badge svg { width: 34px; height: 34px; }

.mode-redemption .mode-badge { background: var(--mint); }
.mode-menace { background: var(--steel); color: var(--paper); }
.mode-menace .mode-badge { background: var(--tomato); }

/* ---------- Bottom ---------- */

footer {
  padding: 36px 0 48px;
  text-align: center;
  font-weight: 800;
  color: var(--paper);
  text-shadow: 1px 1px 0 rgba(41, 38, 47, 0.45);
}

footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
footer p { margin: 14px 0 0; }

/* Barely there on purpose: it gets enough mail about dishes. */
.quiet {
  margin-top: 22px;
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.7;
}

.quiet a { text-decoration: none; }
.quiet a:hover, .quiet a:focus-visible { text-decoration: underline; }

/* ---------- Privacy page ---------- */

.policy {
  max-width: 760px;
  margin: 0 auto;
}

.policy h2 { margin: 30px 0 6px; font-size: 1.25rem; font-weight: 900; }
.policy h2:first-of-type { margin-top: 10px; }
.policy p { margin: 0 0 12px; }
.policy .updated { font-size: 0.9rem; font-weight: 800; opacity: 0.65; }
.policy .summary {
  margin: 14px 0 6px;
  padding: 14px 18px;
  font-size: 1.1rem;
  font-weight: 900;
  background: var(--mint);
  border: 3px solid var(--ink);
  border-radius: 14px;
}

.back-row { text-align: center; }

.back {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 18px;
  font-weight: 900;
  text-decoration: none;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 5px 0 rgba(41, 38, 47, 0.35);
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  body { font-size: 17px; }
  .evidence { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; gap: 40px; }
  .shot:nth-child(n) { transform: none; }
  .rap-sheet li { grid-template-columns: 1fr; gap: 2px; }
  .dishwasher { gap: 12px; padding: 12px 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .face .eyes, .bubble.pop { animation: none; }
  .face .brow { transition: none; }
}
