:root {
  color-scheme: light;
  --ink: #070707;
  --red: #d91f18;
  --paper: #f8f7f2;
  --paper-warm: #f3f0e8;
  --pencil: #878787;
  --muted: #363636;
  --ghost: rgba(7, 7, 7, 0.28);
  --line: #070707;
  --card: #fffef9;
  --shade: rgba(7, 7, 7, 0.05);
  --max: 650px;
  --home-max: 1020px;
  --header-h: 58px;
  --hand: "Comic Sans MS", "Segoe Print", "Bradley Hand ITC", "Marker Felt", cursive;
  --ui: Arial, Helvetica, sans-serif;
  --scribble-shadow: 1px 1px 0 rgba(7, 7, 7, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

html::before {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  height: 9px;
  pointer-events: none;
  background: var(--paper);
  content: "";
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 4%, rgba(255, 255, 255, 0.92), transparent 34rem),
    linear-gradient(105deg, rgba(7, 7, 7, 0.028) 0 1px, transparent 1px 10px),
    var(--paper);
  font-family: var(--hand);
  font-size: 16px;
  line-height: 1.42;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

body::before {
  position: fixed;
  inset: 4px;
  z-index: 100;
  pointer-events: none;
  border: 4px solid var(--line);
  border-radius: 6px 10px 7px 5px / 5px 8px 6px 10px;
  box-shadow:
    inset 0 0 0 1px rgba(7, 7, 7, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(7, 7, 7, 0.16) 49%, transparent 52%),
    radial-gradient(rgba(7, 7, 7, 0.15) 0.7px, transparent 0.7px);
  background-size: 18px 18px, 5px 5px;
  mix-blend-mode: multiply;
  content: "";
}

a {
  color: inherit;
  font-weight: 900;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.stat strong,
.metric strong,
.tier-name {
  letter-spacing: 0;
  line-height: 1.04;
}

.chud-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  overflow: hidden;
  padding: 5px max(18px, calc((100vw - var(--home-max)) / 2));
  border-bottom: 0;
  background: rgba(248, 247, 242, 0.96);
  backdrop-filter: blur(8px);
}

.chud-header::before {
  position: absolute;
  bottom: -4px;
  left: 42px;
  z-index: 1;
  width: 68px;
  height: 68px;
  background: url("/assets/am-i-a-chud/chud-face.webp") center bottom / contain no-repeat;
  content: "";
  pointer-events: none;
}

.chud-header::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  z-index: 2;
  height: 4px;
  background: var(--line);
  content: "";
  pointer-events: none;
}

.route-home .chud-header {
  display: none;
}

.chud-brand,
.chud-nav,
.chud-footer,
.footer-links,
.footer-brand {
  display: flex;
  align-items: center;
}

.chud-header > * {
  position: relative;
  z-index: 3;
}

.chud-brand {
  grid-column: 2;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 950;
  text-decoration: none;
}

.header-logo-art {
  width: 280px;
  height: 56px;
  object-fit: contain;
  object-position: center;
  user-select: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  font-weight: 950;
  line-height: 1;
}

.chud-brand i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: var(--red);
}

.chud-nav {
  grid-column: 3;
  justify-self: end;
  gap: 18px;
  font-size: 0.86rem;
}

.chud-nav a,
.footer-links a {
  position: relative;
  display: inline-flex;
  transform-origin: center;
  text-decoration: none;
  transition: color 0.14s ease, transform 0.14s ease, text-decoration-color 0.14s ease;
}

.chud-nav a[aria-current="page"],
.footer-links a[aria-current="page"],
.footer-primary {
  color: var(--red);
  text-decoration: underline;
}

.chud-nav a:hover,
.footer-links a:hover {
  color: var(--red);
  text-decoration: underline;
  transform: translateY(-2px) rotate(-1deg) scale(1.06);
}

.chud-nav a:active,
.footer-links a:active {
  transform: translateY(1px) scale(0.98);
}

.chud-app {
  width: min(var(--max), calc(100% - 28px));
  min-height: calc(100vh - var(--header-h) - 76px);
  margin: 0 auto;
  padding: 30px 0 64px;
}

.route-quiz .chud-app {
  padding-top: 12px;
}

.route-home {
  display: grid;
  grid-template-rows: 1fr auto;
}

.route-home .chud-app {
  width: min(var(--home-max), calc(100% - 44px));
  min-height: auto;
  padding: 28px 0 22px;
}

.loading-view {
  display: grid;
  min-height: 40vh;
  place-items: center;
  text-align: center;
}

.loading-mark {
  width: 42px;
  height: 42px;
  border: 4px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.home-sheet {
  display: grid;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

img {
  display: block;
  max-width: 100%;
}

.official-test-art {
  width: min(370px, 54vw);
  height: auto;
  margin: 0 auto;
  user-select: none;
}

.official-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  min-width: min(380px, 100%);
  padding: 6px 20px;
  border: 4px solid var(--line);
  border-radius: 999px 880px 940px 760px / 760px 930px 740px 880px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: clamp(0.9rem, 1.8vw, 1.12rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-0.4deg);
}

.pill-star {
  color: var(--red);
  font-size: 1.2rem;
  line-height: 1;
}

.tiny-head,
.footer-face,
.sketch-chud-face,
.ad-ghost,
.dinner-doodle {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.tiny-head {
  width: 28px;
  height: 30px;
  border: 3px solid var(--line);
  border-radius: 35% 35% 40% 44% / 26% 32% 48% 52%;
  background:
    linear-gradient(var(--line), var(--line)) 7px 12px / 5px 2px no-repeat,
    linear-gradient(var(--line), var(--line)) 17px 12px / 5px 2px no-repeat,
    linear-gradient(var(--line), var(--line)) 10px 21px / 10px 2px no-repeat,
    #fff;
}

.tiny-head::before {
  position: absolute;
  top: -5px;
  right: 2px;
  left: 1px;
  height: 8px;
  border-radius: 50% 45% 0 0;
  background: var(--line);
  content: "";
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 620px) 170px;
  gap: 12px;
  align-items: start;
  width: 100%;
  margin: 8px 0 6px;
  padding: 0;
  color: var(--ink);
  text-align: center;
}

.hero-copy {
  width: 100%;
}

.logo-art {
  width: min(620px, 100%);
  height: auto;
  margin: 0 auto 0;
  user-select: none;
}

.scribble-title {
  margin: 8px 0 4px;
  font-family: var(--hand);
  font-size: clamp(4.2rem, 5.35vw, 5.95rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.92;
  text-shadow: var(--scribble-shadow);
  white-space: nowrap;
}

.scribble-title span {
  color: var(--red);
}

.hero p {
  width: min(580px, 100%);
  margin: -5px auto 7px;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.95vw, 1.36rem);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: var(--scribble-shadow);
}

.hero-actions,
.actions,
.result-actions,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-actions {
  margin: 8px 0 4px;
}

.fine-print {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.hero .fine-print {
  margin-top: 0;
  font-size: 0.95rem;
}

.start-test-art-link {
  display: inline-block;
  width: min(330px, 78%);
  transform-origin: center;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.start-test-inline {
  width: min(330px, 100%);
  margin-top: 14px;
}

.start-test-art-link:hover {
  filter: brightness(1.04);
  transform: translateY(-2px) scale(1.045);
}

.start-test-art-link:active {
  transform: translateY(2px) scale(0.99);
}

.start-test-art {
  width: 100%;
  height: auto;
  user-select: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  min-width: 160px;
  padding: 11px 22px;
  border: 4px solid var(--line);
  border-radius: 7px 10px 6px 9px / 8px 6px 9px 6px;
  box-shadow: 0 5px 0 var(--line);
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 0 var(--line);
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--line);
}

.button-primary {
  background: var(--red);
  color: #fff;
}

.button-primary:hover {
  background: #e72d26;
}

.button-secondary {
  background: var(--ink);
  color: var(--card);
}

.button-quiet {
  background: var(--card);
}

.button-link {
  min-width: auto;
  min-height: auto;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  text-decoration: underline;
}

.button-link:hover,
.button-link:active {
  transform: none;
  box-shadow: none;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
}

.route-home .button-primary {
  min-width: min(330px, 100%);
  min-height: 58px;
  padding: 10px 28px 11px;
  border-radius: 6px 8px 7px 9px / 9px 6px 10px 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(7, 7, 7, 0.08)),
    var(--red);
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 1.8rem);
  line-height: 1;
  text-shadow: 1px 2px 0 rgba(7, 7, 7, 0.42);
}

.hero-doodle {
  min-height: 188px;
}

.hero-doodle-left {
  display: grid;
  justify-items: end;
  padding-top: 24px;
}

.hero-doodle-right {
  display: grid;
  justify-items: start;
  padding-top: 18px;
}

.hero-doodle img {
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.hero-doodle-left img {
  width: min(145px, 100%);
  transform: rotate(-2deg);
}

.hero-doodle-right img {
  width: min(100px, 100%);
  transform: rotate(9deg);
}

.sketch-chud-face {
  width: 112px;
  height: 128px;
  border: 4px solid var(--line);
  border-top-width: 8px;
  border-radius: 39% 37% 43% 42% / 30% 30% 54% 58%;
  background:
    linear-gradient(8deg, transparent 41%, var(--line) 42% 44%, transparent 45%) 27px 45px / 22px 12px no-repeat,
    linear-gradient(-8deg, transparent 41%, var(--line) 42% 44%, transparent 45%) 64px 45px / 22px 12px no-repeat,
    linear-gradient(var(--line), var(--line)) 38px 80px / 34px 4px no-repeat,
    linear-gradient(90deg, transparent 0 38px, var(--line) 38px 42px, transparent 42px) 0 58px / 100% 20px no-repeat,
    radial-gradient(circle at 34px 52px, var(--line) 0 3px, transparent 4px),
    radial-gradient(circle at 72px 52px, var(--line) 0 3px, transparent 4px),
    #fff;
  transform: rotate(-3deg);
}

.sketch-chud-face::before {
  position: absolute;
  top: -16px;
  right: 13px;
  left: 8px;
  height: 26px;
  border-radius: 48% 42% 0 0;
  background: var(--line);
  transform: rotate(1deg);
  content: "";
}

.sketch-chud-face::after {
  position: absolute;
  top: 46px;
  left: 21px;
  width: 67px;
  height: 20px;
  border: 3px solid var(--line);
  border-right-width: 2px;
  border-left-width: 2px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 48%, var(--line) 48% 52%, transparent 52%),
    transparent;
  content: "";
}

.hero-doodle-left .sketch-chud-face {
  width: 118px;
  height: 136px;
  margin-right: 4px;
}

.chud-can {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 118px;
  margin: 42px 0 0 12px;
  border: 4px solid var(--line);
  border-radius: 12px 9px 12px 9px / 9px 13px 8px 12px;
  background:
    linear-gradient(100deg, transparent 0 42%, rgba(7, 7, 7, 0.13) 43% 48%, transparent 49%),
    #fff;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 950;
  line-height: 1.05;
  transform: rotate(12deg);
}

.chud-can::before,
.chud-can::after {
  position: absolute;
  right: 10px;
  left: 10px;
  height: 6px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: #fff;
  content: "";
}

.chud-can::before {
  top: -6px;
}

.chud-can::after {
  bottom: -6px;
}

.steam {
  position: absolute;
  width: 22px;
  height: 48px;
  border-left: 4px solid var(--line);
  border-radius: 50%;
  opacity: 0.9;
}

.steam-one {
  top: 4px;
  left: 37px;
  transform: rotate(10deg);
}

.steam-two {
  top: 0;
  left: 64px;
  height: 54px;
  transform: rotate(-2deg);
}

.steam-three {
  top: 12px;
  left: 93px;
  height: 38px;
  transform: rotate(15deg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(650px, 100%);
  margin: -16px auto 28px;
}

.info-boxes-art {
  width: min(650px, 100%);
  height: auto;
  margin: -4px auto 12px;
  user-select: none;
}

.what-box-picture {
  display: block;
  width: min(930px, 100%);
  height: auto;
  margin: 0 auto;
}

.what-box-art {
  width: 100%;
  height: auto;
  user-select: none;
}

.stat,
.panel,
.question-card,
.result-band,
.checkout-box,
.report-section,
.notice {
  border: 4px solid var(--line);
  border-radius: 8px 12px 9px 7px / 10px 8px 11px 8px;
  background:
    repeating-linear-gradient(153deg, transparent 0 8px, rgba(7, 7, 7, 0.035) 8px 10px),
    var(--card);
}

.stat {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 14px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 950;
  line-height: 0.9;
}

.stat span {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.ad-slot {
  position: relative;
  display: grid;
  width: min(920px, 100%);
  min-height: 122px;
  place-items: center;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px dashed var(--line);
  border-radius: 8px 10px 7px 9px / 8px 7px 10px 8px;
  background:
    repeating-linear-gradient(150deg, transparent 0 9px, rgba(7, 7, 7, 0.035) 9px 12px),
    rgba(255, 255, 255, 0.54);
  color: var(--pencil);
  text-align: center;
}

.ad-label {
  position: absolute;
  top: 8px;
  left: 50%;
  color: var(--red);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.ad-copy {
  color: var(--pencil);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sketch-ad-small {
  min-height: 102px;
  margin-bottom: 0;
}

.ad-ghost {
  position: absolute;
  bottom: 16px;
  width: 76px;
  height: 78px;
  border: 4px solid var(--ghost);
  border-top-width: 8px;
  border-radius: 42% 39% 46% 44% / 34% 34% 54% 56%;
  background:
    linear-gradient(var(--ghost), var(--ghost)) 23px 50px / 28px 3px no-repeat,
    radial-gradient(circle at 25px 33px, var(--ghost) 0 3px, transparent 4px),
    radial-gradient(circle at 50px 33px, var(--ghost) 0 3px, transparent 4px);
  opacity: 0.72;
}

.ad-ghost::before {
  position: absolute;
  top: -13px;
  right: 8px;
  left: 7px;
  height: 20px;
  border-radius: 48% 44% 0 0;
  background: var(--ghost);
  content: "";
}

.ad-ghost-left {
  left: 44px;
  transform: rotate(-6deg);
}

.ad-ghost-right {
  right: 72px;
  transform: rotate(10deg);
}

.ad-ghost-right::after {
  position: absolute;
  right: -25px;
  bottom: 27px;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--ghost);
  transform: rotate(-13deg);
  content: "";
}

.what-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 166px;
  gap: 18px;
  align-items: center;
  width: min(930px, 100%);
  min-height: 138px;
  margin: 0 auto 20px;
  padding: 12px 20px;
  border: 5px solid var(--line);
  border-radius: 11px 8px 10px 9px / 8px 11px 7px 10px;
  background:
    repeating-linear-gradient(156deg, transparent 0 9px, rgba(7, 7, 7, 0.025) 9px 11px),
    rgba(255, 255, 255, 0.72);
}

.what-face {
  width: 86px;
  height: 98px;
  justify-self: center;
}

.what-copy {
  text-align: left;
}

.what-copy h2 {
  display: inline-block;
  margin: 0 0 8px;
  border-bottom: 4px solid var(--red);
  font-size: clamp(1.58rem, 2.7vw, 1.92rem);
  font-weight: 950;
  line-height: 1.04;
}

.what-copy p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.94rem, 1.2vw, 1.02rem);
  font-weight: 850;
  line-height: 1.24;
}

.dinner-doodle {
  width: 158px;
  height: 104px;
  transform: scale(0.9);
  transform-origin: center right;
}

.dinner-doodle::before {
  position: absolute;
  right: 52px;
  top: 0;
  width: 64px;
  height: 62px;
  border: 4px solid var(--line);
  border-radius: 48% 44% 42% 42%;
  background:
    linear-gradient(var(--line), var(--line)) 20px 40px / 24px 3px no-repeat,
    radial-gradient(circle at 20px 26px, var(--line) 0 3px, transparent 4px),
    radial-gradient(circle at 42px 25px, var(--line) 0 3px, transparent 4px),
    #fff;
  content: "";
}

.dinner-doodle::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 150px;
  height: 37px;
  border: 4px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, transparent 0 42%, var(--red) 43% 52%, transparent 53%),
    #fff;
  content: "";
}

.dinner-doodle i,
.dinner-doodle b,
.dinner-doodle em {
  position: absolute;
  display: block;
}

.dinner-doodle i {
  right: 31px;
  bottom: 42px;
  width: 94px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  transform: rotate(2deg);
}

.dinner-doodle b {
  right: 77px;
  top: 58px;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  transform: rotate(-24deg);
}

.dinner-doodle em {
  right: 55px;
  top: 10px;
  width: 54px;
  height: 44px;
  border-left: 4px solid var(--line);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.panel {
  padding: 22px;
}

.panel h2,
.legal-view h1,
.page-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5.4vw, 2.65rem);
  font-weight: 950;
}

.panel p,
.legal-view p,
.page-heading p {
  color: var(--muted);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.mini-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: grid;
  gap: 3px;
  padding: 13px 0;
  border-bottom: 2px solid rgba(8, 8, 8, 0.12);
}

.mini-list li:last-child {
  border-bottom: 0;
}

.mini-list strong {
  font-size: 1rem;
}

.page-heading {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
}

.quiz-heading {
  gap: 0;
  margin-bottom: 0;
}

.quiz-title-art {
  width: min(370px, 100%);
  height: auto;
  object-fit: contain;
  object-position: center;
  margin-bottom: 0;
  user-select: none;
}

.page-heading p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 950;
  line-height: 1.35;
}

.quiz-toolbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 13px max(14px, calc((100vw - var(--max)) / 2));
  border-top: 0;
  background: var(--paper);
  backdrop-filter: blur(10px);
}

.quiz-toolbar::before {
  position: absolute;
  top: 0;
  right: 8px;
  left: 8px;
  height: 4px;
  background: var(--line);
  content: "";
  pointer-events: none;
}

.progress-shell {
  display: grid;
  gap: 7px;
  min-width: 0;
  justify-self: start;
}

.progress-copy {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
  gap: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.progress-copy span {
  align-self: flex-start;
}

.progress-count {
  color: var(--ink);
  font-size: 2.25rem;
  font-weight: 950;
  line-height: 1;
}

.progress-track {
  display: none;
  height: 9px;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #dedbd2;
}

.score-art-button {
  display: inline-grid;
  width: min(240px, 100%);
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  justify-self: end;
  transform-origin: center;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.score-art-button:hover {
  filter: brightness(1.04);
  transform: translateY(-2px) scale(1.045);
}

.score-art-button:active {
  transform: translateY(2px) scale(0.99);
}

.score-art-button img {
  width: 100%;
  height: auto;
  user-select: none;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: repeating-linear-gradient(-45deg, var(--red) 0 8px, #f06b61 8px 16px);
  transition: width 0.18s ease;
}

.category {
  margin: 18px 0;
}

.category:first-of-type {
  margin-top: 10px;
}

.category-title {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  margin: 0 0 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.category-title img {
  width: auto;
  max-width: min(360px, 100%);
  height: 44px;
  object-fit: contain;
  object-position: left center;
  user-select: none;
}

.question-list {
  display: grid;
  gap: 7px;
}

.question-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: 58px;
  padding: 10px 22px 10px clamp(48px, 9vw, 72px);
  border: 0;
  border-radius: 0;
  background: url("/assets/am-i-a-chud/answer-not-selected.webp") center / 100% 100% no-repeat;
  box-shadow: none;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}

.question-card:hover {
  filter: brightness(1.02);
  transform: translateY(-1px) scale(1.004);
}

.question-card:has(input:checked) {
  background-image: url("/assets/am-i-a-chud/answer-selected-new.webp");
}

.question-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.question-card span {
  min-width: 0;
  font-size: clamp(0.9rem, 1.5vw, 1.03rem);
  font-weight: 950;
  line-height: 1.2;
}

.route-results .chud-app {
  width: min(920px, calc(100% - 28px));
}

.result-layout {
  display: grid;
  gap: 18px;
}

.result-score-card,
.checkout-art-card,
.share-art-card {
  position: relative;
  width: 100%;
}

.result-score-card {
  container-type: inline-size;
  --result-badge-top: 2%;
  --result-badge-left: 50%;
  --result-badge-height: 55%;
  --result-badge-max-width: 60%;
  --result-diagnosis-side: 10.1%;
  --result-diagnosis-bottom: 7.8%;
  --result-diagnosis-x: 0%;
  --result-diagnosis-font-size: clamp(0.78rem, 2.56cqw, 1.26rem);
}

.checkout-art-stage {
  position: relative;
  width: 100%;
}

.result-score-art,
.checkout-art,
.share-box-art {
  width: 100%;
  height: auto;
  user-select: none;
}

.checkout-art {
  position: relative;
  display: block;
  z-index: 2;
  pointer-events: none;
}

.result-tier-badge-art {
  position: absolute;
  top: var(--result-badge-top);
  left: var(--result-badge-left);
  z-index: 2;
  width: auto;
  height: var(--result-badge-height);
  max-width: var(--result-badge-max-width);
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%);
  user-select: none;
}

.result-score-value {
  position: absolute;
  top: 74.2%;
  z-index: 3;
  width: 22%;
  color: var(--ink);
  font-size: clamp(1.9rem, 8.2cqw, 3.8rem);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%);
}

.result-score-value-chud {
  left: 28.3%;
}

.result-score-value-non {
  left: 73.3%;
}

.result-score-diagnosis {
  position: absolute;
  right: var(--result-diagnosis-side);
  bottom: var(--result-diagnosis-bottom);
  left: var(--result-diagnosis-side);
  margin: 0;
  color: var(--ink);
  max-height: 10%;
  overflow: hidden;
  font-size: var(--result-diagnosis-font-size);
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
  transform: translateX(var(--result-diagnosis-x));
}

.result-tuner {
  position: fixed;
  top: 82px;
  right: 14px;
  z-index: 120;
  display: grid;
  gap: 12px;
  width: min(330px, calc(100vw - 28px));
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 14px;
  border: 4px solid var(--line);
  border-radius: 9px 7px 11px 8px / 7px 11px 8px 10px;
  background: var(--paper);
  box-shadow: 0 5px 0 var(--line);
  font-family: var(--hand);
}

.result-tuner h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 950;
}

.result-tuner p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
}

.result-tuner label {
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 950;
}

.result-tuner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result-tuner output {
  min-width: 54px;
  text-align: right;
}

.result-tuner input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

.result-tuner-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
  background: var(--paper);
}

.result-tuner .button {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 7px 10px;
  border-width: 3px;
  box-shadow: 0 3px 0 var(--line);
  font-size: 0.82rem;
}

.checkout-email-input {
  position: absolute;
  top: 59.4%;
  right: 6.9%;
  left: 6.9%;
  z-index: 1;
  height: 14.2%;
  min-height: 0;
  padding: 0 3.2%;
  border: 0;
  outline: 0;
  background: rgba(248, 247, 242, 0.96);
  color: var(--ink);
  font-family: var(--hand);
  font-size: clamp(1.45rem, 4.3vw, 3.05rem);
  font-weight: 950;
}

.checkout-email-input::placeholder {
  color: rgba(7, 7, 7, 0.54);
  opacity: 1;
}

.checkout-pay-wrap {
  position: absolute;
  right: 6.1%;
  bottom: 6.4%;
  left: 6.1%;
  z-index: 3;
  height: 16.7%;
  transform-origin: center;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.checkout-pay-wrap:hover {
  filter: brightness(1.04);
  transform: translateY(-2px) scale(1.012);
}

.checkout-pay-art {
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

#paypal-buttons.paypal-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  opacity: 0.01;
}

#paypal-buttons.paypal-overlay > * {
  width: 100% !important;
  min-width: 100% !important;
}

.payment-status {
  margin: 7px 0 0;
  color: var(--ink);
  font-weight: 950;
  text-align: center;
}

.share-card-actions {
  position: absolute;
  right: 5.6%;
  bottom: 11.6%;
  left: 5.6%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.7%;
}

.share-art-button {
  display: grid;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: center;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.share-art-button:hover {
  filter: brightness(1.04);
  transform: translateY(-2px) scale(1.018);
}

.share-art-button:active {
  transform: translateY(2px) scale(0.99);
}

.share-art-button img {
  width: 100%;
  height: auto;
  user-select: none;
}

.report {
  display: grid;
  gap: 18px;
}

.report-section {
  padding: 22px;
}

.report-section h2 {
  margin-bottom: 16px;
  font-size: 1.65rem;
  font-weight: 950;
}

.breakdown-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breakdown-item {
  display: grid;
  gap: 8px;
}

.breakdown-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.bar-track {
  height: 14px;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #dedbd2;
}

.bar-fill {
  width: 0%;
  height: 100%;
  background: repeating-linear-gradient(-45deg, var(--red) 0 8px, #f06b61 8px 16px);
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.symptom {
  min-height: 112px;
  padding: 14px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.symptom strong {
  display: block;
  margin-bottom: 8px;
}

.certificate {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 5px double var(--line);
  background:
    repeating-linear-gradient(153deg, transparent 0 8px, rgba(7, 7, 7, 0.04) 8px 10px),
    var(--card);
  text-align: center;
}

.certificate b {
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1;
}

.certificate p {
  margin: 0;
}

.certificate-report-section {
  padding: 18px;
}

.certificate-art {
  position: relative;
  container-type: inline-size;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1491 / 1055;
  border-radius: 8px;
  background: #ffffff;
}

.certificate-base-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
}

.certificate-tier-badge {
  position: absolute;
  top: 31.5%;
  left: 50%;
  z-index: 2;
  width: auto;
  height: 29%;
  max-width: 22%;
  object-fit: contain;
  transform: translateX(-50%);
  user-select: none;
}

.certificate-field {
  position: absolute;
  z-index: 3;
  overflow: hidden;
  color: var(--ink);
  font-weight: 950;
  line-height: 1.04;
  text-align: center;
  text-overflow: ellipsis;
  text-wrap: balance;
}

.certificate-email,
.certificate-date {
  top: 40.1%;
  width: 24.8%;
  white-space: nowrap;
  font-size: clamp(0.54rem, 1.82cqw, 1.68rem);
}

.certificate-email {
  left: 7.9%;
}

.certificate-date {
  right: 7.8%;
}

.certificate-score {
  top: 54.4%;
  width: 23%;
  font-size: clamp(1.35rem, 5.05cqw, 4.7rem);
  line-height: 0.9;
  transform: translateY(-50%);
}

.certificate-score-chud {
  left: 11.3%;
}

.certificate-score-non {
  right: 11.2%;
}

.certificate-tier {
  top: 62.8%;
  left: 27.5%;
  width: 45%;
  font-size: clamp(0.72rem, 2.62cqw, 2.42rem);
  white-space: nowrap;
}

.certificate-result {
  top: 73.4%;
  left: 14.8%;
  width: 70.4%;
  max-height: 7%;
  font-size: clamp(0.52rem, 1.56cqw, 1.45rem);
}

.certificate-id {
  right: 32%;
  bottom: 2.6%;
  left: 32%;
  color: rgba(7, 7, 7, 0.72);
  font-size: clamp(0.25rem, 0.82cqw, 0.78rem);
  white-space: nowrap;
}

.notice {
  padding: 17px;
}

.notice p:last-child {
  margin-bottom: 0;
}

.legal-view {
  max-width: var(--max);
  margin: 0 auto;
  font-weight: 900;
}

.legal-view section {
  margin: 26px 0;
}

.legal-view h1 {
  font-size: clamp(2.5rem, 7vw, 3.25rem);
}

.legal-view h2 {
  margin-bottom: 10px;
  font-size: 1.85rem;
  font-weight: 950;
}

.legal-view p,
.legal-view li {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.5;
}

.slang-view h2 {
  display: inline-block;
  border-bottom: 4px solid var(--red);
}

.contact-card {
  display: grid;
  gap: 8px;
  margin: 26px 0;
  padding: 22px;
  border: 4px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.contact-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-card a {
  overflow-wrap: anywhere;
  font-size: clamp(1.42rem, 5.8vw, 2.2rem);
  font-weight: 950;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: min(400px, calc(100vw - 32px));
  padding: 13px 15px;
  border: 4px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-weight: 900;
}

.chud-footer {
  position: relative;
  z-index: 70;
  justify-content: center;
  gap: clamp(24px, 7vw, 200px);
  min-height: 64px;
  overflow: hidden;
  padding: 14px max(18px, calc((100vw - var(--home-max)) / 2));
  border-top: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}

.route-quiz .chud-footer {
  z-index: 50;
  margin-bottom: 120px;
}

.chud-footer::before {
  position: absolute;
  top: 0;
  right: 8px;
  left: 8px;
  height: 4px;
  background: var(--line);
  content: "";
  pointer-events: none;
}

.footer-links {
  flex-wrap: wrap;
  gap: clamp(16px, 2.3vw, 30px);
}

.footer-brand {
  gap: 9px;
  color: inherit;
  text-decoration: none;
  transform-origin: center;
  transition: transform 0.14s ease, filter 0.14s ease;
  white-space: nowrap;
}

.footer-brand:hover {
  filter: brightness(1.04);
  transform: translateY(-2px) rotate(1deg) scale(1.03);
}

.footer-brand:active {
  transform: translateY(1px) scale(0.99);
}

.footer-brand img {
  width: min(178px, 38vw);
  height: auto;
  user-select: none;
}

.footer-face {
  width: 28px;
  height: 32px;
  border: 3px solid var(--line);
  border-top-width: 5px;
  border-radius: 39% 38% 43% 44% / 30% 32% 54% 58%;
  background:
    linear-gradient(var(--line), var(--line)) 9px 20px / 10px 2px no-repeat,
    radial-gradient(circle at 9px 12px, var(--line) 0 2px, transparent 3px),
    radial-gradient(circle at 18px 12px, var(--line) 0 2px, transparent 3px),
    #fff;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 98px minmax(0, 1fr) 98px;
  }

  .hero-doodle-left .sketch-chud-face {
    width: 92px;
    height: 108px;
  }

  .chud-can {
    width: 66px;
    height: 100px;
    font-size: 0.9rem;
  }

  .what-card {
    grid-template-columns: 90px minmax(0, 1fr) 150px;
    gap: 14px;
  }

  .dinner-doodle {
    width: 146px;
    transform: scale(0.88);
    transform-origin: center right;
  }
}

@media (max-width: 760px) {
  body::before {
    inset: 3px;
    border-width: 3px;
  }

  :root {
    --header-h: 76px;
  }

  .chud-header {
    align-items: end;
    grid-template-columns: auto 1fr;
    gap: 4px;
    min-height: 70px;
    padding: 11px 14px 7px;
  }

  .chud-header::before {
    display: none;
  }

  .chud-header::after,
  .quiz-toolbar::before,
  .chud-footer::before {
    right: 3px;
    left: 3px;
  }

  .chud-brand {
    grid-column: 1;
    align-self: end;
    justify-self: start;
    transform: translate(-6px, 4px);
  }

  .header-logo-art {
    width: clamp(190px, 54vw, 224px);
    height: 52px;
    object-position: left center;
  }

  .chud-nav {
    grid-column: 2;
    align-self: end;
    width: 100%;
    padding-bottom: 2px;
    justify-content: flex-end;
    gap: 12px;
  }

  .chud-app,
  .route-home .chud-app {
    width: min(var(--max), calc(100% - 24px));
    padding-top: 20px;
  }

  .official-pill {
    min-width: 0;
    width: min(360px, 100%);
    gap: 8px;
    padding: 6px 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 8px;
  }

  .hero-doodle {
    display: none;
  }

  .scribble-title {
    font-size: clamp(3.4rem, 16vw, 5.1rem);
    white-space: normal;
  }

  .hero p {
    font-size: clamp(1.05rem, 4.6vw, 1.32rem);
  }

  .route-home .button-primary {
    min-width: 0;
    width: min(330px, 100%);
  }

  .stats,
  .metrics,
  .symptom-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 12px;
    width: min(330px, 100%);
    margin-top: 24px;
  }

  .ad-slot {
    min-height: 110px;
  }

  .ad-ghost {
    width: 54px;
    height: 58px;
    opacity: 0.42;
  }

  .ad-ghost-left {
    left: 18px;
  }

  .ad-ghost-right {
    right: 24px;
  }

  .what-card {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 18px;
  }

  .what-copy {
    text-align: center;
  }

  .dinner-doodle {
    display: none;
  }

  .quiz-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .quiz-toolbar .button {
    width: 100%;
  }

  .quiz-toolbar .score-art-button {
    width: min(190px, 58vw);
    justify-self: end;
  }

  .quiz-heading p {
    font-size: 0.88rem;
    line-height: 1.18;
  }

  .category {
    margin: 13px 0;
  }

  .category:first-of-type {
    margin-top: 8px;
  }

  .category-title {
    margin-bottom: 5px;
  }

  .category-title img {
    max-width: min(250px, 76vw);
    height: 32px;
  }

  .question-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 46px;
    padding: 5px 12px 5px 42px;
  }

  .question-card span {
    font-size: 0.74rem;
    line-height: 1.08;
  }

  .route-results .chud-app {
    width: min(var(--max), calc(100% - 24px));
    padding-top: 16px;
  }

  .result-layout {
    gap: 12px;
  }

  .result-score-card {
    --result-badge-top: 5.1%;
    --result-badge-left: 50%;
    --result-badge-height: 53%;
    --result-badge-max-width: 63%;
    --result-diagnosis-side: 7%;
    --result-diagnosis-bottom: 6.2%;
    --result-diagnosis-x: 0%;
    --result-diagnosis-font-size: clamp(0.54rem, 2.52cqw, 0.72rem);
  }

  .result-score-value {
    top: 74.2%;
    width: 22%;
    font-size: clamp(1.45rem, 8.2cqw, 2.16rem);
  }

  .result-score-diagnosis {
    max-height: 12%;
    line-height: 1.02;
  }

  .result-tuner {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 52vh;
  }

  .checkout-email-input {
    top: 58.6%;
    z-index: 1;
    height: 14%;
    padding: 0 3%;
    font-size: clamp(1rem, 5.3vw, 1.48rem);
  }

  .checkout-pay-wrap {
    bottom: 7.3%;
    height: 16.5%;
  }

  .checkout-status {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .share-card-actions {
    right: 5.4%;
    bottom: 10.4%;
    left: 5.4%;
    gap: 3.2%;
  }

  .start-test-inline {
    display: block;
    margin-right: auto;
    margin-left: auto;
  }

  .actions,
  .result-actions,
  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .cookie-actions .button-link {
    width: auto;
  }

  .chud-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@page {
  size: letter;
  margin: 0.45in;
}

@page certificatePage {
  size: letter landscape;
  margin: 0.18in;
}

@media print {
  *,
  *::before,
  *::after {
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  .chud-header,
  .chud-footer,
  .result-score-card,
  .checkout-box,
  .checkout-art-card,
  .share-art-card,
  .result-actions,
  .result-tuner,
  .quiz-toolbar,
  .toast {
    display: none !important;
  }

  html {
    background: #ffffff !important;
  }

  body {
    background: #ffffff !important;
  }

  html::before,
  body::before,
  body::after {
    display: none !important;
  }

  body {
    min-height: auto;
    color: #000000;
    font-size: 10pt;
    line-height: 1.25;
  }

  .route-results .chud-app,
  .chud-app {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .result-layout,
  .report {
    display: block;
  }

  .notice,
  .report-section {
    box-sizing: border-box;
    width: 94%;
    margin: 0 auto 10pt;
    padding: 10pt;
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1.6pt solid #000000;
    border-radius: 4pt;
    background: #ffffff !important;
  }

  .report-section h2 {
    margin: 0 0 7pt;
    font-size: 16pt;
  }

  .breakdown-list {
    gap: 6pt;
  }

  .bar-track {
    height: 8pt;
    border-width: 1.5pt;
    background: #f0f0f0 !important;
  }

  .bar-fill {
    background: #d91f18 !important;
  }

  .symptom-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .symptom {
    min-height: 0;
    padding: 7pt;
    border-width: 1.5pt;
    background: #ffffff !important;
  }

  .certificate-report-section {
    page: certificatePage;
    box-sizing: border-box;
    break-before: page;
    break-after: auto;
    page-break-before: always;
    page-break-after: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 7.95in;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .certificate-report-section h2 {
    display: none;
  }

  .certificate-art {
    width: 100%;
    max-width: 10.6in;
    max-height: 7.55in;
    break-inside: avoid;
    page-break-inside: avoid;
    border-radius: 0;
  }

  .share-art-card {
    display: none !important;
  }
}
