@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Hanken+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  color-scheme: light;
  --page: #fcfbf8;
  --text1: #23252f;
  --text2: #5d5f6b;
  --text3: #7c7e89;
  --border: #ebe8e1;
  --raised: #ffffff;
  --segment: #efece4;
  --kicker: #cf6f3c;
  --active-segment: #23252f;
  --active-segment-text: #faf6ee;
  --deck-a: #f1ece1;
  --deck-b: #eae7de;
  --deck-border: #e6e1d6;
  --shadow-card: 0 30px 58px -26px rgba(20, 18, 28, 0.5);
  --shadow-button: 0 14px 28px -16px rgba(20, 18, 28, 0.6);
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #191a21;
  --text1: #f1ede4;
  --text2: #b7b6bf;
  --text3: #8a8b95;
  --border: #34353f;
  --raised: #24262f;
  --segment: #24262f;
  --kicker: #f0a368;
  --active-segment: #3a4068;
  --active-segment-text: #faf6ee;
  --deck-a: #23252f;
  --deck-b: #20222b;
  --deck-border: #34353f;
  --shadow-card: 0 30px 58px -26px rgba(0, 0, 0, 0.72);
  --shadow-button: 0 14px 28px -16px rgba(0, 0, 0, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  color: var(--text1);
  font-family: var(--font-body);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page);
}

[hidden] {
  display: none !important;
}

body.has-modal-open {
  overflow: hidden;
}

button {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.yb-root {
  min-height: 100svh;
  background: var(--page);
  color: var(--text1);
}

.yb-topbar {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 62px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--page), transparent 8%);
  backdrop-filter: blur(10px);
  padding: 14px clamp(16px, 5vw, 56px);
}

.yb-brand-group,
.yb-logo {
  display: inline-flex;
  align-items: center;
}

.yb-brand-group {
  min-width: 0;
  gap: 11px;
}

.yb-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text1);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.yb-logo-word {
  color: var(--text1);
}

.yb-logo-mark {
  position: relative;
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.yb-logo-mark::before,
.yb-logo-mark::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.yb-logo-mark::before {
  inset: 0;
  background: #4f5887;
}

.yb-logo-mark::after {
  top: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  background: #e8915a;
}

.yb-brand-divider {
  color: color-mix(in srgb, var(--text3), var(--border) 20%);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1;
}

.yb-subapp-label {
  overflow: hidden;
  color: var(--text2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.yb-top-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 4vw, 30px);
  color: var(--text2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.yb-top-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 78%;
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  text-decoration: none;
  transition: background-size 180ms ease;
}

.yb-top-actions a:hover {
  background-size: 100% 1.5px;
}

.yb-top-actions .yb-account-link {
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--raised);
  color: var(--text3);
  background-image: none !important;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.yb-top-actions .yb-account-link:hover {
  border-color: color-mix(in srgb, var(--text3), var(--border) 50%);
  background-size: 0;
  transform: translateY(-1px);
}

.yb-top-actions .yb-account-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yb-account-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(35, 37, 47, 0.38);
  backdrop-filter: blur(10px);
}

.yb-account-modal {
  width: min(92vw, 430px);
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--raised);
  box-shadow: var(--shadow-card);
}

.yb-account-header,
.yb-account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.yb-account-eyebrow {
  margin: 0 0 7px;
  color: var(--kicker);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.yb-account-header h2 {
  margin: 0;
  color: var(--text1);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.95;
}

.yb-account-close {
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.yb-account-details {
  display: grid;
  gap: 8px;
  margin: 26px 0 16px;
  padding: 18px 0;
  border-block: 1px solid var(--border);
}

.yb-account-details span {
  color: var(--text3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.yb-account-details strong {
  overflow-wrap: anywhere;
  color: var(--text1);
  font-size: 1rem;
}

.yb-account-note {
  margin: 0 0 24px;
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.45;
}

.yb-account-signout,
.yb-account-signin {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--segment);
  color: var(--text1);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.yb-account-signout:disabled {
  cursor: wait;
  opacity: 0.72;
}

.yb-theme-toggle {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--raised);
  color: var(--text3);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease;
}

.yb-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--text3), var(--border) 50%);
}

.yb-stage {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 20px 64px;
}

.yb-play {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.yb-head {
  margin-bottom: 22px;
  text-align: center;
}

.yb-kicker {
  margin: 0 0 10px;
  color: var(--kicker);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.yb-title {
  margin: 0 0 8px;
  color: var(--text1);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.yb-lede {
  margin: 0;
  color: var(--text3);
  font-size: 14.5px;
  line-height: 1.35;
}

.yb-controls {
  margin-bottom: 30px;
}

.yb-age-segment {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 3px;
  border-radius: 999px;
  background: var(--segment);
}

.yb-age-segment button {
  min-width: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 15px;
  white-space: nowrap;
}

.yb-age-segment button.is-active {
  background: var(--active-segment);
  color: var(--active-segment-text);
  font-weight: 600;
}

.yb-chip-row {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  gap: 10px 8px;
}

.yb-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--raised);
  color: var(--text2);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 14px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.yb-chip:hover {
  transform: translateY(-1px);
}

.yb-chip.is-active {
  border-color: var(--type-accent, var(--text1));
  background: color-mix(in srgb, var(--type-accent, var(--text1)) 13%, transparent);
  color: var(--type-text-light, var(--text1));
}

:root[data-theme="dark"] .yb-chip.is-active {
  background: color-mix(in srgb, var(--type-accent, var(--text1)) 20%, transparent);
  color: var(--type-text-dark, var(--text1));
}

.yb-chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--type-accent, var(--text1));
}

.yb-chip-dot.is-mix {
  background: conic-gradient(from 45deg, #5b8a5f, #e8915a, #4f5887, #b9543f, #8a5566, #5b8a5f);
}

.yb-cardwrap {
  position: relative;
  align-self: center;
  width: 100%;
  --yb-question-size: 36px;
  --yb-question-leading: 1.12;
  --yb-nudge-size: 16.5px;
  --yb-stretch-size: 17px;
  --yb-parent-title-size: 26px;
  --yb-parent-copy-size: 15.5px;
  --yb-type-gap: 18px;
  --yb-spacer-min: 18px;
  --yb-nudge-gap: 16px;
  --yb-footer-gap: 22px;
  --yb-prompt-gap: 13px;
}

.yb-density-roomy {
  --yb-question-size: 42px;
  --yb-nudge-size: 17.5px;
  --yb-stretch-size: 18px;
  --yb-parent-title-size: 28px;
  --yb-parent-copy-size: 16px;
}

.yb-density-dense {
  --yb-question-size: 32px;
  --yb-question-leading: 1.1;
  --yb-nudge-size: 15.25px;
  --yb-stretch-size: 15.75px;
  --yb-parent-title-size: 24px;
  --yb-parent-copy-size: 14.5px;
  --yb-type-gap: 14px;
  --yb-spacer-min: 12px;
  --yb-nudge-gap: 13px;
  --yb-footer-gap: 18px;
  --yb-prompt-gap: 10px;
}

.yb-deck {
  position: absolute;
  inset: 0;
  border: 1px solid var(--deck-border);
  border-radius: 22px;
}

.yb-deck-a {
  background: var(--deck-a);
  transform: rotate(3.4deg) translate(11px, 9px);
}

.yb-deck-b {
  background: var(--deck-b);
  transform: rotate(-2.3deg) translate(-9px, 5px);
}

.yb-perspective {
  position: relative;
  z-index: 2;
  perspective: 1700px;
}

.yb-pop-a {
  animation: ybpopA 440ms cubic-bezier(0.2, 0.9, 0.3, 1.08) both;
}

.yb-pop-b {
  animation: ybpopB 440ms cubic-bezier(0.2, 0.9, 0.3, 1.08) both;
}

.yb-flip {
  display: grid;
  min-height: 236px;
  transform-style: preserve-3d;
  transition: transform 560ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.yb-flip.is-flipped {
  transform: rotateY(180deg);
}

.yb-face {
  display: flex;
  grid-area: 1 / 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0s linear 280ms;
}

.yb-face-front {
  opacity: 1;
}

.yb-face-back {
  opacity: 0;
  transform: rotateY(180deg);
}

.yb-flip.is-flipped .yb-face-front {
  opacity: 0;
}

.yb-flip.is-flipped .yb-face-back {
  opacity: 1;
}

.yb-flip:not(.is-flipped) .yb-face-back,
.yb-flip.is-flipped .yb-face-front {
  pointer-events: none;
}

.yb-face-pad {
  display: flex;
  width: 100%;
  min-height: 100%;
  flex-direction: column;
  padding: 30px 32px;
}

.yb-face-back .yb-face-pad {
  padding: 28px 32px;
}

.yb-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--yb-type-gap);
}

.yb-card-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1;
  padding: 6px 13px;
  text-transform: uppercase;
}

.yb-question {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--yb-question-size);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: var(--yb-question-leading);
  text-wrap: balance;
}

.yb-spacer {
  flex: 1;
  min-height: var(--yb-spacer-min);
}

.yb-nudge,
.yb-stretch {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.yb-nudge {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  padding-top: var(--yb-nudge-gap);
}

.yb-stretch {
  margin-top: 10px;
}

.yb-nudge span,
.yb-stretch span {
  flex: 0 0 auto;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.yb-stretch span {
  margin-top: 4px;
}

.yb-nudge p,
.yb-stretch p {
  margin: 0;
  min-width: 0;
}

.yb-nudge p {
  color: rgba(255, 255, 255, 0.94);
  font-size: var(--yb-nudge-size);
  line-height: 1.46;
}

.yb-stretch p {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: var(--yb-stretch-size);
  font-style: italic;
  line-height: 1.45;
}

.yb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: var(--yb-footer-gap);
}

.yb-back-footer {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 16px;
}

.yb-soft-action,
.yb-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 9px 14px;
  white-space: nowrap;
}

.yb-soft-action {
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.yb-save {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #ffffff;
}

.yb-save.is-saved {
  background: rgba(255, 255, 255, 0.95);
  color: var(--card-bg);
}

.yb-grownup-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.yb-grownup-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.yb-parent-title {
  margin: 0 0 9px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--yb-parent-title-size);
  font-weight: 500;
  line-height: 1.16;
  text-wrap: balance;
}

.yb-parent-goal {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--yb-parent-copy-size);
  line-height: 1.5;
}

.yb-prompts {
  display: flex;
  flex-direction: column;
  gap: var(--yb-prompt-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-prompts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.yb-prompts span {
  flex: 0 0 auto;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.yb-prompts p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--yb-parent-copy-size);
  line-height: 1.46;
}

.yb-drawbar {
  margin-top: 28px;
  text-align: center;
}

.yb-draw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: #23252f;
  color: #faf6ee;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 30px;
  box-shadow: var(--shadow-button);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

:root[data-theme="dark"] .yb-draw {
  background: #f1ede4;
  color: #23252f;
}

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

.yb-draw-icon {
  flex: 0 0 auto;
}

.yb-saved-note {
  margin-top: 14px;
  color: var(--text3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.yb-loading {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  color: var(--text3);
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  text-align: center;
}

.yb-loading h1 {
  margin: 0 0 10px;
  color: var(--text1);
  font-family: var(--font-display);
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.05;
}

.yb-loading p {
  max-width: 420px;
  margin: 0;
  color: var(--text3);
  font-family: var(--font-body);
  font-size: 15px;
  font-style: normal;
  line-height: 1.5;
}

@keyframes ybpopA {
  0% {
    opacity: 0;
    transform: scale(0.955);
  }

  60% {
    transform: scale(1.012);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ybpopB {
  0% {
    opacity: 0;
    transform: scale(0.955);
  }

  60% {
    transform: scale(1.012);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .yb-topbar {
    min-height: 62px;
    padding-inline: 16px;
  }

  .yb-stage {
    padding: 6px 15px 40px;
  }

  .yb-logo {
    gap: 9px;
    font-size: 1.05rem;
  }

  .yb-top-actions {
    gap: 12px;
    font-size: 0.68rem;
  }

  .yb-title {
    font-size: 33px;
  }

  .yb-cardwrap {
    --yb-question-size: 28px;
    --yb-nudge-size: 16px;
    --yb-stretch-size: 16.5px;
    --yb-parent-title-size: 25px;
    --yb-parent-copy-size: 15px;
    --yb-type-gap: 15px;
    --yb-spacer-min: 14px;
    --yb-nudge-gap: 14px;
    --yb-footer-gap: 18px;
    --yb-prompt-gap: 11px;
  }

  .yb-density-roomy {
    --yb-question-size: 32px;
    --yb-nudge-size: 16.75px;
    --yb-stretch-size: 17px;
    --yb-parent-title-size: 26.5px;
    --yb-parent-copy-size: 15.5px;
  }

  .yb-density-dense {
    --yb-question-size: 24.5px;
    --yb-nudge-size: 14.5px;
    --yb-stretch-size: 14.75px;
    --yb-parent-title-size: 22.5px;
    --yb-parent-copy-size: 13.5px;
    --yb-type-gap: 12px;
    --yb-spacer-min: 10px;
    --yb-nudge-gap: 11px;
    --yb-footer-gap: 14px;
    --yb-prompt-gap: 8px;
  }

  .yb-face-pad,
  .yb-face-back .yb-face-pad {
    padding: 24px 22px;
  }

  .yb-card-footer {
    align-items: stretch;
  }

  .yb-soft-action,
  .yb-save {
    padding-inline: 12px;
  }

  .yb-draw {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .yb-brand-divider,
  .yb-subapp-label,
  .yb-top-actions a {
    display: none;
  }

  .yb-top-actions .yb-account-link {
    display: inline-grid;
  }

  .yb-age-segment {
    width: 100%;
  }

  .yb-age-segment button {
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .yb-chip-row {
    grid-template-columns: repeat(2, max-content);
  }

  .yb-card-footer {
    flex-wrap: wrap;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .yb-root {
    min-height: 100svh;
    overflow: hidden;
  }

  .yb-topbar {
    min-height: 46px;
    padding: 7px 14px;
  }

  .yb-logo {
    gap: 8px;
    font-size: 1rem;
  }

  .yb-logo-mark {
    width: 18px;
    height: 18px;
  }

  .yb-logo-mark::before {
    width: 18px;
    height: 18px;
  }

  .yb-logo-mark::after {
    width: 7px;
    height: 7px;
  }

  .yb-brand-divider,
  .yb-subapp-label {
    display: none;
  }

  .yb-top-actions {
    gap: 12px;
    font-size: 0.68rem;
  }

  .yb-top-actions a {
    min-height: 30px;
  }

  .yb-theme-toggle {
    width: 28px;
    height: 28px;
  }

  .yb-stage {
    max-width: none;
    padding: 2px 14px 8px;
  }

  .yb-play {
    display: grid;
    min-height: calc(100svh - 56px);
    grid-template-columns: minmax(172px, 22vw) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "head card"
      "ctrl card"
      "draw card";
    align-items: start;
    gap: 6px 14px;
  }

  .yb-head {
    grid-area: head;
    margin-bottom: 0;
    text-align: left;
  }

  .yb-kicker {
    margin-bottom: 6px;
    font-size: 9.5px;
  }

  .yb-lede {
    display: none;
  }

  .yb-title {
    margin-bottom: 0;
    font-size: clamp(23px, 4.8vh, 29px);
  }

  .yb-controls {
    grid-area: ctrl;
    margin-bottom: 0;
  }

  .yb-age-segment {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 8px;
  }

  .yb-age-segment button {
    flex: 1 1 0;
    padding: 6px 8px;
    font-size: 12px;
  }

  .yb-chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px;
  }

  .yb-chip {
    padding: 7px 10px;
    font-size: 11.5px;
  }

  .yb-cardwrap {
    grid-area: card;
    grid-row: 1 / span 3;
    align-self: center;
    height: calc(100svh - 66px);
    min-height: 286px;
    max-height: 342px;
  }

  .yb-deck {
    bottom: 0;
  }

  .yb-perspective,
  .yb-pop {
    height: 100%;
  }

  .yb-flip {
    height: 100%;
    min-height: 0;
  }

  .yb-face {
    height: 100%;
  }

  .yb-face-pad,
  .yb-face-back .yb-face-pad {
    height: 100%;
    min-height: 0;
    padding: 18px 22px 16px;
  }

  .yb-type-row {
    margin-bottom: 12px;
  }

  .yb-card-type,
  .yb-grownup-label {
    font-size: 9px;
  }

  .yb-cardwrap {
    --yb-question-size: clamp(23px, 3.5vw, 29px);
    --yb-nudge-size: 14.5px;
    --yb-stretch-size: 15px;
    --yb-parent-title-size: 22px;
    --yb-parent-copy-size: 13.25px;
    --yb-type-gap: 12px;
    --yb-spacer-min: 8px;
    --yb-nudge-gap: 10px;
    --yb-footer-gap: 12px;
    --yb-prompt-gap: 8px;
  }

  .yb-density-roomy {
    --yb-question-size: clamp(26px, 3.8vw, 32px);
    --yb-nudge-size: 15px;
    --yb-parent-title-size: 23px;
    --yb-parent-copy-size: 13.5px;
  }

  .yb-density-dense {
    --yb-question-size: clamp(20px, 3vw, 25px);
    --yb-nudge-size: 13px;
    --yb-parent-title-size: 20px;
    --yb-parent-copy-size: 12.25px;
    --yb-type-gap: 9px;
    --yb-spacer-min: 6px;
    --yb-nudge-gap: 8px;
    --yb-footer-gap: 10px;
    --yb-prompt-gap: 6px;
  }

  .yb-nudge p {
    line-height: 1.32;
  }

  .yb-stretch {
    display: none;
  }

  .yb-soft-action,
  .yb-save {
    min-height: 31px;
    padding: 8px 12px;
    font-size: 11.5px;
  }

  .yb-grownup-label {
    margin-bottom: 8px;
  }

  .yb-parent-title {
    margin-bottom: 6px;
    line-height: 1.12;
  }

  .yb-parent-goal {
    margin-bottom: 10px;
    line-height: 1.35;
  }

  .yb-prompts p {
    line-height: 1.34;
  }

  .yb-back-footer {
    margin-top: 10px;
    padding-top: 10px;
  }

  .yb-drawbar {
    grid-area: draw;
    align-self: end;
    margin-top: 6px;
    text-align: left;
  }

  .yb-draw {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }

  .yb-saved-note {
    margin-top: 8px;
    font-size: 9.5px;
  }
}

@media (orientation: landscape) and (max-height: 430px) {
  .yb-topbar {
    display: none;
  }

  .yb-stage {
    height: 100svh;
    padding: 8px;
  }

  .yb-play {
    display: block;
    min-height: 0;
    height: 100%;
  }

  .yb-head,
  .yb-controls,
  .yb-drawbar {
    display: none;
  }

  .yb-cardwrap {
    width: min(100%, 860px);
    height: calc(100svh - 16px);
    min-height: 0;
    max-height: none;
    margin: 0 auto;
  }

  .yb-deck-a {
    transform: rotate(2.2deg) translate(7px, 5px);
  }

  .yb-deck-b {
    transform: rotate(-1.6deg) translate(-6px, 3px);
  }

  .yb-face-pad,
  .yb-face-back .yb-face-pad {
    padding: clamp(18px, 4vh, 24px) clamp(24px, 5vw, 38px) clamp(16px, 4vh, 22px);
  }

  .yb-question {
    font-size: clamp(24px, 4.2vw, 36px);
    line-height: 1.12;
    max-width: 17em;
  }

  .yb-nudge {
    display: none;
  }

  .yb-card-footer {
    margin-top: auto;
  }

  .yb-parent-title {
    font-size: clamp(21px, 3vw, 27px);
  }

  .yb-parent-goal {
    font-size: 13px;
  }

  .yb-prompts {
    gap: 9px;
  }

  .yb-prompts p {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yb-pop-a,
  .yb-pop-b,
  .yb-flip,
  .yb-theme-toggle,
  .yb-chip,
  .yb-draw {
    animation: none;
    transition: none;
  }
}
