/* ==========================================================================
   CORNELIUS WIRD 20 | Handgemachter Zine / Party-Flyer Stil
   Warm Paper • Risograph Ink • Tactile Stamps • Mobile-First
   ========================================================================== */

:root {
  --paper: #f6efe2;
  --paper-card: #fffdf8;
  --paper-alt: #efe5d1;
  --ink: #1a1816;
  --ink-muted: #5a534a;
  --laser: #ff3b30;
  --laser-dark: #d9261c;
  --lime: #c9f54b;
  --blue: #2357e8;
  --yellow: #ffd23f;
  --tape: rgba(255, 224, 122, 0.72);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 14px;
  --font-display: 'Syne', system-ui, -apple-system, sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(26, 24, 22, 0.085) 1px, transparent 1px);
  background-size: 20px 20px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle paper grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.wrap-wide {
  max-width: 1040px;
}

/* ---------- Zine Top Strip ---------- */
.zine-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--paper-card);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.zine-meta .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--laser);
  margin-right: 6px;
  vertical-align: middle;
}

/* ---------- Optional Admin Sticky Note Banner ---------- */
.sticky-banner {
  position: relative;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-0.6deg);
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sticky-banner[hidden] {
  display: none;
}

/* ---------- Hero Flyer Card ---------- */
.hero-card {
  position: relative;
  background: var(--paper-card);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 34px 22px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.tape {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 126px;
  height: 26px;
  background: var(--tape);
  clip-path: polygon(
    2% 0%, 98% 2%, 100% 18%, 97% 36%, 100% 56%, 98% 78%, 100% 100%,
    2% 98%, 0% 80%, 3% 58%, 0% 34%, 2% 14%
  );
  filter: drop-shadow(0 2px 2px rgba(26, 24, 22, 0.16));
  pointer-events: none;
}

.tape-left {
  left: 34px;
  transform: rotate(-7deg);
  width: 96px;
  background: rgba(255, 218, 102, 0.78);
}

.tape-right {
  left: auto;
  right: 34px;
  transform: rotate(6deg);
  width: 96px;
  background: rgba(128, 176, 255, 0.65);
}

.tape-coral {
  background: rgba(255, 132, 120, 0.66);
}

/* Hand-drawn SVG Doodles */
.sparkle-wrap {
  position: relative;
  display: inline-block;
}

.doodle-sparkle {
  position: absolute;
  top: -18px;
  right: -24px;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.hand-note-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.doodle-arrow {
  width: 30px;
  height: 26px;
  flex-shrink: 0;
  color: var(--blue);
}

.title-underline {
  display: inline-block;
  position: relative;
}

.doodle-squiggle {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: -2px;
  color: var(--laser);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--paper-card);
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 9.5vw, 4.3rem);
  line-height: 0.96;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.highlight-20 {
  position: relative;
  display: inline-block;
  padding: 0 12px 2px;
  background: var(--lime);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--ink);
  margin-left: 4px;
}

.hero-sub {
  font-size: clamp(1.02rem, 2.8vw, 1.18rem);
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 58ch;
}

.hand-note {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--blue);
  display: inline-block;
  transform: rotate(-1.5deg);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
}

.pill-laser {
  background: var(--laser);
  color: #fff;
}

.pill-countdown {
  background: var(--yellow);
  color: var(--ink);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 22px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  background: var(--lime);
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--paper-card);
}

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

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

.btn-sm {
  font-size: 0.86rem;
  padding: 8px 14px;
  border-width: 2px;
  border-radius: 9px;
}

/* ---------- Section Headings ---------- */
.section {
  margin-bottom: 30px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 4.5vw, 1.9rem);
  margin: 0;
  letter-spacing: -0.02em;
}

/* ---------- Timeline / Ablauf Cards (Connected Rail) ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 22px;
  width: 0;
  border-left: 2.5px dashed rgba(26, 24, 22, 0.45);
}

.time-card {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.time-card::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lime);
  border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.time-card:nth-child(2)::before {
  background: var(--yellow);
}

.time-card.is-lasertag::before {
  background: var(--laser);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.22), 2px 2px 0 var(--ink);
}

.time-card.is-lasertag {
  background: #fff6f5;
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--laser);
}

.time-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--paper);
  text-align: center;
  line-height: 1.25;
}

.time-card.is-lasertag .time-badge {
  background: var(--laser);
  color: #fff;
}

.time-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
}

.time-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-muted);
}

.tag-sticker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--lime);
  color: var(--ink);
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- Info Note Grid ---------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.note-box {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.note-box.note-yellow {
  background: #fff7d6;
}

.note-box h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 7px;
}

.note-box p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ---------- Playful Mini-Game: Laser-Warmup ---------- */
.laser-toy {
  background: var(--ink);
  color: var(--paper-card);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.laser-toy-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.laser-toy-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--lime);
}

.laser-stats {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.laser-stats span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 7px;
}

.laser-arena {
  position: relative;
  height: 185px;
  border-radius: 10px;
  border: 1.5px dashed rgba(201, 245, 75, 0.45);
  background-color: #121110;
  background-image:
    linear-gradient(rgba(201, 245, 75, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 245, 75, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.laser-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.laser-overlay p {
  margin: 0;
  font-size: 0.92rem;
  color: #dfd8cc;
  max-width: 34ch;
}

.laser-target {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--laser);
  background: radial-gradient(circle, #ff6b63 0%, var(--laser) 45%, rgba(255, 59, 48, 0.15) 75%);
  box-shadow: 0 0 18px rgba(255, 59, 48, 0.8);
  cursor: crosshair;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.08s ease;
  padding: 0;
  z-index: 3;
}

.laser-target::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #fff;
}

.laser-target:active {
  transform: translate(-50%, -50%) scale(0.82);
}

.laser-pop {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--lime);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: popUp 0.45s ease-out forwards;
  z-index: 4;
}

@keyframes popUp {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 0; transform: translate(-50%, -130%) scale(1.2); }
}

/* ---------- RSVP Tear-Off Slip ("Antwort-Talon") ---------- */
.rsvp-cutline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 10px 0 14px;
}

.rsvp-cutline::after {
  content: '';
  flex: 1;
  border-top: 2px dashed var(--ink);
  opacity: 0.45;
}

.rsvp-card {
  position: relative;
  background: var(--paper-card);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow);
}

/* Ticket punch-out notches on left and right */
.rsvp-card::before,
.rsvp-card::after {
  content: '';
  position: absolute;
  top: 38px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  pointer-events: none;
}

.rsvp-card::before {
  left: -11px;
  clip-path: inset(0 0 0 45%);
}

.rsvp-card::after {
  right: -11px;
  clip-path: inset(0 45% 0 0);
}

.ticket-barcode {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px dashed rgba(26, 24, 22, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.barcode-bars {
  height: 26px;
  flex: 1;
  max-width: 220px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 9px,
    transparent 9px 11px,
    var(--ink) 11px 12px,
    transparent 12px 16px,
    var(--ink) 16px 19px,
    transparent 19px 22px
  );
  opacity: 0.82;
}

.barcode-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 6px;
}

.form-hint {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-top: 5px;
}

.input, .textarea, .select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  background: #fff;
  box-shadow: 3px 3px 0 var(--blue);
}

.textarea {
  resize: vertical;
  min-height: 84px;
}

/* Attendance Choice Tiles */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.choice-tile {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  padding: 13px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}

.choice-title {
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.25;
}

.choice-sub {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.choice-tile input:checked + .choice-box {
  background: var(--lime);
  box-shadow: var(--shadow-sm);
  transform: translate(-2px, -2px);
}

.choice-tile[data-val="lasertag"] input:checked + .choice-box {
  background: #ffd9d6;
}

.choice-tile[data-val="no"] input:checked + .choice-box {
  background: var(--paper-alt);
}

.choice-tile input:focus-visible + .choice-box {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.optional-fields {
  transition: opacity 0.2s ease;
}

.optional-fields[hidden] {
  display: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-error {
  background: #ffe0de;
  border: 2px solid var(--laser);
  color: #8f140d;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.form-error[hidden] {
  display: none;
}

/* ---------- Stamped Confirmation Ticket ---------- */
.ticket-confirm {
  position: relative;
  text-align: left;
  padding: 8px 0 4px;
}

.ticket-confirm[hidden] {
  display: none;
}

.stamp-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--laser);
  border: 3.5px solid var(--laser);
  border-radius: 10px;
  padding: 6px 16px;
  transform: rotate(-5deg);
  margin-bottom: 14px;
  animation: stampIn 0.35s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
}

.stamp-badge.is-ok {
  color: #167a32;
  border-color: #167a32;
}

@keyframes stampIn {
  0% { opacity: 0; transform: scale(1.8) rotate(-14deg); }
  100% { opacity: 1; transform: scale(1) rotate(-4deg); }
}

.ticket-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--lime);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
}

.ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 2px dashed rgba(26, 24, 22, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ==========================================================================
   ADMIN AREA STYLES
   ========================================================================== */
.admin-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.admin-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 800;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-card {
  max-width: 420px;
  margin: 48px auto;
  background: var(--paper-card);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.kpi-card.kpi-lime { background: var(--lime); }
.kpi-card.kpi-laser { background: #ffe4e2; }
.kpi-card.kpi-yellow { background: #fff5cc; }

.kpi-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: 4px;
}

.allergy-panel {
  background: #fff7d6;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.allergy-panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.allergy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.allergy-chip {
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.86rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 11px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-card);
  color: var(--ink);
  cursor: pointer;
}

.filter-btn.active {
  background: var(--ink);
  color: var(--lime);
}

.search-input {
  max-width: 260px;
  padding: 8px 12px;
  font-size: 0.92rem;
}

.guest-list {
  display: grid;
  gap: 10px;
}

.guest-card {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
}

.guest-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.guest-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}

.badge-all { background: var(--lime); }
.badge-dinner { background: var(--yellow); }
.badge-lasertag { background: #ffd9d6; }
.badge-no { background: var(--paper-alt); color: var(--ink-muted); }
.badge-code { background: var(--ink); color: #fff; }
.badge-allergy { background: #ffeceb; border-color: var(--laser); color: #9c1710; }

.guest-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.guest-msg {
  background: var(--paper);
  border-left: 3px solid var(--ink);
  padding: 7px 11px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
}

.guest-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(26, 24, 22, 0.2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.guest-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Settings Drawer/Card */
.settings-card {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.settings-card[hidden] {
  display: none;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 22, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-box {
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper-card);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 7px 7px 0 var(--ink);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 560px) {
  .hero-card {
    padding: 28px 16px 22px;
  }
  .time-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .time-badge {
    width: fit-content;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .rsvp-card {
    padding: 20px 16px;
  }
  .search-input {
    max-width: 100%;
    width: 100%;
  }
}

/* ---------- Games Showcase Card (Public) ---------- */
.games-card {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.games-group + .games-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px dashed rgba(26, 24, 22, 0.22);
}

.games-subhead {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 0 0 9px;
}

.games-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 5px 11px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--paper);
}

.game-chip.is-host {
  background: #fff7d6;
}

.game-chip.is-guest {
  background: var(--lime);
}

.games-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ---------- Edit Link Box on Confirmation Ticket ---------- */
.edit-link-box {
  margin-top: 16px;
  padding: 13px 14px;
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: 10px;
}

.edit-link-box p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.edit-link-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.edit-link-input {
  flex: 1;
  min-width: 180px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.edit-mode-banner {
  background: #e8efff;
  border: 2px solid var(--blue);
  color: #13338f;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.edit-mode-banner[hidden] {
  display: none;
}

.badge-game {
  background: #e8efff;
  border-color: var(--blue);
  color: #13338f;
}

.games-admin-panel {
  background: #e8efff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.games-admin-panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* ---------- Polaroid Photo Carousel (Public) ---------- */
.polaroid-carousel-wrap {
  position: relative;
}

.polaroid-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 18px 8px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.polaroid-track::-webkit-scrollbar {
  display: none;
}

.polaroid-card {
  position: relative;
  flex: 0 0 265px;
  scroll-snap-align: center;
  background: #fffdf9;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 10px 10px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  text-align: center;
}

@media (max-width: 560px) {
  .polaroid-card {
    flex: 0 0 82%;
  }
}

.polaroid-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.polaroid-counter {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 5px 11px;
}

.polaroid-card:nth-child(4n + 1) { transform: rotate(-1.8deg); }
.polaroid-card:nth-child(4n + 2) { transform: rotate(1.4deg); }
.polaroid-card:nth-child(4n + 3) { transform: rotate(-0.9deg); }
.polaroid-card:nth-child(4n + 4) { transform: rotate(2deg); }

.polaroid-card:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 7px 7px 0 var(--ink);
  z-index: 2;
}

.polaroid-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 78px;
  height: 22px;
  background: rgba(255, 218, 102, 0.78);
  clip-path: polygon(
    3% 0%, 97% 3%, 100% 24%, 96% 52%, 100% 78%, 97% 100%,
    3% 97%, 0% 74%, 4% 48%, 0% 22%
  );
  filter: drop-shadow(0 1px 2px rgba(26, 24, 22, 0.14));
  pointer-events: none;
}

.polaroid-card:nth-child(4n + 2) .polaroid-tape {
  transform: translateX(-50%) rotate(4deg);
  background: rgba(128, 176, 255, 0.65);
}

.polaroid-card:nth-child(4n + 3) .polaroid-tape {
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 132, 120, 0.65);
}

.polaroid-card:nth-child(4n + 4) .polaroid-tape {
  transform: translateX(-50%) rotate(3deg);
  background: rgba(196, 240, 108, 0.72);
}

/* ---------- Subtle Sticker Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s ease-out, transform 0.48s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.polaroid-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--paper-alt);
}

.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  font-family: var(--font-hand);
  font-size: 1.32rem;
  line-height: 1.15;
  color: var(--ink);
  margin: 10px 4px 0;
  min-height: 1.3em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  position: relative;
  max-width: 720px;
  width: 100%;
  background: #fffdf9;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 14px 14px 18px;
  box-shadow: 8px 8px 0 var(--ink);
  text-align: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.lightbox-caption {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  margin: 12px 0 4px;
  color: var(--ink);
}

.lightbox-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

/* ---------- Admin Photo Manager ---------- */
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-photo-item {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.admin-photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  display: block;
}

.admin-photo-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ---------- Admin Analytics Panel ---------- */
.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.analytics-kpi {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 11px 13px;
}

.analytics-kpi .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.05;
}

.analytics-kpi .lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: 3px;
}

.bar-chart-wrap {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 14px 12px 10px;
  margin-bottom: 14px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 5px;
  align-items: end;
  height: 120px;
  padding-top: 18px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}

.bar-val {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
  min-height: 1em;
}

.bar-fill {
  width: 100%;
  min-height: 3px;
  background: var(--blue);
  border: 1.5px solid var(--ink);
  border-radius: 4px 4px 0 0;
  transition: height 0.25s ease;
}

.bar-fill.is-today {
  background: var(--lime);
}

.bar-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.analytics-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.analytics-box {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
}

.analytics-box h4 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.device-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.device-bar {
  height: 10px;
  background: var(--paper-alt);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.device-bar-fill {
  height: 100%;
  background: var(--lime);
}

@media (max-width: 560px) {
  .bar-lbl {
    font-size: 0.5rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
}

/* ---------- Laser Arcade Top-5 Leaderboard ---------- */
.laser-nick-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 360px;
  margin: 4px 0 6px;
}

.laser-nick-form[hidden] {
  display: none;
}

.laser-nick-form .input {
  flex: 1 1 150px;
  padding: 8px 11px;
  font-size: 0.9rem;
  background: var(--paper-card);
  color: var(--ink);
}

.laser-leaderboard {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
}

.laser-leaderboard[hidden] {
  display: none;
}

.laser-lb-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yellow);
  margin-bottom: 6px;
}

.laser-lb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.laser-lb-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.laser-lb-rank {
  text-align: center;
  font-weight: 700;
}

.laser-lb-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.laser-lb-score {
  color: var(--lime);
  font-weight: 700;
}

/* ---------- After-Party Card ---------- */
.afterparty-card {
  position: relative;
  background: var(--paper-card);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
  box-shadow: var(--shadow);
}

/* ---------- Admin Duplicate Badge ---------- */
.badge-duplicate {
  margin-left: 8px;
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
  font-size: 0.72rem;
  vertical-align: middle;
}

/* ---------- Clickable 20! Easter Egg ---------- */
#easter20 {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s cubic-bezier(0.22, 1.4, 0.36, 1);
}

#easter20:hover {
  transform: rotate(-5deg) scale(1.06);
}

#easter20.is-popping {
  animation: pop20 0.38s cubic-bezier(0.22, 1.5, 0.36, 1);
}

@keyframes pop20 {
  0% { transform: rotate(-3deg) scale(1); }
  40% { transform: rotate(5deg) scale(1.18); }
  100% { transform: rotate(-3deg) scale(1); }
}

.easter-pop {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--lime);
  padding: 4px 9px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 20;
  animation: easterFloat 0.95s ease-out forwards;
}

@keyframes easterFloat {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(0.85); }
  20% { opacity: 1; transform: translate(-50%, -4px) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -26px) scale(0.95); }
}

/* ---------- Zine Marquee Ticker ---------- */
.zine-marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 9px;
  padding: 7px 0;
  margin: -6px 0 28px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-0.7deg);
}

.zine-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}

.zine-marquee:hover .zine-marquee-track {
  animation-play-state: paused;
}

.zine-marquee-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 12px;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .zine-marquee-track {
    animation: none;
  }
}

/* ---------- Playful Corner Stickers ---------- */
.games-card,
.laser-toy {
  position: relative;
}

.corner-sticker {
  position: absolute;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
  z-index: 4;
  transition: transform 0.2s cubic-bezier(0.22, 1.4, 0.36, 1);
  user-select: none;
}

.sticker-tr {
  top: -14px;
  right: -10px;
  transform: rotate(10deg);
}

.sticker-tl {
  top: -14px;
  left: -10px;
  transform: rotate(-10deg);
  background: var(--lime);
}

.corner-sticker:hover,
.time-card:hover .corner-sticker,
.games-card:hover .corner-sticker,
.laser-toy:hover .corner-sticker {
  animation: stickerWiggle 0.45s ease;
}

@keyframes stickerWiggle {
  0% { transform: rotate(10deg) scale(1); }
  30% { transform: rotate(-14deg) scale(1.16); }
  65% { transform: rotate(16deg) scale(1.1); }
  100% { transform: rotate(10deg) scale(1); }
}

/* ---------- Laser Sound Button & Golden Bonus Target ---------- */
.laser-sound-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 7px;
  padding: 2px 7px;
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.laser-sound-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.laser-target.is-gold {
  background: radial-gradient(circle at 35% 35%, #fff6b3, #ffd23f 55%, #f59e0b 100%);
  border-color: #fff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.38), 0 0 18px rgba(255, 210, 63, 0.9);
  animation: goldPulse 0.45s ease-in-out infinite alternate;
}

@keyframes goldPulse {
  from { transform: translate(-50%, -50%) scale(0.96); }
  to { transform: translate(-50%, -50%) scale(1.12); }
}

.laser-pop.is-gold {
  color: var(--yellow);
  font-size: 1.15rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

/* ---------- Ticket Cutout Notches & Stamp Slam ---------- */
.rsvp-notch {
  position: absolute;
  top: 52px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  pointer-events: none;
  z-index: 3;
}

.rsvp-notch-left {
  left: -14px;
  clip-path: inset(0 0 0 45%);
}

.rsvp-notch-right {
  right: -14px;
  clip-path: inset(0 45% 0 0);
}

.stamp-badge.is-slamming {
  animation: stampSlam 0.48s cubic-bezier(0.22, 1.35, 0.36, 1) both;
}

@keyframes stampSlam {
  0% {
    opacity: 0;
    transform: scale(2.15) rotate(-14deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.92) rotate(-4deg);
  }
  82% {
    transform: scale(1.05) rotate(-6deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-5deg);
  }
}

/* ---------- Playful RSVP Choice Tile Micro-Reactions ---------- */
.choice-tile.is-reacting[data-val="all"] .choice-box {
  animation: tilePop 0.34s cubic-bezier(0.22, 1.5, 0.36, 1);
}

.choice-tile.is-reacting[data-val="dinner"] .choice-box {
  animation: tilePop 0.34s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.choice-tile.is-reacting[data-val="lasertag"] .choice-box {
  animation: tileLaserFlash 0.38s ease;
}

.choice-tile.is-reacting[data-val="no"] .choice-box {
  animation: tileWobble 0.4s ease;
}

@keyframes tilePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.05) rotate(-1deg); }
  100% { transform: scale(1); }
}

@keyframes tileLaserFlash {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
  45% { transform: scale(1.04); box-shadow: 0 0 0 7px rgba(255, 59, 48, 0); }
  100% { transform: scale(1); }
}

@keyframes tileWobble {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px) rotate(-1deg); }
  60% { transform: translateX(4px) rotate(1deg); }
}

/* ---------- Risograph Blobs & Zine Doodles Background ---------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.bg-blob-lime {
  width: min(56vw, 520px);
  height: min(56vw, 520px);
  top: -120px;
  left: -130px;
  background: radial-gradient(circle, rgba(201, 245, 75, 0.42) 0%, rgba(201, 245, 75, 0.14) 48%, rgba(201, 245, 75, 0) 72%);
}

.bg-blob-yellow {
  width: min(60vw, 560px);
  height: min(60vw, 560px);
  top: 24vh;
  right: -180px;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.42) 0%, rgba(255, 210, 63, 0.14) 48%, rgba(255, 210, 63, 0) 72%);
}

.bg-blob-laser {
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  bottom: -110px;
  left: -110px;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.24) 0%, rgba(255, 59, 48, 0.08) 48%, rgba(255, 59, 48, 0) 72%);
}

.bg-blob-blue {
  width: min(50vw, 460px);
  height: min(50vw, 460px);
  bottom: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(35, 87, 232, 0.22) 0%, rgba(35, 87, 232, 0.07) 48%, rgba(35, 87, 232, 0) 72%);
}

.bg-doodle {
  position: absolute;
  opacity: 0.34;
  will-change: transform;
  animation: doodleDrift 9s ease-in-out infinite alternate;
}

.bg-d1 {
  width: 54px;
  top: 10vh;
  left: 5vw;
  animation-duration: 8.5s;
}

.bg-d2 {
  width: 96px;
  top: 18vh;
  right: 4vw;
  animation-duration: 10.5s;
  animation-delay: -2s;
}

.bg-d3 {
  width: 44px;
  top: 46vh;
  left: 3.5vw;
  animation-duration: 9.5s;
  animation-delay: -3.5s;
}

.bg-d4 {
  width: 56px;
  top: 52vh;
  right: 5vw;
  animation-duration: 11s;
  animation-delay: -1.5s;
}

.bg-d5 {
  width: 36px;
  top: 76vh;
  left: 7vw;
  animation-duration: 8s;
  animation-delay: -4s;
}

.bg-d6 {
  width: 46px;
  top: 82vh;
  right: 7vw;
  animation-duration: 9s;
  animation-delay: -2.5s;
}

.bg-d7 {
  width: 62px;
  top: 32vh;
  left: 8vw;
  animation-duration: 12s;
  animation-delay: -5s;
}

.bg-d8 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.3rem;
  color: transparent;
  -webkit-text-stroke: 2px rgba(26, 24, 22, 0.42);
  top: 67vh;
  right: 3vw;
  opacity: 0.42;
  animation-duration: 10s;
  animation-delay: -3s;
}

@keyframes doodleDrift {
  0% { margin-top: 0; rotate: -5deg; }
  100% { margin-top: -14px; rotate: 7deg; }
}

@media (max-width: 960px) {
  .bg-doodle {
    opacity: 0.22;
  }
  .bg-d7,
  .bg-d8 {
    display: none;
  }
  .bg-d1 { width: 40px; left: 2vw; top: 6vh; }
  .bg-d2 { width: 72px; right: 1vw; top: 14vh; }
  .bg-d3 { width: 34px; left: 1vw; top: 44vh; }
  .bg-d4 { width: 42px; right: 2vw; top: 54vh; }
  .bg-d5 { width: 28px; left: 3vw; top: 82vh; }
  .bg-d6 { width: 36px; right: 2vw; top: 86vh; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-doodle {
    animation: none;
  }
}
