/* ============================================================
   MightyBad — mightybad.css
   Ported from MightyAlarm's Theme.swift: deep night gradients,
   sunrise pops, chunky rounded shapes, squishy buttons.
   ============================================================ */

:root {
  /* Palette (Theme.swift) */
  --midnight: #0e0d24;
  --twilight: #211a47;
  --plum: #3d1f6b;
  --sunrise: #ff9440;
  --hot-coral: #ff5c61;
  --lemon: #ffd959;
  --ink: #14121c;
  --iris-teal: #4dd9cc;
  --angry-red: #f23833;
  --happy-mint: #73eda0;
  --dream-lavender: #b89efa;

  /* Shape language */
  --card-radius: 28px;
  --button-radius: 22px;

  --font-round: "Baloo 2", ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-round);
  color: #fff;
  background: var(--midnight);
  min-height: 100vh;
  overflow-x: hidden;
}

/* nightSky gradient on a fixed layer (not background-attachment: fixed,
   which breaks on iOS Safari and confuses screen captures). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--twilight) 55%, var(--plum) 100%);
}

::selection { background: var(--sunrise); color: var(--ink); }

main { position: relative; z-index: 1; }

/* ============================================================
   The header — Mighty's home. A bar carries the name and nav;
   a center tab bulges out of it where the eyes hang, front and
   center. Bar + tab share his mood color (one silhouette), so
   the eyelids read as cutouts of the header itself.

   Geometry: the eyes SVG carries brow headroom, so the eyeball
   centers sit at ~66% of its height, not 50%. --eye-line is
   that eyeball centerline; the brand and nav center on it.
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none; /* children re-enable their own hits */

  /* eyeHeight 64 → svg 155×110, eyeballs 73px from its top */
  --header-h: 128px;
  --bar-h: 100px;
  --tab-w: 188px;
  --tab-h: 128px;
  --eye-top: 6px;
  --eye-line: 79px; /* eye-top + 73 */

  height: var(--header-h);
}

/* One drop-shadow around the combined bar+tab silhouette. */
.header-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.38));
  transition: filter 0.3s ease;
}

.site-header.scrolled .header-bg {
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.55));
}

/* --mood is updated per frame by header.js from the engine's lerped lid
   color, so bar, tab, and eyelids are always the exact same color. Do NOT
   add a CSS transition here — it would drift out of sync with the lids. */
.hb-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  background-color: var(--mood, #261f54);
}

.hb-tab {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--tab-w);
  height: var(--tab-h);
  border-radius: 0 0 42px 42px;
  background-color: var(--mood, #261f54);
}

.header-inner {
  position: relative;
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
}

.header-brand {
  pointer-events: auto;
  position: absolute;
  left: 24px;
  top: var(--eye-line);
  transform: translateY(-50%);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.brand-bad {
  background: linear-gradient(135deg, var(--hot-coral), var(--sunrise), var(--lemon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Front and center, hanging out of the bar in his tab. The transform
   transition animates the poke squish in BOTH directions (in + release). */
.header-eyes {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  top: var(--eye-top);
  transform: translateX(-50%) scale(var(--squish, 1));
  transform-origin: top center;
  transition: transform 0.25s cubic-bezier(0.34, 1.8, 0.64, 1);
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.header-eyes svg { display: block; overflow: visible; }

.header-nav {
  position: absolute;
  right: 24px;
  top: var(--eye-line);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-nav a {
  pointer-events: auto;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] { color: #fff; }

.header-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--sunrise);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* --- Adaptive brand contrast ---------------------------------------
   The "Bad" gradient (coral→orange→lemon) drowns in warm mood backdrops
   (mad/furious reds, proud gold). header.js measures contrast per mood
   and applies: bad-white / bad-ink (solid fill for "Bad") and
   header-dark-text (whole bar's text goes ink on bright backdrops). */

.site-header.bad-white .brand-bad,
.site-header.bad-ink .brand-bad {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.site-header.bad-white .brand-bad { color: #fff; }
.site-header.bad-ink .brand-bad { color: var(--ink); }

.site-header.header-dark-text .header-brand { color: var(--ink); }
.site-header.header-dark-text .header-nav a { color: rgba(20, 18, 28, 0.82); }
.site-header.header-dark-text .header-nav a:hover,
.site-header.header-dark-text .header-nav a[aria-current="page"] { color: var(--ink); }
.site-header.header-dark-text .nav-toggle span { background: var(--ink); }

/* --- Mobile nav toggle + menu sheet -------------------------------- */

.nav-toggle {
  pointer-events: auto;
  display: none; /* mobile only */
  position: absolute;
  left: 14px;
  top: var(--eye-line);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.8, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:active { transform: translateY(-50%) scale(0.9); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.drawer-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.drawer-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.drawer-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* The sheet slides down from behind the header bar. */
.mobile-drawer {
  position: fixed;
  top: 80px; /* the mobile --bar-h; the sheet only exists ≤640px */
  left: 0;
  right: 0;
  z-index: 95; /* under the header (z 100), so it emerges from behind it */
  background: var(--twilight);
  border-radius: 0 0 26px 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 14px 22px 20px;
  display: flex;
  flex-direction: column;
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.5, 1), visibility 0s 0.3s;
}

body.drawer-open .mobile-drawer {
  transform: none;
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.5, 1), visibility 0s 0s;
}

.mobile-drawer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  padding: 13px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.mobile-drawer a:last-of-type { border-bottom: none; }

.mobile-drawer a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--sunrise);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.drawer-fine {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 7, 20, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

body.drawer-open .drawer-backdrop {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s 0s;
}

/* Speech bubble — hangs below the header, arrow pointing up at the eyes.
   header.js sets `left` to the eyes' center. */
.mighty-bubble {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: max-content;
  max-width: 320px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  padding: 12px 18px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateX(-50%) translateY(-8px) scale(0.85);
  transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.mighty-bubble::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-bottom-color: #fff;
  border-top: none;
}

.mighty-bubble.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 80px;
}

.hero-kicker {
  font-size: 20px;
  font-weight: 700;
  color: var(--dream-lavender);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wordmark {
  font-size: clamp(64px, 13vw, 148px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 8px 0 18px;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.wordmark-bad {
  /* sunriseBurst: hotCoral → sunrise → lemon */
  background: linear-gradient(135deg, var(--hot-coral), var(--sunrise), var(--lemon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--lemon);
}

.hero-sub {
  margin-top: 22px;
  max-width: 560px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-hint {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
}

.hint-arrow {
  font-size: 22px;
  animation: hint-bounce 2s ease-in-out infinite;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ============================================================
   Buttons — SquishyButtonStyle
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-round);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 18px 32px;
  border-radius: var(--button-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s cubic-bezier(0.34, 1.8, 0.64, 1), box-shadow 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { transform: scale(1.04); }
.btn:active {
  transform: scale(0.94);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-sunrise {
  background: linear-gradient(135deg, var(--hot-coral), var(--sunrise), var(--lemon));
  color: var(--ink);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.11);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}

/* ============================================================
   Sections
   ============================================================ */

section { padding: 110px 24px; max-width: 1080px; margin: 0 auto; }

.section-title {
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
}

.section-sub {
  margin: 14px auto 0;
  max-width: 520px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* ============================================================
   Manifesto cards — ChunkyCard
   ============================================================ */

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

.chunky-card {
  padding: 32px 28px;
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.11);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease;
}

.chunky-card:hover { transform: translateY(-6px) rotate(-0.5deg); }
.card-fun:hover { border-color: var(--hot-coral); }
.card-human:hover { border-color: var(--lemon); }
.card-craft:hover { border-color: var(--iris-teal); }

.card-emoji { font-size: 44px; margin-bottom: 14px; }

.chunky-card h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.chunky-card p {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.manifesto-aside,
.workshop-aside {
  margin-top: 44px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   Workshop — featured + mystery cards
   ============================================================ */

.featured-card {
  position: relative;
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 40px 40px;
  border-radius: var(--card-radius);
  background: linear-gradient(135deg, rgba(255, 92, 97, 0.16), rgba(255, 148, 64, 0.14), rgba(255, 217, 89, 0.12));
  border: 1.5px solid rgba(255, 148, 64, 0.45);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.featured-card:hover { transform: translateY(-5px); }

.featured-badge {
  position: absolute;
  top: 20px;
  right: -34px;
  transform: rotate(35deg);
  background: linear-gradient(135deg, var(--hot-coral), var(--sunrise));
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 44px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.featured-body { flex: 1; }

.featured-name {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--hot-coral), var(--sunrise), var(--lemon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.featured-desc {
  margin-top: 10px;
  max-width: 520px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.featured-platform {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--lemon);
}

.featured-eyes { flex-shrink: 0; }

/* Mystery grid */

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

.mystery-card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--card-radius);
  background: rgba(0, 0, 0, 0.28);
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, background 0.25s ease;
  cursor: default;
}

.mystery-card:hover {
  transform: translateY(-5px) rotate(0.4deg);
  border-color: var(--dream-lavender);
  background: rgba(184, 158, 250, 0.08);
}

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

.mystery-emoji { font-size: 30px; }

.mystery-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.62);
  font-variant-ligatures: none;
}

.mystery-teaser {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
}

.mystery-soon {
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dream-lavender);
}

/* Mini eyes (featured card, footer): each sits on its own little stage
   chip painted per frame in the engine's lid color (exact cutout match). */
.mini-eyes {
  display: inline-block;
  padding: 10px 16px 12px;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.mini-eyes svg { display: block; overflow: visible; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 90px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-line {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.footer-fine {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
}

/* ============================================================
   Support page
   ============================================================ */

.page-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 170px 24px 20px;
  text-align: center;
}

.page-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-sub {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.faq { padding-top: 70px; padding-bottom: 40px; }

/* --- Form --- */

.support-form {
  max-width: 640px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dream-lavender);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-round);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--iris-teal);
  background: rgba(255, 255, 255, 0.13);
}

.form-field select option { color: var(--ink); }

.form-submit { margin-top: 4px; }
.form-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.form-note {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

/* --- The Exit Exam (human check) --- */

.exit-exam {
  border-radius: var(--card-radius);
  border: 1.5px dashed rgba(255, 217, 89, 0.5);
  background: rgba(255, 217, 89, 0.07);
  padding: 22px 24px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.exit-exam.passed {
  border-style: solid;
  border-color: var(--happy-mint);
  background: rgba(115, 237, 160, 0.1);
}

.exam-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.exam-badge {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(135deg, var(--sunrise), var(--lemon));
  padding: 5px 10px;
  border-radius: 9px;
}

.exam-title {
  font-size: 17px;
  font-weight: 800;
}

.exam-refresh {
  margin-left: auto;
  font-family: var(--font-round);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.8, 0.64, 1);
}

.exam-refresh:hover { transform: rotate(90deg) scale(1.08); }
.exam-refresh:disabled { opacity: 0.35; cursor: default; transform: none; }

.exam-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.exam-question {
  font-size: 30px;
  font-weight: 800;
  color: var(--lemon);
  min-width: 150px;
}

.exit-exam.passed .exam-question { color: var(--happy-mint); }

.exam-input {
  font-family: var(--font-round);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  width: 110px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 10px 12px;
  outline: none;
}

.exam-input:focus { border-color: var(--lemon); }

.exam-verify {
  font-size: 17px;
  padding: 12px 22px;
  flex: 0 0 auto;
}

.exam-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

/* Wrong-answer wobble — the app's WobbleModifier, in CSS. */
@keyframes exam-wobble {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(9px); }
  35% { transform: translateX(-9px); }
  55% { transform: translateX(5.5px); }
  75% { transform: translateX(-5.5px); }
}

.exit-exam.wobbling { animation: exam-wobble 0.36s ease-in-out; }

/* --- Success card --- */

.form-success {
  max-width: 640px;
  margin: 48px auto 0;
  text-align: center;
  padding: 44px 32px;
  border-radius: var(--card-radius);
  border: 1.5px solid var(--happy-mint);
  background: rgba(115, 237, 160, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

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

.form-success h3 { font-size: 24px; font-weight: 800; }

.form-success p {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   Furious screen shake
   ============================================================ */

@keyframes mighty-rage {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 2px); }
  40% { transform: translate(5px, -3px); }
  60% { transform: translate(-4px, -2px); }
  80% { transform: translate(6px, 3px); }
}

body.raging main { animation: mighty-rage 0.35s linear infinite; }

/* Red vignette while furious */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  box-shadow: inset 0 0 180px rgba(242, 56, 51, 0);
  transition: box-shadow 0.5s ease;
}

body.raging::after {
  box-shadow: inset 0 0 180px rgba(242, 56, 51, 0.55);
}

/* ============================================================
   Small screens
   ============================================================ */

/* Mobile header: [☰] MightyBad ……… 👀 — hamburger left, name beside it,
   the eyes' tab docks to the right, links move into the menu sheet. */
@media (max-width: 640px) {
  .hero { padding-top: 150px; }
  .site-header {
    /* eyeHeight 48 → svg 116×83, eyeballs 55px from its top */
    --header-h: 100px;
    --bar-h: 80px;
    --tab-w: 146px;
    --tab-h: 100px;
    --eye-line: 61px; /* eye-top + 55 */
  }
  .hb-tab {
    border-radius: 0 0 32px 32px;
    left: auto;
    right: 12px;
    transform: none;
  }
  .header-eyes {
    left: auto;
    right: 27px; /* tab right + (tab-w − svg-w) / 2 */
    transform: scale(var(--squish, 1));
  }
  .nav-toggle { display: flex; }
  .header-brand { font-size: 21px; left: 66px; }
  .header-nav { display: none; }
  .featured-card { flex-direction: column; text-align: center; }
  .featured-desc { margin-inline: auto; }
  .featured-eyes { order: -1; }
  .mighty-bubble { max-width: 250px; font-size: 14.5px; }
  .form-row { grid-template-columns: 1fr; }
  .exam-body { flex-wrap: wrap; }
}

@media (min-width: 641px) {
  .mobile-drawer, .drawer-backdrop { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint-arrow { animation: none; }
  body.raging main { animation: none; }
  .exit-exam.wobbling { animation: none; }
  .btn, .chunky-card, .mystery-card, .featured-card, .exam-refresh { transition: none; }
  .header-eyes { transition: none; }
  .mobile-drawer, .drawer-backdrop, .nav-toggle span { transition: none; }
}
