/* ===== 思維透視 MIND SCAN ===== */
.btn--scan i { animation: scanSpin 4s linear infinite; }
@keyframes scanSpin { to { transform: rotate(360deg); } }
.btn--scan:hover i { animation-duration: 1.2s; }
.lhero__actions { gap: 12px; }
.seat-card__scan { display: grid; gap: 2px; justify-items: start; margin-top: 8px; padding: 12px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c, #ff2d1f) 55%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--c, #ff2d1f) 16%, transparent), transparent); font-weight: 700; text-align: left; transition: transform .5s var(--ease), border-color .3s; }
.seat-card__scan span { color: var(--red); font-size: 9px; }
.seat-card__scan:hover { transform: translateY(-3px); border-color: var(--red); }

.mind { position: fixed; inset: 0; z-index: 175; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; color: var(--bone); --mc: #dbb997; }
.mind__bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(42% 52% at 50% 46%, color-mix(in srgb, var(--mc) 16%, transparent), transparent 70%),
  radial-gradient(70% 60% at 50% 110%, rgba(255,45,31,.18), transparent 60%),
  repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px),
  rgba(5,5,7,.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.mind__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(243,238,230,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(243,238,230,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 75%); }
.mind__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px var(--gutter) 0; }
.mind__kicker { display: flex; align-items: center; gap: 10px; color: var(--red); margin: 0 0 6px; }
.mind__top h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 3.2vw, 50px); line-height: 1.1; margin: 0; }
.mind__top h2 em { font-family: var(--latin); font-weight: 400; font-style: italic; font-size: .5em; color: var(--mc); margin-left: 10px; letter-spacing: .06em; }
.mind__meta { color: var(--bone-dim); margin: 8px 0 0; }
.mind__stage { position: relative; min-height: 0; margin: 0 var(--gutter); cursor: ew-resize; }
.mind__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mind__notes { position: absolute; top: 0; bottom: 0; width: min(25vw, 330px); list-style: none; margin: 0; padding: 4% 0; display: flex; flex-direction: column; justify-content: space-around; gap: 16px; z-index: 2; pointer-events: none; }
.mind__notes--L { left: 0; }
.mind__notes--R { right: 0; text-align: right; }
.mnote { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 14px 16px; border-radius: 18px; background: rgba(10,10,13,.62); border: 1px solid rgba(243,238,230,.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: auto; cursor: default; transition: border-color .3s, transform .5s var(--ease); }
.mind__notes--R .mnote { grid-template-columns: 1fr 34px; }
.mind__notes--R .mnote__num { grid-column: 2; grid-row: 1 / span 3; }
.mind__notes--R .mnote > :not(.mnote__num) { grid-column: 1; }
.mnote:hover { border-color: rgba(255,45,31,.6); transform: translateX(4px); }
.mind__notes--R .mnote:hover { transform: translateX(-4px); }
.mnote__num { grid-row: 1 / span 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,45,31,.6); color: var(--red); font-size: 11px; transition: background .3s, color .3s, box-shadow .3s; }
.mnote:hover .mnote__num { background: var(--red); color: #fff; box-shadow: 0 0 20px rgba(255,45,31,.7); }
.mnote__tag { margin: 0; color: var(--red); font-size: 10px; }
.mnote__title { font-family: var(--serif); font-weight: 900; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.4; }
.mnote__text { margin: 2px 0 0; color: var(--bone-dim); font-size: 13px; line-height: 1.7; min-height: 1.2em; }
.mnote__text.is-typing::after { content: "▍"; color: var(--red); animation: blink 1s steps(2) infinite; }
.mind__drag { position: absolute; left: 50%; bottom: 4px; translate: -50% 0; margin: 0; color: var(--bone-dim); font-size: 10px; pointer-events: none; }
.mind__bar { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; padding: 10px var(--gutter) 6px; }
.mind__topics { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mind__topics > span { color: var(--bone-dim); font-size: 10px; flex: 0 0 auto; }
#mind-topics { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
#mind-topics button { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bone-faint); font-size: 13px; transition: .3s var(--ease); white-space: nowrap; }
#mind-topics button:hover { border-color: var(--red); }
#mind-topics button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.mind__people { display: flex; align-items: center; gap: 10px; }
.mind__people .arrow { width: 40px; height: 40px; font-size: 15px; }
.mind__faces { display: flex; gap: 4px; }
.mface { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(243,238,230,.2); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 40%, #111), #0b0b0e); transition: transform .4s var(--ease), border-color .3s; }
.mface img { width: 100%; height: 160%; object-fit: cover; object-position: 50% 4%; }
.mface:hover { transform: translateY(-3px); }
.mface[aria-current="true"] { border: 2px solid var(--red); transform: scale(1.15); box-shadow: 0 0 16px rgba(255,45,31,.6); }
.mind__disc { margin: 0; padding: 0 var(--gutter) 14px; text-align: center; font-size: 11px; color: var(--bone-dim); }
.reduce-motion .btn--scan i { animation: none; }

@media (max-width: 1200px) {
  .mind__bar { grid-template-columns: 1fr auto; }
  .mind__topics { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .mind { grid-template-rows: auto auto auto auto; overflow-y: auto; overscroll-behavior: contain; }
  .mind__stage { height: auto; cursor: default; display: grid; gap: 10px; margin-bottom: 8px; }
  .mind__canvas { position: relative; inset: auto; display: block; width: 100%; height: min(50vh, 92vw); }
  .mind__notes { position: static; width: auto; padding: 0; pointer-events: auto; }
  .mind__notes--R { text-align: left; }
  .mind__notes--R .mnote { grid-template-columns: 34px 1fr; }
  .mind__notes--R .mnote__num { grid-column: 1; }
  .mind__notes--R .mnote > :not(.mnote__num) { grid-column: 2; }
  .mind__drag { display: none; }
  .mind__bar { grid-template-columns: 1fr; gap: 12px; }
  .mind__people { justify-content: space-between; }
  .mind__faces { overflow-x: auto; scrollbar-width: none; }
  .mface { flex: 0 0 auto; width: 30px; height: 30px; }
  #mind-invite { justify-content: space-between; }
}
/* 議題籤獨立一列，五個議題一次看到 */
.mind__bar { grid-template-columns: 1fr auto; row-gap: 10px; }
.mind__topics { grid-column: 1 / -1; justify-content: center; }
.mind__people { justify-self: start; }
#mind-topics { flex-wrap: wrap; justify-content: center; overflow: visible; }
@media (max-width: 900px) { #mind-topics { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; } .mind__topics { flex-direction: column; align-items: stretch; } }
.mind { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .mind { align-content: start; }
  .mind__stage { min-height: auto; }
  .mind__top h2 { font-size: 30px; }
}
.mind__bg { position: fixed; }
@media (max-width: 900px) {
  .mind__people { min-width: 0; }
  .mind__faces { min-width: 0; flex: 1; }
  .mind__bar > * { min-width: 0; }
}
@media (max-width: 900px) {
  .mind__bar { grid-template-columns: minmax(0, 1fr); }
  .mind__people { justify-self: stretch; }
  #mind-invite { width: 100%; }
}

/* ===== 對話席：漂浮在人物旁的「透視思維」標籤 ===== */
.seat-card__fig { position: relative; justify-self: center; width: fit-content; margin-right: var(--badge-w, 150px); isolation: isolate; }
.seat-card__who .seat-card__fig img { width: auto; height: 300px; max-width: none; aspect-ratio: 733 / 1100; justify-self: auto; display: block; }
.seat-card__sweep { position: absolute; left: -6%; right: -6%; top: 0; height: 18%; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(255,45,31,0), rgba(255,60,40,.38) 80%, rgba(255,220,210,.9) 98%, rgba(255,45,31,0)); mix-blend-mode: screen; }
.seat-card__fig:has(.seat-scan:hover) .seat-card__sweep, .seat-card__fig:has(.seat-scan:focus-visible) .seat-card__sweep { animation: seatSweep 1.4s ease-in-out infinite; }
@keyframes seatSweep { 0% { top: -18%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.seat-scan { position: absolute; z-index: 3; left: calc(100% + 16px); top: 9%; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; text-align: left; color: var(--bone);
  background: rgba(12,10,12,.72); border: 1px solid rgba(255,45,31,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.7), 0 0 0 0 rgba(255,45,31,.45); animation: seatFloat 3.4s ease-in-out infinite, seatPulse2 2.6s ease-out infinite; transition: border-color .3s, background .3s; }
.seat-scan::before { content: ""; position: absolute; right: 100%; top: 50%; width: 34px; border-top: 1px dashed rgba(255,45,31,.75); }
.seat-scan::after { content: ""; position: absolute; right: calc(100% + 30px); top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes seatFloat { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@keyframes seatPulse2 { 0% { box-shadow: 0 14px 34px -10px rgba(0,0,0,.7), 0 0 0 0 rgba(255,45,31,.5); } 70%, 100% { box-shadow: 0 14px 34px -10px rgba(0,0,0,.7), 0 0 0 14px rgba(255,45,31,0); } }
.seat-scan:hover, .seat-scan:focus-visible { border-color: var(--red); background: rgba(40,8,6,.85); animation-play-state: paused; outline: none; }
.seat-scan__orb { position: relative; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px;
  background: radial-gradient(circle at 35% 30%, #ff7a5c, #c41208 60%, #6d0702); box-shadow: 0 0 16px rgba(255,45,31,.7); }
.seat-scan__orb i { position: absolute; inset: -5px; border-radius: 50%; border: 1.5px dashed rgba(255,120,95,.85); animation: scanSpin 6s linear infinite; }
.seat-scan:hover .seat-scan__orb i { animation-duration: 1.4s; }
.seat-scan__txt { display: grid; line-height: 1.2; }
.seat-scan__txt small { color: var(--red); font-size: 8.5px; letter-spacing: .18em; }
.seat-scan__txt b { font-family: var(--serif); font-weight: 900; font-size: 15px; white-space: nowrap; }
.reduce-motion .seat-scan, .reduce-motion .seat-scan__orb i { animation: none; }
/* 對話席左右切換人物 */
.seat-nav { position: absolute; z-index: 4; top: 152px; width: 44px; height: 44px; font-size: 15px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.seat-nav--prev { left: 14px; }
.seat-nav--next { right: 14px; }
.seat-nav:active { transform: scale(.92); }
.seat-card__count { margin-right: 12px; padding-right: 12px; border-right: 1px solid var(--bone-faint); color: var(--bone-dim); }
/* 卡片較窄時（約 1100–1300px 視窗）縮小人物與徽章，讓徽章仍留在卡片內、不壓到臉 */
.seat-card__who { container-type: inline-size; }
@container (max-width: 360px) {
  .seat-card__fig { --badge-w: 104px; }
  .seat-card__who .seat-card__fig img { height: 250px; }
  .seat-scan { left: calc(100% + 12px); padding: 5px 11px 5px 5px; gap: 7px; }
  .seat-scan::before { width: 26px; }
  .seat-scan::after { right: calc(100% + 22px); }
  .seat-scan__orb { width: 28px; height: 28px; font-size: 12px; }
  .seat-scan__txt small { display: none; }
  .seat-scan__txt b { font-size: 13px; }
  .seat-nav { top: 130px; width: 36px; height: 36px; font-size: 13px; }
  .seat-nav--prev { left: 8px; } .seat-nav--next { right: 8px; }
}
@media (max-width: 1100px) {
  .seat-nav { top: 16px; width: 36px; height: 36px; font-size: 13px; }
  .seat-nav--prev { left: auto; right: 58px; } .seat-nav--next { right: 16px; }
  .seat-card__count { display: block; width: max-content; margin: 0 0 12px; padding: 0; border: 0; }
  .seat-card__who h3 { font-size: 34px; }
  .seat-card__fig { grid-row: span 4; width: 120px; margin-right: 0; }
  .seat-card__who .seat-card__fig img { width: 120px; height: 180px; }
  .seat-scan { left: 50%; top: auto; bottom: -6px; translate: -50% 0; padding: 5px 12px 5px 5px; gap: 7px; }
  .seat-scan::before, .seat-scan::after { display: none; }
  .seat-scan__orb { width: 26px; height: 26px; font-size: 12px; }
  .seat-scan__txt small { display: none; }
  .seat-scan__txt b { font-size: 13px; }
}
