:root {
  --card-a: var(--bg);
  --card-b: var(--accent-soft);
  --card-c: var(--pop-soft);
  --card-ink: var(--ink);
  --card-soft: var(--ink-soft);
  --card-panel: var(--surface);
  --card-line: var(--surface-3);
  --card-accent: var(--accent);
  --card-accent-2: var(--accent-2);
  --card-pop: var(--pop);
  --card-gold: var(--gold);
  --card-gem: var(--gem);
  --card-on: var(--on-accent);
  --card-shadow: rgba(40, 25, 10, 0.24);
  --card-glow: #fffbe8;
  --card-paper: #fffaf0;
  --card-paper-ink: #3b3226;
  --card-paper-line: #d2bd8f;
  --card-seal: #e8a13a;
  --card-night-a: #1f1d3a;
  --card-night-b: #4a3a6b;
  --card-night-ink: #fff7ef;

  --focus-a: #1f1a45;
  --focus-b: #4a3470;
  --focus-c: #6e3a4e;
  --focus-ink: #fff7ef;
  --focus-soft: rgba(255, 247, 239, 0.88);
  --focus-glass: rgba(255, 255, 255, 0.12);
  --focus-glass-2: rgba(255, 255, 255, 0.22);
  --focus-line: rgba(255, 255, 255, 0.3);
  --focus-ring: #ffe7a8;
  --focus-ring-2: #ffb38a;
  --focus-track: rgba(255, 255, 255, 0.16);
  --focus-shadow: 0 10px 30px rgba(20, 10, 40, 0.35);
  --focus-timer: clamp(3.6rem, 19vw, 5.6rem);
  --focus-orb: min(80vw, 44vh, 380px);
  --focus-hero: min(48vw, 24vh, 220px);
  --focus-hero-big: min(62vw, 30vh, 280px);

  --gz-col-max: 560px;
  --gz-sheen: rgba(255, 255, 255, 0.35);
  --gz-vinyl-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  --gz-blink-t: 1.2s;
  --gz-wiggle-t: 2.4s;
  --gz-fs-tiny: var(--fs-2xs);
  --gz-ask-w: 360px;
  --gz-range-h: var(--target);
  --gz-eq-h: 16px;
  --st-chip: rgba(255, 255, 255, 0.28);
  --st-bpm-bg: rgba(0, 0, 0, 0.18);
  --st-art: 46px;
  --focus-text-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
  --focus-veil: rgba(10, 6, 24, 0.5);
  --gz-preview-h: min(56vh, 520px);
  --gz-preview-post: min(76vw, 44vh, 400px);
  --gz-shimmer-a: var(--surface-2);
  --gz-shimmer-b: var(--surface-3);
  --gz-shimmer-t: 1.4s;
  --gz-in-t: 0.45s;
  --gz-spin-t: 4.5s;
  --gz-eq-t: 0.9s;
  --gz-vinyl: 76px;
  --gz-vinyl-a: #1e1b22;
  --gz-vinyl-b: #39343f;
  --gz-play: 58px;
  --gz-station-h: 132px;
  --gz-chip-h: var(--target);
  --gz-nudge-gap: var(--sp-2);
  --st-grove-a: #2b8541;
  --st-grove-b: #17552a;
  --st-cafe-a: #4f6fc4;
  --st-cafe-b: #2d3f80;
  --st-moss-a: #6a55c4;
  --st-moss-b: #2e2a5c;
  --st-sunny-a: #ffd36e;
  --st-sunny-b: #ff9a5c;
  --st-ink: #ffffff;
  --st-sunny-ink: #3b2410;
}

.theme-cyberneon {
  --focus-a: #070a1c;
  --focus-b: #2a1460;
  --focus-c: #6a1a70;
  --focus-ring: #00f0d0;
  --focus-ring-2: #ff3df2;
  --card-night-a: #070a1c;
  --card-night-b: #2a1460;
}

.theme-cottagecore {
  --focus-a: #2c3524;
  --focus-b: #46502f;
  --focus-c: #5c4a30;
}

.theme-kawaii {
  --focus-a: #3a2f7a;
  --focus-b: #5c3680;
  --focus-c: #73325c;
}

.theme-darkacademia {
  --focus-a: #1a1310;
  --focus-b: #4a2f22;
  --focus-c: #654020;
  --focus-ring: #e8c48a;
  --focus-ring-2: #b5743d;
}

.theme-lofi {
  --focus-a: #15132a;
  --focus-b: #3b3070;
  --focus-c: #623b2e;
}

.dark,
.theme-darkacademia,
.theme-cyberneon,
.theme-lofi {
  --st-sunny-a: #a85a12;
  --st-sunny-b: #6e3a0c;
  --st-sunny-ink: #ffffff;
}

.hc {
  --focus-a: #000000;
  --focus-b: #000000;
  --focus-c: #000000;
  --focus-soft: #ffffff;
  --focus-glass: rgba(255, 255, 255, 0.1);
  --focus-glass-2: rgba(255, 255, 255, 0.2);
  --focus-line: #ffffff;
  --focus-track: rgba(255, 255, 255, 0.4);
  --gz-sheen: transparent;
  --st-grove-b: var(--st-grove-a);
  --st-cafe-b: var(--st-cafe-a);
  --st-moss-b: var(--st-moss-a);
  --st-sunny-b: var(--st-sunny-a);
}

.gz-center {
  text-align: center;
}

.gz-in {
  animation: gz-in var(--gz-in-t) var(--ease);
}

.full-screen.s-focus,
.full-screen.s-wrapped,
.full-screen.s-photo,
.full-screen.s-quiz,
.full-screen.s-birthday {
  animation: none;
  padding: 0;
  background: transparent;
}

.gz-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-m);
  padding-top: var(--gap-s);
}

.gz-preview {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--clay);
  background: var(--surface-2);
}

.gz-preview.story {
  height: var(--gz-preview-h);
  aspect-ratio: 9 / 16;
}

.gz-preview.post {
  width: var(--gz-preview-post);
  aspect-ratio: 1;
}

.gz-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: gz-pop var(--t-slow) var(--ease-bounce);
}

.gz-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, var(--gz-shimmer-a) 30%, var(--gz-shimmer-b) 50%, var(--gz-shimmer-a) 70%);
  background-size: 300% 100%;
  animation: gz-shimmer var(--gz-shimmer-t) linear infinite;
}

.gz-seg {
  width: min(100%, 340px);
}

.gz-seg > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}

.gz-shape {
  display: inline-block;
  border: 2.5px solid currentColor;
  border-radius: 4px;
}

.gz-shape.story {
  width: 12px;
  height: 20px;
}

.gz-shape.post {
  width: 17px;
  height: 17px;
}

.gz-radio {
  display: flex;
  flex-direction: column;
  gap: var(--gap-s);
}

.gz-np {
  display: flex;
  align-items: center;
  gap: var(--gap-m);
  padding: var(--gap-m);
  border-radius: var(--r-l);
  color: var(--st-ink);
  background: linear-gradient(135deg, var(--st-a), var(--st-b));
  box-shadow: var(--clay);
  position: relative;
  overflow: hidden;
}

.gz-np::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 0%, var(--gz-sheen), transparent 55%);
  pointer-events: none;
}

.st-grove { --st-a: var(--st-grove-a); --st-b: var(--st-grove-b); }
.st-cafe { --st-a: var(--st-cafe-a); --st-b: var(--st-cafe-b); }
.st-moss { --st-a: var(--st-moss-a); --st-b: var(--st-moss-b); }
.st-sunny { --st-a: var(--st-sunny-a); --st-b: var(--st-sunny-b); --st-ink: var(--st-sunny-ink); }

.gz-vinyl {
  width: var(--gz-vinyl);
  height: var(--gz-vinyl);
  border-radius: var(--r-pill);
  flex: none;
  display: grid;
  place-items: center;
  background: repeating-radial-gradient(circle, var(--gz-vinyl-a) 0 2px, var(--gz-vinyl-b) 2px 4px);
  box-shadow: var(--gz-vinyl-shadow);
}

.playing .gz-vinyl {
  animation: spin var(--gz-spin-t) linear infinite;
}

.gz-vinyl-label {
  width: 46%;
  height: 46%;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--st-a), var(--st-b));
}

.gz-np-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.gz-np-text small {
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}

.gz-np-text b {
  font-family: var(--font-display);
  font-size: var(--fs-l);
  font-weight: var(--fw-dx);
}

.gz-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: var(--gz-eq-h);
}

.gz-eq i {
  width: 4px;
  height: 30%;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.85;
}

.playing .gz-eq i {
  animation: gz-eq var(--gz-eq-t) var(--ease) infinite alternate;
}

.gz-eq i:nth-child(2) { animation-delay: -0.3s; }
.gz-eq i:nth-child(3) { animation-delay: -0.6s; }
.gz-eq i:nth-child(4) { animation-delay: -0.15s; }
.gz-eq i:nth-child(5) { animation-delay: -0.45s; }

.gz-play {
  width: var(--gz-play);
  height: var(--gz-play);
  border-radius: var(--r-pill);
  flex: none;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--clay);
  position: relative;
  z-index: 1;
  transition: transform var(--t-fast) var(--ease);
}

.gz-play:active {
  transform: scale(var(--press));
}

.gz-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-m);
  background: var(--warn-soft);
  color: var(--ink);
  font-size: var(--fs-s);
  font-weight: var(--fw-b);
}

.gz-note span {
  flex: 1;
  min-width: 140px;
}

.gz-stations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-s);
}

.gz-station {
  position: relative;
  min-height: var(--gz-station-h);
  min-width: 0;
  border-radius: var(--r-l);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  color: var(--st-ink);
  background: linear-gradient(150deg, var(--st-a), var(--st-b));
  box-shadow: var(--clay);
  border: 3px solid transparent;
  transition: transform var(--t-fast) var(--ease-spring);
}

.gz-station:active {
  transform: scale(var(--press));
}

.gz-station.on {
  border-color: var(--surface);
  box-shadow: var(--clay), 0 0 0 3px var(--accent);
}

.gz-station b {
  font-family: var(--font-display);
  font-weight: var(--fw-dx);
  font-size: var(--fs-m);
  margin-top: auto;
}

.gz-station small {
  font-size: var(--fs-xs);
  font-weight: var(--fw-b);
}

.gz-st-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2);
  width: 100%;
  flex-wrap: wrap;
}

.gz-st-art {
  width: var(--st-art);
  height: var(--st-art);
  border-radius: var(--r-m);
  display: grid;
  place-items: center;
  background: var(--st-chip);
}

.gz-st-bpm {
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
  padding: 2px var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--st-bpm-bg);
  font-variant-numeric: tabular-nums;
}

.gz-onair {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-1);
  padding: 2px var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--st-bpm-bg);
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
}

.gz-onair i {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: currentColor;
  animation: gz-blink var(--gz-blink-t) ease-in-out infinite;
}

.gz-row {
  cursor: pointer;
}

.gz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-s);
}

.gz-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: var(--gz-chip-h);
  min-width: var(--target);
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-weight: var(--fw-x);
  font-size: var(--fs-s);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform var(--t-fast) var(--ease-spring), background var(--t-fast);
}

.gz-chip.on {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: var(--btn-shine), var(--elev-1);
}

.gz-chip:active {
  transform: scale(var(--press));
}

.gz-foot {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
}

.gz-radio .section {
  margin: var(--sp-4) 0 var(--sp-1);
}

.gz-focus {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  color: var(--focus-ink);
  background: radial-gradient(120% 60% at 50% 100%, var(--focus-c), transparent 70%), linear-gradient(180deg, var(--focus-a), var(--focus-b) 62%, var(--focus-c));
  padding: calc(var(--safe-top) + var(--gap-m)) calc(var(--safe-right) + var(--gap-m)) calc(var(--safe-bottom) + var(--gap-m)) calc(var(--safe-left) + var(--gap-m));
  overflow: hidden;
}

.gz-focus .muted,
.gz-focus small {
  color: var(--focus-soft);
}

.gz-top {
  display: flex;
  align-items: center;
  gap: var(--gap-s);
  flex: none;
}

.gz-top-title {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-display);
  font-weight: var(--fw-dx);
  font-size: var(--fs-m);
  line-height: var(--lh-tight);
  text-align: center;
}

.gz-glass {
  background: var(--focus-glass);
  color: var(--focus-ink);
}

.gz-glass.on {
  background: var(--focus-glass-2);
  box-shadow: inset 0 0 0 2px var(--focus-ring);
}

.gz-fscroll {
  flex: 1;
  overflow-y: auto;
  touch-action: pan-y;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: var(--gap-m);
  padding: var(--gap-s) var(--gap-xs) var(--gap-xl);
  scrollbar-width: none;
}

.gz-hero {
  align-self: center;
  width: var(--focus-hero);
  height: var(--focus-hero);
  flex: none;
}

.gz-hero.big {
  width: var(--focus-hero-big);
  height: var(--focus-hero-big);
}

.gz-tree-cv {
  display: block;
  width: 100%;
  height: 100%;
}

.gz-h1 {
  font-size: var(--fs-xxl);
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
}

.gz-lead {
  text-align: center;
  color: var(--focus-soft);
  font-weight: var(--fw-b);
  text-wrap: balance;
}

.gz-small {
  text-align: center;
  color: var(--focus-soft);
  font-size: var(--fs-xs);
  font-weight: var(--fw-b);
}

.gz-durs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-s);
}

.gz-dur {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--gap-m) var(--gap-xs);
  border-radius: var(--r-l);
  background: var(--focus-glass);
  color: var(--focus-ink);
  border: 2px solid var(--focus-line);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}

.gz-dur b {
  font-size: var(--fs-xl);
  font-weight: var(--fw-x);
  line-height: 1;
}

.gz-dur small {
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
}

.gz-dur span {
  margin-top: var(--sp-1);
  font-size: var(--gz-fs-tiny);
  font-weight: var(--fw-x);
  padding: 1px var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--focus-glass);
  white-space: nowrap;
}

.gz-dur.on {
  background: var(--focus-ink);
  color: var(--focus-a);
  border-color: var(--focus-ink);
  transform: translateY(-3px);
  box-shadow: var(--focus-shadow);
}

.gz-dur.on small {
  color: var(--focus-a);
}

.gz-dur.on span {
  background: var(--focus-a);
  color: var(--focus-ink);
}

.gz-dur:active {
  transform: scale(var(--press));
}

.gz-start {
  flex: none;
  min-height: calc(var(--btn-h) + 6px);
  font-size: var(--fs-l);
}

.gz-glass-card {
  background: var(--focus-glass);
  border: 1.5px solid var(--focus-line);
  border-radius: var(--r-l);
  padding: var(--gap-m);
  display: flex;
  flex-direction: column;
  gap: var(--gap-s);
}

.gz-goal-row {
  display: flex;
  align-items: center;
  gap: var(--gap-s);
  text-align: left;
}

.gz-goal-row .grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--gap-s);
}

.gz-goal-row small {
  width: 100%;
  font-size: var(--fs-xs);
}

.gz-bar {
  display: block;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--focus-track);
  overflow: hidden;
}

.gz-bar i {
  display: block;
  height: 100%;
  width: calc(var(--f) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--focus-ring), var(--focus-ring-2));
}

.gz-freeze {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px var(--gap-s) 2px 2px;
  border-radius: var(--r-pill);
  background: var(--focus-veil);
}

.gz-switch-row {
  flex-direction: row;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.gz-switch-row .grow {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gz-switch-row small {
  font-size: var(--fs-xs);
}

.gz-sec {
  font-size: var(--fs-m);
  margin-top: var(--sp-2);
}

.gz-history {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.gz-hist {
  display: flex;
  align-items: center;
  gap: var(--gap-s);
  padding: var(--gap-s) var(--gap-m);
  border-radius: var(--r-m);
  background: var(--focus-glass);
  text-align: left;
}

.gz-hist .grow {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gz-hist small {
  font-size: var(--fs-xs);
}

.gz-hist.fail {
  opacity: 0.75;
}

.gz-empty {
  color: var(--focus-soft);
  font-size: var(--fs-s);
  text-align: center;
  padding: var(--gap-m);
}

.gz-run {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: var(--gap-s);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.gz-timer {
  font-family: var(--font-display);
  font-size: var(--focus-timer);
  font-weight: var(--fw-dx);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: var(--focus-text-shadow);
}

.gz-sub {
  color: var(--focus-soft);
  font-weight: var(--fw-b);
  margin-top: calc(var(--gap-s) * -1);
}

.gz-orb {
  position: relative;
  width: var(--focus-orb);
  height: var(--focus-orb);
  flex: none;
}

.gz-orb svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  overflow: visible;
}

.gz-orb-track {
  fill: var(--focus-glass);
  stroke: var(--focus-track);
  stroke-width: 3.5;
}

.gz-orb-fill {
  fill: none;
  stroke: var(--focus-ring);
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--focus-ring));
}

.gz-orb canvas {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  border-radius: var(--r-pill);
}

.gz-motto {
  font-size: var(--fs-xl);
  font-weight: var(--fw-x);
  text-align: center;
}

.gz-run-btns,
.gz-row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  width: 100%;
}

.gz-timer.is-paused {
  color: var(--focus-soft);
}

.gz-run-ctl .btn {
  min-width: 128px;
}

.gz-pill {
  background: var(--focus-glass);
  color: var(--focus-ink);
  box-shadow: none;
}

.gz-pill.on {
  box-shadow: inset 0 0 0 2px var(--focus-ring);
}

.gz-focus .btn.ghost {
  background: var(--focus-glass);
  color: var(--focus-ink);
}

.gz-ask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: var(--gap-l);
  background: var(--focus-veil);
  animation: fade var(--t-med) var(--ease);
}

.gz-ask-card {
  width: min(100%, var(--gz-ask-w));
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: var(--gap-xl) var(--gap-l);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-s);
  text-align: center;
  box-shadow: var(--shadow-sheet);
  animation: gz-pop var(--t-slow) var(--ease-bounce);
}

.gz-ask-card p {
  color: var(--ink-soft);
}

.gz-ask-card .btn.ghost {
  background: var(--surface-2);
  color: var(--ink);
}

.gz-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-s);
}

.gz-tiles.three {
  grid-template-columns: repeat(3, 1fr);
}

.gz-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--gap-m) var(--gap-xs);
  border-radius: var(--r-l);
  background: var(--focus-glass);
  border: 1.5px solid var(--focus-line);
}

.gz-tile b {
  font-size: var(--fs-l);
  font-weight: var(--fw-x);
  font-variant-numeric: tabular-nums;
}

.gz-tile small {
  font-size: var(--fs-xs);
  font-weight: var(--fw-b);
}

.gz-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-s);
  padding: var(--gap-s) var(--gap-m);
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--focus-ring), var(--focus-ring-2));
  color: var(--focus-a);
  font-weight: var(--fw-x);
  animation: gz-pop var(--t-slow) var(--ease-bounce);
}

@keyframes gz-in {
  from { opacity: 0; transform: scale(1.02); }
}

@keyframes gz-pop {
  from { opacity: 0; transform: scale(0.9); }
}

@keyframes gz-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes gz-eq {
  from { height: 20%; }
  to { height: 100%; }
}

@keyframes gz-blink {
  50% { opacity: 0.3; }
}

:root {
  --quiz-a: var(--accent-soft);
  --quiz-b: var(--pop-soft);
  --quiz-c: var(--bg);
  --quiz-h1: clamp(2.1rem, 10vw, 3rem);
  --quiz-card-max: 440px;
  --quiz-fly: 0.32s;
  --quiz-portrait: 210px;
  --quiz-rays-t: 18s;
  --quiz-float-t: 3.2s;
  --quiz-arc: min(17vw, 74px);
  --quiz-arc-y: 30px;
  --quiz-icon: 76px;
  --quiz-icons-h: 150px;
  --quiz-icons-top: 40px;
  --quiz-float-y: -8px;
  --quiz-ans-h: 56px;
  --quiz-letter: 34px;
  --wrap-bg: #120f1c;
  --wrap-ink: #fff7ef;
  --wrap-track: rgba(255, 255, 255, 0.28);
  --wrap-fill: #ffffff;
  --wrap-glass: rgba(0, 0, 0, 0.3);
  --wrap-blur: 40px;
  --wrap-dim: 0.42;
  --wrap-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --wrap-btn-max: 420px;
  --gz-story-t: 6.5s;
  --photo-bg: #16131e;
  --photo-ink: #fff7ef;
  --photo-soft: rgba(255, 247, 239, 0.7);
  --photo-glass: rgba(255, 255, 255, 0.12);
  --photo-glass-2: rgba(255, 255, 255, 0.22);
  --photo-tile-w: 62px;
  --photo-tile-h: 78px;
  --photo-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  --tl-media-h: min(50vh, 470px);
  --bday-a: var(--pop-soft);
  --bday-b: var(--accent-soft);
  --bday-c: var(--bg);
  --bday-h1: clamp(1.9rem, 8.6vw, 2.6rem);
}

.gz-top-pad {
  width: var(--icon-btn);
  flex: none;
}

.gz-quiz {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(90% 50% at 10% 0%, var(--quiz-a), transparent 70%), radial-gradient(90% 50% at 100% 100%, var(--quiz-b), transparent 70%), var(--quiz-c);
  padding: calc(var(--safe-top) + var(--gap-m)) calc(var(--safe-right) + var(--gap-m)) calc(var(--safe-bottom) + var(--gap-m)) calc(var(--safe-left) + var(--gap-m));
  overflow: hidden;
}

.gz-qglass {
  background: var(--surface);
  box-shadow: var(--clay);
}

.gz-qbody {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  gap: var(--gap-m);
  overflow-y: auto;
  touch-action: pan-y;
  margin: 0 calc(var(--gap-m) * -1);
  padding: var(--gap-l) var(--gap-m) var(--gap-xl);
  scrollbar-width: none;
}

.gz-qintro,
.gz-qresult {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gap-m);
  width: min(100%, var(--quiz-card-max));
  margin: 0 auto;
}

.gz-qicons {
  position: relative;
  width: 100%;
  height: var(--quiz-icons-h);
}

.gz-qi {
  position: absolute;
  top: var(--quiz-icons-top);
  left: 50%;
  margin-left: calc(var(--quiz-icon) / -2);
  animation: gz-float var(--quiz-float-t) ease-in-out infinite;
}

.gz-qi.i0 { transform: translate(calc(var(--quiz-arc) * -2), var(--quiz-arc-y)) rotate(-10deg); animation-delay: -0.4s; }
.gz-qi.i1 { transform: translate(calc(var(--quiz-arc) * -1), calc(var(--quiz-arc-y) * -0.3)) rotate(-5deg); animation-delay: -1.2s; }
.gz-qi.i2 { transform: translate(0, calc(var(--quiz-arc-y) * -1)); animation-delay: -2s; }
.gz-qi.i3 { transform: translate(var(--quiz-arc), calc(var(--quiz-arc-y) * -0.3)) rotate(5deg); animation-delay: -0.8s; }
.gz-qi.i4 { transform: translate(calc(var(--quiz-arc) * 2), var(--quiz-arc-y)) rotate(10deg); animation-delay: -1.6s; }

.gz-qh1 {
  font-size: var(--quiz-h1);
  line-height: 1.02;
  text-wrap: balance;
}

.gz-qlead {
  color: var(--ink-soft);
  font-weight: var(--fw-b);
  font-size: var(--fs-l);
  text-wrap: balance;
}

.gz-qbtn {
  height: calc(var(--btn-h) + 6px);
  font-size: var(--fs-l);
}

.gz-qprog {
  display: flex;
  align-items: center;
  gap: var(--gap-m);
  width: min(100%, var(--quiz-card-max));
  margin: 0 auto;
  font-weight: var(--fw-x);
  font-variant-numeric: tabular-nums;
}

.gz-qbar {
  flex: 1;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.gz-qbar i {
  display: block;
  height: 100%;
  width: calc(var(--f) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--pop));
  transition: width var(--t-slow) var(--ease);
}

.gz-qstack {
  position: relative;
  width: min(100%, var(--quiz-card-max));
  margin: 0 auto;
}

.gz-qghost {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--clay);
}

.gz-qghost.g1 { transform: translateY(14px) scale(0.95); opacity: 0.7; }
.gz-qghost.g2 { transform: translateY(28px) scale(0.9); opacity: 0.45; }

.gz-qcard {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sheet);
  padding: var(--gap-xl) var(--gap-l) var(--gap-l);
  display: flex;
  flex-direction: column;
  gap: var(--gap-m);
  transition: transform var(--quiz-fly) var(--ease), opacity var(--quiz-fly) var(--ease);
}

.gz-qcard.in-r { animation: gz-card-r var(--t-slow) var(--ease-bounce); }
.gz-qcard.in-l { animation: gz-card-l var(--t-slow) var(--ease-bounce); }

.gz-qcard.fly {
  transform: translateX(115%) rotate(12deg);
  opacity: 0;
}

.gz-qnum {
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 2px var(--gap-s);
  border-radius: var(--r-pill);
}

.gz-qcard h2 {
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
  text-wrap: balance;
  outline: none;
}

.gz-answers {
  display: flex;
  flex-direction: column;
  gap: var(--gap-s);
}

.gz-ans {
  display: flex;
  align-items: center;
  gap: var(--gap-m);
  min-height: var(--quiz-ans-h);
  padding: var(--gap-s) var(--gap-m) var(--gap-s) var(--gap-s);
  border-radius: var(--r-l);
  background: var(--surface-2);
  text-align: left;
  font-weight: var(--fw-b);
  box-shadow: var(--clay);
  border: 2px solid transparent;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}

.gz-ans i {
  width: var(--quiz-letter);
  height: var(--quiz-letter);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-style: normal;
  font-family: var(--font-display);
  font-weight: var(--fw-dx);
  color: var(--accent-ink);
}

.gz-ans span {
  flex: 1;
  min-width: 0;
}

.gz-ans:active {
  transform: scale(0.98);
}

.gz-ans.on {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
}

.gz-ans.on i {
  color: var(--accent-ink);
}

.gz-qkick {
  font-weight: var(--fw-x);
  color: var(--ink-soft);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  font-size: var(--fs-s);
}

.gz-qportrait {
  position: relative;
  width: var(--quiz-portrait);
  height: var(--quiz-portrait);
  display: grid;
  place-items: center;
  animation: gz-pop var(--t-slow) var(--ease-bounce);
}

.gz-qportrait .thumb {
  position: relative;
}

.gz-rays {
  position: absolute;
  inset: -40%;
  border-radius: var(--r-pill);
  background: repeating-conic-gradient(from 0deg, var(--gold) 0deg 9deg, transparent 9deg 22.5deg);
  opacity: 0.32;
  mask-image: radial-gradient(circle, #000 25%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 68%);
  animation: spin var(--quiz-rays-t) linear infinite;
}

.gz-persona {
  display: inline-block;
  padding: var(--gap-xs) var(--gap-m);
  border-radius: var(--r-pill);
  background: var(--accent-2);
  color: var(--on-accent);
  font-weight: var(--fw-x);
  margin-top: calc(var(--gap-s) * -1);
}

.gz-qdesc {
  font-size: var(--fs-l);
  font-weight: var(--fw-x);
  text-wrap: balance;
}

.gz-qfact {
  color: var(--ink-soft);
  font-weight: var(--fw-b);
  text-wrap: balance;
}

.gz-qbtns {
  display: flex;
  flex-direction: column;
  gap: var(--gap-s);
  width: 100%;
  margin-top: var(--gap-s);
}

.gz-qnote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  color: var(--ink-soft);
  font-size: var(--fs-s);
}

.gz-qh1 {
  outline: none;
}

.gz-wrapped {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--wrap-bg);
  color: var(--wrap-ink);
  padding: calc(var(--safe-top) + var(--gap-s)) calc(var(--safe-right) + var(--gap-m)) calc(var(--safe-bottom) + var(--gap-m)) calc(var(--safe-left) + var(--gap-m));
  overflow: hidden;
}

.gz-wbg {
  position: absolute;
  inset: calc(var(--wrap-blur) * -2);
  background-size: cover;
  background-position: center;
  filter: blur(var(--wrap-blur)) brightness(var(--wrap-dim)) saturate(1.3);
}

.gz-wbars {
  position: relative;
  display: flex;
  gap: 4px;
  padding: var(--gap-xs) 0 var(--gap-s);
}

.gz-wbars i {
  flex: 1;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--wrap-track);
  overflow: hidden;
}

.gz-wbars b {
  display: block;
  height: 100%;
  width: 0;
  background: var(--wrap-fill);
}

.gz-wbars .done b {
  width: 100%;
}

.gz-wbars .on b {
  animation: gz-fill var(--gz-story-t) linear forwards;
}

.gz-wbars.paused b {
  animation-play-state: paused;
}

.gz-wtop .gz-top-title {
  font-size: var(--fs-s);
  color: var(--wrap-ink);
}

.gz-wtop {
  position: relative;
}

.gz-wperiod {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  min-height: var(--target);
  flex: none;
  padding: 0 var(--sp-2) 0 var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--wrap-glass);
  font-weight: var(--fw-x);
  font-size: var(--fs-s);
  color: var(--wrap-ink);
}

.gz-wglass {
  background: var(--wrap-glass);
  color: var(--wrap-ink);
}

.gz-wstage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: var(--gap-s) 0;
  container-type: size;
}

.gz-wslide {
  position: relative;
  width: min(100cqw, 100cqh * 9 / 16);
  aspect-ratio: 9 / 16;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--wrap-shadow);
  background: var(--surface-2);
}

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

.gz-wslide img.pop {
  animation: gz-slide var(--t-slow) var(--ease);
}

.gz-zone {
  position: absolute;
  top: 0;
  bottom: 0;
}

.gz-zone.l { left: 0; width: 34%; }
.gz-zone.r { right: 0; width: 66%; }

.gz-wbottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}

.gz-wshare {
  flex: 1 1 auto;
  max-width: var(--wrap-btn-max);
  min-width: 0;
}

.gz-wglass[disabled] {
  opacity: 0.4;
}

.gz-photo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-s);
  background: var(--photo-bg);
  color: var(--photo-ink);
  padding: calc(var(--safe-top) + var(--gap-m)) calc(var(--safe-right) + var(--gap-m)) calc(var(--safe-bottom) + var(--gap-m)) calc(var(--safe-left) + var(--gap-m));
  overflow: hidden;
}

.gz-pglass {
  background: var(--photo-glass);
  color: var(--photo-ink);
}

.gz-pseg {
  flex: 1;
  min-width: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.gz-pseg > button {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.gz-pstage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
}

.gz-pcv {
  display: block;
  border-radius: var(--r-m);
  box-shadow: var(--photo-shadow);
  touch-action: none;
}

.gz-phint {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-b);
  color: var(--photo-soft);
}

.gz-photo > .tabs {
  justify-content: center;
  padding: 0;
  width: min(100%, var(--gz-col-max));
  align-self: center;
}

.gz-ptray {
  display: flex;
  gap: var(--gap-s);
  overflow-x: auto;
  touch-action: pan-x;
  padding: var(--gap-xs) 0;
  scrollbar-width: none;
  flex: none;
}

.gz-ptile {
  position: relative;
  flex: none;
  width: var(--photo-tile-w);
  height: var(--photo-tile-h);
  border-radius: var(--r-s);
  overflow: hidden;
  background: var(--photo-glass);
  border: 3px solid transparent;
  display: grid;
  place-items: center;
  transition: transform var(--t-fast) var(--ease-spring);
}

.gz-ptile:active {
  transform: scale(var(--press));
}

.gz-ptile.on {
  border-color: var(--accent-hi);
}

.text-l .gz-ptile {
  width: auto;
  min-width: var(--photo-tile-w);
  padding: 0 var(--sp-2);
}

.gz-pcheck {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
}

.gz-pthumb {
  width: 100%;
  height: 100%;
  display: block;
}

.gz-pnone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
  color: var(--photo-ink);
}

.gz-pctl {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-2);
  font-weight: var(--fw-x);
  font-size: var(--fs-s);
}

.gz-psize {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.gz-psize > span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.gz-pnudge,
.gz-ppick {
  align-self: center;
  flex: none;
}

.gz-pbtns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gz-nudge-gap);
}

.gz-pbtns .btn {
  flex: 1 1 120px;
}

.gz-pctl .btn.ghost {
  background: var(--photo-glass);
  color: var(--photo-ink);
  box-shadow: inset 0 0 0 1px var(--photo-glass-2);
}

.gz-range {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent);
  height: var(--gz-range-h);
}

.gz-pshare {
  flex: none;
}

.gz-tl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-m);
  padding-top: var(--gap-s);
}

.gz-tl-media {
  position: relative;
  height: var(--tl-media-h);
  aspect-ratio: 9 / 16;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--clay);
}

.gz-tl-cv,
.gz-tl-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gz-tl-toggle {
  position: absolute;
  right: var(--sp-2);
  bottom: var(--sp-2);
  background: var(--toast-bg);
  color: var(--toast-ink);
  box-shadow: var(--elev-2);
}

.gz-tl-badge {
  position: absolute;
  top: var(--gap-s);
  left: var(--gap-s);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--gap-s) 2px 4px;
  border-radius: var(--r-pill);
  background: var(--toast-bg);
  color: var(--toast-ink);
  font-size: var(--fs-xs);
  font-weight: var(--fw-x);
}

.gz-tl-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-s);
  width: 100%;
}

.gz-tl-state b {
  font-size: var(--fs-l);
}

.gz-tl-bar {
  width: 100%;
  flex: none;
  height: 12px;
}

.gz-tl-bar i {
  transition: none;
}

.gz-bday {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(100% 60% at 50% 0%, var(--bday-a), transparent 70%), radial-gradient(100% 60% at 50% 100%, var(--bday-b), transparent 70%), var(--bday-c);
  padding: calc(var(--safe-top) + var(--gap-m)) calc(var(--safe-right) + var(--gap-m)) calc(var(--safe-bottom) + var(--gap-m)) calc(var(--safe-left) + var(--gap-m));
  overflow: hidden;
}

.gz-bglass {
  background: var(--surface);
  box-shadow: var(--clay);
}

.gz-bhead {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  padding-top: var(--gap-m);
}

.gz-bhead h1 {
  font-size: var(--bday-h1);
  line-height: 1.05;
  text-wrap: balance;
}

.gz-bhead p {
  color: var(--ink-soft);
  font-weight: var(--fw-b);
}

.gz-bcv {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: block;
}

.gz-bfoot {
  display: flex;
  flex-direction: column;
  gap: var(--gap-s);
  align-items: center;
}

.gz-bgift-btn {
  height: calc(var(--btn-h) + 8px);
  font-size: var(--fs-l);
  animation: gz-wiggle var(--gz-wiggle-t) var(--ease) infinite;
}

.gz-bgift {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-xs);
  animation: gz-pop var(--t-slow) var(--ease-bounce);
}

.gz-bgift small {
  color: var(--ink-soft);
  font-weight: var(--fw-b);
}

@keyframes gz-float {
  50% { translate: 0 var(--quiz-float-y); }
}

@keyframes gz-card-r {
  from { transform: translateX(40%) rotate(6deg) scale(0.92); opacity: 0; }
}

@keyframes gz-card-l {
  from { transform: translateX(-40%) rotate(-6deg) scale(0.92); opacity: 0; }
}

@keyframes gz-fill {
  to { width: 100%; }
}

@keyframes gz-slide {
  from { opacity: 0; transform: scale(0.96); }
}

@keyframes gz-wiggle {
  0%, 84%, 100% { transform: rotate(0); }
  88% { transform: rotate(-2deg) scale(1.02); }
  92% { transform: rotate(2deg) scale(1.02); }
  96% { transform: rotate(-1deg); }
}

.gz-fscroll,
.gz-run,
.gz-photo > .gz-phint,
.gz-photo > .gz-ptabs,
.gz-photo > .gz-ptray,
.gz-photo > .gz-pctl,
.gz-photo > .gz-pshare,
.gz-bhead,
.gz-bfoot {
  width: min(100%, var(--gz-col-max));
  align-self: center;
}

.gz-tl-state .btn.small {
  min-width: 160px;
}

.gz-share .gz-preview {
  max-width: 100%;
}

.reduce-flash .gz-onair i,
.reduce-motion .gz-onair i {
  animation: none;
}

.hc .gz-station {
  border-color: var(--line-strong);
}

.hc .gz-glass-card,
.hc .gz-dur,
.hc .gz-tile,
.hc .gz-hist {
  border: 2px solid var(--focus-line);
}

.hc .gz-ptile,
.hc .gz-wperiod,
.hc .gz-wglass {
  box-shadow: inset 0 0 0 2px var(--photo-ink);
}

.text-l .gz-durs {
  grid-template-columns: repeat(2, 1fr);
}

.text-l .gz-tiles {
  grid-template-columns: repeat(2, 1fr);
}

.text-l .gz-stations {
  grid-template-columns: 1fr;
}

@media (max-width: 359px) {
  .gz-durs {
    grid-template-columns: repeat(2, 1fr);
  }
  .gz-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
