:root {
  --bg: #0b1026;
  --bg-2: #1a2456;
  --ink: #f5f3ea;
  --muted: #a9b0cf;
  --red: #e01b2f;
  --gold: #f2c200;
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }
html { overflow-x: clip; }

body {
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-2), var(--bg) 70%) fixed, var(--bg);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: clip;
}

.stage {
  position: relative;
  width: min(100%, 720px);
  padding: 24px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spotlight {
  position: absolute;
  inset: 0 10% auto;
  height: 100%;
  background: radial-gradient(50% 45% at 50% 70%, rgba(255, 236, 170, 0.16), transparent 70%);
  pointer-events: none;
}

.target {
  position: relative;
  z-index: 2;
  margin: 8px 0 0;
  min-height: 2.3em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 9vw, 76px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.target .word { display: inline-flex; white-space: nowrap; margin: 0 0.18em; }
.target .ch { display: inline-block; will-change: transform, opacity; }
.target.idle .ch { animation: bob 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.13s); }
.target.wobble .ch { animation: jitter 0.09s linear infinite; color: #fff6d9; }

@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes jitter {
  0% { transform: translate(0, 0); }
  50% { transform: translate(1.5px, -1px); }
  100% { transform: translate(-1px, 1px); }
}

.stamp {
  position: absolute;
  z-index: 3;
  top: 46px;
  left: 50%;
  padding: 4px 18px;
  border: 6px solid var(--red);
  border-radius: 8px;
  color: var(--red);
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(44px, 12vw, 96px);
  letter-spacing: 0.06em;
  transform: translateX(-50%) rotate(-12deg) scale(2.6);
  opacity: 0;
  pointer-events: none;
  background: rgba(11, 16, 38, 0.35);
  text-shadow: 0 2px 0 rgba(0,0,0,.4);
}
.stamp.on {
  animation: stamp 0.32s cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
}
@keyframes stamp {
  to { transform: translateX(-50%) rotate(-12deg) scale(1); opacity: 0.92; }
}

.scene {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  height: auto;
  margin-top: -6px;
  overflow: visible;
}

.arm, .cap, .head, .mouth .lips, .mouth .lips-in {
  transform-box: view-box;
  transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.arm { transform-origin: 270px 204px; transform: rotate(-6deg); }
.head { transform-origin: 200px 160px; }
.mouth .lips, .mouth .lips-in { transform-origin: 200px 150px; }

.stage.windup .arm { transform: rotate(-38deg); transition-duration: 0.55s; }
.stage.windup .head { transform: rotate(-4deg); }
.stage.press .arm { transform: rotate(1deg); transition: transform 0.09s ease-in; }
.stage.press .cap { transform: translateY(6px); transition: transform 0.06s ease-in; }
.stage.press .head { transform: rotate(3deg) translateY(2px); }
.stage.press .mouth .lips { transform: scale(1.5, 2.1); }
.stage.press .mouth .lips-in { transform: scale(2.2, 3.4); }

.stage.shake { animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(5px, -3px); }
  30%, 50%, 70% { transform: translate(-9px, 4px) rotate(-0.6deg); }
  40%, 60% { transform: translate(9px, -4px) rotate(0.6deg); }
}

.boom-ring {
  position: absolute;
  z-index: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}
.boom-ring.on { animation: ring 0.6s ease-out forwards; }
@keyframes ring {
  from { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  to { transform: translate(-50%, -50%) scale(9); opacity: 0; }
}

.fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.flash {
  position: fixed;
  inset: 0;
  z-index: 6;
  background: #fff7dc;
  opacity: 0;
  pointer-events: none;
}
.flash.on { animation: flash 0.45s ease-out; }
@keyframes flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }

.panel {
  width: min(100% - 32px, 560px);
  margin: 8px 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 4;
}

.maker label { display: block; font-weight: 600; margin-bottom: 10px; }
.row { display: flex; gap: 8px; }
input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

button {
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 0 #8f0614;
  transition: transform 0.08s, box-shadow 0.08s;
}
button:active { transform: translateY(3px); box-shadow: 0 1px 0 #8f0614; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }

.share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.share[hidden] { display: none; }
.share code {
  flex: 1 1 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.coffee {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100% - 32px, 560px);
  margin: 16px 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 221, 0, 0.35);
  border-radius: 14px;
  background: rgba(255, 221, 0, 0.07);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.coffee:hover { background: rgba(255, 221, 0, 0.13); border-color: rgba(255, 221, 0, 0.6); }
.coffee:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.coffee-cup { font-size: 28px; line-height: 1; }
.coffee-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.coffee-text span { color: var(--muted); }
.coffee-cta {
  flex: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffdd00;
  color: #1b1b1b;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .coffee { flex-wrap: wrap; }
  .coffee-cta { width: 100%; text-align: center; }
}

.ad {
  width: min(100% - 32px, 728px);
  margin: 18px 16px 0;
  text-align: center;
}
.ad-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Height reserved up front so the page does not jump when the ad arrives. */
.ad .adsbygoogle { display: block; min-height: 100px; }
@media (min-width: 760px) { .ad .adsbygoogle { min-height: 90px; } }
/* No ad served (not approved yet, no fill, blocker): hide the slot entirely. */
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

footer a, .legal-links a { color: var(--muted); }
footer a:hover, .legal-links a:hover { color: var(--ink); }
.linklike {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.linklike:active { transform: none; box-shadow: none; }

.settings-reply {
  max-width: 420px;
  margin: 10px auto 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

/* Privacy policy page */
.legal {
  width: min(100% - 32px, 680px);
  margin: 32px 16px 0;
  line-height: 1.6;
}
.legal h1 { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 44px; letter-spacing: 0.02em; margin: 16px 0 4px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal h3 { font-size: 16px; margin: 22px 0 6px; }
.legal p { margin: 0 0 12px; color: #dcdcd4; }
.legal a, .legal .linklike { color: var(--gold); }
.legal code { font-size: 0.9em; color: var(--gold); overflow-wrap: anywhere; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal .back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; }
.legal .back:hover { color: var(--ink); }
.legal-links { margin: 32px 16px; color: var(--muted); font-size: 13px; }

footer {
  margin: 22px 16px 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .target.idle .ch, .target.wobble .ch { animation: none; }
  .stage.shake { animation: none; }
}
