/* 成為自由人特展 — 心理測驗體驗 */

.fpExperience {
  max-width: min(760px, 100%);
  margin: 0 auto;
  padding: calc(8 * var(--ui-scale, 1)) calc(16 * var(--ui-scale, 1)) calc(32 * var(--ui-scale, 1));
  font-family: var(--inner-font, "DIN Pro Condensed", "FIFI CJK Serif", "Noto Serif TC", "Microsoft JhengHei", sans-serif);
  font-weight: 500;
  letter-spacing: 1.33px;
  color: #2a2420;
}

.fpExperience--concept {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
}

.innerContent:has(.fpExperience--concept) {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 240px);
  padding-left: 0;
  padding-right: 0;
}

.fpExperience--concept .aboutConceptStage {
  container-type: size;
}

.fpExperience--concept .aboutConceptLead {
  font-size: calc(3.1cqh * var(--fp-fit, 1));
}

.fpExperience--concept .aboutConceptHeading {
  font-size: calc(2.4cqh * var(--fp-fit, 1));
}

.fpExperience--concept .aboutConceptParagraph,
.fpExperience--concept .aboutConceptParagraph.fpConceptBody {
  font-family: var(--font-body, "DIN Pro Condensed", "FIFI CJK Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif);
  font-size: calc(15px * var(--fp-fit, 1));
  font-weight: 500;
  line-height: 1.75;
}

.fpExperience--concept .aboutConceptContent,
.aboutPage--freeman .aboutConceptContent {
  text-align: left;
}

.fpExperience--concept .aboutConceptContent--compact {
  text-align: center;
}

/* Q1–Q9：與 intro/history 同尺寸特展視窗，底圖 BG_Ques */
.fpQuesStage {
  --about-accent: #e8b421;
  container-type: size;
  container-name: fp-ques;
}

.fpQuesArt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* LOGO 蓋在 PNG 圖層之上 */
.fpQuesStage .fpQuesLogo,
.fpQuesStage .aboutConceptLogo {
  z-index: 8;
}

.fpQuesUi {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.fpQuesUi > * {
  pointer-events: auto;
}

/* Q1–Q9 題目框對齊同一張白紙，內文在框內垂直置中（字仍靠左） */
.fpQuesPaper {
  position: absolute;
  left: 42.2%;
  top: 20.5%;
  width: 50.5%;
  height: 35.5%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 1.8% 2.6%;
  overflow: hidden;
  color: #1a1a1a;
  text-align: left;
  --fp-fit: 1;
}

.fpQuesPaperInner {
  box-sizing: border-box;
  width: 100%;
  flex: 0 0 auto;
  margin-block: auto;
  text-align: left;
}

.fpQuesPaper--tall {
  top: 20.5%;
  height: 35.5%;
  overflow: hidden;
  padding: 1.8% 2.6%;
}

.fpQuesPaperContext {
  margin: 0 0 0.45em;
  font-size: calc(2.15cqh * var(--fp-fit, 1) + 3px);
  line-height: 1.55;
  font-weight: 700;
  color: #1a1a1a;
}

.fpQuesPaperText {
  margin: 0;
  font-size: calc(2.55cqh * var(--fp-fit, 1) + 3px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #1a1a1a;
}

.fpQuesPaper--tall .fpQuesPaperContext,
.fpQuesPaper--tall .fpQuesPaperText {
  font-size: calc(2.15cqh * var(--fp-fit, 1) + 3px);
  line-height: 1.5;
}

.fpQuesLabel {
  position: absolute;
  left: 58%;
  top: 10%;
  transform: translateX(-50%);
  color: var(--about-accent);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* 選項：紙框下方左側 */
.fpQuesChoices {
  position: absolute;
  left: 43.5%;
  top: 69%;
  width: 48%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1.2vw, 14px);
}

/* Q1 選否：說明頁 */
.fpQ1NoCopy {
  position: absolute;
  left: 42%;
  top: 14%;
  width: 50%;
  max-height: 68%;
  overflow: hidden;
  box-sizing: border-box;
  padding-right: 1%;
  text-align: left;
  --fp-fit: 1;
}

.fpQ1NoLead {
  margin: 0 0 1.1em;
  color: var(--about-accent);
  font-size: calc(3.2cqh * var(--fp-fit, 1));
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.fpQ1NoBody {
  margin: 0 0 1em;
  color: #f5f5f5;
  font-size: calc(2.15cqh * var(--fp-fit, 1));
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.fpQ1NoBody:last-child {
  margin-bottom: 0;
}

.aboutConceptNext--wide {
  max-width: 46%;
  white-space: nowrap;
  font-size: clamp(13px, 1.45vw, 18px);
}

/* —— 徵稿頁 Text.png —— */
.fpSubmitCopy {
  position: absolute;
  left: 24%;
  top: auto;
  bottom: 58%;
  width: 52%;
  max-height: 38%;
  overflow-x: hidden;
  overflow-y: auto;
  text-align: left;
  --fp-fit: 1;
}

.fpSubmitPrompt {
  margin: 0 0 0.55em;
  color: #f5f5f5;
  font-size: max(13px, calc(2.85cqh * var(--fp-fit, 1)));
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.fpSubmitPrompt:last-child {
  margin-bottom: 0;
}

.fpSubmitBox {
  position: absolute;
  left: 24%;
  top: 49%;
  width: 52%;
  height: 24%;
  box-sizing: border-box;
  padding: 1.6% 1.8% 1.6%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.fpSubmitInput {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: #1a1a1a;
  font: inherit;
  font-size: clamp(14px, 2.3cqh, 17px);
  font-weight: 700;
  line-height: 1.45;
  padding: 2px 0;
}

.fpSubmitInput::placeholder {
  color: #9a9a9a;
  font-size: clamp(13px, 2cqh, 15px);
  font-weight: 500;
  line-height: 1.4;
  opacity: 1;
}

.fpSubmitCount {
  flex: 0 0 auto;
  margin-top: 4px;
  color: #666;
  font-size: clamp(10px, 1.6cqh, 13px);
  font-weight: 700;
  text-align: left;
}

.fpSubmitStatus {
  position: absolute;
  right: 24%;
  bottom: 16%;
  color: #f0d27a;
  font-size: clamp(11px, 1.8cqh, 13px);
  font-weight: 700;
}

.fpSubmitActions {
  position: absolute;
  right: 8%;
  bottom: 5.5%;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
}

.fpSubmitBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: 7.5cqh;
  padding: 0.4em 1.15em;
  border: 0;
  border-radius: 999px;
  background: #e8b421;
  color: #1a1a1a;
  font: inherit;
  font-size: clamp(13px, 2.6cqh, 17px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.fpSubmitBtn:hover {
  filter: brightness(1.06);
}

.fpSubmitBtn:active {
  transform: translateY(1px);
}

/* —— 作品牆 —— */
.fpWallTitle {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translateX(-50%);
  margin: 0;
  color: #e8b421;
  font-size: clamp(16px, 3.6cqh, 28px);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.fpWallHint {
  position: absolute;
  left: 50%;
  top: 10.2%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(242, 242, 242, 0.82);
  font-size: clamp(11px, 1.9cqh, 14px);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
}

.fpWallBoard {
  position: absolute;
  inset: 14% 6% 18%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 180, 33, 0.7) transparent;
}

.fpWallBoard--scrollable {
  padding-right: 4px;
}

.fpWallBoard::-webkit-scrollbar {
  width: 6px;
}

.fpWallBoard::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(232, 180, 33, 0.7);
}

.fpWallSheet {
  position: relative;
  width: 100%;
  min-height: 100%;
}

.fpWallEmpty {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 70%;
  color: #f2f2f2;
  font-size: clamp(13px, 2.4cqh, 17px);
  font-weight: 700;
  text-align: center;
  line-height: 1.7;
}

.fpWallCard {
  position: absolute;
  box-sizing: border-box;
  min-height: 0;
  padding: 0.55em 0.7em;
  border: 1px solid rgba(232, 180, 33, 0.7);
  border-radius: 3px 8px 3px 7px;
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.96), rgba(240, 230, 210, 0.92));
  color: #1a1a1a;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fpWallCard:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  filter: brightness(1.03);
}

.fpWallCardText {
  display: block;
  font-size: clamp(10px, 1.9cqh, 13px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.fpWallNext {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 4%;
  transform: translateX(-50%);
  min-width: 0;
  max-width: 58%;
  padding: 0.45em 1.1em;
  font-size: clamp(12px, 2.3cqh, 15px);
  z-index: 4;
}

/* ==========================================================================
   結果頁：底圖已含文案／人像／標籤／故事白字；這裡只疊「長條＋％」與底部分享鈕
   調位置：改 left / top（％相對特展視窗）
   長條寬度由 JS 依得分動態設定；100% 全長見 freedom-person.js CHART_BAR_FULL_WIDTH
   ========================================================================== */
.fpResultUi {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  container-type: size;
  --fp-gold: #e8b421;
  --fp-share-top: 90.6%;
  --fp-share-h: 4.8%;
}

.fpResultUi > .fpResultShareBtn {
  pointer-events: auto;
}

.fpChartLayer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* 長條：left/top/height 對齊底圖右側三列標籤 */
.fpChartBar {
  position: absolute;
  height: 2.6%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(90deg, #b88714 0%, #e8b421 45%, #f3d56a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 220, 120, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.35);
}

.fpChartBar--ma { left: 72%; top: 31.8%; }
.fpChartBar--pan { left: 72%; top: 38.1%; }
.fpChartBar--jin { left: 72%; top: 44%; }

/* 低分／0%：小圓點 */
.fpChartOrb {
  position: absolute;
  width: 1.4%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff3c2 0%, #e8b421 42%, #9a6f10 100%);
  box-shadow:
    0 0 0 1px rgba(255, 220, 120, 0.35),
    0 2px 5px rgba(0, 0, 0, 0.35);
}

.fpChartOrb--empty {
  opacity: 0.4;
  background: radial-gradient(circle at 32% 28%, #888 0%, #555 70%);
  box-shadow: none;
}

.fpChartOrb--ma { left: 72%; top: 31.8%; }
.fpChartOrb--pan { left: 72%; top: 38.1%; }
.fpChartOrb--jin { left: 72%; top: 44%; }

/* 百分比數字 */
.fpChartPct {
  position: absolute;
  width: 7%;
  height: 4.5%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #f5f5f5;
  font-weight: 800;
  font-size: calc(2.35 * 1cqh);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.fpChartPct--ma { left: 84.5%; top: 30.8%; }
.fpChartPct--pan { left: 84.5%; top: 37.1%; }
.fpChartPct--jin { left: 84.5%; top: 43%; }

/* 底部分享鈕 */
.fpResultShareBtn {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--fp-gold);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--fp-gold);
  font: inherit;
  font-size: calc(1.7 * 1cqh);
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
}

.fpResultShareBtn--fb { left: 12%; top: var(--fp-share-top); width: 12%; height: var(--fp-share-h); }
.fpResultShareBtn--copy { left: 26%; top: var(--fp-share-top); width: 12%; height: var(--fp-share-h); }
.fpResultShareBtn--retry { left: 40%; top: var(--fp-share-top); width: 12%; height: var(--fp-share-h); }
.fpResultShareBtn--door { left: 79%; top: var(--fp-share-top); width: 16.5%; height: var(--fp-share-h); }

.fpResultShareBtn:hover {
  background: var(--fp-gold);
  color: #1a1a1a;
}

.fpResultShareStatus {
  position: absolute;
  left: 12%;
  width: 40%;
  right: auto;
  top: calc(var(--fp-share-top) + var(--fp-share-h) + 0.35%);
  bottom: 0.6%;
  height: auto;
  z-index: 3;
  color: #f0d27a;
  font-size: clamp(7px, 1cqh, 9px);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.92);
  pointer-events: none;
}

.fpQuesChoice {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f2f2f2;
  font: inherit;
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.fpQuesChoice::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  flex: 0 0 0.7em;
}

.fpQuesChoice--selected {
  color: var(--about-accent);
}

.fpQuesChoice--selected::before {
  content: "▶";
  color: var(--about-accent);
  font-size: 0.85em;
  line-height: 1;
}

.fpQuesChoice:hover {
  color: var(--about-accent);
}

.aboutConceptNext--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.aboutPage--concept .fpQuesStage .fpQuesUi .aboutConceptNext {
  pointer-events: auto;
  /* 對齊底圖白紙右緣（約 94.7%），不要跟理念頁 Next 的定位規則搶 */
  right: 5.3%;
}

/* 尚無 art 圖層時的置中暫用版 */
.fpQuesInner {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(72%, 720px);
  max-height: 72%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vw, 16px);
  color: #f2f2f2;
  scrollbar-width: thin;
}

.fpQuesStage .fpQuestionLabel {
  margin: 0;
  color: var(--about-accent);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.fpQuesStage .fpQuestionBox {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  line-height: 1.85;
  font-size: clamp(13px, 1.35vw, 16px);
  color: #f2f2f2;
  max-height: none;
  overflow: visible;
}

.fpQuesStage .fpQuestionContext {
  color: #d8c4a0;
  font-size: clamp(12px, 1.2vw, 14.5px);
  line-height: 1.8;
}

.fpQuesStage .fpQuestionText {
  color: #f5f5f5;
}

.fpQuesStage .fpOptions {
  margin-top: 4px;
  gap: 10px;
}

.fpQuesStage .fpOptionBtn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 180, 33, 0.45);
  color: #f5f5f5;
  font-size: clamp(13px, 1.3vw, 16px);
  padding: 12px 16px;
  text-align: center;
}

.fpQuesStage .fpOptionBtn:hover,
.fpQuesStage .fpOptionBtn--selected {
  background: rgba(232, 180, 33, 0.18);
  border-color: var(--about-accent);
  color: var(--about-accent);
}

.fpStage {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fpTitle {
  margin: 0;
  text-align: center;
  font-size: clamp(37.33px, 4vw, 53.33px);
  letter-spacing: 1.33px;
  font-weight: 700;
}

.fpIntroBox,
.fpHistoryBox,
.fpQuestionBox,
.fpResultCard,
.fpSubmissionBox {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2)),
    #e6e2da;
  border: 1px solid #d5cfc4;
  border-radius: 4px;
  padding: 24px 28px;
  line-height: 1.9;
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.fpIntroLead {
  margin: 0;
  text-align: center;
}

.fpHistoryBox p {
  margin: 0 0 14px;
}

.fpHistoryBox p:last-child {
  margin-bottom: 0;
}

.fpQuestionLabel {
  margin: 0 0 12px;
  font-size: clamp(29.33px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: 1.33px;
}

.fpQuestionContext {
  margin: 0 0 16px;
  color: #8c3a32;
  font-size: 18.67px;
  line-height: 1.85;
}

.fpQuestionText {
  margin: 0;
}

.fpOptions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.fpOptionBtn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  border: none;
  border-radius: 6px;
  background: #3e322b;
  color: #fff;
  font: inherit;
  font-size: 20px;
  line-height: 1.6;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.fpOptionBtn:hover {
  background: #2f2620;
}

.fpOptionBtn:active {
  transform: translateY(1px);
}

.fpOptionRow {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.fpOptionRow .fpOptionBtn {
  flex: 1;
}

.fpPrimaryBtn,
.fpSecondaryBtn,
.fpNavBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 20px;
  letter-spacing: 1.33px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.fpPrimaryBtn {
  background: #3e322b;
  color: #fff;
}

.fpPrimaryBtn:hover {
  background: #2f2620;
}

.fpSecondaryBtn {
  background: #6b635a;
  color: #fff;
}

.fpSecondaryBtn:hover {
  background: #564f48;
}

.fpActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.fpActions--stack {
  flex-direction: column;
  align-items: center;
}

.fpQ1aTitle {
  margin: 0 0 12px;
  font-size: clamp(26.67px, 3vw, 34.67px);
  color: #8c3a32;
  font-weight: 700;
}

.fpDiscussNote {
  margin: 16px 0;
  padding: 12px 16px;
  background: #f3d9dc;
  color: #7a3038;
  border-radius: 4px;
  font-size: 18.67px;
}

.fpBulletList {
  margin: 0;
  padding-left: 1.2em;
  color: #8c3a32;
}

.fpBulletList li {
  margin-bottom: 8px;
}

.fpSubmissionPrompt {
  margin: 0 0 16px;
}

.fpTextarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 1px solid #ccc4b8;
  border-radius: 6px;
  background: #f5f2ec;
  font: inherit;
  font-size: 20px;
  line-height: 1.7;
  resize: vertical;
  box-sizing: border-box;
}

.fpTextarea:focus {
  outline: 2px solid #8c3a32;
  outline-offset: 1px;
}

.fpStatus {
  min-height: 1.4em;
  margin-top: 8px;
  font-size: 17.33px;
  color: #666;
  text-align: center;
}

.fpGalleryTitle {
  margin: 0;
  text-align: center;
  font-size: clamp(29.33px, 3vw, 40px);
  letter-spacing: 1.33px;
}

.fpGalleryWall {
  position: relative;
  min-height: 280px;
  margin: 12px 0 20px;
  padding: 20px;
  background: #ece8e0;
  border: 1px solid #d5cfc4;
  border-radius: 8px;
}

.fpBubble {
  position: absolute;
  max-width: 200px;
  padding: 12px 16px;
  border: none;
  border-radius: 18px 18px 18px 4px;
  background: #5a6670;
  color: #fff;
  font: inherit;
  font-size: 17.33px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fpBubble:nth-child(3n + 1) {
  background: #4a5560;
}

.fpBubble:nth-child(3n + 2) {
  background: #6b5f58;
}

.fpBubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  z-index: 2;
}

.fpGalleryEmpty {
  margin: 0;
  padding: 40px 16px;
  text-align: center;
  color: #777;
}

.fpResultCard {
  position: relative;
  padding-top: 28px;
}

.fpResultCard .fpResultHeading {
  margin: 0 0 6px;
  font-size: clamp(32px, 3.5vw, 42.67px);
  font-weight: 700;
}

.fpResultCard .fpResultSub {
  margin: 0 0 16px;
  font-size: 22.67px;
  color: #555;
}

.fpResultCard .fpResultBody {
  margin: 0 0 16px;
  line-height: 1.9;
}

.fpResultCard .fpResultStory {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #f5efe2;
  border-radius: 4px;
  font-size: 18.67px;
  line-height: 1.85;
}

.fpTags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.fpTag {
  padding: 6px 14px;
  border-radius: 999px;
  background: #ebe4f4;
  color: #4a3d68;
  font-size: 17.33px;
}

.fpBars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fpBarRow {
  display: grid;
  grid-template-columns: 88px 1fr 44px;
  gap: 10px;
  align-items: center;
  font-size: 17.33px;
}

.fpBarTrack {
  height: 10px;
  background: #ddd8d0;
  border-radius: 999px;
  overflow: hidden;
}

.fpBarFill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.fpBarFill--ma {
  background: #7b6b9e;
}

.fpBarFill--pan {
  background: #4f8f6a;
}

.fpBarFill--jin {
  background: #c47a3a;
}

.fpShare {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #ddd8d0;
}

.fpShareTitle {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.fpShareBox {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #ddd8d0;
  border-radius: 4px;
  font-size: 17.33px;
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: 12px;
}

.fpShareActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fpShareActions .fpSecondaryBtn {
  min-width: auto;
  padding: 8px 16px;
  font-size: 17.33px;
}

.fpShareBtn--facebook {
  background: #1877f2;
}

.fpShareBtn--facebook:hover {
  background: #1467d3;
}

.fpShareStatus {
  min-height: 1.2em;
  margin-top: 8px;
  font-size: 16px;
  color: #666;
  text-align: center;
}

.fpNavRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.fpNavBtn {
  background: #3e322b;
  color: #fff;
  text-decoration: none;
  min-width: 140px;
}

.fpNavBtn:hover {
  background: #2f2620;
}

.fpModalOverlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.fpModal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(80vh, 560px);
  overflow: auto;
  box-sizing: border-box;
  padding: 36px 32px 28px;
  background: transparent url("../assets/images/PopUp.png") center / 100% 100% no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #f3f3f3;
}

.fpModalClose {
  position: absolute;
  top: 12px;
  left: 14px;
  right: auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.fpModalClose .sitePopupCloseIcon,
.fpModalClose img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fpModalBody {
  margin: 0;
  line-height: 1.85;
  font-size: 20px;
  white-space: pre-wrap;
  color: #f0f0f0;
  text-align: left;
}

@media (max-width: 900px) {
  .fpWallHint {
    top: 13.8%;
    font-size: clamp(10px, 1.7cqh, 12px);
  }

  .fpWallBoard {
    inset: 18% 6% 18%;
  }

  .fpSubmitBtn.fpWallNext {
    font-size: clamp(9px, 1.45cqh, 11px);
    padding: 0.28em 1.05em;
    min-height: 0;
    max-height: 7.5cqh;
    line-height: 1.15;
    letter-spacing: 0.02em;
  }

  .fpResultShareBtn {
    box-sizing: border-box;
    font-size: clamp(8px, 1.25cqh, 10px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
    padding: 0 3px;
    overflow: hidden;
    white-space: nowrap;
  }

  .fpResultUi {
    --fp-share-top: 90.8%;
    --fp-share-h: 4.5%;
  }

  .fpResultShareBtn--door {
    white-space: nowrap;
    font-size: clamp(6.5px, 1.02cqh, 8.5px);
    line-height: 1;
    letter-spacing: 0;
    width: 21.5%;
    left: 76%;
    padding: 0 2px;
  }

  .fpResultShareStatus {
    left: 12%;
    width: 42%;
    right: auto;
    top: calc(var(--fp-share-top) + var(--fp-share-h) + 0.3%);
    bottom: 0.5%;
    font-size: clamp(6.5px, 0.95cqh, 8.5px);
    line-height: 1.15;
    text-align: left;
    white-space: nowrap;
  }

  .fpExperience--concept .aboutConceptNext,
  .aboutPage--freeman .aboutConceptNext {
    font-size: clamp(11px, 2.4vw, 13px);
  }
}

@media (max-width: 700px) {
  .fpExperience {
    padding: 8px 12px 24px;
  }

  .fpExperience--concept {
    padding: 0;
  }

  /*
    手機：理念／歷史頁 — 保持可讀字級，超出在文案區內捲動
  */
  .fpExperience--concept .aboutConceptLogo {
    width: 22%;
    max-width: 110px;
  }

  .fpExperience--concept .aboutConceptContent {
    top: 14%;
    left: 10%;
    right: 10%;
    bottom: 16%;
    width: auto;
    max-height: none;
    overflow: hidden;
    padding: 0 8px 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 180, 33, 0.55) transparent;
    display: flex;
    flex-direction: column;
  }

  .fpExperience--concept .aboutConceptContent--compact {
    top: 14%;
    left: 10%;
    right: 10%;
    bottom: 16%;
  }

  .fpExperience--concept .aboutConceptLead {
    text-align: center;
  }

  .fpExperience--concept .aboutConceptContent::-webkit-scrollbar {
    width: 4px;
  }

  .fpExperience--concept .aboutConceptContent::-webkit-scrollbar-thumb {
    background: rgba(232, 180, 33, 0.55);
    border-radius: 2px;
  }

  .fpExperience--concept .aboutConceptLead {
    font-size: max(15px, calc(4.2cqh * var(--fp-fit, 1)));
    line-height: 1.4;
  }

  .fpExperience--concept .aboutConceptHeading {
    font-size: max(13px, calc(3.2cqh * var(--fp-fit, 1)));
    margin-bottom: 10px;
    line-height: 1.35;
  }

  .fpExperience--concept .aboutConceptParagraph,
  .fpExperience--concept .aboutConceptParagraph.fpConceptBody {
    font-size: calc(14px * var(--fp-fit, 1));
    line-height: 1.7;
    margin-bottom: 8px;
  }

  /*
    手機答題：Q1–Q9 同一白紙框，題目垂直置中；字太多才在框內捲動
  */
  .fpExperience--concept .aboutConceptContent,
  .aboutPage--freeman .aboutConceptContent {
    text-align: center;
  }

  .fpQuesPaper {
    left: 42.2%;
    top: 20.5%;
    width: 50.5%;
    height: 35.5%;
    padding: 1.8% 2.6%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    text-align: left;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.28) transparent;
    z-index: 2;
  }

  .fpQuesPaperInner {
    flex: 0 0 auto;
    width: 100%;
    margin-block: auto;
    text-align: left;
  }

  .fpQuesPaper::-webkit-scrollbar {
    width: 3px;
  }

  .fpQuesPaper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 2px;
  }

  .fpQuesPaper--tall {
    top: 20.5%;
    height: 35.5%;
    padding: 1.8% 2.6%;
  }

  .fpQuesPaperText {
    font-size: calc(clamp(9.5px, 2.45cqh, 11px) + 3px);
    line-height: 1.35;
    letter-spacing: 0.01em;
    width: 100%;
  }

  .fpQuesPaperContext {
    font-size: calc(clamp(9px, 2.2cqh, 10.5px) + 3px);
    line-height: 1.3;
    margin-bottom: 0.2em;
    width: 100%;
  }

  .fpQuesPaper--tall .fpQuesPaperContext,
  .fpQuesPaper--tall .fpQuesPaperText {
    font-size: calc(clamp(9px, 2.2cqh, 10.5px) + 3px);
    line-height: 1.3;
  }

  .fpQuesChoices {
    left: 42%;
    top: 61%;
    bottom: 7%;
    width: 52%;
    height: auto;
    max-height: none;
    gap: 3px;
    overflow: visible;
    justify-content: flex-start;
    z-index: 4;
  }

  .fpQuesChoice {
    font-size: clamp(9px, 2vw, 10.5px);
    line-height: 1.22;
    letter-spacing: 0.01em;
    align-items: flex-start;
    white-space: normal;
    max-width: 100%;
  }

  .fpQuesChoice::before {
    margin-top: 0.08em;
    width: 0.45em;
    flex: 0 0 0.45em;
  }

  .fpQ1NoCopy {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    max-height: 62%;
  }

  .fpSubmitCopy {
    left: 18%;
    top: auto;
    bottom: 59%;
    width: 64%;
    max-height: 34%;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: left;
  }

  .fpSubmitPrompt {
    font-size: calc(14px * var(--fp-fit, 1));
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0.03em;
    margin-bottom: 0.55em;
    text-align: left;
  }

  .fpWallTitle {
    font-size: clamp(12px, 2.7cqh, 16px);
    letter-spacing: 0.06em;
  }

  .fpWallHint {
    top: 13.8%;
    font-size: clamp(10px, 1.7cqh, 12px);
  }

  .fpWallBoard {
    inset: 18% 6% 18%;
  }

  .fpSubmitBtn.fpWallNext {
    font-size: clamp(9px, 1.45cqh, 11px);
    padding: 0.28em 1.05em;
    min-height: 0;
    max-height: 7.5cqh;
    line-height: 1.15;
    letter-spacing: 0.02em;
  }

  .fpResultShareBtn {
    box-sizing: border-box;
    font-size: clamp(8px, 1.25cqh, 10px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
    padding: 0 3px;
    overflow: hidden;
    white-space: nowrap;
  }

  .fpResultUi {
    --fp-share-top: 90.8%;
    --fp-share-h: 4.5%;
  }

  .fpResultShareBtn--door {
    white-space: nowrap;
    font-size: clamp(6.5px, 1.02cqh, 8.5px);
    line-height: 1;
    letter-spacing: 0;
    width: 21.5%;
    left: 76%;
    padding: 0 2px;
  }

  .fpResultShareStatus {
    left: 12%;
    width: 42%;
    right: auto;
    top: calc(var(--fp-share-top) + var(--fp-share-h) + 0.3%);
    bottom: 0.5%;
    font-size: clamp(6.5px, 0.95cqh, 8.5px);
    line-height: 1.15;
    text-align: left;
    white-space: nowrap;
  }

  .aboutPage--concept .fpQuesStage .fpQuesUi .aboutConceptNext {
    right: 5.3%;
    font-size: clamp(12px, 2.7vw, 14px);
    padding: 6px 0 6px 12px;
    min-width: 0;
    color: var(--about-accent);
  }

  .fpIntroBox,
  .fpHistoryBox,
  .fpQuestionBox,
  .fpResultCard,
  .fpSubmissionBox {
    padding: 18px 16px;
  }

  .fpOptionRow {
    flex-direction: column;
  }

  .fpBarRow {
    grid-template-columns: 72px 1fr 40px;
    gap: 8px;
  }

  .fpBubble {
    position: relative;
    left: auto !important;
    top: auto !important;
    max-width: none;
    width: 100%;
    margin-bottom: 10px;
  }

  .fpGalleryWall {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }
}

/* 特展視窗偏矮時：題目內捲、選項固定可見 */
@container fp-ques (max-height: 340px) {
  .fpQuesPaper {
    left: 42.2%;
    top: 20.5%;
    width: 50.5%;
    height: 35.5%;
    padding: 1.8% 2.6%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 2;
  }

  .fpQuesPaperInner {
    flex: 0 0 auto;
    width: 100%;
    margin-block: auto;
    text-align: left;
  }

  .fpQuesPaper--tall {
    top: 20.5%;
    height: 35.5%;
  }

  .fpQuesPaperText {
    font-size: calc(clamp(9.5px, 2.45cqh, 11px) + 3px);
    line-height: 1.35;
    width: 100%;
  }

  .fpQuesPaperContext,
  .fpQuesPaper--tall .fpQuesPaperContext,
  .fpQuesPaper--tall .fpQuesPaperText {
    font-size: calc(clamp(9px, 2.2cqh, 10.5px) + 3px);
    line-height: 1.3;
    width: 100%;
  }

  .fpQuesChoices {
    left: 42%;
    top: 61%;
    bottom: 7%;
    width: 52%;
    height: auto;
    max-height: none;
    gap: 3px;
    overflow: visible;
    z-index: 4;
  }

  .fpQuesChoice {
    font-size: clamp(9px, 2.2cqh, 10.5px);
    line-height: 1.22;
    white-space: normal;
    align-items: flex-start;
  }
}
