/* 學習島・展場版:接在學習島 style.css 後面。用學習島同一套顏色、黏土面板、六角章 */

/* 開始畫面(xp-attract)= 原本的學習島,工具列、學習地圖、換島列、熱點、說明卡全部照舊;
   孩子報到後(地圖、任務)才收起來,換成探險護照和任務。連去招生頁的連結一律拿掉 */
.expo:not(.xp-attract) .toolbar, .expo:not(.xp-attract) #index, .expo:not(.xp-attract) #rail, .expo:not(.xp-attract) #dock, .expo:not(.xp-attract) #pins,
.expo:not(.xp-attract) .card .items, .expo:not(.xp-attract) .card h3, .expo:not(.xp-attract) .card-head .more, .expo:not(.xp-attract) .card-nav,
.expo #intro, .expo .credit a { display: none !important; }
.expo .brand .logo { cursor: default; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.expo .brand .logo img { -webkit-user-drag: none; pointer-events: none; }   /* 連點標誌不會被當成雙擊放大或拖圖 */
/* 說明卡只在開始畫面出現(孩子報到後是走路遊戲,不用說明卡) */
.expo:not(.xp-attract) #card { display: none !important; }
.expo .card { width: 392px; }

/* ---------- 共用按鈕 ---------- */
.xp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font: 900 17px/1 var(--font); letter-spacing: .04em; cursor: pointer;
  box-shadow: inset 0 -4px 0 var(--yellow-d), inset 0 3px 0 rgba(255, 255, 255, .55), 0 4px 10px rgba(232, 165, 34, .3); transition: transform .12s, background .2s; }
.xp-btn:hover:not(:disabled) { background: #ffdc6b; }
.xp-btn:active:not(:disabled) { transform: translateY(2px) scale(.98); }
.xp-btn:disabled { opacity: .5; cursor: wait; }
.xp-btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line), 0 3px 8px rgba(48, 78, 70, .08); }
.xp-btn.ghost:hover:not(:disabled) { background: var(--cream); }
.xp-btn.danger { color: #c2410c; }
.xp-ava { display: block; width: 74px; height: 74px; margin: -58px auto 6px; border-radius: 50%; background: #fff var(--hero-img) center / 82% no-repeat; box-shadow: 0 6px 16px rgba(48, 78, 70, .2), inset 0 -3px 0 rgba(35, 48, 45, .06); }

/* ---------- 待機:大大的「來當小探長!」 ---------- */
.xp-start { position: absolute; z-index: 30; left: 50%; bottom: max(32px, 5vh); transform: translateX(-50%); }
.xp-go { display: flex; align-items: center; gap: 16px; padding: 14px 34px 14px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--yellow); color: var(--ink); font-family: var(--font); text-align: left;
  box-shadow: inset 0 -6px 0 var(--yellow-d), inset 0 4px 0 rgba(255, 255, 255, .55), 0 14px 34px rgba(232, 165, 34, .38), 0 0 0 8px rgba(255, 255, 255, .55);
  animation: xp-bob 2.4s ease-in-out infinite; }
.xp-go:hover { background: #ffdc6b; }
.xp-go-ava { flex: none; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: #fff; box-shadow: inset 0 -3px 0 rgba(35, 48, 45, .08); }
.xp-go-ava svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.xp-go-txt b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: .06em; line-height: 1.15; }
.xp-go-txt small { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; color: #6b5a2a; }
@keyframes xp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* 手機、直立平板:下面有原本的換島列,按鈕往上讓;說明卡打開時先收起來 */
/* 手機、直立平板的版面在 quest.css 最後面(要蓋過所有桌機規則) */
/* 待機時探長的字幕放在大按鈕上面,不要疊在一起 */
body.xp-attract .caption { bottom: calc(max(32px, 5vh) + 118px); }

/* ---------- 選角色 ---------- */
.xp-picker { position: absolute; z-index: 30; left: 50%; bottom: max(20px, 3vh); transform: translateX(-50%); width: min(760px, calc(100vw - 32px)); padding: 16px 20px 18px; border-radius: 28px;
  background: rgba(255, 253, 248, .95); box-shadow: var(--shadow), var(--clay); text-align: center; animation: xp-rise .4s cubic-bezier(.2, .9, .3, 1); }
.xp-picker h2 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: .05em; }
.xp-pick-sub { margin: 4px 0 12px; font-size: 14.5px; font-weight: 700; color: var(--soft); }
.xp-pick-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.xp-pick-row button { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 9px; border: 0; border-radius: 18px; background: #fff; cursor: pointer; font-family: var(--font);
  box-shadow: inset 0 0 0 2px var(--line), 0 3px 8px rgba(48, 78, 70, .06); transition: transform .15s, box-shadow .15s; }
.xp-pick-row button i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.xp-pick-row button b { font-size: 18px; font-weight: 900; }
.xp-pick-row button span { font-size: 13px; font-weight: 700; color: var(--soft); }
.xp-pick-row button.on { transform: translateY(-4px); box-shadow: inset 0 0 0 3px var(--ink), 0 8px 18px rgba(48, 78, 70, .18); background: #fffbe8; }
.xp-picker .xp-row { justify-content: center; gap: 12px; }
.xp-picker #xp-pick-ok { min-width: 220px; font-size: 19px; }

/* ---------- 走路:搖桿、目標 ---------- */
.xp-joy { position: absolute; z-index: 24; left: 26px; bottom: 44px; width: 150px; height: 150px; border-radius: 50%; touch-action: none; cursor: grab;
  background: radial-gradient(circle, rgba(255, 255, 255, .55) 0 38%, rgba(255, 253, 248, .82) 39% 100%); box-shadow: var(--shadow), inset 0 0 0 3px rgba(255, 255, 255, .9); }
.xp-joy::before { content: "▲\A◀    ▶\A▼"; white-space: pre; position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 14px; line-height: 1.55; color: rgba(35, 48, 45, .28); pointer-events: none; }
.xp-joy-knob { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--yellow); pointer-events: none;
  box-shadow: inset 0 -5px 0 var(--yellow-d), inset 0 3px 0 rgba(255, 255, 255, .55), 0 6px 14px rgba(232, 165, 34, .35); transition: transform .08s; }
.xp-joy.on { cursor: grabbing; } .xp-joy.on .xp-joy-knob { transition: none; }
.xp-goal { position: absolute; z-index: 22; left: 16px; top: 92px; max-width: 330px; padding: 10px 16px 11px; border-radius: 20px; background: rgba(255, 253, 248, .94); box-shadow: var(--shadow), var(--clay); }
.xp-goal p { margin: 0; }
.xp-goal-k { font-size: 12.5px; font-weight: 900; letter-spacing: .12em; color: #c98a14; }
.xp-goal-t { margin: 2px 0 4px !important; font-size: 18px; font-weight: 900; line-height: 1.4; }
.xp-goal-h { font-size: 12px; font-weight: 700; color: var(--soft); line-height: 1.5; }
@media (pointer: coarse) { .xp-goal-h { display: none; } }
body.xp-map .caption { bottom: 46px; }

/* ---------- 探險護照(右上) ---------- */
.xp-passport { position: absolute; z-index: 22; top: 16px; right: 16px; padding: 10px 14px 12px; border-radius: 26px;
  background: rgba(255, 253, 248, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow), var(--clay); }
.xp-pp-title { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--soft); }
.xp-pp-title b { color: var(--ink); font-size: 17px; font-weight: 900; }
.xp-pp-title em { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--track); font-style: normal; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.xp-pp-ava { width: 28px; height: 28px; border-radius: 50%; background: #fff var(--hero-img) center / 84% no-repeat; box-shadow: var(--shadow-s); }
#xp-stamps { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
#xp-stamps button { display: grid; justify-items: center; gap: 3px; width: 58px; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font); }
.xp-st { display: grid; place-items: center; width: 50px; height: 45px; font-size: 20px; font-weight: 900; color: color-mix(in srgb, var(--c) 70%, var(--ink));
  background: color-mix(in srgb, var(--c) 10%, #fff); border: 2.5px dashed color-mix(in srgb, var(--c) 60%, #fff); transition: transform .2s; }
.hexs .xp-st { clip-path: var(--hex); border: 0; background: color-mix(in srgb, var(--c) 18%, #fff); }
.round .xp-st { border-radius: 50%; width: 45px; }
.xp-st-lab { font-size: 12px; font-weight: 900; color: var(--soft); white-space: nowrap; }
#xp-stamps button:hover .xp-st { transform: translateY(-2px); }
#xp-stamps .done .xp-st { background: var(--c); color: #fff; border-style: solid; border-color: var(--c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .13), inset 0 3px 0 rgba(255, 255, 255, .38); }
#xp-stamps .done .xp-st-lab { color: color-mix(in srgb, var(--c) 72%, var(--ink)); }
#xp-stamps .now .xp-st { outline: 3px solid var(--ink); outline-offset: 2px; }
.hexs.now .xp-st { outline: 0; filter: drop-shadow(0 0 0 var(--ink)) drop-shadow(0 3px 0 var(--ink)); }
#xp-stamps .fresh .xp-st { animation: xp-stampin .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes xp-stampin { 0% { transform: scale(2.2) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); } }

/* ---------- 說明卡上的任務 ---------- */
.xp-cta { display: grid; gap: 10px; margin: 2px 0 6px; }
.xp-task { padding: 12px 14px 14px; border-radius: 20px; background: #fff; box-shadow: inset 5px 0 0 var(--c), 0 4px 12px rgba(48, 78, 70, .08); }
.xp-task.next { box-shadow: inset 5px 0 0 var(--c), 0 0 0 3px color-mix(in srgb, var(--c) 45%, #fff), 0 6px 16px rgba(48, 78, 70, .12); }
.xp-task-k { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 12.5px; font-weight: 900; letter-spacing: .1em; color: color-mix(in srgb, var(--c) 72%, var(--ink)); }
.xp-ok { padding: 1px 9px; border-radius: 999px; background: var(--c); color: #fff; letter-spacing: 0; }
.xp-new { padding: 1px 9px; border-radius: 999px; background: var(--yellow); color: var(--ink); letter-spacing: 0; animation: xp-bob 1.8s ease-in-out infinite; }
.expo .card .xp-task h3 { display: block !important; margin: 0 0 6px; font-size: 18px; font-weight: 900; color: var(--ink); letter-spacing: .02em; }
.xp-task ol { margin: 0 0 12px; padding-left: 1.3em; font-size: 15px; line-height: 1.65; color: #34433f; font-weight: 500; }
.xp-task .xp-btn { width: 100%; }
.xp-task.done .xp-btn { min-height: 40px; font-size: 15px; }

/* ---------- 工作台:從下面升起,上面留一條看得到島和探長 ---------- */
.xp-bench { position: absolute; z-index: 25; left: 12px; right: 12px; bottom: 12px; top: clamp(128px, 21vh, 210px); display: flex; flex-direction: column;
  border-radius: 30px; background: var(--paper); box-shadow: 0 -10px 40px rgba(48, 78, 70, .2), var(--clay); overflow: hidden;
  animation: xp-rise .45s cubic-bezier(.2, .9, .3, 1); }
@keyframes xp-rise { from { transform: translateY(40px); opacity: 0; } }
.xp-work-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; background: color-mix(in srgb, var(--c) 14%, var(--white)); border-bottom: 3px solid color-mix(in srgb, var(--c) 35%, #fff); }
.xp-work-head .hex { --c: inherit; width: 46px; height: 41px; font-size: 20px; background: var(--c); }
.xp-work-title p { margin: 0; font-size: 12.5px; font-weight: 900; letter-spacing: .12em; color: color-mix(in srgb, var(--c) 72%, var(--ink)); }
.xp-work-title h2 { margin: 0; font-size: 21px; font-weight: 900; letter-spacing: .03em; line-height: 1.25; }
.xp-remain { margin-left: auto; padding: 5px 14px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 900; color: #2f78bd; box-shadow: var(--shadow-s); }
.xp-back { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--ink); font: 900 16px/1 var(--font); box-shadow: inset 0 -3px 0 rgba(35, 48, 45, .08), 0 3px 10px rgba(48, 78, 70, .14); }
.xp-remain:not([hidden]) + .xp-back { margin-left: 0; }
.xp-back:hover { background: var(--cream); }
.xp-work-body { position: relative; flex: 1; min-height: 0; }
#xp-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--paper); }
.xp-work-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--paper); font-size: 18px; font-weight: 900; color: var(--soft); }
.xp-spin { width: 28px; height: 28px; border-radius: 50%; border: 4px solid var(--track); border-top-color: var(--c, var(--yellow-d)); animation: xp-spin 1s linear infinite; }
@keyframes xp-spin { to { transform: rotate(1turn); } }
/* 工作台開著時,學習島的字幕移到上面那一條,不要被蓋住 */
body.xp-work .caption { top: 12px; bottom: auto; }
body.xp-work .credit { display: none; }

/* ---------- 彈出視窗 ---------- */
.xp-modal { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(35, 48, 45, .32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.xp-sheet { position: relative; width: min(520px, 100%); max-height: calc(100% - 40px); overflow: auto; padding: 26px 28px 24px; border-radius: 32px; background: var(--paper); text-align: center;
  box-shadow: 0 24px 60px rgba(35, 48, 45, .3), var(--clay); animation: xp-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.xp-sheet:has(.xp-ava) { padding-top: 64px; overflow: visible; }
@keyframes xp-pop { from { transform: scale(.9); opacity: 0; } }
.xp-sheet h2 { margin: 0 0 6px; font-size: 28px; font-weight: 900; letter-spacing: .04em; }
.xp-lead { margin: 0 0 16px; font-size: 17px; line-height: 1.7; color: #34433f; }
/* 進關卡前的確認 */
.xp-stage-hex { display: grid; place-items: center; width: 76px; height: 68px; margin: 0 auto 6px; clip-path: var(--hex); background: var(--c); color: #fff; font-size: 32px; font-weight: 900; }
.xp-stage-k { margin: 0 0 2px; font-size: 14px; font-weight: 900; letter-spacing: .12em; color: color-mix(in srgb, var(--c) 72%, var(--ink)); }
.xp-stage-tasks { margin: 10px 0 12px; padding: 12px 16px 12px 36px; border-radius: 18px; background: color-mix(in srgb, var(--c) 10%, #fff); text-align: left; font-size: 15.5px; line-height: 1.65; font-weight: 700; color: var(--ink); }
.xp-sheet-stage .xp-row { justify-content: center; }
.xp-form { display: grid; gap: 12px; }
.xp-form input { width: 100%; height: 58px; padding: 0 20px; border: 3px solid var(--line); border-radius: 18px; background: #fff; font: 900 24px var(--font); color: var(--ink); text-align: center; outline: none; }
.xp-form input:focus { border-color: var(--yellow-d); }
.xp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.xp-chips button { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; font: 900 16px var(--font); color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 2px var(--line); }
.xp-chips button:hover { background: var(--cream); }
.xp-chips .more { color: var(--soft); }
.xp-row { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.xp-row .xp-btn { min-width: 140px; }
.xp-err { min-height: 1.4em; margin: 0; font-size: 15px; font-weight: 700; color: #c2410c; }
.xp-note { margin: 12px 0 0; font-size: 14px; color: var(--soft); }
.xp-count { font-size: 28px; color: #c2410c; font-variant-numeric: tabular-nums; }
.xp-staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 4px; }
.xp-staff-grid [data-act="next"] { grid-column: 1 / -1; }
.xp-staff-grid [data-act="go"] { box-shadow: inset 4px 0 0 var(--c), inset 0 0 0 2px var(--line); }

/* ---------- 過關:橡皮章 ---------- */
.xp-toast { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(255, 250, 240, .45); opacity: 0; transition: opacity .3s; cursor: pointer; }
.xp-toast.show { opacity: 1; }
.xp-toast-card { display: grid; justify-items: center; gap: 6px; padding: 26px 40px 24px; border-radius: 34px; background: var(--paper); box-shadow: 0 24px 60px rgba(35, 48, 45, .28), var(--clay); }
.xp-rubber { display: grid; place-items: center; width: 168px; height: 168px; border-radius: 50%; color: var(--c); border: 7px double var(--c); transform: rotate(-12deg);
  background: color-mix(in srgb, var(--c) 10%, #fff); }
.xp-toast.show .xp-rubber { animation: xp-thump .6s cubic-bezier(.2, 1.5, .4, 1); }
.xp-rubber span { font-size: 26px; font-weight: 900; letter-spacing: .06em; line-height: 1; margin-top: 18px; }
.xp-rubber b { font-size: 34px; font-weight: 900; letter-spacing: .08em; line-height: 1; margin-bottom: 22px; }
@keyframes xp-thump { 0% { transform: scale(2.4) rotate(-30deg); opacity: 0; } 55% { opacity: 1; transform: scale(.94) rotate(-10deg); } 100% { transform: scale(1) rotate(-12deg); } }
.xp-toast-l { margin: 6px 0 0; font-size: 24px; font-weight: 900; }
.xp-toast-s { margin: 0; font-size: 17px; font-weight: 700; color: var(--soft); }

@media (prefers-reduced-motion: reduce) {
  .xp-go, .xp-new { animation: none; }
  .xp-bench, .xp-sheet, #xp-stamps .fresh .xp-st, .xp-toast.show .xp-rubber { animation: none; }
}

/* ---------- 免登入試玩(/islands):報名家長說明會 ---------- */
.xp-signup { position: absolute; z-index: 23; right: 16px; bottom: 46px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px;
  background: #fff; color: var(--ink); font: 900 15px/1 var(--font); text-decoration: none; box-shadow: inset 0 0 0 2px var(--yellow-d), var(--shadow); }
.xp-signup:hover { background: var(--cream); }
.xp-sheet-cta .xp-cta-parent { margin-top: 10px; padding: 12px 14px; border-radius: 18px; background: #fff6dc; font-size: 15px; }
.xp-sheet-cta a.xp-btn { text-decoration: none; }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .xp-signup { right: 10px; bottom: calc(46px + var(--safe-b, 0px)); padding: 8px 13px; font-size: 13px; }
}

/* ---------- 打招呼、擊掌(走路時右下) ---------- */
.xp-emotes { position: absolute; z-index: 24; right: 16px; bottom: 46px; display: flex; gap: 8px; }
body.xp-public .xp-emotes { bottom: 100px; }
.xp-emotes button { display: grid; place-items: center; gap: 2px; min-width: 64px; height: 64px; padding: 6px 10px; border: 0; border-radius: 20px; background: #fff; font: 900 24px/1 var(--font); color: var(--ink); cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--line), var(--shadow); }
.xp-emotes button span { font-size: 12px; }
.xp-emotes button:active { transform: translateY(2px) scale(.96); }
.xp-emotes .xp-hf { background: var(--yellow); box-shadow: inset 0 -4px 0 var(--yellow-d), var(--shadow); animation: xp-bob 1.2s ease-in-out infinite; }
.xp-hf-count { margin-left: 6px !important; background: #fff3d6 !important; color: #b07d10 !important; }
/* 畫面上方一行提示 */
.xp-line { position: absolute; z-index: 40; left: 50%; top: 96px; max-width: min(560px, calc(100% - 32px)); padding: 10px 18px; border-radius: 999px; background: rgba(35, 48, 45, .9); color: #fff;
  font: 900 16px/1.4 var(--font); text-align: center; transform: translate(-50%, -8px); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.xp-line.show { opacity: 1; transform: translate(-50%, 0); }
/* 畢業照 */
body.xp-shooting .hud:not(#xp-modal), body.xp-shooting #bubbles { visibility: hidden; }
.xp-photo-btn { margin-top: 8px; }
.xp-sheet-photo { width: min(640px, 100%); }
.xp-photo-img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(46vh, 420px); margin: 8px auto 10px; border-radius: 16px; box-shadow: 0 6px 18px rgba(35, 48, 45, .18); }
.xp-photo-qr { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: left; }
.xp-photo-qr .xp-qr { flex: none; padding: 8px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.xp-photo-qr .xp-qr img, .xp-photo-qr .xp-qr canvas { display: block; width: min(150px, 20vh); height: min(150px, 20vh); }
.xp-sheet-photo h2 { margin-bottom: 0; }
.xp-sheet-photo .xp-row { margin-top: 10px; }
/* 同仁選單:通關村民 */
.xp-grads { margin: 14px 0 6px; text-align: left; }
.xp-grads h3 { margin: 0 0 6px; font-size: 15px; }
.xp-grads-list { display: grid; gap: 4px; max-height: 220px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.xp-grads-list li { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 10px; background: var(--track); }
.xp-grads-list li span { flex: 1; font-weight: 900; }
.xp-grads-list li small { color: var(--soft); }

/* ---------- 大螢幕觀戰(/tv) ---------- */
.xp-tvhud { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.xp-tv-top { position: absolute; left: 24px; top: 96px; padding: 14px 22px; border-radius: 22px; background: rgba(255, 253, 248, .94); box-shadow: var(--shadow), var(--clay); }
.xp-tv-count { margin: 0; font-size: 30px; font-weight: 900; }
.xp-tv-focus { margin: 4px 0 0; font-size: 18px; font-weight: 800; color: var(--soft); }
.xp-tv-side { position: absolute; right: 24px; top: 24px; width: 300px; padding: 16px 20px; border-radius: 22px; background: rgba(255, 253, 248, .94); box-shadow: var(--shadow), var(--clay); }
.xp-tv-side h3 { margin: 0 0 8px; font-size: 20px; }
.xp-tv-side ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 20px; font-weight: 900; }
.xp-tv-banner { position: absolute; left: 50%; top: 42%; padding: 26px 46px; border-radius: 32px; background: #fff8e6; box-shadow: 0 0 0 6px var(--yellow), 0 20px 50px rgba(35, 48, 45, .3);
  font: 900 40px/1.4 var(--font); text-align: center; transform: translate(-50%, -50%) scale(.8); opacity: 0; transition: opacity .4s, transform .4s cubic-bezier(.2, 1.4, .4, 1); }
.xp-tv-banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.xp-tv-banner b { color: #d9622f; }
body.xp-tv .credit { display: none; }

@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .xp-emotes { right: 10px; bottom: calc(46px + var(--safe-b, 0px)); gap: 6px; }
  body.xp-public .xp-emotes { bottom: calc(92px + var(--safe-b, 0px)); }
  .xp-emotes button { min-width: 50px; height: 50px; padding: 4px 6px; border-radius: 16px; font-size: 20px; }
  .xp-emotes button span { font-size: 10px; }
  .xp-line { top: calc(118px + var(--safe-t, 0px)); font-size: 14px; }
  .xp-photo-qr { flex-direction: column; text-align: center; }
}
/* iPhone:拉到底不要回彈、不要把整個網頁視窗拖下來(搖桿往下拖時特別容易發生) */
html, body { overscroll-behavior: none; }
