main:has(#experience:not([hidden])) { background: #031e29; }
#experience {
  --field-accent: color-mix(in srgb, var(--motion-tint) 80%, #9dbcb2);
  position: relative;
  isolation: isolate;
  overflow: clip;
  max-width: none;
  min-height: calc(100svh - 8.1rem);
  padding-inline: max(clamp(1.3rem, 4.6vw, 5.5rem), calc((100vw - 1390px) / 2));
  background: radial-gradient(ellipse at 22% 38%, #063242 0, transparent 47%),
              linear-gradient(135deg, #05222e, #041f29 65%, #062a38);
  color: #fbf9f1;
}
#particle-field {
  inset: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
#experience .editorial, #experience .quiz { position: relative; z-index: 1; }
#experience .editorial { background: none; border-radius: 0; overflow: visible; }
#experience .hero-photo {
  inset: 40% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(76%, 24rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-position: center 40%;
  mask-image: radial-gradient(ellipse, #000000 32%, #000000dd 53%, transparent 73%);
  filter: saturate(.9);
}
#experience .editorial-shade, #experience .editorial-lines { display: none; }
#experience .photo-copy {
  left: 6%;
  right: 5%;
  bottom: 6%;
  text-shadow: 0 2px 14px #041f29;
}
#experience .photo-copy h1, #experience .photo-copy h1 em { color: #f8f7ee; }
#experience .photo-copy p, #experience .time, #experience .hero-category { color: #dbe3d8; }
#experience .quiz h2 { color: #faf9f0; text-wrap: balance; }
#experience .hint, #experience .section-name, #experience .quick-choice { color: #c7d5c9; }
#experience .eyebrow, #experience .progress-text .muted { color: var(--field-accent); }
#experience .section-name { background: #062e3d; box-shadow: inset 0 0 0 1px #cbd8cb44; }
#experience .segments span { background: #015e76; }
#experience .segments .filled { background: var(--field-accent); }
#experience .answer.answer-frame, #experience .age-option {
  background: #062e3ee8;
  color: #fbf9f2;
  border-color: #1e6e808c;
  box-shadow: none;
}
#experience .answer-copy small { color: #c3d3c7; }
#experience .answer-copy .photo-match-note { color: var(--field-accent); }
#experience .answer-indicator { color: var(--field-accent); background: #07394b; border-color: #2a7281; }
#experience :is(.answer.answer-frame,.age-option):is(:hover,:focus-visible,[aria-pressed=true]) {
  color: white;
  background: #064257;
  border-color: var(--field-accent);
}
#experience .answer[aria-pressed=true] .answer-indicator { background: var(--field-accent); color: #052835; }
#experience :is(button, select, summary, input):focus-visible { outline: 2px solid #d2dca8; outline-offset: 3px; }
#experience .back { color: #dde4d9; border-color: #367783; background: #052836; }
#experience .guide-actions .primary { background: var(--field-accent); border-color: var(--field-accent); color: #052936; }
#experience .favorite-picker { background: #062f3f; border-color: #277181; color: #dbe3d7; }
#experience .favorite-picker summary { color: var(--field-accent); }
#experience .favorite-picker select { background: #fbf9f1; color: #062b3a; }
#experience .example-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 6.7rem));
  gap: clamp(.45rem, 1.3vw, .9rem);
}
#experience .example-photo {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .42rem;
  width: 100%;
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  padding: 0;
  background: transparent;
  color: #e8ece1;
  font: inherit;
  text-align: left;
}
.example-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: .15rem;
  border-radius: .55rem;
  border: 2px solid #58898e;
  background: #064155;
  overflow: hidden;
}
.example-caption { font-size: .875rem; line-height: 1.27; }
.example-photo:is(:hover, [aria-pressed=true]) .example-image { border-color: #d6dfaf; background: #d6dfaf; }
#experience .quick-choice input { accent-color: #759f9d; }
@media (max-width:760px) {
  #experience { padding-inline: clamp(1rem, 4.7vw, 1.5rem); min-height: calc(100svh - 7rem); }
  #experience .editorial { overflow: hidden; border-radius: .65rem; }
  #experience .hero-photo { inset: 49% auto auto 74%; width: min(84%,17rem); }
  #experience .photo-copy { bottom: 8%; left: .5rem; right: 28%; }
  #experience .editorial.has-selection .photo-copy { left: .4rem; bottom: .75rem; }
  #experience .editorial:not(.has-selection) .photo-copy h1 { font-size: clamp(2.65rem,9vw,4rem); }
  #experience .editorial.has-selection .hero-photo { width: 10rem; inset-inline-start: 78%; }
}
#particle-field {
  background: radial-gradient(circle var(--haze-radius,0px) at var(--haze-x,50%) var(--haze-y,50%),
    transparent 35%, color-mix(in srgb,var(--field-accent) 7%,transparent) 62%, transparent);
}

/* Keep a gentle compositor-only drift while the visitor reads an answer.
   Touch and pointer input wake the live particle simulation. */
html[data-motion=on] #particle-field[data-drifting] {
  animation: question-field-drift 9s ease-in-out infinite alternate;
}
@keyframes question-field-drift {
  from { transform:translate3d(0,0,0) scale(1); }
  to { transform:translate3d(.38%,-.3%,0) scale(1.018); }
}

/* Keep both directions within reach while long answer grids scroll behind the controls. */
.question-nav {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .65rem 0 max(.65rem, env(safe-area-inset-bottom));
  border-top: 1px solid #005f78;
  background: #052430;
}
.question-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 2.85rem;
  padding: .62rem 1.15rem;
  border: 1px solid #a5c1b6;
  border-radius: 99rem;
  color: #fcfaf5;
  background: transparent;
  font: 650 .91rem/1.2 var(--sans, sans-serif);
  cursor: pointer;
}
.question-pill.next { color: #052937; background: var(--field-accent); border-color: var(--field-accent); }
.question-pill.previous:hover { background: #073c50; }
.question-pill.next:enabled:hover { background: #fcfbf6; }
.question-pill:disabled { opacity: .52; cursor: default; }
.question-pill span { font: 1.18em/1 Arial, sans-serif; }
.selection-count { color: #cbd8cb; text-align: center; font-size: .8rem; }
.face-pin[aria-pressed=true] > span { background: #05232f; outline: 3px solid #e7eacd; }
.face-pin[aria-pressed=true] b { background: #e7eacd; color: #052735; }
@media (max-width: 540px) {
  .question-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: .5rem; row-gap: .35rem; }
  .selection-count { grid-row: 1; grid-column: 1 / -1; }
  .selection-count:empty { display: none; }
  .question-pill { padding-inline: .55rem; font-size: .86rem; gap: .4rem; }
}
.return-results {
  padding: .65rem 0;
  background: transparent;
  color: #e1e7dc;
  border: 0;
  font: inherit;
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.return-results:disabled { opacity: .45; cursor: default; }
html:has(#experience:not([hidden])) { scroll-padding-bottom: 5.5rem; }

.why-link, .choice-info {
  border: 0; background: transparent; color: #e9ede2; cursor: pointer;
  font: 600 .875rem/1.2 var(--sans, sans-serif);
}
.why-link { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 0; }
.why-link > span, .choice-info {
  display: inline-grid; place-items: center; border: 1px solid #8cb1aa;
  border-radius: 50%; width: 1.65rem; height: 1.65rem;
  color: #fbfaf3; background: #062b39; font: 600 .96rem/1 var(--sans, sans-serif);
}
.why-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.choice-info:hover, .choice-info:focus-visible { background: #05495f; border-color: #f6f5ec; }
.question-view > .hint { margin-bottom: .25rem; }
.question-view > .why-link { margin-bottom: .8rem; }
.answer-option, .photo-choice { position: relative; min-width: 0; }
.answer-option .answer, .answer-option .age-option { width: 100%; height: 100%; }
.answer-option > .choice-info, .photo-choice > .choice-info {
  position: absolute; z-index: 2; right: .45rem; top: 50%;
  transform: translateY(-50%); padding: 0;
}
#experience .answer-option > .answer:not(.many-choices .answer),
#experience .answer-option .age-option { padding-right: 2.65rem; }
.many-choices .answer-option > .choice-info {
  inset: auto auto .35rem .35rem; transform: none;
}
.photo-choice > .choice-info { inset: .25rem .25rem auto auto; transform: none; }
.owned-guides { display: flex; align-items: center; gap: .9rem; margin-top: .45rem; }
#quiz-guide {
  width: min(29rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto;
  color: #062d3d; background: #faf9f1; border: 1px solid #a2bfb5; border-radius: 1rem;
}
#quiz-guide::backdrop { background: #031d27bb; }
.guide-inner { position: relative; padding: clamp(1.4rem, 4vw, 2.25rem); }
.guide-close {
  position: absolute; top: .65rem; right: .65rem; width: 2.65rem; height: 2.65rem;
  background: transparent; color: #064054; border: 1px solid #95b7ae; border-radius: 50%;
  font: 400 1.5rem/1 var(--sans, sans-serif); cursor: pointer;
}
#quiz-guide .guide-type { font: 650 .8rem/1.3 var(--sans, sans-serif); color: #015f78; margin: 0 3rem .65rem 0; }
#quiz-guide h2 { font: 500 clamp(1.95rem, 4vw, 2.8rem)/1.05 var(--serif, Georgia); margin: 0 1.3rem .9rem 0; }
#quiz-guide dl { margin: 1.2rem 0 0; }
#quiz-guide dt { font-weight: 700; }
#quiz-guide dd, #quiz-guide .guide-why { margin: .3rem 0 0; font-size: 1rem; line-height: 1.5; }
#quiz-guide dd + dt { margin-top: 1rem; }
@media (max-width:520px) {
  .many-choices .answer-option > .choice-info { inset: .32rem .32rem auto auto; }
}
@media (pointer:coarse) {
  .choice-info, .why-link > span { width: 2rem; height: 2rem; }
}

.choice-photo[data-live-photo] { position: relative; display: block; overflow: hidden; }
.choice-photo > img, .live-answer-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-answer-video {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .32s ease; border-radius: inherit;
}
[data-live-ready] > .live-answer-video { opacity: 1; }
html[data-motion=off] .live-answer-video { display: none; }
[data-live-active]:not([data-live-ready]) > img { animation: live-photo-drift 5s ease-in-out infinite alternate; }
@keyframes live-photo-drift { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, .6%); } }
.example-image .example-tick { z-index: 1; }
.example-image .live-answer-video { inset: .15rem; width: calc(100% - .3rem); height: calc(100% - .3rem); border-radius: .29rem; }
@media (min-width:521px) { .many-choices .choice-photo[data-live-photo] { position: absolute; } }
