/* Find out about yourself: the section's own styles (B1, 21 Oct 2026). Everything shared with the site
   comes from assets/css/logicers.css (the bar, the chips, .btn, dialogs, the colours by day and night);
   this file adds the section's colour and the screens only it has. */

[data-g="findout"] { --c: #3F7A2A; --tint: #E3F2DA; }      /* Find out about yourself: moss green */
@media (prefers-color-scheme: dark) {
  [data-g="findout"] { --c: #9EDB6A; --tint: #0F1F0A; }
}
body.game { --fo-ink-on-c: var(--on-c); }

/* ---- the frame of every screen ---- */
.fo-main { min-height: calc(100svh - 70px); display: flex; flex-direction: column; }
.fo-screen { animation: fo-in .28s ease-out both; }
@keyframes fo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fo-screen { animation: none; } }
.fo-title { margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.fo-lede { margin-top: 8px; font-size: 1.08rem; line-height: 1.4; font-weight: 500; }
.fo-quiet { color: var(--soft); font-weight: 500; font-size: 0.95rem; line-height: 1.4; }
.fo-card { margin-top: 14px; padding: 18px 18px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .fo-card { box-shadow: inset 0 0 0 1px var(--line); } }
.fo-card h2 { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.15; }
.fo-card .fo-quiet { margin-top: 4px; }
.fo-actions { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.fo-actions .btn.solid { flex: 1 1 auto; }
.fo-spacer { flex: 1 1 auto; }
.fo-bottom { margin-top: auto; padding-top: 14px; }

/* ---- the nine circles ---- */
.fo-circles { display: flex; gap: 8px; margin-top: 14px; justify-content: space-between; }
.fo-circles a, .fo-circles span { flex: 1 1 0; aspect-ratio: 1; max-width: 42px; border-radius: 99px; border: 2.5px solid color-mix(in srgb, var(--c) 45%, transparent); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: var(--c); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.fo-circles .done { background: var(--c); border-color: var(--c); color: var(--on-c); }
.fo-circles .now { border-style: dashed; }
.fo-count { margin-top: 10px; color: var(--soft); font-weight: 600; font-size: 0.95rem; }

/* ---- the list of games on the section's home ---- */
.fo-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.fo-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.fo-list a:active { transform: scale(0.99); }
.fo-list .n { width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; background: var(--tint); color: var(--c); font-weight: 800; flex: none; }
.fo-list .n.done { background: var(--c); color: var(--on-c); }
.fo-list .t { flex: 1; min-width: 0; }
.fo-list .t b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; line-height: 1.15; }
.fo-list .t span { display: block; color: var(--soft); font-size: 0.86rem; font-weight: 600; margin-top: 2px; }
.fo-list .band { color: var(--c); font-weight: 700; font-size: 0.86rem; text-align: right; max-width: 36%; }
@media (prefers-color-scheme: dark) { .fo-list a { box-shadow: inset 0 0 0 1px var(--line); } .fo-list .n { background: color-mix(in srgb, var(--c) 18%, transparent); } }

/* ---- the guess: a strip with two ends and a dot to drag ---- */
.fo-strip { position: relative; margin: 26px 2px 0; height: 56px; touch-action: none; -webkit-user-select: none; user-select: none; }
.fo-strip-rail { position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 10px; background: color-mix(in srgb, var(--c) 22%, var(--card)); }
.fo-strip-rail.bands { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, var(--card)) 0 33.3%, color-mix(in srgb, var(--c) 32%, var(--card)) 33.3% 66.6%, color-mix(in srgb, var(--c) 50%, var(--card)) 66.6%); }
.fo-strip-dot { position: absolute; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 99px; background: var(--c); box-shadow: 0 6px 16px rgba(21, 23, 43, .25); border: 3px solid var(--card); transition: left .6s cubic-bezier(.2, .9, .3, 1.1); cursor: grab; }
.fo-strip-dot.drag { transition: none; transform: scale(1.1); cursor: grabbing; }
.fo-strip-dot.ring { background: transparent; border: 3px solid var(--c); box-shadow: none; width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.fo-strip-dot.still { transition: none; }
.fo-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; line-height: 1.15; }
.fo-ends span { max-width: 48%; }
.fo-ends span:last-child { text-align: right; }
.fo-ends.three { font-size: 0.86rem; }
.fo-ends.three span { max-width: 33%; flex: 1; text-align: center; }
.fo-ends.three span:first-child { text-align: left; }
.fo-ends.three span:last-child { text-align: right; }
.fo-guess-read { margin-top: 14px; min-height: 1.6em; font-weight: 700; font-size: 1.05rem; color: var(--c); }

/* ---- one statement per screen ---- */
.fo-stem { margin-top: 18px; color: var(--soft); font-weight: 600; font-size: 1rem; }
.fo-item { margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 5.6vw, 1.6rem); line-height: 1.18; letter-spacing: -0.025em; text-wrap: balance; min-height: 3.6em; }
.fo-item.long { font-size: clamp(1.05rem, 4.4vw, 1.2rem); font-family: var(--text); font-weight: 600; line-height: 1.35; }
.fo-dots { display: flex; justify-content: space-between; gap: 4px; margin-top: 18px; }
.fo-dots button { appearance: none; border: 0; flex: 1 1 0; min-width: 0; padding: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; -webkit-tap-highlight-color: transparent; color: var(--ink); }
.fo-dots i { display: block; width: 34px; height: 34px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 2.5px color-mix(in srgb, var(--c) 55%, transparent); transition: transform .12s ease, background-color .12s ease; }
.fo-dots.many i { width: 24px; height: 24px; }
.fo-dots button.on i { background: var(--c); box-shadow: none; transform: scale(1.12); }
.fo-dots button:active i { transform: scale(0.9); }
.fo-dots small { font-size: 0.68rem; line-height: 1.15; font-weight: 600; color: var(--soft); text-align: center; text-wrap: balance; hyphens: auto; }
.fo-dots.many small { display: none; }
.fo-dots button:focus-visible i { outline: 3px solid var(--c); outline-offset: 2px; }
.fo-scale-ends { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--soft); font-weight: 700; font-size: 0.82rem; line-height: 1.2; }
.fo-scale-ends span:last-child { text-align: right; }
.fo-read { margin-top: 14px; min-height: 2.6em; font-weight: 700; font-size: 1.05rem; color: var(--c); line-height: 1.3; }
.fo-read small { display: block; font-weight: 600; color: var(--soft); font-size: 0.9rem; }
.fo-choices { display: grid; gap: 10px; margin-top: 18px; }
.fo-choices .btn { min-height: 60px; font-size: 1.12rem; text-align: center; white-space: normal; line-height: 1.2; padding: 10px 18px; }
.fo-choices .btn.ghost { flex: 1 1 auto; }
.fo-choices .btn.on { background: var(--c); color: var(--on-c); }
.fo-choices.two { grid-template-columns: 1fr 1fr; }
.fo-choices.two .btn { min-height: 84px; }
.fo-or { text-align: center; color: var(--soft); font-weight: 700; margin-top: 10px; }
.fo-ladder { display: grid; gap: 6px; margin-top: 14px; }
.fo-ladder button { appearance: none; border: 0; min-height: 40px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); color: var(--ink); font-weight: 800; font-size: 1rem; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 0 14px; -webkit-tap-highlight-color: transparent; }
.fo-ladder button span { color: var(--soft); font-weight: 600; font-size: 0.86rem; }
.fo-ladder button.on { background: var(--c); color: var(--on-c); box-shadow: none; }
.fo-ladder button.on span { color: inherit; }
.fo-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.fo-nav .chip { height: 44px; padding: 0 18px; font-size: 0.95rem; }
.fo-progress { display: flex; gap: 4px; margin-top: 10px; }
.fo-progress i { flex: 1; height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.fo-progress i.on { background: var(--c); }
.fo-help-btn { appearance: none; border: 0; background: none; color: var(--soft); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; font-size: 0.92rem; }

/* ---- the country tap ---- */
.fo-countries { list-style: none; margin: 12px 0 0; padding: 0; max-height: 52svh; overflow: auto; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.fo-countries button { appearance: none; border: 0; width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: 1.02rem; cursor: pointer; border-bottom: 1px solid var(--line); }
.fo-countries li:last-child button { border-bottom: 0; }
.fo-countries .flag { font-size: 1.3rem; width: 1.6em; }
.fo-countries .top { background: var(--tint); }

/* ---- the reveal ---- */
.fo-reveal .fo-bandname { margin-top: 18px; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 8.5vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.02; color: var(--c); }
.fo-reveal .fo-lines { margin-top: 10px; font-size: 1.1rem; line-height: 1.4; font-weight: 500; }
.fo-reveal .fo-lines p + p { margin-top: 6px; }
.fo-guessline { margin-top: 12px; color: var(--soft); font-weight: 600; font-size: 0.95rem; }
.fo-guessline b { color: var(--ink); }
.fo-curve { margin-top: 10px; padding: 12px 14px 10px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.fo-curve svg { display: block; width: 100%; height: 72px; overflow: visible; }
.fo-curve.inline { background: none; box-shadow: none; padding: 0; margin: 0 0 4px; }
.fo-curve.inline svg { height: 44px; }
.fo-curve.inline .fo-curve-line { font-size: 0.9rem; }
.fo-curve.inline .fo-curve-wait:empty { display: none; }
@media (prefers-color-scheme: dark) { .fo-curve.inline { box-shadow: none; } }
.fo-curve-line { margin-top: 6px; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.fo-curve-wait { color: var(--soft); font-weight: 600; font-size: 0.95rem; }
.fo-locked { margin-top: 8px; color: var(--soft); font-weight: 600; font-size: 0.92rem; display: flex; gap: 8px; align-items: center; }
.fo-locked::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 4px; border: 2px solid var(--soft); border-top-width: 5px; opacity: .8; }
.fo-fact { margin-top: 12px; padding: 14px 16px 15px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); font-size: 1.04rem; line-height: 1.38; font-weight: 500; }
.fo-fact b { display: block; color: var(--c); font-weight: 800; font-size: 0.82rem; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 4px; }
.fo-fact.quiet { background: none; box-shadow: none; padding: 6px 4px 0; color: var(--soft); font-size: 0.92rem; }
.fo-fact a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .fo-fact, .fo-curve { box-shadow: inset 0 0 0 1px var(--line); } .fo-fact.quiet { box-shadow: none; } }
.fo-expl { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.fo-expl li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.98rem; line-height: 1.35; font-weight: 500; }
.fo-expl .mark { flex: none; width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; background: var(--tint); color: var(--c); }
.fo-expl .mark.ok { background: var(--c); color: var(--on-c); }

/* ---- the five bars ---- */
.fo-bars { display: grid; gap: 12px; margin-top: 16px; }
.fo-bar { display: grid; grid-template-columns: 6.2em 1fr; gap: 10px; align-items: center; }
.fo-bar b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.fo-bar .rail { position: relative; height: 14px; border-radius: 14px; background: color-mix(in srgb, var(--c) 18%, var(--card)); overflow: hidden; }
.fo-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 14px; background: var(--c); transition: width .8s cubic-bezier(.2, .9, .3, 1); }
.fo-bar .ring { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 99px; border: 2px solid var(--ink); background: var(--card); }
.fo-bar small { grid-column: 2; color: var(--soft); font-weight: 600; font-size: 0.86rem; margin-top: -4px; line-height: 1.3; }
.fo-bar.skip .rail { opacity: .4; }

/* ---- the portrait ---- */
.fo-portrait h2 { margin-top: 22px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.fo-dots-view { display: grid; gap: 14px; margin-top: 12px; }
.fo-dot-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
.fo-dot-row .nm { font-weight: 700; font-size: 0.92rem; color: var(--soft); display: flex; justify-content: space-between; gap: 10px; }
.fo-dot-row .nm b { color: var(--c); font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em; text-align: right; }
.fo-dot-row .fo-strip { height: 22px; margin: 4px 2px 0; }
.fo-dot-row .fo-strip-rail { height: 8px; margin-top: -4px; }
.fo-dot-row .fo-strip-dot { width: 20px; height: 20px; margin: -10px 0 0 -10px; border-width: 2px; }
.fo-people { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.fo-people li { padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-size: 1.02rem; line-height: 1.38; font-weight: 500; }
.fo-people li small { display: block; margin-top: 4px; color: var(--soft); font-weight: 600; font-size: 0.82rem; }
@media (prefers-color-scheme: dark) { .fo-people li { box-shadow: inset 0 0 0 1px var(--line); } }
.fo-own { margin-top: 8px; display: grid; gap: 6px; font-size: 1.02rem; line-height: 1.4; font-weight: 500; }
.fo-own p::before { content: "· "; color: var(--c); font-weight: 800; }

/* ---- the consent card ---- */
.fo-consent { margin-top: 24px; padding: 18px 18px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-up); }
.fo-consent-top { display: flex; gap: 14px; align-items: center; }
.fo-consent img { width: 64px; height: 64px; border-radius: 99px; object-fit: cover; flex: none; }
.fo-consent p { font-size: 1.12rem; line-height: 1.4; font-weight: 600; }
.fo-consent .fo-actions .btn { flex: 1 1 0; min-height: 56px; font-size: 1rem; padding: 0 12px; white-space: normal; line-height: 1.15; text-align: center; }
.fo-consent-counter { margin-top: 10px; color: var(--soft); font-weight: 600; font-size: 0.92rem; }
.fo-consent-help { margin-top: 10px; }
@media (prefers-color-scheme: dark) { .fo-consent { box-shadow: inset 0 0 0 1px var(--line); } }

/* ---- demographics ---- */
.fo-demo h3 { margin-top: 18px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.fo-demo .why { color: var(--soft); font-weight: 600; font-size: 0.9rem; margin-top: 2px; }
.fo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fo-chips .chip { height: 42px; padding: 0 16px; font-size: 0.95rem; font-weight: 700; }
.fo-chips .chip.on { background: var(--c); color: var(--on-c); }

.fo-status { margin-top: 12px; font-weight: 600; color: var(--soft); min-height: 1.4em; }
.fo-status.ok { color: var(--c); }
.fo-foot { margin-top: 24px; color: var(--soft); font-size: 0.88rem; line-height: 1.5; }
.fo-foot a { color: inherit; text-underline-offset: 3px; }
.sheet ul { padding-left: 1.2em; }
.sheet li { margin-top: 6px; line-height: 1.4; }

/* ---- 22 Oct 2026, after Khayyam's first play: everything that is tapped sits low, near the thumb;
   Skip stays up and away from it; the name of the game is on every screen; small movements. ---- */
.fo-main { min-height: calc(100svh - 62px); }
.fo-screen { display: flex; flex-direction: column; flex: 1 1 auto; min-height: calc(100svh - 70px); }
.fo-bottom { margin-top: auto; padding-top: 18px; padding-bottom: 12px; }
.fo-controls { padding-bottom: 6px; }
.fo-promise { margin-top: 10px; color: var(--c); font-weight: 700; font-size: 0.95rem; }
.fo-title-s { font-size: clamp(1.3rem, 5.6vw, 1.6rem); }
.fo-itemtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fo-itemtop .meta { margin-top: 4px; }
.fo-skip { height: 36px; padding: 0 14px; font-size: 0.88rem; color: var(--soft); }
.fo-item { min-height: 0; margin-top: 10px; }
.fo-nav { justify-content: flex-start; margin-top: 10px; }
.fo-nav .chip { height: 40px; padding: 0 14px; font-size: 0.9rem; color: var(--soft); }
.fo-dots small.num { font-size: 0.78rem; color: var(--ink); font-weight: 700; }
.fo-dots.many small.num { display: block; }
.fo-dots.many { gap: 2px; }
.fo-dots.many i { width: 22px; height: 22px; }
.fo-search { width: 100%; margin-top: 12px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 1.05rem; -webkit-appearance: none; appearance: none; }
.fo-search:focus-visible { outline: 2px solid var(--c); outline-offset: 1px; }
.fo-countries { max-height: 46svh; }
.fo-reveal, .fo-portrait { min-height: 0; }

@keyframes fo-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }
.fo-bandname.pop { animation: fo-pop .55s cubic-bezier(.2, 1.2, .4, 1) .35s both; }
@keyframes fo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.fo-strip-dot.bob { animation: fo-bob 1.1s ease-in-out infinite; }
@keyframes fo-draw { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
.fo-curve path.draw { stroke-dasharray: 1200; animation: fo-draw 1.4s ease-out both; }
@keyframes fo-fillpulse { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }
.fo-circles .done.fresh { animation: fo-fillpulse .6s ease-out .2s both; }
@media (prefers-reduced-motion: reduce) {
  .fo-bandname.pop, .fo-strip-dot.bob, .fo-curve path.draw, .fo-circles .done.fresh { animation: none; }
}

.fo-mid { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 12px 0; }
.fo-mid .fo-stem { margin-top: 10px; }
.fo-dots i { width: 40px; height: 40px; }
.fo-dots.many i { width: 24px; height: 24px; }
.fo-dots.many i { width: 30px; height: 30px; }
.fo-dots button { min-height: 60px; justify-content: flex-start; }

/* ---- B2 (22 Oct 2026): the end card, the code, sharing, the friend page, Explore ---- */
.fo-onward { margin-top: 22px; }
.fo-onward .pips { display: flex; gap: 5px; }
.fo-onward .pips i { flex: 1; height: 10px; border-radius: 10px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.fo-onward .pips i.on { background: var(--c); }
.fo-extras { margin-top: 16px; display: grid; gap: 14px; }
.fo-extra b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.fo-extra .chip { margin-top: 8px; height: 40px; padding: 0 16px; font-size: 0.92rem; text-decoration: none; display: inline-flex; align-items: center; }
.fo-extra input { width: 100%; margin-top: 6px; font: inherit; padding: 8px; border-radius: 10px; border: 1px solid var(--line); }
.fo-codebox { margin-top: 14px; }
.fo-code { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: .06em; color: var(--c); }
.fo-codebox .chip { margin-top: 10px; }
.fo-codeentry { margin-top: 14px; }
.fo-codeform { display: grid; gap: 8px; }
.fo-codeform .fo-search { margin-top: 0; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.shot { display: block; width: 100%; border-radius: 16px; margin-top: 12px; box-shadow: var(--shadow); }
.copied { margin-top: 8px; color: var(--soft); font-weight: 600; min-height: 1.3em; }
.fo-cmp { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px 10px; margin-top: 14px; align-items: center; }
.fo-cmp-h { font-weight: 800; color: var(--soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .04em; }
.fo-cmp-n { font-weight: 700; font-size: 0.92rem; line-height: 1.2; }
.fo-cmp-b { font-family: var(--display); font-weight: 800; font-size: 0.95rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--c); padding: 8px 10px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.fo-cmp-b.same { box-shadow: inset 0 0 0 2px var(--c); }
.fo-cmp-b.none { color: var(--soft); }
@media (prefers-color-scheme: dark) { .fo-cmp-b { box-shadow: inset 0 0 0 1px var(--line); } .fo-cmp-b.same { box-shadow: inset 0 0 0 2px var(--c); } }
.fo-picks { display: grid; gap: 10px; margin-top: 14px; }
.fo-pick { display: grid; gap: 4px; }
.fo-pick span { font-weight: 700; font-size: 0.85rem; color: var(--soft); }
.fo-pick select { width: 100%; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: 1rem; }
.fo-pickbox { display: grid; gap: 6px; padding: 10px 12px; border-radius: 16px; background: var(--tint); }
.fo-explore-out { margin-top: 14px; }
.fo-explore-out svg { height: 90px; }
.fo-legend { display: grid; gap: 4px; margin-top: 8px; font-weight: 700; font-size: 0.9rem; }
.fo-leg::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; }
.fo-leg.a::before { background: var(--c); opacity: .6; }
.fo-leg.b::before { background: var(--ink); opacity: .35; border: 1px dashed var(--ink); }

/* ---- the researcher page: a long document in the site's type ---- */
.fo-doc { margin-top: 10px; font-size: 0.98rem; line-height: 1.5; }
.fo-doc h1 { font-family: var(--display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 12px; }
.fo-doc h2 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; margin: 28px 0 8px; }
.fo-doc h3 { font-weight: 800; font-size: 1.05rem; margin: 18px 0 6px; }
.fo-doc p { margin: 8px 0; }
.fo-doc ul, .fo-doc ol { padding-left: 1.3em; margin: 8px 0; }
.fo-doc li { margin: 4px 0; }
.fo-doc hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.fo-doc table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 0.9rem; display: block; overflow-x: auto; }
.fo-doc th, .fo-doc td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.fo-doc th { font-weight: 800; color: var(--soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .03em; }
.fo-doc code { font-size: 0.9em; background: var(--tint); padding: 1px 5px; border-radius: 6px; }
.fo-doc a { color: inherit; text-underline-offset: 3px; }

/* ---- B3 (22 Oct 2026): the portrait as a picture ---- */
:root { --band0: #3E7CB1; --band1: #3F7A2A; --band2: #C2781A; }
@media (prefers-color-scheme: dark) { :root { --band0: #8FCCFA; --band1: #9EDB6A; --band2: #FFCB57; } }
.fo-stories { display: block; }
.fo-story { min-height: calc(100svh - 70px); display: flex; flex-direction: column; justify-content: center; padding: 10px 0 18px; position: relative; scroll-snap-align: start; animation: fo-in .3s ease-out both; }
.fo-story h2 { margin-top: 0; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.fo-story-tail { justify-content: flex-start; min-height: 0; }
.fo-swipe { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; color: var(--soft); font-weight: 700; font-size: 0.8rem; letter-spacing: .04em; text-transform: uppercase; }
.fo-swipe span { display: block; font-size: 1.3rem; line-height: .8; animation: fo-bob 1.4s ease-in-out infinite; }
.fo-figure { width: min(78vw, 320px); height: auto; margin: 6px auto 0; display: block; }
.fo-figure .rays line { transform-origin: 150px 150px; }
.fo-figure.draw .rays { animation: fo-rays 1.2s ease-out both; transform-origin: 150px 150px; }
.fo-figure.draw .dots circle { animation: fo-pop .5s cubic-bezier(.2, 1.2, .4, 1) both; transform-origin: center; transform-box: fill-box; }
.fo-figure.draw .dots circle:nth-child(2) { animation-delay: .15s; } .fo-figure.draw .dots circle:nth-child(3) { animation-delay: .3s; } .fo-figure.draw .dots circle:nth-child(4) { animation-delay: .45s; } .fo-figure.draw .dots circle:nth-child(5) { animation-delay: .6s; }
@keyframes fo-rays { from { transform: scale(.2) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.fo-figlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 10px; font-weight: 700; font-size: 0.86rem; }
.fo-figlegend i { display: inline-block; width: 12px; height: 12px; border-radius: 99px; margin-right: 6px; vertical-align: -1px; }
.fo-rewrite { margin: 14px auto 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); max-width: 20em; min-height: 2.4em; }
.fo-rewrite.in { animation: fo-in .5s ease-out both; }
.fo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.fo-flip { appearance: none; border: 0; background: none; padding: 0; perspective: 900px; min-height: 130px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.fo-flip-inner { position: relative; width: 100%; height: 100%; min-height: 130px; transition: transform .55s cubic-bezier(.2, .9, .3, 1); transform-style: preserve-3d; }
.fo-flip.on .fo-flip-inner { transform: rotateY(180deg); }
.fo-flip-front, .fo-flip-back { position: absolute; inset: 0; border-radius: 18px; padding: 12px 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow); overflow: hidden; }
.fo-flip-front { background: var(--c); color: var(--on-c); display: flex; }
.fo-flip-back { background: var(--card); transform: rotateY(180deg); font-size: 0.9rem; line-height: 1.35; font-weight: 500; overflow-y: auto; }
.fo-flip-back small { display: block; margin-top: 6px; color: var(--soft); font-weight: 600; font-size: 0.72rem; }
.fo-card-face { display: flex; flex-direction: column; justify-content: space-between; width: 100%; }
.fo-card-face b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.1; }
.fo-card-icon { width: 30px; height: 30px; opacity: .9; }
.fo-flip:nth-child(2n) .fo-flip-front { background: color-mix(in srgb, var(--c) 78%, #000); }
.fo-flip:nth-child(3n) .fo-flip-front { background: color-mix(in srgb, var(--c) 70%, var(--band0)); }
.fo-flip.secret .fo-flip-front { background: linear-gradient(135deg, #15172B, #3A3F5C); color: #FFD45E; box-shadow: 0 0 0 3px #FFD45E, 0 10px 30px rgba(255, 212, 94, .35); animation: fo-glow 1.6s ease-in-out infinite; }
.fo-card-secret { align-items: center; justify-content: center; text-align: center; gap: 6px; }
.fo-card-secret b { font-size: 1.5rem; }
.fo-tap { font-weight: 800; font-size: 0.8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; animation: fo-bob 1.1s ease-in-out infinite; }
@keyframes fo-glow { 0%, 100% { box-shadow: 0 0 0 3px #FFD45E, 0 10px 30px rgba(255, 212, 94, .35); } 50% { box-shadow: 0 0 0 5px #FFD45E, 0 14px 44px rgba(255, 212, 94, .6); } }
.fo-dial { margin: 12px auto 0; width: min(70vw, 280px); text-align: center; }
.fo-dial svg { width: 100%; height: auto; overflow: visible; }
.fo-dial-arc { animation: fo-dial 1.2s ease-out both; }
@keyframes fo-dial { from { stroke-dasharray: 0 100; } }
.fo-dial-needle { transform-origin: 100px 100px; animation: fo-needle 1.2s cubic-bezier(.2, 1.1, .4, 1) both; }
@keyframes fo-needle { from { transform: rotate(-180deg); } }
.fo-doors .fo-door { margin-top: 10px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.fo-door-front { appearance: none; border: 0; background: none; width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 12px; padding: 14px 16px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fo-door-front b { font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.fo-door-unlock { grid-row: 2; color: var(--soft); font-weight: 600; font-size: 0.88rem; }
.fo-door-open { grid-row: 1 / span 2; grid-column: 2; display: grid; place-items: center; min-width: 54px; height: 40px; border-radius: 999px; background: var(--c); color: var(--on-c); font-weight: 800; font-size: 0.9rem; padding: 0 12px; }
.fo-door.done .fo-door-open { background: var(--tint); color: var(--c); }
.fo-door-inside { display: none; padding: 0 16px 14px; }
.fo-door.open .fo-door-inside { display: block; animation: fo-in .25s ease-out both; }
.fo-door.open .fo-door-front { background: var(--tint); }
.fo-unlocked { margin-top: 12px; font-weight: 800; color: var(--c); }
.fo-twin-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; text-align: center; }
.fo-twin-two .fo-figure { width: 100%; }
.fo-twin-two small { display: block; font-weight: 700; color: var(--soft); }
.fo-special { display: grid; gap: 12px; margin-top: 12px; }
.fo-curtain { position: fixed; inset: 0; z-index: 50; background: var(--tint); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; transition: opacity .5s ease; }
.fo-curtain.out { opacity: 0; pointer-events: none; }
.fo-curtain-text { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--ink); }
.fo-curtain-ring { position: relative; width: 220px; height: 220px; }
.fo-curtain-ring i { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 99px; background: var(--c); transform: rotate(calc(var(--i) * 40deg)) translateY(-90px); transition: transform 1.6s cubic-bezier(.4, 0, .2, 1), opacity .6s ease 1.2s; }
.fo-curtain.gather i { transform: rotate(calc(var(--i) * 40deg)) translateY(0) scale(1.8); opacity: 0; }
@media (prefers-color-scheme: dark) { .fo-curtain { background: var(--bg); } .fo-flip-front, .fo-flip-back, .fo-doors .fo-door { box-shadow: inset 0 0 0 1px var(--line); } }
@media (prefers-reduced-motion: reduce) { .fo-swipe span, .fo-tap, .fo-flip.secret .fo-flip-front, .fo-dial-arc, .fo-dial-needle, .fo-figure.draw .rays, .fo-figure.draw .dots circle { animation: none; } .fo-flip-inner { transition: none; } }
