:root {
  --bg-deep: #120818;
  --bg-glow: #3b1458;
  --card: rgba(28, 12, 38, 0.72);
  --text: #f7eef8;
  --muted: #b89ec4;
  --accent: #ff5cab;
  --accent-2: #ffd166;
  --lilac: #c9a8ff;
  --lilac-soft: rgba(201, 168, 255, 0.18);
  --lilac-line: rgba(201, 168, 255, 0.38);
  --answer-bg: rgba(255, 92, 171, 0.12);
  --border: rgba(255, 209, 102, 0.25);
  --timeline-h: clamp(3.75rem, 8.5vh, 5rem);
  /* Shared top menu — same system as LINA/CS; only accent color differs */
  --cv-site-accent: #5a2a8a;
  --cv-menu-border: color-mix(in srgb, var(--cv-site-accent) 82%, black);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, #5a1b7a 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, #8f1f5f 0%, transparent 35%),
    linear-gradient(160deg, var(--bg-deep), #1f0a2d 45%, var(--bg-glow));
}

/* Match shared site menu typography (Source Code Pro 14px), accent only via --cv-site-accent */
body.cv-site .cv-menu,
body.cv-site .cv-menu .cv-menu-item,
body.cv-site .cv-site-breadcrumb,
body.cv-site .cv-site-breadcrumb .cv-menu-item {
  font-family: "Source Code Pro", monospace;
  font-size: 14px;
  line-height: calc(14px * 1.214);
  letter-spacing: 0;
  font-weight: 400;
}

button.cv-menu-item {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button.cv-menu-item[hidden] {
  display: none !important;
}

/* Keep the shared top bar to a single clean row on this page */
body.cv-site #cv-menu {
  overflow: hidden;
}

body.cv-site #cv-menu .cv-menu-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 0;
}

body.cv-site #cv-menu .cv-site-breadcrumb {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

body.cv-site #cv-menu .cv-menu-center {
  grid-column: 2;
  grid-row: 1;
  flex-wrap: nowrap;
  justify-content: flex-end;
  overflow: hidden;
}

body.cv-site #cv-menu .cv-menu-site-title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100dvh - var(--cv-menu-height));
  max-height: calc(100dvh - var(--cv-menu-height));
  margin-top: var(--cv-menu-height);
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-noise {
  position: fixed;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-marquee {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.08;
  z-index: 0;
}

.marquee-field {
  position: absolute;
  inset: -18%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(0.5rem, 2.5vh, 2rem);
  transform: rotate(-10deg) scale(1.12);
  transform-origin: center;
}

.marquee-track {
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  animation: marquee var(--dur, 70s) linear infinite;
  animation-delay: var(--delay, 0s);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(3.25rem, 11vw, 9.5rem);
  letter-spacing: 0.04em;
  color: var(--accent-2);
  white-space: nowrap;
}

.marquee-track.reverse {
  animation-name: marquee-reverse;
}

.marquee-track span {
  padding-right: 2rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.timeline {
  flex: 0 0 var(--timeline-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.35rem, 1.5vw, 1rem);
  padding: 0.55rem clamp(0.75rem, 2vw, 2rem) 0.45rem;
  background: rgba(12, 6, 18, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 209, 102, 0.15);
}

.timeline-bound {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.timeline-track {
  position: relative;
  height: clamp(28px, 4.5vh, 36px);
  background: rgba(184, 158, 196, 0.18);
  border-radius: 999px;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.timeline-track.dragging {
  cursor: grabbing;
}

.timeline-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.timeline-tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 35%;
  background: rgba(255, 209, 102, 0.28);
  transform: translateX(-50%);
  border-radius: 1px;
}

.timeline-tick.day-start {
  height: 70%;
  background: rgba(255, 209, 102, 0.55);
}

.timeline-tick.book {
  background: rgba(120, 210, 150, 0.35);
}

.timeline-tick.book.day-start {
  background: rgba(120, 210, 150, 0.65);
}

.timeline-tick.rated {
  width: 2px;
  height: 48%;
  box-shadow: 0 0 8px currentColor;
}

.timeline-tick.rated.day-start {
  height: 78%;
}

.timeline-tick.rated-1 {
  color: rgba(168, 92, 92, 0.95);
  background: rgba(168, 92, 92, 0.82);
}

.timeline-tick.rated-2 {
  color: rgba(201, 134, 74, 0.95);
  background: rgba(201, 134, 74, 0.82);
}

.timeline-tick.rated-3 {
  color: rgba(184, 158, 196, 0.95);
  background: rgba(184, 158, 196, 0.82);
}

.timeline-tick.rated-4 {
  color: rgba(255, 209, 102, 0.98);
  background: rgba(255, 209, 102, 0.88);
}

.timeline-tick.rated-5 {
  color: rgba(255, 92, 171, 0.98);
  background: rgba(255, 92, 171, 0.88);
}

.timeline-tick.book.rated {
  background: currentColor;
}

.timeline-progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 999px;
  pointer-events: none;
}

.timeline-track.animate .timeline-progress,
.timeline-track.animate .timeline-marker {
  transition: left 0.45s ease, width 0.45s ease;
}

.timeline-marker {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  padding: 0;
  border: none;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
}

.timeline-track.dragging .timeline-marker {
  cursor: grabbing;
}

.timeline-marker::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 2px solid rgba(18, 8, 24, 0.85);
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.65);
}

.timeline-track.dragging .timeline-marker::before {
  transform: scale(1.15);
}

.timeline-date {
  position: absolute;
  top: clamp(14px, 2.2vh, 20px);
  left: 50%;
  transform: translateX(-50%);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(0.85rem, 1.8vh, 1.25rem);
  letter-spacing: 0.06em;
  color: var(--accent-2);
  white-space: nowrap;
  pointer-events: none;
}

.timeline-date.book {
  color: var(--muted);
}

.stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: grid;
  /* brand · face · joke · rating · controls */
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  grid-template-columns: 1fr;
  align-items: stretch;
  justify-items: center;
  padding: clamp(0.35rem, 1vh, 0.75rem) clamp(0.5rem, 2vw, 1.25rem);
  gap: clamp(0.25rem, 1vh, 0.65rem);
  overflow: hidden;
}

.brand {
  position: relative;
  z-index: 3;
  text-align: center;
  line-height: 1;
}

.brand h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-right: 0.15em;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.6rem, 5.5vh, 4rem);
  letter-spacing: 0.03em;
  font-weight: 400;
  line-height: 0.95;
}

.brand-count {
  position: absolute;
  top: -0.05em;
  left: 100%;
  margin-left: 0.08em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgba(255, 180, 170, 0.72);
  white-space: nowrap;
}

.subtitle {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.95rem, 2.2vh, 1.35rem);
  letter-spacing: 0.04em;
}

.face-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(0.3rem, 1.1vw, 0.8rem);
  width: auto;
  max-width: 100%;
  margin-top: clamp(0.15rem, 0.6vh, 0.45rem);
  filter: drop-shadow(0 10px 28px rgba(180, 60, 60, 0.45));
  transform-origin: center center;
}

.face-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  flex: 0 0 auto;
  min-width: 0;
  font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  user-select: none;
}

.face-label-left {
  align-items: flex-end;
  text-align: right;
}

.face-label-right {
  align-items: flex-start;
  text-align: left;
}

.face-ring-muted {
  color: rgba(184, 158, 196, 0.72);
  font-size: clamp(0.62rem, 1.4vh, 0.82rem);
  letter-spacing: 0.1em;
}

.ring-yosht,
.ring-joscht {
  display: inline-block;
  font-size: clamp(0.9rem, 2.1vh, 1.28rem);
  letter-spacing: 0.08em;
}

.ring-yosht {
  color: var(--accent);
}

.ring-joscht {
  color: var(--accent-2);
}

.face-center {
  position: relative;
  flex: 0 0 auto;
  width: clamp(96px, 18vh, 220px);
}

.face-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.face-ring-outline {
  fill: none;
  stroke: rgba(255, 209, 102, 0.24);
  stroke-width: 1.15;
  stroke-dasharray: 4 6;
  transform-origin: 110px 118px;
}

.face-wrap.laughing .face-ring-outline {
  animation: ring-outline-wobble var(--laugh-head-dur, 0.32s) ease-in-out infinite alternate;
}

.face-wrap.laughing .face-ring-muted {
  animation: ring-muted-flicker var(--laugh-eye-dur, 0.2s) ease-in-out infinite alternate;
}

.face-wrap.laughing .ring-yosht {
  animation: ring-name-yosht var(--laugh-pupil-dur, 0.09s) ease-in-out infinite alternate;
  transform-origin: center;
}

.face-wrap.laughing .ring-joscht {
  animation: ring-name-joscht var(--laugh-pupil-dur, 0.09s) ease-in-out infinite alternate;
  animation-delay: calc(var(--laugh-pupil-dur, 0.09s) * 0.45);
  transform-origin: center;
}

.face-wrap.laughing.laugh-shrill .ring-yosht,
.face-wrap.laughing.laugh-soprano .ring-yosht,
.face-wrap.laughing.laugh-falsetto .ring-yosht,
.face-wrap.laughing.laugh-piccolo .ring-yosht,
.face-wrap.laughing.laugh-hyena .ring-yosht {
  animation-name: ring-name-yosht-high;
}

.face-wrap.laughing.laugh-shrill .ring-joscht,
.face-wrap.laughing.laugh-soprano .ring-joscht,
.face-wrap.laughing.laugh-falsetto .ring-joscht,
.face-wrap.laughing.laugh-piccolo .ring-joscht,
.face-wrap.laughing.laugh-hyena .ring-joscht {
  animation-name: ring-name-joscht-high;
}

.face-wrap.laughing.laugh-deep .ring-yosht,
.face-wrap.laughing.laugh-slow .ring-yosht {
  animation-name: ring-name-yosht-deep;
  animation-duration: var(--laugh-jowl-dur, 0.28s);
}

.face-wrap.laughing.laugh-deep .ring-joscht,
.face-wrap.laughing.laugh-slow .ring-joscht {
  animation-name: ring-name-joscht-deep;
  animation-duration: var(--laugh-jowl-dur, 0.28s);
}

.face-wrap.laughing.laugh-wild .ring-yosht,
.face-wrap.laughing.laugh-cackle .ring-yosht,
.face-wrap.laughing.laugh-hyena .ring-yosht {
  animation-name: ring-name-yosht-wild;
}

.face-wrap.laughing.laugh-wild .ring-joscht,
.face-wrap.laughing.laugh-cackle .ring-joscht,
.face-wrap.laughing.laugh-hyena .ring-joscht {
  animation-name: ring-name-joscht-wild;
}

.face {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  height: auto;
  display: block;
  overflow: visible;
}

.face .mouth-open,
.face .drool,
.face .sweat {
  opacity: 0;
}

.face .ear {
  transform-origin: center;
}

.face-wrap.laughing .ear-left {
  animation: ear-flap-left var(--laugh-ear-dur, var(--laugh-head-dur, 0.32s)) ease-in-out infinite alternate;
  transform-origin: 40px 118px;
}

.face-wrap.laughing .ear-right {
  animation: ear-flap-right var(--laugh-ear-dur, var(--laugh-head-dur, 0.32s)) ease-in-out infinite alternate;
  transform-origin: 180px 118px;
}

.face-wrap.laughing.laugh-soprano .ear-left,
.face-wrap.laughing.laugh-falsetto .ear-left,
.face-wrap.laughing.laugh-piccolo .ear-left,
.face-wrap.laughing.laugh-hyena .ear-left {
  animation-name: ear-flap-high-left;
}

.face-wrap.laughing.laugh-soprano .ear-right,
.face-wrap.laughing.laugh-falsetto .ear-right,
.face-wrap.laughing.laugh-piccolo .ear-right,
.face-wrap.laughing.laugh-hyena .ear-right {
  animation-name: ear-flap-high-right;
}

.face-wrap.laughing .nose-ball {
  animation: nose-glow var(--laugh-cheek-dur, 0.24s) ease-in-out infinite alternate;
  transform-origin: 110px 136px;
}

.face-wrap.laughing {
  animation: meat-shake var(--laugh-shake-dur, 0.16s) ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

.face-wrap.laughing.laugh-wild {
  animation-name: meat-shake-wild;
}

.face-wrap.laughing.laugh-shrill {
  animation-name: meat-shake-shrill;
}

.face-wrap.laughing.laugh-mild {
  animation-name: meat-shake-mild;
}

.face-wrap.laughing.laugh-wobble {
  animation-name: meat-shake-wobble;
}

.face-wrap.laughing.laugh-deep {
  animation-name: meat-shake-deep;
}

.face-wrap.laughing.laugh-slow {
  animation-name: meat-shake-slow;
}

.face-wrap.laughing.laugh-cackle {
  animation-name: meat-shake-cackle;
}

.face-wrap.laughing.laugh-wheeze {
  animation-name: meat-shake-wheeze;
}

.face-wrap.laughing.laugh-soprano {
  animation-name: meat-shake-soprano;
}

.face-wrap.laughing.laugh-falsetto {
  animation-name: meat-shake-falsetto;
}

.face-wrap.laughing.laugh-piccolo {
  animation-name: meat-shake-piccolo;
}

.face-wrap.laughing.laugh-hyena {
  animation-name: meat-shake-hyena;
}

.face-wrap.laughing.laugh-intense {
  animation-duration: calc(var(--laugh-shake-dur, 0.16s) * 0.82);
}

.face-wrap.laughing.laugh-float .head {
  animation-name: head-pulse-float;
}

.face-wrap.laughing.laugh-intense .eye {
  animation-name: eye-squint-shrill;
}

.face-wrap.laughing .head {
  animation: head-pulse var(--laugh-head-dur, 0.32s) ease-in-out infinite alternate;
  transform-origin: 110px 130px;
}

.face-wrap.laughing.laugh-shrill .head {
  animation-name: head-pulse-shrill;
}

.face-wrap.laughing.laugh-wild .head {
  animation-name: head-pulse-wild;
}

.face-wrap.laughing.laugh-deep .head {
  animation-name: head-pulse-deep;
}

.face-wrap.laughing.laugh-slow .head {
  animation-name: head-pulse-slow;
}

.face-wrap.laughing.laugh-cackle .head {
  animation-name: head-pulse-cackle;
}

.face-wrap.laughing.laugh-soprano .head,
.face-wrap.laughing.laugh-falsetto .head,
.face-wrap.laughing.laugh-piccolo .head {
  animation-name: head-pulse-high;
}

.face-wrap.laughing.laugh-hyena .head {
  animation-name: head-pulse-hyena;
}

.face-wrap.laughing .mouth-closed,
.face-wrap.laughing .mouth-line {
  opacity: 0;
}

.face-wrap.laughing .mouth-open,
.face-wrap.laughing .drool,
.face-wrap.laughing .sweat {
  opacity: 1;
}

.face-wrap.laughing .cheek {
  animation: cheek-bounce var(--laugh-cheek-dur, 0.24s) ease-in-out infinite alternate;
}

.face-wrap.laughing.laugh-shrill .cheek {
  animation-name: cheek-bounce-shrill;
}

.face-wrap.laughing.laugh-deep .cheek {
  animation-name: cheek-bounce-deep;
}

.face-wrap.laughing.laugh-cackle .cheek {
  animation-name: cheek-bounce-cackle;
}

.face-wrap.laughing.laugh-soprano .cheek,
.face-wrap.laughing.laugh-falsetto .cheek,
.face-wrap.laughing.laugh-piccolo .cheek,
.face-wrap.laughing.laugh-hyena .cheek {
  animation-name: cheek-bounce-high;
}

.face-wrap.laughing .jowl {
  animation: jowl-wobble var(--laugh-jowl-dur, 0.3s) ease-in-out infinite alternate;
}

.face-wrap.laughing.laugh-wobble .jowl {
  animation-name: jowl-wobble-hard;
}

.face-wrap.laughing.laugh-deep .jowl {
  animation-name: jowl-wobble-deep;
}

.face-wrap.laughing.laugh-wheeze .jowl {
  animation-name: jowl-wobble-slow;
}

.face-wrap.laughing .eye {
  animation: eye-squint var(--laugh-eye-dur, 0.22s) ease-in-out infinite alternate;
}

.face-wrap.laughing.laugh-shrill .eye {
  animation-name: eye-squint-shrill;
}

.face-wrap.laughing.laugh-soprano .eye,
.face-wrap.laughing.laugh-falsetto .eye,
.face-wrap.laughing.laugh-piccolo .eye,
.face-wrap.laughing.laugh-hyena .eye {
  animation-name: eye-squint-shrill;
}

.face-wrap.laughing.laugh-slow .eye {
  animation-name: eye-squint-slow;
}

.face-wrap.laughing.laugh-wheeze .eye {
  animation-name: eye-squint-wheeze;
}

.face-wrap.laughing .pupil {
  animation: pupil-jitter var(--laugh-pupil-dur, 0.16s) linear infinite;
}

.face-wrap.laughing.laugh-wild .pupil {
  animation-name: pupil-jitter-wild;
}

.face-wrap.laughing.laugh-cackle .pupil {
  animation-name: pupil-jitter-wild;
}

.face-wrap.laughing.laugh-soprano .pupil,
.face-wrap.laughing.laugh-falsetto .pupil,
.face-wrap.laughing.laugh-piccolo .pupil,
.face-wrap.laughing.laugh-hyena .pupil {
  animation-name: pupil-jitter-high;
}

.face-wrap.laughing.laugh-deep .pupil {
  animation-name: pupil-jitter-deep;
}

.face-wrap.laughing .tongue {
  animation: tongue-flap var(--laugh-tongue-dur, 0.18s) ease-in-out infinite alternate;
  transform-origin: 110px 172px;
}

.face-wrap.laughing.laugh-wild .tongue {
  animation-name: tongue-flap-wild;
}

.face-wrap.laughing.laugh-deep .tongue {
  animation-name: tongue-flap-deep;
}

.face-wrap.laughing.laugh-cackle .tongue {
  animation-name: tongue-flap-wild;
}

.face-wrap.laughing.laugh-soprano .tongue,
.face-wrap.laughing.laugh-falsetto .tongue,
.face-wrap.laughing.laugh-piccolo .tongue {
  animation-name: tongue-flap-high;
}

@keyframes ring-outline-wobble {
  from { transform: scale(1); stroke-opacity: 0.55; }
  to { transform: scale(1.035); stroke-opacity: 1; }
}

@keyframes ring-muted-flicker {
  from { opacity: 0.55; }
  to { opacity: 0.95; }
}

@keyframes ring-name-yosht {
  from { transform: translateY(0) scale(1) rotate(0deg); }
  to { transform: translateY(-2px) scale(1.14) rotate(-4deg); }
}

@keyframes ring-name-joscht {
  from { transform: translateY(0) scale(1) rotate(0deg); }
  to { transform: translateY(-2px) scale(1.14) rotate(4deg); }
}

@keyframes ring-name-yosht-high {
  from { transform: translateY(0) scale(1) rotate(0deg); }
  to { transform: translateY(-4px) scale(1.22) rotate(-7deg); }
}

@keyframes ring-name-joscht-high {
  from { transform: translateY(0) scale(1) rotate(0deg); }
  to { transform: translateY(-4px) scale(1.22) rotate(7deg); }
}

@keyframes ring-name-yosht-deep {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(2px) scale(1.08); }
}

@keyframes ring-name-joscht-deep {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(2px) scale(1.08); }
}

@keyframes ring-name-yosht-wild {
  from { transform: translate(-2px, 0) scale(1) rotate(-2deg); }
  to { transform: translate(3px, -3px) scale(1.18) rotate(-8deg); }
}

@keyframes ring-name-joscht-wild {
  from { transform: translate(2px, 0) scale(1) rotate(2deg); }
  to { transform: translate(-3px, -3px) scale(1.18) rotate(8deg); }
}

@keyframes meat-shake {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.06); }
}

@keyframes meat-shake-mild {
  0%, 100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.03); }
}

@keyframes meat-shake-wild {
  0%, 100% { transform: rotate(-9deg) scale(1.08); }
  25% { transform: rotate(8deg) scale(1.1) translateY(-4px); }
  75% { transform: rotate(-7deg) scale(1.06) translateY(2px); }
}

@keyframes meat-shake-shrill {
  0%, 100% { transform: rotate(-4deg) scale(1.05) translateY(0); }
  50% { transform: rotate(4deg) scale(1.09) translateY(-7px); }
}

@keyframes meat-shake-wobble {
  0%, 100% { transform: rotate(-6deg) scale(1.04) skewX(-2deg); }
  33% { transform: rotate(5deg) scale(1.07) skewX(2deg); }
  66% { transform: rotate(-4deg) scale(1.05) skewX(-1deg); }
}

@keyframes meat-shake-deep {
  0%, 100% { transform: rotate(-3deg) scale(1.02) translateY(1px); }
  50% { transform: rotate(3deg) scale(1.05) translateY(3px); }
}

@keyframes meat-shake-slow {
  0%, 100% { transform: rotate(-2deg) scale(1.01); }
  50% { transform: rotate(2deg) scale(1.04); }
}

@keyframes meat-shake-cackle {
  0%, 100% { transform: rotate(-7deg) scale(1.07) translateY(-2px); }
  40% { transform: rotate(6deg) scale(1.09) translateY(-5px); }
  70% { transform: rotate(-5deg) scale(1.06) translateY(0); }
}

@keyframes meat-shake-wheeze {
  0%, 100% { transform: rotate(-2deg) scale(1.03) translateY(2px); }
  50% { transform: rotate(2deg) scale(1.06) translateY(5px); }
}

@keyframes meat-shake-soprano {
  0%, 100% { transform: rotate(-5deg) scale(1.06) translateY(-2px); }
  50% { transform: rotate(5deg) scale(1.11) translateY(-10px); }
}

@keyframes meat-shake-falsetto {
  0%, 100% { transform: rotate(-6deg) scale(1.07) translateY(-4px); }
  35% { transform: rotate(6deg) scale(1.12) translateY(-12px); }
  70% { transform: rotate(-4deg) scale(1.08) translateY(-6px); }
}

@keyframes meat-shake-piccolo {
  0%, 100% { transform: rotate(-7deg) scale(1.08) translateY(-5px); }
  25% { transform: rotate(7deg) scale(1.14) translateY(-14px); }
  75% { transform: rotate(-5deg) scale(1.09) translateY(-8px); }
}

@keyframes meat-shake-hyena {
  0%, 100% { transform: rotate(-8deg) scale(1.08) translateY(-3px); }
  20% { transform: rotate(7deg) scale(1.1) translateY(-9px); }
  45% { transform: rotate(-6deg) scale(1.07) translateY(-2px); }
  70% { transform: rotate(6deg) scale(1.11) translateY(-11px); }
}

@keyframes head-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

@keyframes head-pulse-shrill {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-3px); }
}

@keyframes head-pulse-wild {
  from { transform: scale(1) rotate(-2deg); }
  to { transform: scale(1.06) rotate(2deg); }
}

@keyframes head-pulse-deep {
  from { transform: scale(1) translateY(1px); }
  to { transform: scale(1.04) translateY(4px); }
}

@keyframes head-pulse-slow {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}

@keyframes head-pulse-cackle {
  from { transform: scale(1.02) rotate(-1deg); }
  to { transform: scale(1.07) rotate(1deg); }
}

@keyframes head-pulse-high {
  from { transform: scale(1.04) translateY(-2px); }
  to { transform: scale(1.1) translateY(-8px); }
}

@keyframes head-pulse-hyena {
  from { transform: scale(1.03) rotate(-2deg) translateY(-1px); }
  to { transform: scale(1.09) rotate(2deg) translateY(-7px); }
}

@keyframes head-pulse-float {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.05) translateY(-5px); }
}

@keyframes cheek-bounce {
  from { transform: scale(1); opacity: 0.75; }
  to { transform: scale(1.12); opacity: 1; }
}

@keyframes cheek-bounce-shrill {
  from { transform: scale(1.05); opacity: 0.85; }
  to { transform: scale(1.22); opacity: 1; }
}

@keyframes cheek-bounce-deep {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.08); opacity: 0.95; }
}

@keyframes cheek-bounce-cackle {
  from { transform: scale(1.04); opacity: 0.82; }
  to { transform: scale(1.18); opacity: 1; }
}

@keyframes cheek-bounce-high {
  from { transform: scale(1.08); opacity: 0.88; }
  to { transform: scale(1.26); opacity: 1; }
}

@keyframes jowl-wobble {
  from { transform: translateY(0); }
  to { transform: translateY(2px); }
}

@keyframes jowl-wobble-hard {
  from { transform: translateY(-1px) rotate(-1deg); }
  to { transform: translateY(4px) rotate(1deg); }
}

@keyframes jowl-wobble-deep {
  from { transform: translateY(0); }
  to { transform: translateY(3px); }
}

@keyframes jowl-wobble-slow {
  from { transform: translateY(0); }
  to { transform: translateY(1.5px); }
}

@keyframes tongue-flap {
  from { transform: scaleY(1); }
  to { transform: scaleY(1.14); }
}

@keyframes tongue-flap-wild {
  from { transform: scaleY(0.92) rotate(-3deg); }
  to { transform: scaleY(1.28) rotate(3deg); }
}

@keyframes tongue-flap-deep {
  from { transform: scaleY(1); }
  to { transform: scaleY(1.08); }
}

@keyframes tongue-flap-high {
  from { transform: scaleY(0.88) rotate(-4deg); }
  to { transform: scaleY(1.32) rotate(4deg); }
}

@keyframes eye-squint {
  from { transform: scaleY(1); }
  to { transform: scaleY(0.45); }
}

@keyframes eye-squint-shrill {
  from { transform: scaleY(0.7); }
  to { transform: scaleY(0.15); }
}

@keyframes eye-squint-slow {
  from { transform: scaleY(0.95); }
  to { transform: scaleY(0.6); }
}

@keyframes eye-squint-wheeze {
  from { transform: scaleY(0.85); }
  to { transform: scaleY(0.35); }
}

@keyframes pupil-jitter {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(2px, 1px); }
  75% { transform: translate(-2px, -1px); }
}

@keyframes ear-flap-left {
  from { transform: rotate(0deg); }
  to { transform: rotate(-8deg); }
}

@keyframes ear-flap-right {
  from { transform: rotate(0deg); }
  to { transform: rotate(8deg); }
}

@keyframes ear-flap-high-left {
  from { transform: rotate(-4deg); }
  to { transform: rotate(-16deg); }
}

@keyframes ear-flap-high-right {
  from { transform: rotate(4deg); }
  to { transform: rotate(16deg); }
}

@keyframes nose-glow {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes pupil-jitter-wild {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(4px, 2px); }
  40% { transform: translate(-3px, 3px); }
  60% { transform: translate(3px, -2px); }
  80% { transform: translate(-4px, -1px); }
}

@keyframes pupil-jitter-deep {
  0%, 100% { transform: translate(0, 1px); }
  50% { transform: translate(1px, 2px); }
}

@keyframes pupil-jitter-high {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(5px, -2px); }
  40% { transform: translate(-4px, 3px); }
  60% { transform: translate(4px, 2px); }
  80% { transform: translate(-5px, -1px); }
}

.joke-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: clamp(16px, 2vh, 28px);
  padding: clamp(0.5rem, 1.2vh, 1rem) clamp(0.65rem, 1.5vw, 1.25rem);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  text-align: center;
  overflow: hidden;
}

.meta {
  flex: 0 0 auto;
  margin: 0 0 clamp(0.15rem, 0.5vh, 0.4rem);
  color: var(--muted);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(0.8rem, 1.8vh, 1.2rem);
  letter-spacing: 0.08em;
}

.joke-body {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.35rem, 1vh, 0.75rem);
  overflow: hidden;
}

.meta.author-joscht {
  color: var(--accent-2);
}

.meta.author-yosht {
  color: var(--accent);
}

.meta.author-witzebuch {
  color: var(--muted);
}

.motion-wrap {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(48vh, 480px);
  margin: 0 auto;
  cursor: crosshair;
  touch-action: none;
}

.joke-card:not(.motion-active) .motion-wrap {
  display: none;
}

.motion-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.setup-fallback {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(48vh, 480px);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2rem, min(9vw, 11vh), 6.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow: hidden;
}

.joke-card.motion-active .setup-fallback {
  position: absolute;
  flex: none;
  display: block;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.answer-zone {
  flex: 0 1 auto;
  display: block;
  width: 100%;
  margin-top: 0;
  padding: clamp(0.45rem, 1.2vh, 0.9rem) clamp(0.55rem, 1.5vw, 1rem);
  border-radius: clamp(12px, 1.5vh, 20px);
  border: 2px dashed rgba(255, 209, 102, 0.45);
  background: var(--answer-bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.25s;
  max-height: min(28vh, 12rem);
  overflow: hidden;
  min-height: 0;
}

.answer-zone:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.answer-zone:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 4px;
}

.answer-hint {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.15rem, 2.6vh, 1.75rem);
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: clamp(0.2rem, 0.5vh, 0.45rem);
}

.answer-text {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.2rem, min(5vw, 6vh), 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--accent);
  user-select: none;
  overflow-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  visibility: hidden;
  opacity: 0;
  filter: blur(14px);
  max-height: 0;
  transition: none;
}

.hidden-answer .answer-text {
  transform: scale(0.98);
}

.answer-zone.revealed {
  cursor: default;
  border-style: solid;
  background: rgba(255, 92, 171, 0.18);
  max-height: min(34vh, 16rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.answer-zone.revealed .answer-hint {
  display: none;
}

.answer-zone.revealed .answer-text {
  visibility: visible;
  max-height: none;
  filter: blur(0);
  opacity: 1;
  transform: none;
  user-select: text;
  overflow: visible;
  text-overflow: unset;
  transition: filter 0.45s ease, opacity 0.45s ease;
}

/* After reveal: keep setup + answer inside the card without growing the stage */
.joke-card:has(.answer-zone.revealed) .setup-fallback {
  flex: 1 1 0;
  max-height: min(30vh, 280px);
  font-size: clamp(1.55rem, min(6.5vw, 7.5vh), 4.25rem);
}

.joke-card:has(.answer-zone.revealed) .motion-wrap {
  flex: 1 1 0;
  max-height: min(30vh, 280px);
}

.joke-card:has(.answer-zone.revealed) .answer-zone {
  flex: 0 1 auto;
}

.joke-rating {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: -0.15rem;
  padding: 0 0.5rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.joke-rating.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.joke-rating.rating-offline .joke-rating-label::after {
  content: " · nur lokal";
  color: rgba(255, 209, 102, 0.85);
  font-style: normal;
}

.joke-rating-label {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(0.8rem, 1.6vh, 0.95rem);
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(184, 158, 196, 0.72);
}

.joke-rating-optional {
  opacity: 0.75;
}

.joke-rating-stars {
  display: flex;
  gap: clamp(0.15rem, 0.8vw, 0.45rem);
  align-items: center;
}

.rating-star {
  appearance: none;
  border: none;
  background: none;
  padding: 0.15rem 0.2rem;
  font-size: clamp(1rem, 2.2vh, 1.35rem);
  line-height: 1;
  color: rgba(184, 158, 196, 0.35);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.rating-star:hover,
.rating-star:focus-visible {
  color: rgba(255, 209, 102, 0.85);
  transform: scale(1.08);
}

.rating-star.is-active {
  color: var(--accent-2);
}

.rating-star.is-selected {
  color: var(--accent-2);
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.35);
}

.rating-star:focus-visible {
  outline: 2px solid rgba(255, 209, 102, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

.controls {
  flex: 0 0 auto;
  display: flex;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
  padding: clamp(0.45rem, 1.2vh, 0.9rem) 0 clamp(0.35rem, 1vh, 0.7rem);
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: clamp(0.45rem, 1.2vh, 0.75rem) clamp(1rem, 3vw, 1.75rem);
  min-width: 0;
  background: linear-gradient(135deg, var(--accent), #b030ff);
  color: white;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1rem, 2.4vh, 1.5rem);
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(255, 92, 171, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(255, 92, 171, 0.5);
}

.btn:active {
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

body.stats-open {
  overflow: hidden;
}

.dataset-stand {
  position: fixed;
  right: clamp(0.65rem, 2vw, 1.35rem);
  bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
  z-index: 2;
  margin: 0;
  padding-bottom: clamp(0.35rem, 0.8vh, 0.55rem);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(0.72rem, 1.4vh, 0.9rem);
  font-style: italic;
  letter-spacing: 0.05em;
  color: rgba(184, 158, 196, 0.42);
  pointer-events: none;
  user-select: none;
}

.stats-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.stats-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.stats-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 12, 0.72);
  backdrop-filter: blur(8px);
}

.stats-panel {
  position: relative;
  width: min(100%, 34rem);
  max-height: min(88dvh, 720px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1rem, 2.5vh, 1.35rem);
  border-radius: clamp(18px, 2vh, 24px);
  border: 1px solid rgba(255, 209, 102, 0.22);
  background: rgba(22, 10, 30, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s ease;
  overflow: hidden;
}

.stats-overlay.is-open .stats-panel {
  transform: translateY(0) scale(1);
}

.stats-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.stats-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.6rem, 4vh, 2.2rem);
  letter-spacing: 0.04em;
  color: var(--accent-2);
  line-height: 1;
}

.stats-subtitle {
  margin: 0.2rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(0.9rem, 2vh, 1.05rem);
  color: var(--muted);
}

.stats-close {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.stats-close:hover {
  background: rgba(255, 92, 171, 0.22);
}

.stats-summary {
  flex: 0 0 auto;
}

.stats-lead,
.stats-meta-line {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.8vh, 1rem);
  line-height: 1.45;
}

.stats-meta-line {
  margin-top: 0.35rem;
  opacity: 0.8;
}

.stats-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stats-metrics-duo {
  grid-template-columns: repeat(2, 1fr);
}

.stats-metrics-quad {
  grid-template-columns: repeat(2, 1fr);
}

.stats-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 0.35rem;
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.07);
  border: 1px solid rgba(255, 209, 102, 0.12);
}

.stats-metric-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.35rem, 3vh, 1.85rem);
  color: var(--accent-2);
  line-height: 1;
}

.stats-metric-label {
  margin-top: 0.15rem;
  font-size: clamp(0.72rem, 1.5vh, 0.82rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats-empty {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-family: "Cormorant Garamond", Georgia, serif;
  padding: 1rem 0.5rem 0;
}

.stats-scroll-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.stats-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding-bottom: 0.25rem;
}

.stats-scroll-hint {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 2.2rem 0.75rem 0.55rem;
  background: linear-gradient(
    to bottom,
    rgba(22, 10, 30, 0) 0%,
    rgba(22, 10, 30, 0.82) 42%,
    rgba(22, 10, 30, 0.98) 100%
  );
  opacity: 1;
  transition: opacity 0.25s ease;
}

.stats-scroll-wrap.has-overflow .stats-scroll-hint {
  display: flex;
}

.stats-scroll-wrap.is-at-bottom .stats-scroll-hint {
  opacity: 0;
}

.stats-scroll-hint-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(0.95rem, 2.2vh, 1.1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 209, 102, 0.88);
  animation: stats-scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes stats-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

.stats-scroll-wrap.has-overflow .stats-top-list {
  padding-bottom: 2.75rem;
}

.stats-top-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stats-top-item {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(255, 209, 102, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.stats-top-item:hover {
  background: rgba(255, 92, 171, 0.1);
  border-color: rgba(255, 209, 102, 0.28);
  transform: translateX(2px);
}

.stats-top-rank {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.1rem, 2.4vh, 1.35rem);
  color: var(--accent-2);
  line-height: 1;
  min-width: 1.5rem;
}

.stats-top-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.stats-top-stars {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}

.stats-top-setup {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(0.95rem, 2vh, 1.15rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
}

.stats-top-meta {
  font-size: clamp(0.72rem, 1.5vh, 0.82rem);
  color: var(--muted);
  letter-spacing: 0.04em;
}

@media (max-width: 720px), (max-height: 640px) {
  :root {
    --timeline-h: clamp(2.75rem, 7vh, 3.5rem);
  }

  body.cv-site #cv-menu .cv-menu-center {
    gap: 0.85em;
  }

  .btn {
    min-width: 0;
    padding: clamp(0.5rem, 1.4vh, 0.8rem) clamp(1.1rem, 4vw, 1.8rem);
    font-size: clamp(1.05rem, 2.6vh, 1.45rem);
  }

  .subtitle {
    font-size: clamp(1rem, 2.6vh, 1.3rem);
    letter-spacing: 0.06em;
  }

  .brand-count {
    font-size: 0.38em;
    top: -0.08em;
  }

  .timeline-bound {
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    letter-spacing: 0.1em;
  }

  .timeline-date {
    font-size: clamp(1rem, 2.5vh, 1.25rem);
    letter-spacing: 0.1em;
  }

  .face-wrap {
    gap: clamp(0.25rem, 1vw, 0.55rem);
  }

  .face-center {
    width: clamp(72px, 13vh, 120px);
  }

  .ring-yosht,
  .ring-joscht {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1rem, 2.8vh, 1.28rem);
    letter-spacing: 0.12em;
  }

  .face-ring-muted {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-style: normal;
    font-size: clamp(0.82rem, 2.1vh, 1.02rem);
    letter-spacing: 0.14em;
    color: rgba(184, 158, 196, 0.92);
  }

  .meta {
    font-size: clamp(1rem, 2.5vh, 1.28rem);
    letter-spacing: 0.1em;
  }

  .answer-hint {
    font-size: clamp(1.25rem, 3.2vh, 1.7rem);
    letter-spacing: 0.11em;
  }

  .answer-text {
    font-size: clamp(1.75rem, min(8vw, 9.5vh), 3.25rem);
  }

  .answer-zone {
    max-height: min(32vh, 11rem);
  }

  .answer-zone.revealed {
    max-height: min(36vh, 14rem);
  }

  .joke-card:has(.answer-zone.revealed) .setup-fallback,
  .joke-card:has(.answer-zone.revealed) .motion-wrap {
    max-height: min(26vh, 220px);
  }

  .joke-rating-label {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-style: normal;
    font-size: clamp(0.95rem, 2.3vh, 1.15rem);
    letter-spacing: 0.1em;
    color: rgba(184, 158, 196, 0.9);
  }

  .rating-star {
    font-size: clamp(1.3rem, 3.2vh, 1.6rem);
  }

  .dataset-stand {
    font-size: clamp(0.85rem, 1.9vh, 1.05rem);
    letter-spacing: 0.07em;
  }

  .stats-metric-label {
    font-size: clamp(0.78rem, 1.8vh, 0.92rem);
    letter-spacing: 0.08em;
  }

  .stats-top-meta {
    font-size: clamp(0.82rem, 1.9vh, 0.98rem);
    letter-spacing: 0.06em;
  }

  .stats-top-stars {
    font-size: 0.95rem;
  }

  .stats-panel {
    width: 100%;
    height: min(92dvh, calc(100dvh - 1rem));
    max-height: min(92dvh, calc(100dvh - 1rem));
  }

  .stats-scroll-wrap {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .stats-scroll-hint {
    padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
  }
}

.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.age-gate-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.age-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 6, 0.82);
  backdrop-filter: blur(6px);
}

.age-gate-panel {
  position: relative;
  width: min(100%, 28rem);
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid rgba(255, 180, 170, 0.22);
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(42, 16, 20, 0.96), rgba(18, 8, 10, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(12px);
  transition: transform 0.28s ease;
}

.age-gate-overlay.is-open .age-gate-panel {
  transform: translateY(0);
}

.age-gate-title {
  margin: 0 0 0.5rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 8vw, 2.6rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: #ffd8cf;
}

.age-gate-lead {
  margin: 0 0 1.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  color: rgba(255, 220, 210, 0.88);
}

.age-gate-note {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 200, 190, 0.62);
}

.age-gate-actions {
  display: grid;
  gap: 0.65rem;
}

.age-gate-btn {
  appearance: none;
  border: 1px solid rgba(255, 170, 150, 0.28);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.age-gate-btn:hover,
.age-gate-btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.age-gate-btn-primary {
  color: #2a0a10;
  background: linear-gradient(180deg, #ffb4a8, #ff7a6a);
  border-color: transparent;
}

.age-gate-btn-secondary {
  color: #ffd8cf;
  background: rgba(255, 255, 255, 0.04);
}

.age-gate-btn-secondary:hover,
.age-gate-btn-secondary:focus-visible {
  border-color: rgba(255, 180, 170, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

body.age-gate-open {
  overflow: hidden;
}

.footer-links {
  position: fixed;
  left: clamp(0.65rem, 2vw, 1.35rem);
  bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.footer-link {
  border: none;
  background: none;
  padding: 0.1rem 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(0.72rem, 1.4vh, 0.9rem);
  color: rgba(255, 200, 190, 0.55);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-align: left;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: rgba(255, 220, 210, 0.85);
  outline: none;
}

.footer-link:disabled {
  opacity: 0.35;
  cursor: default;
  text-decoration: none;
}

.footer-link.is-saved {
  color: rgba(184, 158, 196, 0.72);
  text-decoration: none;
  cursor: default;
}

.kein-witz-gate-overlay {
  z-index: 1300;
}

body.kein-witz-gate-open {
  overflow: hidden;
}

.kein-witz-gate-form {
  display: grid;
  gap: 0.55rem;
}

.kein-witz-gate-label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 220, 210, 0.75);
}

.kein-witz-gate-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 170, 150, 0.28);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  color: #ffd8cf;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
}

.kein-witz-gate-input:focus {
  outline: none;
  border-color: rgba(255, 180, 170, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 120, 100, 0.15);
}

.kein-witz-gate-error {
  margin: 0;
  font-size: 0.82rem;
  color: #ff8a96;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .timeline-track.animate .timeline-progress,
  .timeline-track.animate .timeline-marker,
  .answer-text,
  .face-wrap.laughing,
  .face-wrap.laughing .head,
  .face-wrap.laughing .cheek,
  .face-wrap.laughing .jowl,
  .face-wrap.laughing .eye,
  .face-wrap.laughing .pupil,
  .face-wrap.laughing .tongue,
  .face-wrap.laughing .ear-left,
  .face-wrap.laughing .ear-right,
  .face-wrap.laughing .nose-ball,
  .face-wrap.laughing .face-ring-outline,
  .face-wrap.laughing .face-ring-muted,
  .face-wrap.laughing .ring-yosht,
  .face-wrap.laughing .ring-joscht {
    animation: none !important;
    transition: none !important;
  }
}
