/* FREKANS — a social signal laboratory by ArgoDelta */

:root {
  color-scheme: dark;
  --ink: #070907;
  --ink-2: #0b0f0c;
  --ink-3: #101611;
  --paper: #f2f0e8;
  --paper-2: #e7e4d9;
  --lime: #d9ff63;
  --lime-strong: #c8f24b;
  --coral: #ff8267;
  --lav: #c2adff;
  --sky: #8ed7ff;
  --sun: #ffd166;
  --rose: #ff9ec4;
  --muted: #a5b1a8;
  --muted-2: #849187;
  --line: rgba(217, 255, 99, 0.14);
  --line-soft: rgba(242, 240, 232, 0.1);
  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;
  --page: min(1320px, calc(100vw - 64px));
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 780px at 82% -12%, rgba(217, 255, 99, 0.09), transparent 62%),
    radial-gradient(900px 700px at 4% 24%, rgba(194, 173, 255, 0.06), transparent 64%),
    radial-gradient(700px 600px at 58% 94%, rgba(255, 130, 103, 0.045), transparent 62%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 240, 232, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 240, 232, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 18%, black, transparent 74%);
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg,
canvas {
  display: block;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 150;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-3);
  color: var(--paper);
  text-align: center;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  height: 74px;
  padding: 0 max(24px, calc((100vw - var(--page)) / 2));
  border-bottom: 1px solid rgba(242, 240, 232, 0.07);
  background: rgba(7, 9, 7, 0.72);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--lime);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-word span {
  color: var(--lime);
}

.brand-divider {
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: rgba(242, 240, 232, 0.18);
}

.brand-game {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
}

.main-nav a {
  position: relative;
  color: rgba(242, 240, 232, 0.66);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}

.main-nav a:hover {
  color: var(--paper);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.icon-button,
.menu-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(242, 240, 232, 0.12);
  border-radius: 50%;
  background: transparent;
  color: rgba(242, 240, 232, 0.8);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.icon-button:hover,
.menu-button:hover {
  border-color: rgba(217, 255, 99, 0.5);
  background: rgba(217, 255, 99, 0.07);
  color: var(--lime);
}

.lang-button {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.sound-button svg {
  width: 17px;
  height: 17px;
}

.sound-button .sound-off {
  display: none;
}

.sound-button[aria-pressed="false"] .sound-on {
  display: none;
}

.sound-button[aria-pressed="false"] .sound-off {
  display: block;
}

.menu-button {
  display: none;
}

.menu-button span {
  display: block;
  width: 15px;
  height: 1px;
  margin: 2.5px 0;
  background: currentColor;
  transition: transform 200ms ease;
}

/* Shared type */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(217, 255, 99, 0.1), 0 0 16px rgba(217, 255, 99, 0.5);
  animation: pip 2.4s ease-in-out infinite;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 220ms var(--ease), background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(217, 255, 99, 0.12);
}

.button-primary:hover {
  background: #e4ff8d;
  box-shadow: 0 15px 38px rgba(217, 255, 99, 0.2);
}

.button-ghost {
  border-color: rgba(242, 240, 232, 0.2);
  background: rgba(242, 240, 232, 0.025);
  color: var(--paper);
}

.button-ghost:hover {
  border-color: rgba(217, 255, 99, 0.45);
  background: rgba(217, 255, 99, 0.06);
  color: var(--lime);
}

.button-quiet {
  border-color: rgba(242, 240, 232, 0.12);
  background: transparent;
  color: var(--muted);
}

.button-quiet:hover {
  border-color: rgba(242, 240, 232, 0.26);
  color: var(--paper);
}

.button-small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 11px;
}

.button-wide {
  width: 100%;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.4;
  transform: none;
}

.button-arrow {
  font-size: 16px;
  font-weight: 400;
  transition: transform 220ms var(--ease);
}

.button:hover .button-arrow {
  transform: translate(2px, -2px);
}

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.text-cta span:last-child {
  color: var(--lime);
  font-size: 14px;
  transition: transform 220ms var(--ease);
}

.text-cta:hover span:last-child {
  transform: translateX(4px);
}

/* Home */

.home {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
  width: var(--page);
  min-height: calc(100svh - 74px);
  margin: 0 auto;
  padding: 72px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -8%;
  z-index: -1;
  width: 52vw;
  height: 52vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 255, 99, 0.09), transparent 62%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero h1 {
  margin: 27px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7.9vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.82;
  text-wrap: balance;
}

.hero h1 > span {
  display: block;
}

.hero h1 em {
  display: block;
  margin-left: 0.06em;
  color: var(--lime);
  font-family: var(--font-serif);
  font-size: 1.04em;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.86;
  transform: rotate(-1.2deg);
  transform-origin: left center;
}

.hero h1 > span:last-child {
  margin-top: 0.02em;
}

.hero h1 > span:last-child:empty {
  display: none;
}

.hero-lede {
  max-width: 560px;
  margin: 0;
  color: rgba(242, 240, 232, 0.64);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px 30px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.hero-proof li span:first-child {
  color: var(--lime);
  font-size: 12px;
}

/* Hero instrument */

.hero-instrument {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 630px;
  margin: 0 auto;
  perspective: 1000px;
}

.instrument-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(242, 240, 232, 0.38);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.instrument-meta-top {
  margin-bottom: 13px;
}

.instrument-meta-bottom {
  margin-top: 13px;
}

.instrument-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(217, 255, 99, 0.68);
}

.instrument-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(217, 255, 99, 0.8);
  animation: pip 1.8s ease-in-out infinite;
}

.instrument-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, rgba(217, 255, 99, 0.07), transparent 38%),
    radial-gradient(circle at 50% 50%, #0c120d 0%, #080b08 62%, #050605 100%);
  box-shadow:
    inset 0 0 0 1px rgba(217, 255, 99, 0.1),
    inset 0 0 80px rgba(0, 0, 0, 0.7),
    0 30px 100px rgba(0, 0, 0, 0.55);
  transform: rotateX(calc(var(--ry, 0) * 1deg)) rotateY(calc(var(--rx, 0) * 1deg));
  transition: transform 500ms var(--ease);
  isolation: isolate;
}

.instrument-shell::before {
  content: "";
  position: absolute;
  inset: 5.5%;
  z-index: -1;
  border: 1px solid rgba(217, 255, 99, 0.09);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(217, 255, 99, 0.025);
}

.instrument-halo {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 255, 99, 0.13), rgba(217, 255, 99, 0.015) 46%, transparent 68%);
  filter: blur(14px);
  animation: halo 6s ease-in-out infinite;
}

.instrument-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.ring-outer {
  inset: 2%;
  border: 1px dashed rgba(217, 255, 99, 0.2);
  animation: spin 52s linear infinite;
}

.ring-mid {
  inset: 11%;
  border: 1px solid rgba(242, 240, 232, 0.08);
  border-top-color: rgba(217, 255, 99, 0.35);
  border-right-color: rgba(255, 130, 103, 0.2);
  animation: spin 26s linear infinite reverse;
}

.ring-inner {
  inset: 23%;
  border: 1px solid rgba(217, 255, 99, 0.12);
  box-shadow: 0 0 40px rgba(217, 255, 99, 0.04);
  animation: spin 16s linear infinite;
}

.instrument-axis {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 255, 99, 0.16) 20%, transparent 50%, rgba(217, 255, 99, 0.16) 80%, transparent);
  transform: translate(-50%, -50%) rotate(24deg);
  pointer-events: none;
}

.axis-b {
  transform: translate(-50%, -50%) rotate(-42deg);
  opacity: 0.6;
}

.instrument-sweep {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 300deg, rgba(217, 255, 99, 0.16) 342deg, rgba(217, 255, 99, 0.44) 358deg, transparent 360deg);
  mask-image: radial-gradient(circle, transparent 0 31%, black 32% 98%, transparent 99%);
  animation: spin 9s linear infinite;
  pointer-events: none;
}

.instrument-canvas {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  opacity: 0.9;
  pointer-events: none;
}

.instrument-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  width: 33%;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 255, 99, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(217, 255, 99, 0.13), transparent 48%),
    rgba(7, 10, 7, 0.78);
  box-shadow:
    inset 0 0 30px rgba(217, 255, 99, 0.06),
    0 0 50px rgba(217, 255, 99, 0.06);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
}

.core-glyph {
  color: var(--lime);
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.9;
  text-shadow: 0 0 24px rgba(217, 255, 99, 0.4);
}

.core-label {
  margin-top: 6px;
  color: rgba(242, 240, 232, 0.48);
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.7vw, 7px);
  letter-spacing: 0.13em;
}

.core-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: rgba(217, 255, 99, 0.66);
  font-family: var(--font-mono);
  font-size: clamp(5px, 0.65vw, 6.5px);
  letter-spacing: 0.1em;
}

.core-status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
}

.orbit-tag {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(242, 240, 232, 0.14);
  border-radius: 3px;
  background: rgba(7, 9, 7, 0.76);
  color: rgba(242, 240, 232, 0.56);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
  animation: float 7s ease-in-out infinite;
}

.tag-spark {
  top: 15%;
  left: 13%;
  color: var(--lime);
  border-color: rgba(217, 255, 99, 0.3);
  animation-delay: -1s;
}

.tag-heart {
  top: 25%;
  right: 8%;
  color: var(--coral);
  border-color: rgba(255, 130, 103, 0.28);
  animation-delay: -3s;
}

.tag-compass {
  right: 17%;
  bottom: 17%;
  color: var(--sky);
  border-color: rgba(142, 215, 255, 0.25);
  animation-delay: -5s;
}

.tag-wit {
  bottom: 23%;
  left: 8%;
  color: var(--lav);
  border-color: rgba(194, 173, 255, 0.28);
  animation-delay: -2s;
}

.tag-signal {
  top: 52%;
  right: 3%;
  color: var(--sun);
  border-color: rgba(255, 209, 102, 0.25);
  animation-delay: -4s;
}

.instrument-code {
  color: rgba(217, 255, 99, 0.45);
}

/* Reveal */

.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js-ready .reveal:nth-child(2) {
  transition-delay: 70ms;
}

.js-ready .reveal:nth-child(3) {
  transition-delay: 130ms;
}

.js-ready .reveal:nth-child(4) {
  transition-delay: 190ms;
}

/* Ticker */

.signal-ticker {
  width: 100%;
  overflow: hidden;
  contain: paint;
  border-top: 1px solid rgba(242, 240, 232, 0.08);
  border-bottom: 1px solid rgba(242, 240, 232, 0.08);
  background: rgba(242, 240, 232, 0.015);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 13px 0;
  color: rgba(242, 240, 232, 0.38);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  animation: marquee 28s linear infinite;
}

.ticker-track b {
  color: var(--lime);
  font-size: 10px;
  font-weight: 400;
}

/* Saved personal strip */

.saved-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  width: var(--page);
  margin: 26px auto 0;
  padding: 12px 15px;
  border: 1px solid rgba(217, 255, 99, 0.16);
  border-radius: var(--radius);
  background: rgba(217, 255, 99, 0.035);
}

.saved-strip[hidden] {
  display: none;
}

.saved-strip-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--saved-color, var(--lime));
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.saved-strip-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.saved-strip-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-strip-copy span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.saved-strip-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saved-strip-actions .text-cta {
  font-size: 9px;
}

/* Sections */

.modes,
.daily-section,
.lab,
.how {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 150px) 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 28px 60px;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.daily-heading h2,
.lab-heading h2,
.how-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.94;
  text-wrap: balance;
}

.section-heading > p:last-child,
.daily-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* Mode cards */

.mode-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: 14px;
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 560px;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid rgba(242, 240, 232, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(217, 255, 99, 0.075), transparent 48%),
    linear-gradient(155deg, rgba(18, 26, 19, 0.9), rgba(8, 12, 9, 0.94) 62%, rgba(7, 9, 7, 0.98));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025) inset;
  transition: transform 380ms var(--ease), border-color 300ms ease, box-shadow 380ms ease;
}

.mode-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 255, 99, 0.4), transparent);
  opacity: 0;
  transition: opacity 300ms ease;
}

.mode-card:hover {
  border-color: rgba(217, 255, 99, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(-5px);
}

.mode-card:hover::after {
  opacity: 1;
}

.mode-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.mode-index {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(217, 255, 99, 0.22);
  border-radius: 50%;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
}

.mode-tag {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mode-arrow {
  margin-left: auto;
  color: rgba(242, 240, 232, 0.34);
  font-size: 17px;
  transition: color 200ms ease, transform 260ms var(--ease);
}

.mode-card:hover .mode-arrow {
  color: var(--lime);
  transform: translate(2px, -2px);
}

.mode-visual {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 210px;
  margin: 18px 0 6px;
  place-items: center;
}

.mode-card-large .mode-visual {
  min-height: 280px;
}

.mini-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(330px, 74%);
  padding: 19px 20px 15px;
  border: 1px solid rgba(217, 255, 99, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(160deg, rgba(217, 255, 99, 0.08), transparent 55%),
    rgba(10, 15, 11, 0.9);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transform: rotate(-4deg);
  transition: transform 500ms var(--ease);
}

.mode-card:hover .mini-ticket {
  transform: rotate(-1.5deg) translateY(-4px);
}

.mini-ticket::before,
.mini-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
}

.mini-ticket::before {
  left: -7px;
}

.mini-ticket::after {
  right: -7px;
}

.mini-ticket-top,
.mini-ticket-code {
  color: rgba(242, 240, 232, 0.38);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.mini-ticket-name {
  margin: 16px 0 4px;
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.mini-ticket svg {
  width: 100%;
  height: auto;
  margin: 2px 0 10px;
  opacity: 0.9;
}

.mini-ticket-code {
  align-self: flex-end;
  color: rgba(217, 255, 99, 0.5);
}

.visual-note {
  position: absolute;
  padding: 6px 9px;
  border: 1px solid rgba(242, 240, 232, 0.1);
  border-radius: 3px;
  background: rgba(7, 9, 7, 0.82);
  color: rgba(242, 240, 232, 0.42);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.visual-note-one {
  top: 28%;
  right: 7%;
  color: var(--lime);
  border-color: rgba(217, 255, 99, 0.24);
}

.visual-note-two {
  bottom: 23%;
  left: 7%;
  color: var(--coral);
  border-color: rgba(255, 130, 103, 0.22);
}

.avatar-orbit {
  position: relative;
  width: min(260px, 78%);
  aspect-ratio: 1;
}

.avatar-orbit::before,
.avatar-orbit::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(217, 255, 99, 0.1);
  border-radius: 50%;
}

.avatar-orbit::after {
  inset: 25%;
  border-style: dashed;
}

.fake-avatar {
  position: absolute;
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(7, 9, 7, 0.9);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.avatar-a {
  top: 4%;
  left: 46%;
  color: var(--lime);
}

.avatar-b {
  top: 44%;
  right: 0;
  color: var(--coral);
}

.avatar-c {
  bottom: 1%;
  left: 40%;
  color: var(--lav);
}

.avatar-d {
  top: 44%;
  left: 0;
  color: var(--sky);
}

.avatar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(217, 255, 99, 0.4);
  border-radius: 50%;
  background: rgba(217, 255, 99, 0.08);
  color: var(--lime);
  font-family: var(--font-serif);
  font-size: 30px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 40px rgba(217, 255, 99, 0.08);
}

.avatar-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 255, 99, 0.28), transparent);
  transform-origin: left;
}

.line-a {
  transform: rotate(-92deg);
}

.line-b {
  transform: rotate(22deg);
}

.line-c {
  transform: rotate(154deg);
}

.mode-copy h3 {
  margin: 15px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.mode-copy p {
  max-width: 500px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

/* Daily */

.daily-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  align-items: end;
  gap: 36px clamp(36px, 6vw, 90px);
}

.daily-heading h2 {
  margin: 22px 0 16px;
}

.daily-heading > p:last-child {
  max-width: 430px;
}

.daily-ticket {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(300px circle at 92% 8%, rgba(217, 255, 99, 0.32), transparent 54%),
    var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.daily-ticket::before,
.daily-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
}

.daily-ticket::before {
  left: -9px;
}

.daily-ticket::after {
  right: -9px;
}

.daily-ticket-head,
.daily-ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.daily-ticket-head {
  border-bottom: 1px dashed rgba(7, 9, 7, 0.2);
  color: rgba(7, 9, 7, 0.52);
}

.daily-ticket-body {
  position: relative;
  padding: 27px 28px 22px;
}

.daily-number {
  position: absolute;
  top: 6px;
  right: 18px;
  color: rgba(7, 9, 7, 0.1);
  font-family: var(--font-display);
  font-size: 78px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
}

.daily-ticket h3 {
  position: relative;
  max-width: 520px;
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.daily-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.daily-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 13px 16px;
  border: 1px solid rgba(7, 9, 7, 0.2);
  border-radius: var(--radius);
  background: rgba(7, 9, 7, 0.03);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.daily-option span:first-child {
  display: inline-grid;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(7, 9, 7, 0.24);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 8px;
}

.daily-option:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
  transform: translateY(-2px);
}

.daily-option.is-picked {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.daily-after {
  min-height: 0;
  margin: 14px 0 0;
  color: rgba(7, 9, 7, 0.64);
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.4;
}

.daily-ticket-foot {
  border-top: 1px dashed rgba(7, 9, 7, 0.2);
}

.daily-ticket-foot .text-cta {
  color: var(--ink);
  font-size: 10px;
}

.daily-ticket-foot .text-cta span:last-child {
  color: var(--ink);
}

.streak {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(7, 9, 7, 0.56);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.streak-dots {
  display: flex;
  gap: 3px;
}

.streak-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(7, 9, 7, 0.16);
}

.streak-dots i.is-on {
  background: var(--ink);
}

/* Lab */

.lab {
  position: relative;
  margin-top: clamp(100px, 12vw, 170px);
  padding-top: clamp(80px, 9vw, 120px);
  border-top: 1px solid rgba(242, 240, 232, 0.08);
}

.lab::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 22%;
  height: 1px;
  background: var(--lime);
  box-shadow: 0 0 20px rgba(217, 255, 99, 0.5);
}

.lab-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  align-items: end;
  gap: 30px;
}

.lab-heading h2 {
  margin-top: 22px;
  max-width: 950px;
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 58px;
  border-top: 1px solid rgba(242, 240, 232, 0.1);
}

.lab-note {
  min-height: 235px;
  padding: 26px 28px 26px 0;
  border-right: 1px solid rgba(242, 240, 232, 0.09);
}

.lab-note + .lab-note {
  padding-left: 28px;
}

.lab-note:last-child {
  border-right: 0;
}

.lab-number {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.lab-note h3 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.lab-note p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.lab-disclaimer {
  max-width: 720px;
  margin: 46px 0 0 auto;
  padding: 24px 0 0;
  border-top: 1px solid rgba(242, 240, 232, 0.09);
  color: rgba(242, 240, 232, 0.58);
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 27px);
  font-style: italic;
  line-height: 1.35;
}

/* How it works */

.how {
  padding-bottom: clamp(100px, 12vw, 160px);
}

.how-heading h2 {
  margin-top: 22px;
}

.how-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 20px;
  margin-top: 62px;
  padding-top: 28px;
  border-top: 1px solid rgba(242, 240, 232, 0.1);
}

.how-step > span {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.how-step h3 {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.how-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.how-connector {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: rgba(217, 255, 99, 0.45);
}

.how-connector i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.how-connector i:nth-child(2) {
  opacity: 0.6;
}

.how-connector i:nth-child(3) {
  opacity: 0.3;
}

/* Footer */

.site-footer {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.9fr) auto;
  align-items: start;
  gap: 32px;
  padding: 42px max(24px, calc((100vw - var(--page)) / 2)) 48px;
  border-top: 1px solid rgba(242, 240, 232, 0.08);
  background: rgba(4, 6, 4, 0.45);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-delta {
  color: var(--lime);
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.footer-brand span:last-child {
  color: var(--muted-2);
  font-size: 10px;
}

.footer-note {
  margin: 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.footer-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--lime);
}

/* Stage */

.stage {
  width: min(1180px, calc(100vw - 48px));
  min-height: calc(100svh - 74px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) 0 100px;
}

.stage-view {
  animation: stageIn 500ms var(--ease) both;
}

.flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  margin-bottom: 34px;
}

.flow-back,
.flow-exit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.flow-back:hover,
.flow-exit:hover {
  color: var(--lime);
}

.flow-progress {
  display: flex;
  flex: 1;
  gap: 4px;
  max-width: 460px;
  margin: 0 20px;
}

.flow-progress i {
  display: block;
  flex: 1;
  height: 2px;
  background: rgba(242, 240, 232, 0.12);
  transition: background 260ms ease, box-shadow 260ms ease;
}

.flow-progress i.is-done {
  background: var(--lime);
  box-shadow: 0 0 8px rgba(217, 255, 99, 0.35);
}

.flow-eyebrow {
  margin: 0 0 15px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.flow-title {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.5vw, 5.3rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-wrap: balance;
}

.flow-title em {
  color: var(--lime);
  font-family: var(--font-serif);
  font-weight: 400;
}

.flow-lede {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.flow-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

.panel {
  position: relative;
  margin-top: 38px;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid rgba(242, 240, 232, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(600px circle at 85% 0%, rgba(217, 255, 99, 0.055), transparent 55%),
    linear-gradient(160deg, rgba(17, 24, 18, 0.86), rgba(8, 11, 8, 0.96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 90px;
  height: 1px;
  background: var(--lime);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
}

.field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.name-input {
  width: 100%;
  padding: 5px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(242, 240, 232, 0.24);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
  outline: none;
  transition: border-color 200ms ease;
}

.name-input::placeholder {
  color: rgba(242, 240, 232, 0.18);
}

.name-input:focus {
  border-color: var(--lime);
}

.name-input[aria-invalid="true"] {
  border-color: var(--coral);
}

.name-input-small {
  font-size: clamp(2rem, 4.4vw, 3.8rem);
}

.field-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 9px;
}

.color-field {
  margin-top: 27px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.swatch {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(242, 240, 232, 0.18);
  border-radius: 50%;
  background: var(--swatch);
  transition: transform 180ms var(--ease), box-shadow 180ms ease;
}

.swatch:hover {
  transform: scale(1.08);
}

.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 4px var(--swatch), 0 0 24px color-mix(in srgb, var(--swatch) 45%, transparent);
}

.swatch[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 230px;
}

.form-side-note {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.65;
  text-align: right;
}

.target-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 760px;
  margin-top: 28px;
  padding: 13px 16px;
  border: 1px solid rgba(242, 240, 232, 0.12);
  border-radius: var(--radius);
  background: rgba(242, 240, 232, 0.02);
}

.target-strip .ticket-avatar {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.target-strip > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.target-strip strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-strip span:not(.ticket-avatar) {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.target-serial {
  margin-left: auto;
  color: var(--lime) !important;
  font-family: var(--font-mono);
  font-size: 8px !important;
}

.own-signal {
  max-width: 650px;
  margin: 0 auto;
  padding: 10px 0;
  text-align: center;
}

.own-signal-mark {
  display: inline-block;
  color: var(--lime);
  font-family: var(--font-serif);
  font-size: 58px;
  line-height: 1;
}

.own-signal h2 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.own-signal p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.own-signal .result-actions {
  justify-content: center;
}

.reply-banner {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(217, 255, 99, 0.2);
  border-radius: var(--radius);
  background: rgba(217, 255, 99, 0.045);
}

.reply-mark {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(217, 255, 99, 0.3);
  border-radius: 50%;
  color: var(--lime);
  font-size: 12px;
}

.reply-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.reply-banner strong {
  color: var(--paper);
}

.round-field {
  margin-top: 18px;
}

.setup-submit {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 22px;
}

.match-ring-inner small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Quiz */

.quiz-shell {
  max-width: 920px;
  margin: 0 auto;
}

.quiz-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.quiz-count {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.quiz-dimension {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.question-prompt {
  max-width: 850px;
  min-height: 2.3em;
  margin: 20px 0 32px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.02;
  text-wrap: balance;
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.answer-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 164px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(242, 240, 232, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 255, 99, 0.05), transparent 60%),
    rgba(242, 240, 232, 0.018);
  color: var(--paper);
  text-align: left;
  transition: transform 240ms var(--ease), border-color 220ms ease, background 220ms ease, opacity 220ms ease;
}

.answer-option::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(217, 255, 99, 0.08);
  border-radius: 50%;
  transition: transform 400ms var(--ease), border-color 200ms ease;
}

.answer-option:hover {
  border-color: rgba(217, 255, 99, 0.42);
  background:
    radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 255, 99, 0.1), transparent 60%),
    rgba(217, 255, 99, 0.035);
  transform: translateY(-3px);
}

.answer-option:hover::after {
  border-color: rgba(217, 255, 99, 0.22);
  transform: scale(1.15);
}

.answer-option.is-picked {
  border-color: var(--lime);
  background: rgba(217, 255, 99, 0.12);
  transform: scale(0.985);
}

.answer-key {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(217, 255, 99, 0.28);
  border-radius: 50%;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
}

.answer-copy {
  position: relative;
  z-index: 1;
  max-width: 320px;
  padding-top: 1px;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.quiz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
}

.quiz-hint {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.quiz-back {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.quiz-back:hover {
  color: var(--lime);
}

/* Processing */

.processing {
  display: grid;
  min-height: 56vh;
  place-items: center;
  text-align: center;
}

.processing-inner {
  width: min(620px, 100%);
}

.processing-title {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.processing-steps {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.processing-steps span {
  position: relative;
}

.processing-steps span + span::before {
  content: "·";
  position: absolute;
  left: -11px;
  color: var(--lime);
}

.wave-loader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 80px;
}

.wave-loader i {
  display: block;
  width: 3px;
  height: 20%;
  border-radius: 99px;
  background: var(--lime);
  animation: waveBar 1.1s ease-in-out infinite;
}

.wave-loader i:nth-child(2n) {
  background: var(--coral);
}

.wave-loader i:nth-child(3n) {
  background: var(--lav);
}

.wave-loader i:nth-child(1) { animation-delay: -0.9s; }
.wave-loader i:nth-child(2) { animation-delay: -0.75s; }
.wave-loader i:nth-child(3) { animation-delay: -0.6s; }
.wave-loader i:nth-child(4) { animation-delay: -0.45s; }
.wave-loader i:nth-child(5) { animation-delay: -0.3s; }
.wave-loader i:nth-child(6) { animation-delay: -0.15s; }
.wave-loader i:nth-child(7) { animation-delay: 0s; }
.wave-loader i:nth-child(8) { animation-delay: -0.15s; }
.wave-loader i:nth-child(9) { animation-delay: -0.3s; }
.wave-loader i:nth-child(10) { animation-delay: -0.45s; }
.wave-loader i:nth-child(11) { animation-delay: -0.6s; }
.wave-loader i:nth-child(12) { animation-delay: -0.75s; }

/* Result */

.result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.result-head .flow-title {
  margin-top: 12px;
}

.result-head-score {
  flex: 0 0 auto;
  text-align: right;
}

.result-head-score strong {
  display: block;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.result-head-score span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-quick {
  margin-top: 14px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.result-ticket {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(242, 240, 232, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(520px circle at 80% 0%, color-mix(in srgb, var(--ticket-color, var(--lime)) 14%, transparent), transparent 56%),
    linear-gradient(160deg, rgba(18, 26, 19, 0.96), rgba(8, 12, 9, 0.98));
  box-shadow: var(--shadow);
}

.result-ticket::before,
.result-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
}

.result-ticket::before {
  left: -8px;
}

.result-ticket::after {
  right: -8px;
}

.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(242, 240, 232, 0.16);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticket-serial {
  color: var(--lime);
}

.ticket-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 23px 0 18px;
}

.ticket-avatar {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--ticket-color, var(--lime));
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 0 30px color-mix(in srgb, var(--ticket-color, var(--lime)) 18%, transparent);
}

.ticket-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.ticket-sub {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin: 8px 0 2px;
}

.radar-svg {
  width: min(100%, 360px);
  height: auto;
  overflow: visible;
}

.radar-label {
  fill: rgba(242, 240, 232, 0.5);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.radar-value {
  fill: var(--lime);
  font-family: var(--font-mono);
  font-size: 7px;
}

.ticket-signature {
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(242, 240, 232, 0.1);
  color: rgba(242, 240, 232, 0.75);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.3vw, 26px);
  font-style: italic;
  line-height: 1.35;
}

.dimension-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(242, 240, 232, 0.1);
  border-radius: var(--radius);
  background: rgba(242, 240, 232, 0.018);
}

.dimension-panel h2,
.breakdown-panel h2 {
  margin: 0 0 23px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dimension-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
}

.dimension-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dimension-name strong {
  font-size: 11px;
  font-weight: 700;
}

.dimension-name span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.dimension-bar {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(242, 240, 232, 0.09);
}

.dimension-bar i {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--dim-color, var(--lime));
  box-shadow: 0 0 12px color-mix(in srgb, var(--dim-color, var(--lime)) 45%, transparent);
  transition: width 1.1s var(--ease);
}

.dimension-score {
  color: rgba(242, 240, 232, 0.7);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: right;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.result-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.result-secondary .text-cta {
  color: var(--muted);
  font-size: 10px;
}

.result-secondary .text-cta:hover {
  color: var(--lime);
}

/* Match result */

.match-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  margin-bottom: 34px;
}

.match-ring {
  position: relative;
  display: grid;
  width: clamp(150px, 18vw, 218px);
  aspect-ratio: 1;
  place-items: center;
}

.match-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.match-ring circle {
  fill: none;
  stroke-width: 2;
}

.match-ring .ring-bg {
  stroke: rgba(242, 240, 232, 0.1);
}

.match-ring .ring-fg {
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-dasharray: 301.6;
  stroke-dashoffset: calc(301.6 - (301.6 * var(--score, 0)) / 100);
  filter: drop-shadow(0 0 6px rgba(217, 255, 99, 0.4));
  transition: stroke-dashoffset 1.3s var(--ease);
}

.match-ring-inner {
  display: grid;
  place-items: center;
  text-align: center;
}

.match-ring-inner strong {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 4.3rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.match-ring-inner span {
  margin-top: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.match-copy .flow-eyebrow {
  margin-bottom: 10px;
}

.match-copy .flow-title {
  font-size: clamp(2.3rem, 4.8vw, 4.6rem);
}

.match-tier {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  padding: 7px 11px;
  border: 1px solid rgba(217, 255, 99, 0.24);
  border-radius: 3px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.match-tier::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.match-line {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.4;
}

.match-copy .result-quick {
  margin-top: 16px;
}

.match-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
  align-items: start;
}

.mini-profile {
  position: sticky;
  top: 98px;
  padding: 24px;
  border: 1px solid rgba(242, 240, 232, 0.12);
  border-radius: var(--radius);
  background: rgba(242, 240, 232, 0.018);
}

.mini-profile-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mini-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--profile-color, var(--lime));
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.mini-profile-top strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.03em;
}

.mini-profile-top span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.mini-profile .radar-svg {
  margin: 13px auto 2px;
}

.mini-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.mini-traits span {
  padding: 5px 8px;
  border: 1px solid rgba(242, 240, 232, 0.12);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
}

.breakdown-panel {
  padding: 24px;
  border: 1px solid rgba(242, 240, 232, 0.1);
  border-radius: var(--radius);
  background: rgba(242, 240, 232, 0.018);
}

.breakdown-list {
  display: flex;
  flex-direction: column;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(242, 240, 232, 0.08);
}

.breakdown-row:last-child {
  border-bottom: 0;
}

.breakdown-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(217, 255, 99, 0.24);
  border-radius: 50%;
  color: var(--lime);
  font-size: 10px;
}

.breakdown-row.is-wrong .breakdown-icon {
  border-color: rgba(255, 130, 103, 0.3);
  color: var(--coral);
}

.breakdown-main strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

.breakdown-main span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.45;
}

.breakdown-tag {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breakdown-row.is-wrong .breakdown-tag {
  color: var(--coral);
}

/* Group setup */

.group-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
  margin-top: 34px;
}

.group-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(242, 240, 232, 0.1);
  border-radius: var(--radius);
  background: rgba(242, 240, 232, 0.018);
}

.group-panel h2 {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player-form {
  display: flex;
  gap: 8px;
}

.player-input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(242, 240, 232, 0.16);
  border-radius: var(--radius);
  background: rgba(7, 9, 7, 0.46);
  color: var(--paper);
  font-size: 13px;
  outline: none;
}

.player-input::placeholder {
  color: var(--muted-2);
}

.player-input:focus {
  border-color: var(--lime);
}

.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 44px;
  margin-top: 16px;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 6px;
  border: 1px solid rgba(242, 240, 232, 0.12);
  border-radius: 99px;
  background: rgba(242, 240, 232, 0.03);
  font-size: 11px;
}

.player-chip-dot {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--chip-color);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
}

.player-chip button {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1;
}

.player-chip button:hover {
  background: rgba(255, 130, 103, 0.14);
  color: var(--coral);
}

.empty-note {
  margin: 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.7;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(242, 240, 232, 0.12);
  border-radius: var(--radius);
  background: rgba(7, 9, 7, 0.4);
}

.segmented button {
  padding: 10px 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.segmented button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--ink);
}

.group-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.round-preview {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  padding: 24px;
  border: 1px solid rgba(217, 255, 99, 0.17);
  border-radius: var(--radius);
  background:
    radial-gradient(260px circle at 70% 20%, rgba(217, 255, 99, 0.1), transparent 58%),
    rgba(10, 14, 10, 0.68);
}

.round-preview::after {
  content: "?";
  position: absolute;
  right: 15px;
  bottom: -44px;
  color: rgba(217, 255, 99, 0.06);
  font-family: var(--font-serif);
  font-size: 180px;
  line-height: 1;
}

.round-preview small {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.round-preview p {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 42px 0 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.rules-note {
  padding: 17px 18px;
  border: 1px solid rgba(242, 240, 232, 0.09);
  border-radius: var(--radius);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
}

/* Group play */

.vote-stage {
  max-width: 980px;
  margin: 0 auto;
}

.vote-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.vote-round {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.secret-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(242, 240, 232, 0.12);
  border-radius: 99px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.secret-pill::before {
  content: "◇";
  color: var(--lime);
}

.vote-kicker {
  margin: 0;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.vote-question {
  max-width: 900px;
  min-height: 1.9em;
  margin: 16px 0 30px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
}

.vote-person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  min-height: 122px;
  padding: 18px;
  border: 1px solid rgba(242, 240, 232, 0.11);
  border-radius: var(--radius);
  background: rgba(242, 240, 232, 0.018);
  color: var(--paper);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms var(--ease);
}

.vote-person:hover {
  border-color: color-mix(in srgb, var(--person-color) 55%, transparent);
  background: color-mix(in srgb, var(--person-color) 8%, transparent);
  transform: translateY(-3px);
}

.vote-person.is-picked {
  border-color: var(--person-color);
  background: color-mix(in srgb, var(--person-color) 13%, transparent);
}

.vote-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--person-color);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.vote-person strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.vote-foot {
  margin-top: 18px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

/* Handoff */

.handoff {
  display: grid;
  min-height: 62vh;
  place-items: center;
  text-align: center;
}

.handoff-inner {
  max-width: 640px;
}

.handoff-avatar {
  display: grid;
  width: 86px;
  height: 86px;
  margin: 0 auto 26px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--handoff-color, var(--lime));
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 0 50px color-mix(in srgb, var(--handoff-color, var(--lime)) 20%, transparent);
}

.handoff h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.handoff p {
  margin: 18px auto 28px;
  max-width: 440px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* Reveal */

.reveal-vote {
  max-width: 880px;
  margin: 0 auto;
}

.reveal-vote-head {
  text-align: center;
  margin-bottom: 34px;
}

.reveal-vote-head h1 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.reveal-vote-head p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.4;
}

.vote-result-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.vote-result-row {
  display: grid;
  grid-template-columns: 38px 110px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(242, 240, 232, 0.09);
  border-radius: var(--radius);
  background: rgba(242, 240, 232, 0.015);
}

.vote-result-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--row-color);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
}

.vote-result-name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vote-result-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(242, 240, 232, 0.08);
}

.vote-result-bar i {
  display: block;
  width: var(--vote-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--row-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--row-color) 45%, transparent);
  transition: width 900ms var(--ease);
}

.vote-result-count {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
}

.self-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  text-align: center;
}

.reveal-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Group result */

.group-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  margin-top: 34px;
}

.resonance-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(242, 240, 232, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(340px circle at 20% 15%, rgba(217, 255, 99, 0.1), transparent 55%),
    rgba(242, 240, 232, 0.018);
}

.resonance-card h2 {
  margin: 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resonance-number {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 26px;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 8.5rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.resonance-number span {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
}

.resonance-label {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 20px;
  padding: 6px 9px;
  border: 1px solid rgba(217, 255, 99, 0.22);
  border-radius: 3px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.group-map-card {
  padding: 18px;
  border: 1px solid rgba(242, 240, 232, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(420px circle at 50% 50%, rgba(217, 255, 99, 0.04), transparent 64%),
    rgba(7, 9, 7, 0.52);
}

.group-map {
  width: 100%;
  height: 330px;
}

.awards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.award {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 22px;
  border: 1px solid rgba(242, 240, 232, 0.1);
  border-radius: var(--radius);
  background: rgba(242, 240, 232, 0.018);
}

.award::after {
  content: attr(data-mark);
  position: absolute;
  right: 12px;
  bottom: -18px;
  color: rgba(217, 255, 99, 0.06);
  font-family: var(--font-serif);
  font-size: 92px;
  line-height: 1;
}

.award small {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.award h3 {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.award p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.round-details {
  margin-top: 16px;
  border: 1px solid rgba(242, 240, 232, 0.1);
  border-radius: var(--radius);
  background: rgba(242, 240, 232, 0.015);
}

.round-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.round-details summary::-webkit-details-marker {
  display: none;
}

.round-details summary::after {
  content: "+";
  color: var(--lime);
  font-size: 15px;
}

.round-details[open] summary::after {
  content: "−";
}

.round-details-inner {
  padding: 0 20px 20px;
}

.round-detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-top: 1px solid rgba(242, 240, 232, 0.07);
}

.round-detail-row span:first-child {
  color: var(--muted);
  font-size: 10px;
}

.round-detail-row span:last-child {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: right;
}

/* Invalid */

.invalid-state {
  display: grid;
  min-height: 60vh;
  place-items: center;
  text-align: center;
}

.invalid-inner {
  max-width: 560px;
}

.invalid-mark {
  color: var(--coral);
  font-family: var(--font-serif);
  font-size: 74px;
  line-height: 1;
}

.invalid-state h1 {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.invalid-state p {
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Toast + dialog */

.toast {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 120;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border: 1px solid rgba(217, 255, 99, 0.3);
  border-radius: 99px;
  background: rgba(15, 21, 16, 0.97);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 220ms ease, transform 300ms var(--ease);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.share-dialog {
  width: min(560px, calc(100vw - 26px));
  max-height: calc(100svh - 26px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(217, 255, 99, 0.24);
  border-radius: 10px;
  background: var(--ink-2);
  color: var(--paper);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

.share-dialog::backdrop {
  background: rgba(2, 4, 2, 0.72);
  backdrop-filter: blur(10px);
}

.share-dialog-inner {
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(420px circle at 85% 0%, rgba(217, 255, 99, 0.08), transparent 55%),
    var(--ink-2);
}

.share-dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.share-kicker {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.dialog-close {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(242, 240, 232, 0.15);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.dialog-close:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.share-dialog h2 {
  margin: 17px 0 7px;
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.share-dialog p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.share-link-row {
  display: flex;
  gap: 7px;
}

.share-link-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(242, 240, 232, 0.16);
  border-radius: var(--radius);
  background: rgba(7, 9, 7, 0.58);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  outline: none;
}

.share-link-row input:focus {
  border-color: var(--lime);
}

.share-dialog-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 9px;
}

.share-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(242, 240, 232, 0.12);
  border-radius: var(--radius);
  background: rgba(242, 240, 232, 0.025);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.share-chip:hover {
  border-color: rgba(217, 255, 99, 0.35);
  color: var(--lime);
}

.share-micro {
  margin: 18px 0 0 !important;
  color: var(--muted-2) !important;
  font-family: var(--font-mono);
  font-size: 7px !important;
  letter-spacing: 0.03em;
}

.share-preview-image {
  width: 100%;
  margin: 14px 0;
  border: 1px solid rgba(242, 240, 232, 0.14);
  border-radius: 5px;
}

.card-dialog-actions {
  display: flex;
  gap: 8px;
}

.card-dialog-actions .button {
  flex: 1;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Result action bar on small screens */

.mobile-action-bar {
  display: none;
}

/* Responsive */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
    padding-top: 56px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-instrument {
    max-width: 540px;
  }

  .mode-grid,
  .daily-section,
  .lab-heading,
  .result-layout,
  .match-grid,
  .group-scoreboard,
  .group-setup-grid {
    grid-template-columns: 1fr;
  }

  .daily-section {
    align-items: start;
  }

  .mini-profile {
    position: static;
  }

  .mode-card {
    min-height: 0;
  }

  .mode-card-large .mode-visual {
    min-height: 250px;
  }
}

@media (max-width: 820px) {
  :root {
    --page: calc(100vw - 40px);
  }

  .site-header {
    height: 66px;
    padding: 0 20px;
  }

  .main-nav {
    position: fixed;
    top: 66px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(242, 240, 232, 0.12);
    border-radius: var(--radius);
    background: rgba(9, 13, 9, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(242, 240, 232, 0.06);
    font-size: 11px;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a::after {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .brand-divider,
  .brand-game {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 46px 0 48px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 12vw, 5rem);
  }

  .hero-lede {
    font-size: 14px;
  }

  .hero-proof {
    gap: 9px 18px;
  }

  .hero-instrument {
    max-width: 440px;
  }

  .orbit-tag {
    font-size: 6px;
    padding: 5px 7px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mode-card {
    padding: 21px;
  }

  .mode-card-large .mode-visual {
    min-height: 215px;
  }

  .mini-ticket {
    width: min(290px, 82%);
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }

  .lab-note,
  .lab-note + .lab-note {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(242, 240, 232, 0.08);
  }

  .lab-note h3 {
    margin-top: 15px;
  }

  .how-track {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 38px;
  }

  .how-connector {
    margin: -3px 0 -3px 7px;
    transform: rotate(90deg);
    transform-origin: left center;
  }

  .how-step h3 {
    margin-top: 11px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .stage {
    width: calc(100vw - 36px);
    padding-top: 30px;
  }

  .flow-progress {
    margin: 0 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    min-width: 0;
  }

  .form-side-note {
    text-align: left;
  }

  .target-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .target-serial {
    width: 100%;
    margin-left: 51px;
  }

  .answer-grid {
    grid-template-columns: 1fr;
  }

  .answer-option {
    min-height: 92px;
    padding: 18px;
  }

  .result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-head-score {
    text-align: left;
  }

  .result-head-score .result-quick {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }

  .result-quick {
    margin-top: 10px;
  }

  .match-hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .match-ring {
    width: 145px;
  }

  .awards {
    grid-template-columns: 1fr;
  }

  .group-map {
    height: 290px;
  }

  .vote-result-row {
    grid-template-columns: 34px minmax(0, 1fr) 48px;
  }

  .vote-result-bar {
    grid-column: 2 / -1;
  }

  .vote-result-count {
    grid-row: 1;
    grid-column: 3;
  }

  .share-dialog-actions {
    grid-template-columns: 1fr;
  }

  .daily-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  :root {
    --page: calc(100vw - 32px);
  }

  .site-header {
    padding: 0 16px;
  }

  .header-actions {
    gap: 5px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    margin: 22px 0 21px;
    font-size: clamp(2.8rem, 13.6vw, 4.2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr 1fr;
    margin-top: 28px;
  }

  .hero-instrument {
    max-width: 350px;
  }

  .hero-instrument .orbit-tag {
    font-size: 5.5px;
    padding: 4px 6px;
  }

  .instrument-meta {
    font-size: 6.5px;
  }

  .core-label {
    font-size: 5px;
  }

  .modes,
  .daily-section,
  .lab,
  .how {
    padding-top: 80px;
  }

  .section-heading h2,
  .daily-heading h2,
  .lab-heading h2,
  .how-heading h2 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .mode-visual {
    min-height: 190px;
  }

  .mode-card-large .mode-visual {
    min-height: 190px;
  }

  .mini-ticket {
    width: 88%;
  }

  .visual-note {
    display: none;
  }

  .daily-ticket-body {
    padding: 23px 20px 18px;
  }

  .daily-ticket-head,
  .daily-ticket-foot {
    padding: 12px 19px;
  }

  .daily-number {
    font-size: 62px;
  }

  .daily-ticket h3 {
    font-size: 24px;
  }

  .daily-ticket-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .saved-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .saved-strip-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .lab-disclaimer {
    margin-top: 32px;
  }

  .stage {
    width: calc(100vw - 30px);
    padding-bottom: 70px;
  }

  .flow-header {
    margin-bottom: 25px;
  }

  .flow-title {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .panel {
    padding: 20px;
  }

  .name-input {
    font-size: 2.55rem;
  }

  .question-prompt {
    margin: 14px 0 23px;
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .answer-option {
    gap: 12px;
    min-height: 86px;
    padding: 16px;
  }

  .answer-copy {
    font-size: 14px;
  }

  .quiz-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-ticket,
  .dimension-panel,
  .breakdown-panel,
  .mini-profile {
    padding: 20px;
  }

  .ticket-name {
    font-size: 2.7rem;
  }

  .dimension-row {
    grid-template-columns: 64px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .button {
    width: 100%;
  }

  .match-copy .flow-title {
    font-size: 2.4rem;
  }

  .vote-question {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .vote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vote-person {
    min-height: 106px;
    padding: 14px;
  }

  .resonance-card {
    min-height: 280px;
  }

  .group-map {
    height: 260px;
  }

  .award {
    min-height: 145px;
  }

  .share-link-row {
    flex-direction: column;
  }

  .card-dialog-actions {
    flex-direction: column;
  }

  .share-link-row .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes pip {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes halo {
  0%, 100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

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

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

@keyframes stageIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes waveBar {
  0%, 100% { height: 18%; opacity: 0.45; }
  50% { height: 88%; opacity: 1; }
}
