.shell {
  width: 100%;
  max-width: 568px;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: max(12px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 28px; }
.topbar p { margin: 0; font-size: .9375rem; }
.context { display: grid; text-align: right; line-height: 1.45; }
.context strong { justify-self: end; padding: 3px 10px; border-radius: 6px; background: var(--gold); font-weight: 600; }
.context span { margin-top: 5px; font-size: .875rem; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 0; border: 0; background: none; color: inherit; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.main { margin-block: auto; padding-block: 16px 32px; }
.step { margin: 0 0 16px; color: var(--muted); font-size: .9375rem; font-weight: 500; }
.question { font-family: var(--display); font-size: 2.75rem; line-height: 1.08; font-weight: 800; letter-spacing: -.035em; margin: 0 0 14px; overflow-wrap: break-word; }
.question:focus { outline: none; }
.hint { margin: 0 0 24px; color: var(--muted); line-height: 1.5; }
.instruction { margin: 0 0 12px; color: var(--muted); font-size: .9375rem; }
.options { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.option, .primaryAction {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 64px; padding: 17px 20px;
  border: 1.5px solid var(--ink); border-radius: 12px;
  color: var(--ink); background: #fff; text-align: left;
  font-size: 1.125rem; font-weight: 600; line-height: 1.4;
  text-decoration: none; overflow-wrap: anywhere;
}
.option > span { min-width: 0; flex: 1 1 auto; white-space: normal; overflow-wrap: anywhere; }
.option small { display: block; margin-top: 4px; font-size: .9375rem; font-weight: 400; line-height: 1.45; }
.primaryAction { background: var(--ink); color: var(--gold); }
.option:active { background: var(--gold); color: var(--ink); }
.shell a:focus-visible, .shell button:focus-visible, .shell summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.shell button:disabled { opacity: .65; }
.help { margin-top: 18px; }
.help summary, .about summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding-block: 12px; font-size: .9375rem; font-weight: 500; list-style: none; cursor: pointer; }
.help summary::-webkit-details-marker, .about summary::-webkit-details-marker { display: none; }
.help summary > span, .about summary > span { flex-shrink: 0; font-size: 1.3rem; }
.help[open] summary > span, .about[open] summary > span { transform: rotate(45deg); }
.helpContent { padding: 10px 0 4px; font-size: 1rem; line-height: 1.6; }
.helpContent p { margin: 0 0 16px; }
.helpContent > a { display: flex; align-items: center; gap: 12px; min-height: 48px; width: fit-content; padding-block: 10px; font-weight: 600; }
.footer { margin-top: 12px; border-top: 1px solid var(--line); }
.credit { padding-top: 16px; font-size: .875rem; }
.resultDescription { margin: 0 0 28px; font-size: 1.125rem; line-height: 1.5; }
.resultNote { margin: 16px 0 0; font-size: .9375rem; }
.phone { display: flex; align-items: center; min-height: 48px; margin-top: 12px; }
.restart { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 16px; border: 1.5px solid var(--ink); border-radius: 12px; background: transparent; color: inherit; font-size: 1rem; font-weight: 600; }
.answerSummary { margin: 24px 0 12px; }
.answerSummary > div { padding: 12px 0; border-top: 1px solid rgba(17, 18, 15, .35); }
.answerSummary dt { font-weight: 600; }
.answerSummary dd { margin: 4px 0 0; }
@media (min-width: 600px) {
  .shell { padding-top: 24px; padding-bottom: 24px; }
  .question { font-size: 3.5rem; }
  .main { padding-block: 32px 48px; }
}
@media (hover: hover) and (pointer: fine) {
  .option:hover, .restart:hover { background: var(--gold); color: var(--ink); }
  .primaryAction:hover { background: #30312a; }
  .back:hover { text-decoration: underline; }
}
@media (forced-colors: active) {
  .option, .primaryAction, .restart { border-color: ButtonText; }
  .shell a:focus-visible, .shell button:focus-visible, .shell summary:focus-visible { outline-color: Highlight; }
}

.shell.embedded {
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.embedded .topbar { margin-bottom: 8px; }
.embedded .main { margin-block: 0; padding-block: 12px 0; }
.embedded .question { font-size: clamp(2rem, 5vw, 2.75rem); }
.topbar .badge { padding: 4px 10px; border-radius: 6px; background: var(--gold); font-weight: 600; }
@media (min-width: 600px) {
  .shell.embedded { padding: 28px; }
}
:root{--paper:#fffdf5;--ink:#11120f;--gold:#f5ca63;--muted:#5b574d;--line:#d7d3c8;--display:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--display)}button,a,summary{-webkit-tap-highlight-color:transparent}button{font-family:inherit;cursor:pointer}a{color:inherit;text-underline-offset:4px}.skip-link{position:absolute;top:-100px;left:16px;background:var(--gold);padding:12px;z-index:10}.skip-link:focus{top:12px}.credit-link{display:flex;align-items:center;min-height:48px;font-size:.9375rem;width:fit-content}.option>span:last-child{font-size:1.125rem;font-weight:600}.about-copy{font-size:1.35rem;line-height:1.55}.about-page h1{font-size:2.75rem}.about-page .primaryAction{margin-top:32px}.topbar{min-height:58px}

.intro { margin: 0 0 28px; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }

.context .byline { display: block; max-width: 32ch; min-height: 44px; margin-top: 8px; padding-block: 4px; color: var(--muted); font-size: .875rem; line-height: 1.5; text-decoration: none; }
.context .byline:hover { text-decoration: underline; }
