/* Mission 3 "Real or AI?": 15 faces. A portrait photo card floats on the shared 3D stage (quest.css),
   tilts towards the pointer and receives an origin stamp after each confirmed answer. */
.f-dots { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 4px 0 22px; }
.f-dots li { display: flex; align-items: center; gap: 6px; }
.f-dots span { font-size: .72rem; font-weight: 800; color: var(--muted); margin-right: 2px; }
.f-dots i { width: 22px; height: 8px; border-radius: 4px; background: #e2dbe6; transition: background .2s, transform .2s; }
.f-dots i.now { background: var(--qa); transform: scaleY(1.5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--qa) 22%, transparent); }
.f-dots i.correct { background: #2f9a6a; } .f-dots i.incorrect { background: #d9615a; } .f-dots i.uncertain { background: #d8a13a; }

/* The photo card */
.f-stage { height: clamp(430px, 50vw, 600px); }
.f-stage .qs-rig { display: grid; grid-template: 100% / 100%; place-items: center; transform: rotateX(calc(4deg + var(--ry))) rotateY(calc(-9deg + var(--rx))); }
/* The deck: the open face in front, the faces still to come in this round stacked behind it in depth. */
.f-deck { position: relative; top: 2%; height: 84%; transform-style: preserve-3d; animation: qs-float 7s ease-in-out infinite; }
.f-back { position: absolute; inset: 0; border-radius: 14px; border: 5px solid #f3eef6; background: linear-gradient(150deg, var(--qa2), var(--qa) 60%, #4a1d5c); box-shadow: 0 30px 40px -24px #000c; }
.f-back::after { content: '?'; position: absolute; right: 12px; top: 6px; font-family: var(--font-display, inherit); font-weight: 800; font-size: 1.5rem; color: #ffffffb3; }
.f-back.b1 { transform: translate3d(16px, -12px, -36px) rotate(2deg); } .f-back.b2 { transform: translate3d(32px, -24px, -72px) rotate(4deg); filter: brightness(.9); }
.f-back.b3 { transform: translate3d(48px, -36px, -108px) rotate(6deg); filter: brightness(.8); } .f-back.b4 { transform: translate3d(64px, -48px, -144px) rotate(8deg); filter: brightness(.7); }
.f-shadow { position: absolute; left: 50%; bottom: 3%; width: 44%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, #000c, transparent); transform: translateX(-50%) translateZ(-70px); animation: f-shadow 7s ease-in-out infinite; }
.f-chip { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: #ffffff24; border: 1px solid #ffffff59; box-shadow: 0 14px 22px -12px #000c; animation: qs-bob 5s ease-in-out infinite; }
.f-chip .icon { width: 20px; height: 20px; }
.f-chip.c1 { left: 7%; top: 16%; transform: translateZ(90px) rotate(-8deg); } .f-chip.c2 { left: 10%; bottom: 14%; transform: translateZ(40px) rotate(6deg); animation-delay: -1.6s; } .f-chip.c3 { right: 6%; bottom: 20%; transform: translateZ(120px) rotate(10deg); animation-delay: -3.1s; }
.f-card { position: relative; margin: 0; height: 100%; padding: 10px 10px 34px; border-radius: 14px; background: linear-gradient(150deg, #fff, #e9e4ee); transform-style: preserve-3d;
  box-shadow: 0 50px 70px -34px #000e, 0 0 0 1px #ffffff40; animation: f-rise .6s cubic-bezier(.2,.8,.2,1) both; }
.f-img { display: block; height: 100%; width: auto; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 7px; background: #1b1424; opacity: 0; transition: opacity .35s; backface-visibility: hidden; }
.f-card.loaded .f-img { opacity: 1; }
.f-corners { position: absolute; inset: 18px 18px 42px; pointer-events: none; transform: translateZ(26px);
  background: linear-gradient(#fff, #fff) 0 0 / 26px 3px, linear-gradient(#fff, #fff) 0 0 / 3px 26px, linear-gradient(#fff, #fff) 100% 0 / 26px 3px, linear-gradient(#fff, #fff) 100% 0 / 3px 26px,
    linear-gradient(#fff, #fff) 0 100% / 26px 3px, linear-gradient(#fff, #fff) 0 100% / 3px 26px, linear-gradient(#fff, #fff) 100% 100% / 26px 3px, linear-gradient(#fff, #fff) 100% 100% / 3px 26px;
  background-repeat: no-repeat; opacity: .85; filter: drop-shadow(0 2px 4px #0008); }
.f-scanline { position: absolute; left: 10px; right: 10px; top: 10px; height: 26%; border-radius: 7px 7px 0 0; pointer-events: none; background: linear-gradient(to bottom, transparent, #ffffff40 85%, #fff); mix-blend-mode: overlay; animation: qs-scan 4.2s ease-in-out infinite; }
.f-stamp { position: absolute; left: 50%; bottom: -16px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 18px; border-radius: 10px; font-family: var(--font-display, inherit); font-weight: 800; font-size: 1.02rem; letter-spacing: .08em; color: #fff;
  transform: translateX(-50%) translateZ(60px) rotate(-3deg); box-shadow: 0 16px 26px -10px #000c, inset 0 0 0 2px #ffffff55; animation: f-stamp .5s cubic-bezier(.2,1.4,.4,1) .45s both; backface-visibility: hidden; }
.f-stamp .icon { width: 18px; height: 18px; }
.f-card.is-real .f-stamp { background: #1f7a8c; } .f-card.is-ai .f-stamp { background: #8b2f6e; }
.f-card.revealed { animation: f-flip .75s cubic-bezier(.3,.7,.2,1) both; box-shadow: 0 50px 70px -34px #000e, 0 0 0 3px #ffffffaa; }
.f-card.revealed .f-corners { backface-visibility: hidden; }
.f-zoom { position: absolute; right: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border-radius: 999px; border: 1px solid #ffffff55; background: #1b1424cc; color: #fff; font-size: .8rem; font-weight: 650; }
.f-zoom:hover { background: #2c1f3a; } .f-zoom .icon { width: 16px; height: 16px; }
.f-img-error { position: absolute; inset: auto 16px 16px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; color: #7a1f1f; font-size: .9rem; }
.f-options kbd { margin-left: auto; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); background: #f6f4f7; font: inherit; font-size: .72rem; color: var(--muted); }
.q-option.picked { opacity: 1; font-weight: 650; }
.q-option.picked.correct { border-color: #2f9a6a; background: #eaf7f0; } .q-option.picked.correct .q-letter { background: #23784f; color: #fff; }
.q-option.picked.incorrect { border-color: #d9615a; background: #fdeeed; } .q-option.picked.incorrect .q-letter { background: #b33a34; color: #fff; }
.q-option.picked.uncertain { border-color: #d8a13a; background: #fdf5e4; } .q-option.picked.uncertain .q-letter { background: #9a6a12; color: #fff; }
.f-reveal.correct { background: #eaf7f0; border-color: #8fd0ae; } .f-reveal.correct .q-fb-head { color: #18603f; }
.f-reveal.incorrect { background: #fdf0ef; border-color: #eaa9a4; } .f-reveal.incorrect .q-fb-head { color: #9d2b2b; }
.f-reveal.uncertain { background: #fdf5e4; border-color: #e6c98a; } .f-reveal.uncertain .q-fb-head { color: #7a5410; }
.f-origin { font-size: 1rem; }

/* Round introduction: five face-down cards fanned out */
.f-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.f-fan-stage { height: clamp(320px, 38vw, 440px); }
.f-fan { position: relative; width: 150px; height: 190px; margin: auto; top: 50%; translate: 0 -50%; transform-style: preserve-3d; }
.f-fan-card { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; border: 5px solid #fff; background: linear-gradient(150deg, var(--qa2), var(--qa) 60%, #4a1d5c); box-shadow: 0 26px 40px -18px #000c; transform-origin: 50% 120%; animation: f-fan .8s cubic-bezier(.2,.9,.3,1.1) both; }
.f-fan-card b { font-family: var(--font-display, inherit); font-size: 3.4rem; color: #ffffffd9; text-shadow: 0 4px 10px #0006; }
.f-fan-card.c0 { --r: -30deg; --z: -40px; animation-delay: .05s; } .f-fan-card.c1 { --r: -15deg; --z: -20px; animation-delay: .12s; } .f-fan-card.c2 { --r: 0deg; --z: 0px; animation-delay: .19s; }
.f-fan-card.c3 { --r: 15deg; --z: 20px; animation-delay: .26s; } .f-fan-card.c4 { --r: 30deg; --z: 40px; animation-delay: .33s; }
.f-intro-copy h1 { margin: 8px 0 12px; } .f-intro-copy > p:not(.section-label) { color: #3d4a57; font-size: 1.05rem; }
.f-choices-preview { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 24px; }
.f-choices-preview li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 650; font-size: .9rem; }
.f-choices-preview .icon { width: 17px; height: 17px; color: var(--qa); }
.f-intro .button.primary, .f-learn .button.primary { background: var(--qa-ink); }

/* Learning screen: three cards standing in a shallow arc */
.f-learn { max-width: 1040px; margin: 10px auto 0; text-align: center; }
.f-learn h1 { margin: 8px 0 22px; }
/* The round's five faces stand in an arc on the stage, each with its recorded origin. */
.f-recap { height: clamp(230px, 25vw, 310px); margin-bottom: 26px; }
.f-recap .qs-rig { list-style: none; margin: 0; padding: 0 5%; display: flex; align-items: center; justify-content: center; gap: 2.4%; transform: rotateX(calc(5deg + var(--ry))) rotateY(var(--rx)); }
.f-recap .f-thumb { flex: 0 1 150px; min-width: 0; transform-style: preserve-3d; }
.f-recap .t0 { transform: translateZ(-40px) rotateY(30deg); } .f-recap .t1 { transform: translateZ(6px) rotateY(15deg); } .f-recap .t2 { transform: translateZ(36px); }
.f-recap .t3 { transform: translateZ(6px) rotateY(-15deg); } .f-recap .t4 { transform: translateZ(-40px) rotateY(-30deg); }
.f-recap .f-thumb button { animation: f-rise .6s cubic-bezier(.2,.8,.2,1) backwards; box-shadow: 0 26px 30px -18px #000d; }
.f-recap .t1 button { animation-delay: .07s; } .f-recap .t2 button { animation-delay: .14s; } .f-recap .t3 button { animation-delay: .21s; } .f-recap .t4 button { animation-delay: .28s; }
.f-learn-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; perspective: 1400px; margin-bottom: 28px; text-align: left; }
.f-learn-card { position: relative; padding: 28px 22px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 44px -30px #3b1d3a99, 0 2px 0 #fff inset; transform-origin: 50% 100%; animation: f-stand .7s cubic-bezier(.2,.8,.2,1) both; transition: transform .25s, box-shadow .25s; }
.f-learn-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, var(--qa2), var(--qa)); }
.f-learn-card.c0 { --tilt: 7deg; animation-delay: .05s; } .f-learn-card.c1 { --tilt: 0deg; animation-delay: .17s; } .f-learn-card.c2 { --tilt: -7deg; animation-delay: .29s; }
.f-learn-card:hover { transform: rotateY(0deg) translateY(-6px); box-shadow: 0 40px 50px -30px #3b1d3acc; }
.f-learn-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--qa2), var(--qa)); color: #fff; font-family: var(--font-display, inherit); font-weight: 800; box-shadow: 0 10px 16px -8px var(--qa); }
.f-learn-card h2 { margin: 14px 0 8px; font-size: 1.15rem; } .f-learn-card p { color: #3d4a57; font-size: .95rem; }

/* Result */
.f-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 18px 0 22px; }
.f-ring { --p: 0; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--qa2) 0, var(--qa) calc(var(--p) * 100%), #e7dfea 0); box-shadow: 0 18px 26px -16px var(--qa); }
.f-ring span { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: #fff; font-family: var(--font-display, inherit); font-size: 1.9rem; font-weight: 800; }
.f-ring small { font-size: .8rem; color: var(--muted); margin-top: -8px; }
.f-counts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.f-counts li { display: flex; align-items: center; gap: 8px; font-size: .98rem; } .f-counts li b { font-size: 1.15rem; min-width: 1.4em; }
.f-counts .correct .icon { color: #23784f; } .f-counts .incorrect .icon { color: #b33a34; } .f-counts .uncertain .icon { color: #9a6a12; }
.f-score-note { font-size: .78rem; color: var(--muted); max-width: 22ch; margin-top: 8px; }
.f-gallery h2 { margin-bottom: 14px; }
/* The gallery wall: three rows of photo cards on the dark stage, leaning back a little and following the pointer. */
.qs-stage.f-wall { height: auto; padding: 34px 40px 46px; margin-bottom: 22px; perspective: 1500px; }
.f-wall-rig { transform-style: preserve-3d; transform: rotateX(calc(3deg + var(--ry) * .3)) rotateY(calc(var(--rx) * .3)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.f-wall h3 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #ffffffcc; }
.f-gallery ol { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0 0 26px; transform-style: preserve-3d; }
.f-gallery ol:last-child { margin-bottom: 0; }
.f-wall .f-thumb { transform-style: preserve-3d; } .f-wall .t0, .f-wall .t4 { transform: translateZ(-14px); } .f-wall .t2 { transform: translateZ(16px); }
.f-thumb button { position: relative; display: block; width: 100%; padding: 6px 6px 8px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 16px 26px -18px #3b1d3acc, 0 0 0 1px var(--line); transition: transform .25s, box-shadow .25s; }
.f-wall .f-thumb button { box-shadow: 0 26px 30px -16px #000d; }
.f-thumb button:hover, .f-thumb button:focus-visible { transform: translateY(-6px) translateZ(40px) rotateX(6deg); box-shadow: 0 34px 36px -18px #000c, 0 0 0 2px var(--qa2); }
.f-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 7px; background: #1b1424; }
.f-badge { display: block; margin-top: 7px; text-align: center; font-size: .72rem; line-height: 1.2; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.f-thumb.is-real .f-badge { color: #1f6878; } .f-thumb.is-ai .f-badge { color: #6a2152; }
.f-mark { position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; box-shadow: 0 6px 10px -4px #0008; }
.f-mark .icon { width: 15px; height: 15px; } .f-mark.correct { background: #23784f; } .f-mark.incorrect { background: #b33a34; } .f-mark.uncertain { background: #9a6a12; }
/* Briefing and enlarged view */
.f-defs { display: grid; gap: 8px; margin: 0 0 16px; }
.f-defs div { padding: 10px 12px; border-radius: 10px; background: #f6f4f7; } .f-defs dt { display: flex; align-items: center; gap: 8px; font-weight: 700; } .f-defs dt .icon { width: 17px; height: 17px; color: #8b2f6e; }
.f-defs dd { margin: 4px 0 0; font-size: .86rem; color: #4a5866; }
.f-alt { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #f6f4f7; font-size: .88rem; }
.f-alt summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; } .f-alt p { margin: 4px 0 10px; }
.f-zoom-view img { display: block; width: auto; max-width: 100%; height: auto; max-height: 62vh; margin: 12px auto; border-radius: 10px; object-fit: contain; background: #1b1424; }
@keyframes f-rise { from { transform: translateY(40px) rotateX(18deg) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes f-flip { 0% { transform: rotateY(-180deg) scale(.96); } 65% { transform: rotateY(10deg) scale(1.03); } 100% { transform: none; } }
@keyframes f-shadow { 0%, 100% { opacity: .85; scale: 1; } 50% { opacity: .6; scale: .9; } }
@keyframes f-stamp { from { transform: translateX(-50%) translateZ(220px) rotate(-14deg) scale(1.9); opacity: 0; } to { transform: translateX(-50%) translateZ(60px) rotate(-3deg) scale(1); opacity: 1; } }
@keyframes f-fan { from { transform: rotate(0deg) translateZ(0); opacity: 0; } to { transform: rotate(var(--r)) translateZ(var(--z)); opacity: 1; } }
@keyframes f-stand { from { transform: rotateX(-70deg) rotateY(var(--tilt)); opacity: 0; } to { transform: rotateX(0deg) rotateY(var(--tilt)); opacity: 1; } }
@media (max-width: 960px) {
  .f-intro { grid-template-columns: 1fr; } .f-fan-stage { height: 300px; }
  .f-stage { height: 440px; } .f-stage .qs-rig, .f-recap .qs-rig, .f-fan-stage .qs-rig { scale: 1; }
  .f-recap { height: 240px; }
  .f-learn-cards { grid-template-columns: 1fr; } .f-learn-card { --tilt: 0deg !important; }
  .f-gallery ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } .qs-stage.f-wall { padding: 24px 24px 32px; }
}
@media (max-width: 560px) {
  .f-stage { height: 380px; } .f-fan-stage { height: 250px; } .f-fan { scale: .8; } .f-chip { display: none; }
  .f-recap { height: 170px; } .f-recap .qs-rig { padding: 0 3%; gap: 2%; } .f-recap .f-thumb button { padding: 3px 3px 5px; } .f-badge { margin-top: 4px; font-size: .62rem; letter-spacing: 0; }
  .f-recap .f-mark { width: 20px; height: 20px; right: -5px; top: -5px; } .f-recap .f-mark .icon { width: 11px; height: 11px; }
  .f-stamp { font-size: .88rem; padding: 7px 12px; }
  .f-gallery ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .qs-stage.f-wall { padding: 16px 12px 20px; } .f-wall-rig { transform: none; } .f-wall .f-thumb { transform: none; }
  .f-dots { gap: 6px 12px; } .f-dots i { width: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .f-card, .f-card.revealed, .f-stamp, .f-fan-card, .f-learn-card, .f-scanline, .f-deck, .f-shadow, .f-chip, .f-recap .f-thumb button { animation: none !important; }
  .f-fan-card { transform: rotate(var(--r)) translateZ(var(--z)); } .f-learn-card { transform: rotateY(var(--tilt)); }
  .f-stamp { transform: translateX(-50%) translateZ(60px) rotate(-3deg); } .f-thumb button:hover, .f-thumb button:focus-visible, .f-learn-card:hover { transform: none; }
  .f-wall-rig { transition: none; }
}
