.credit { color: #fff; opacity: .7; font-size: 13px; margin-left: 12px; text-shadow: 0 1px 3px #000; }
#rotate { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 24px; background: rgba(12, 8, 4, .94); color: #fff8e6; text-align: center; }
body.portrait #rotate:not(.off) { display: grid; }
#rotate .ic { font-size: 64px; animation: tilt 1.6s ease-in-out infinite; }
#rotate p { font-size: 22px; font-weight: 900; line-height: 1.6; margin: 12px 0 20px; }
@keyframes tilt { 50% { transform: rotate(-90deg); } }
@media (prefers-reduced-motion: reduce) { #rotate .ic { animation: none; } }
/* 分享版整頁等比例縮小成 1200×640 的版面，窄螢幕版面規則不適用：統治筆記、說明牌小地圖照常顯示 */
@media (max-width: 900px) {
  .cn-notes { display: block; }
  .cn-bubble, .cn-advisors { right: 272px; }
  .cn-ruler { width: 24%; }
  .mu-placard { grid-template-columns: 110px 1fr auto; }
  .mu-placard .mini-tw { display: block; }
}
/* 手機橫向（矮螢幕）：題目的四個選項排成一列，面板才放得下 */
@media (max-height: 520px) {
  .wp-o { grid-template-columns: repeat(4, 1fr); }
  .war-opt-btn { font-size: 17px; padding: 8px 10px; }
  .wp-q { margin: 2px 0 8px; }
}
@media (max-height: 520px), (max-width: 960px) {
  /* 對話、上方列 */
  #dialog .box { font-size: 31px; }
  #dialog .who { font-size: 24px; }
  #dialog .next { font-size: 22px; }
  .play-top .ttl { font-size: 24px; }
  .tag { font-size: 24px; }
  .mu-door .k { width: 36px; height: 36px; font-size: 23px; }
  /* 解說卡 */
  .explain-card { width: min(1120px, 94%); max-height: calc(var(--vh, 1vh) * 90); padding: 14px 26px 10px; font-size: 30px; line-height: 1.45; }
  .explain-card .hd { font-size: 34px; }
  .explain-card .go { margin-top: 6px; font-size: 24px; }
  .explain-card .wait-bar { margin-top: 8px; }
  /* 議事廳 */
  .cn-ruler .nm { font-size: 22px; }
  .cn-bubble { left: 25%; right: 262px; padding: 10px 18px; top: 66px; }
  .cn-bubble .yr { font-size: 24px; }
  .cn-bubble .t { font-size: 34px; line-height: 1.3; }
  .cn-bubble .sub { font-size: 26px; }
  /* 有自己的問句時，問句比處境大（家長 2026-11-14，原本處境 34px、問句 26px 咖啡色） */
  .cn-bubble.hasq .t { font-size: 27px; }
  .cn-bubble.hasq .sub { font-size: 34px; }
  .cn-advisors { left: 25%; right: 262px; bottom: 10px; gap: 10px; }
  .cn-adv img { height: 96px; }
  .cn-adv .who { font-size: 20px; }
  .cn-adv .say { font-size: 28px; line-height: 1.28; min-height: 4.2em; padding: 16px 10px 10px; gap: 6px; }
  .cn-adv.plain .say { min-height: 3.4em; }
  .cn-adv .say b { width: 38px; height: 38px; font-size: 24px; }
  .cn-notes { top: 66px; bottom: 10px; right: 10px; width: 244px; padding: 10px 12px; }
  .cn-notes .hd { font-size: 22px; }
  .cn-notes li { font-size: 21px; line-height: 1.3; }
  /* 比較表 */
  .cmp-head { font-size: 28px; top: 62px; }
  .cmp-table { top: 100px; gap: 5px; padding: 8px; width: min(1160px, 97%); }
  .cmp-table .colh { font-size: 26px; padding: 3px 6px; }
  .cmp-table .rowh { font-size: 24px; padding: 3px 6px; }
  .cmp-table .cell { font-size: 25px; min-height: 46px; padding: 3px 8px; line-height: 1.2; }
  .cmp-tray { width: min(1160px, 97%); gap: 6px; bottom: 8px; }
  /* 卡片只有一行字時實際只有 23 點高，不好點（2026-11-13 理化機器人）：最少 58（實際約 34 點）；現在一次只發一張卡，托盤不會變多列 */
  .cmp-card { font-size: 25px; padding: 7px 12px; min-height: 58px; }
  .dt-zoom-x { font-size: 26px; }
  /* 手機橫拿（不是直式版面）：列名照最長的排成一行（最多 15em），不要折成兩行把每一列撐高，表格才放得進畫面（2026-11-12） */
  html:not(.hp) .cmp-table { --cmp-c0: fit-content(15em); }
  html:not(.hp) .cmp-table .corner { min-width: 9em; }
  /* 博物館 */
  .mu-prog { font-size: 26px; top: 62px; }
  .mu-ped { top: 108px; }
  .mu-ped .plate { font-size: 36px; }
  .mu-door .lb { font-size: 34px; }
  .mu-door .era { font-size: 24px; }
  .mu-door .k { font-size: 20px; }
  .mu-placard .when { font-size: 1em; }
  .mu-hall .hd { font-size: 26px; }
  .mu-hall .hd span { font-size: 20px; }
  .mu-hall figcaption { font-size: 22px; line-height: 1.2; }
  /* 偵探 */
  .dt-top { font-size: 26px; top: 60px; }
  .dt-file { top: 98px; bottom: 10px; left: 2%; width: 54%; padding: 10px 16px; }
  .dt-file .kind { font-size: 26px; }
  .dt-file .doc { font-size: 29px; line-height: 1.36; margin-top: 2px; }
  .dt-file .note { font-size: 20px; margin-top: 2px; }
  .dt-fig { margin: 4px 0 2px; padding: 4px; }
  .dt-fig svg { max-height: 158px; }
  .dt-clues { gap: 6px; margin-top: 8px; }
  .dt-clue { font-size: 25px; line-height: 1.25; padding: 8px 12px; }
  .dt-ask { top: 98px; bottom: 10px; right: 2%; width: 41%; padding: 10px 14px; gap: 6px; }
  .dt-ask .q { font-size: 30px; line-height: 1.3; }
  .dt-ask .opts { gap: 6px; }
  .dt-opt { font-size: 28px; line-height: 1.25; padding: 7px 10px; gap: 8px; align-items: center; }
  .dt-opt b { width: 34px; height: 34px; font-size: 20px; }
  .dt-worth { font-size: 20px; }
  /* 謊言怪 */
  .db-boss .nm { font-size: 26px; }
  .db-lie { top: 66px; width: 62%; padding: 10px 18px; }
  .db-lie .who { font-size: 22px; }
  .db-lie .t { font-size: 36px; line-height: 1.3; margin-top: 2px; }
  .db-lie .ask { font-size: 26px; margin-top: 6px; }
  .db-hand { bottom: 10px; gap: 10px; }
  .db-card { min-height: 0; padding: 8px 12px; }
  .db-card .top { font-size: 20px; }
  .db-card .t { font-size: 28px; line-height: 1.28; margin-top: 2px; }
  /* 攻城戰、創世旅程 */
  .wb-s { font-size: 20px; }
  .war-panel { width: min(1240px, 96%); bottom: 8px; padding: 8px 16px 10px; max-height: calc(var(--vh, 1vh) * 62); }
  .wp-n { font-size: 20px; }
  .wp-q { font-size: 31px; line-height: 1.25; margin: 2px 0 6px; }
  .wp-o { gap: 6px 8px; }
  .war-opt-btn { font-size: 27px; line-height: 1.22; padding: 6px 10px; gap: 8px; }
  .war-opt-btn b { width: 34px; height: 34px; font-size: 20px; }
  .war.fiction .wb-t { font-size: 26px; line-height: 1.2; }
  .war.fiction .wb-s { font-size: 18px; }
  .war.fiction .war-name { font-size: 24px; }
  /* 考古題面板 */
  .boss-panel { top: 60px; bottom: 10px; width: 54%; padding: 10px 14px; }
  .boss-panel .qmeta { font-size: 20px; margin-bottom: 4px; }
  .boss-panel .passage-tog { font-size: 20px; }
  .boss-panel .opts { gap: 6px; margin-top: 8px; }
  .boss-panel .opt { font-size: 27px; line-height: 1.25; padding: 6px 10px; }
  .boss-panel .opt b { font-size: 24px; }
  /* 關卡說明視窗 */
  .modal p[style*="19px"] { font-size: 27px !important; line-height: 1.4 !important; }
  .modal .muted { font-size: 22px; }
  .chap-card .muted, .chap-card .era { font-size: 20px; }
  html .syl-label { font-size: 22px; }
  html .syl-info { font-size: 20px; }
  html .syl-g { font-size: 20px; }
  /* 地圖旁的面板 */
  .side-btn { font-size: 21px; }
  .side-btn small { font-size: 20px; }
  .daily { font-size: 19px; }
  .daily b { font-size: 20px; }
  .badge { font-size: 19px; }
  /* 章節列表 */
  .chap-card2 .cc-num { font-size: 20px; }
  .chap-card2 .cc-title { font-size: 25px; }
  .chap-card2 .cc-stars { font-size: 20px; }
  .sem-tabs button { font-size: 24px; }
  .btn { font-size: 22px; }
  /* 數學、理化的題目區（這幾份樣式比這裡晚載入，所以前面加 html） */
  html .mx-q { font-size: 30px; line-height: 1.3; padding: 6px 14px; }
  html .mx-tag { font-size: 23px; }
  html .mx-tip { font-size: 24px; }
  html .mx-worth { font-size: 20px; }
  html .mx-clue { font-size: 23px; min-height: 50px; }
  html .mx-pick { font-size: 27px; line-height: 1.25; min-height: 58px; padding: 8px 12px; }
  html .mx-pick b { font-size: 20px; }
  html .mx-door span { font-size: 28px; line-height: 1.25; }
  html .mx-card { font-size: 28px; line-height: 1.4; }
  html .mx-who .bubble { font-size: 26px; line-height: 1.3; }
  html .mx-book .hd { font-size: 22px; }
  html .mx-notes { font-size: 22px; line-height: 1.3; }
  html .mx-line { font-size: 28px; line-height: 1.25; padding: 7px 12px; }
  html .mx-line b { font-size: 20px; }
  html .mx-hall .hd { font-size: 24px; }
  html .mx-hall .it { font-size: 22px; }
  html .mx-thint { font-size: 22px; }
  html .mx-trow .lab { font-size: 26px; }
  html .mx-sc-btn, html .mx-sc-clear { font-size: 22px; }
  /* 理化的實驗台 */
  html .sx-goals, html .sx-mini { font-size: 22px; }
  html .sx-table { font-size: 24px; }
  html .sx-table th { font-size: 21px; }
  html .sx-step { font-size: 24px; }
  html .sx-step .val { font-size: 26px; }
  html .sx-glabel { font-size: 24px; }
  html .sx-listen, html .sx-say { font-size: 26px; line-height: 1.3; }
  html .sx-hud { font-size: 27px; }
  /* 地科 */
  html .ea-q { font-size: 30px; line-height: 1.3; }
  html .ea-tag { font-size: 20px; }
  html .ea-tip { font-size: 22px; }
  html .ea-cap { font-size: 26px; }
  html .ea-card p { font-size: 28px; line-height: 1.4; }
  html .ea-card .ea-sub { font-size: 22px; }
  html .ea-opt b { font-size: 27px; }
  html .ea-chip b, html .ea-chip .no { font-size: 24px; }
  html .ea-chip small, html .ea-inset span { font-size: 20px; }
  html .ea-sortb { min-height: 52px; padding: 2px 12px; }
  html .ea-sortb, html .ea-sortrow b, html .ea-spotname, html .ea-clear { font-size: 22px; }
  html .ea-pics figcaption { font-size: 22px; }
  html .ea-go { font-size: 27px; }
  /* 生物 */
  html .bx-panel { width: 390px; gap: 6px; padding: 10px 12px; }
  html .bx-opts { gap: 6px; }
  html .bx-prompt { font-size: 30px; line-height: 1.3; }
  html .bx-lab .bx-prompt { font-size: 29px; }
  html .bx-opt { font-size: 27px; line-height: 1.22; padding: 8px 12px; }
  html .bx-card p { font-size: 28px; line-height: 1.4; }
  html .bx-card p.muted { font-size: 22px; }
  html .bx-banner b { font-size: 26px; }
  html .bx-banner span { font-size: 24px; }
  html .bx-state, html .bx-gun { font-size: 24px; }
  html .bx-gun small, html .bx-gens .g small { font-size: 18px; }
  html .bx-gens b, html .bx-pet { font-size: 20px; }
  html .bx-chip { font-size: 20px; }
  html .bx-bar label, html .bx-segb, html .bx-ctrl, html .bx-hint, html .bx-round { font-size: 22px; }
  /* 國文的小遊戲 */
  html .cg-name { font-size: 26px; }
  html .cg-foe > div { font-size: 24px; }
  html .cg-scroll small { font-size: 24px; }
  html .cg-slot small { font-size: 24px; }
}

.chap-card2.paywalled { filter: saturate(.55); }
.chap-card2.paywalled .cc-stars { color: #8e2320; }
.acct-chip { display: inline-flex; align-items: center; gap: 6px; }
.acct-chip img { width: 26px; height: 26px; border-radius: 50%; }
.chap-head .acct-chip { margin-left: auto; }
.acct-chip .acct-title { padding: 1px 9px; border-radius: 999px; background: #7a520f; color: #ffe9b0; font-size: 14px; white-space: nowrap; }
.login-ways { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: min(100%, 360px); margin: 4px auto 6px; }
.login-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; white-space: nowrap; padding-inline: 16px; }
.google-btn { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #747775, 0 4px 0 #c9c9c9; }
.pay-sum { margin: 4px 0 12px; padding-left: 1.2em; font-size: 15px; line-height: 1.6; }
.pay-sum li { margin-bottom: 4px; }
.legal-foot { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: max(8px, env(safe-area-inset-bottom, 0px)); z-index: 30;
  color: #fff; opacity: .78; font-size: 13px; text-shadow: 0 1px 3px #000; display: none; }
#s-title.active ~ .legal-foot { display: block; }
/* 標題畫面左上角：回到 edu.liaison.tw 選科目的首頁 */
.all-subjects { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); top: max(14px, env(safe-area-inset-top, 0px)); z-index: 2; text-decoration: none; }
.legal-foot a { color: #fff; }
/* 「對應課綱」橫軸：捲動時黏在上方，點年級那一段放大列出各章 */
.syl { position: sticky; top: 8px; z-index: 6; width: min(1180px, calc(var(--vw, 1vw) * 92)); margin: 0 auto 14px; padding: 8px 12px 10px; border-radius: 18px;
  background: rgba(24, 15, 6, .9); box-shadow: inset 0 0 0 2px rgba(242, 193, 78, .35), 0 8px 20px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.syl-head { display: flex; align-items: baseline; gap: 14px; margin: 0 4px 6px; }
.syl-label { flex: none; color: #ffe6a8; font-size: 18px; font-weight: 900; }
.syl-info { min-width: 0; color: #fff; font-size: 15px; font-weight: 700; opacity: .92; }
.syl-info b { color: var(--gold); }
.syl-track { position: relative; display: flex; gap: 6px; }
.syl-track::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(242, 193, 78, .2), rgba(242, 193, 78, .6), rgba(242, 193, 78, .2)); }
.syl-seg { position: relative; flex: 1 1 0; min-width: 86px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px; border-radius: 999px;
  transition: flex-grow .35s ease, background-color .35s; }
.syl-seg.on { flex-grow: 7; justify-content: flex-start; background: rgba(58, 40, 16, .95); box-shadow: inset 0 0 0 2px rgba(242, 193, 78, .5); }
.syl-g { flex: none; padding: 6px 14px; border-radius: 999px; font-size: 17px; font-weight: 900; background: #3a2810; color: #fff; box-shadow: inset 0 0 0 2px rgba(242, 193, 78, .5); }
.syl-g:hover { background: #4d3615; }
.syl-seg.on .syl-g { background: var(--gold); color: var(--ink); box-shadow: none; }
.syl-chs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.syl-seg:not(.on) .syl-chs { display: none; }
.syl-ch { flex: none; padding: 4px 9px; border-radius: 999px; font-size: 15px; font-weight: 900; background: rgba(255, 255, 255, .14); color: #fff;
  animation: syl-in .3s ease-out both; animation-delay: calc(var(--i) * 40ms + .12s); }
.syl.still .syl-ch { animation: none; }
.syl-ch:hover { background: rgba(255, 255, 255, .28); }
.syl-ch.on { background: #fff; color: var(--ink); box-shadow: 0 0 0 3px var(--gold); }
.syl-ch:disabled { opacity: .4; cursor: not-allowed; }
@keyframes syl-in { from { opacity: 0; transform: translateX(-8px); } }
/* 點到的章節方塊：放大、金色光圈，上面標出對應哪幾場 */
.chap-card2.syl-hit { z-index: 3; transform: scale(1.07); box-shadow: 0 0 0 4px var(--gold), 0 0 28px 6px rgba(242, 193, 78, .7), 0 5px 0 #b98d3c, 0 10px 20px rgba(0, 0, 0, .35); }
.chap-card2.syl-hit:hover { transform: scale(1.07) translateY(-3px); }
.chap-card2.syl-pop { animation: syl-pop .6s ease-out .3s both; }
@keyframes syl-pop { 0% { transform: scale(1); } 45% { transform: scale(1.16); } 100% { transform: scale(1.07); } }
.syl-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 12px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 900; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) {
  .syl-seg { transition: none; }
  .syl-ch, .chap-card2.syl-pop { animation: none; }
}

/* ---------- 手機直拿的直式版面（tools/geo_portrait.py，照歷史的 hist_portrait.py） ---------- */
#rotate { display: none !important; }

/* 標題畫面 */
html.hp .logo { font-size: 64px; letter-spacing: 4px; white-space: nowrap; }
html.hp .logo-sub { font-size: 22px; letter-spacing: 2px; }
html.hp .title-box { top: 46%; width: 92%; }
html.hp .title-foot { left: 16px; right: 16px; bottom: 64px; flex-wrap: wrap; justify-content: center; }
html.hp .title-foot .credit { flex-basis: 100%; text-align: center; margin: 4px 0 0; }
html.hp .legal-foot { left: 0; right: 0; text-align: center; font-size: 15px; }

/* 章節列表：上面兩排按鈕太多，字不要斷成直排；帳號換到第二行 */
html.hp .hud { gap: 8px; }
html.hp .hud .pill { padding: 6px 12px 6px 8px; white-space: nowrap; }
html.hp .hud .btn { padding: 8px 12px; white-space: nowrap; }
html.hp .chap-head { flex-wrap: wrap; row-gap: 8px; }
html.hp .chap-head .btn { white-space: nowrap; }

/* 家長專區、島鎮：小字放大（16px 在直拿只剩 9.7px） */
html.hp .modal .tabs button, html.hp .modal .buffbar { font-size: 23px; }
html.hp .town-count, html.hp .town-info { font-size: 23px; }
/* 抽到的卡片、卡冊裡打開的卡片：背面的重點原本只剩 9.7px，整張放大 1.5 倍（約 14.6px） */
html.hp .card3d { zoom: 1.5; }

/* 章節地圖：地圖鋪滿，面板改到下面一排 */
html.hp #map-svg, html.hp #s-map.generic #map-svg { width: 100%; height: 100%; }
html.hp .map-side { top: auto; left: 12px; right: 12px; bottom: 70px; width: auto; max-width: none; flex-direction: row; flex-wrap: wrap; gap: 8px; }
html.hp .map-side > * { margin: 0; }
html.hp .map-side .chap-card { flex: 1 1 100%; padding: 10px 14px; }
html.hp .map-side .chap-card h2 { font-size: 24px; }
html.hp .map-side .side-grid { flex: 1 1 100%; }
html.hp .map-side #daily { flex: 1 1 100%; padding: 8px 14px; font-size: 23px; }

/* 劇情對話：人物圖不要蓋住字 */
html.hp #dialog img.portrait { height: calc(var(--vh, 1vh) * 40); left: 0; }
html.hp #dialog img.portrait.speaker { height: calc(var(--vh, 1vh) * 34); bottom: calc(var(--vh, 1vh) * 22); }

/* 創世旅程（地圖題）：題目框、地名放大（直拿縮放約 0.59，CSS 30px 實際約 17.6px） */
html.hp .war-banner { left: 50%; width: calc(100% - 24px); max-width: none; padding: 8px 14px; }
html.hp .wb-t { font-size: 30px; line-height: 1.3; }
html.hp .wb-s { font-size: 22px; }
html.hp .war-name { font-size: 25px; stroke-width: 5px; }
html.hp .war-name.cap { font-size: 27px; }
/* 地圖題：兩個選項很近時（直拿的世界地圖比較小），一個選項的光圈會蓋住另一個的可點範圍；光圈只當記號，點擊交給可點範圍 */
html.hp .war-opt .ring { pointer-events: none; }
/* 選項：360 寬的小手機縮放只有 0.56，29px 實際約 16.3px */
html.hp .war-opt-btn { font-size: 29px; }

/* 提示泡泡：直拿時上面是題目框、謊話，移到畫面中間（只停 2.7 秒，點得穿） */
html.hp #toast { top: 42%; width: 92%; }
html.hp .toast { text-align: center; }

/* ---------- 大解密 ---------- */
/* 解說卡：直拿畫面窄，卡片放寬 */
html.hp .explain-card { width: 94%; max-height: calc(var(--vh, 1vh) * 84); }
/* 議事廳的解說卡放在下面空著的地方，不要蓋住選項（生物 🚩22 的做法，家長 2026-11-15：「改六科」。量過六科免費章 328 張答錯卡，
   原本 318 張壓在還能選的選項上，貼下面後 0 張；tools/council_portrait_scan.sh 可以重量） */
html.hp .scene.council:not(.cmp-on) > .explain-veil { place-items: end center; padding: 0 0 calc(var(--vh, 1vh) * 3); }
/* 倒數中點畫面，整張卡片左右晃一下，讓孩子知道要先看卡片。第一個動畫要留著原本的 pop（同名的動畫不會重播），不然晃完卡片會再跳出來一次 */
html.hp .scene.council .explain-card:has(.go.nudge) { animation: pop .28s cubic-bezier(.2, 1.4, .4, 1), shake .35s; }

/* 議事廳（地理的大地工程會議）：說話的人和問題在上面並排，選項由上往下排，筆記本收起來 */
html.hp .scene.council:not(.cmp-on) { display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto auto; align-content: start; gap: 12px 10px;
  padding: 66px 12px 16px; overflow-y: auto; }
html.hp .scene.council:not(.cmp-on) > .cn-ruler, html.hp .scene.council:not(.cmp-on) > .cn-bubble,
html.hp .scene.council:not(.cmp-on) > .cn-advisors { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
html.hp .cn-ruler { grid-column: 1; grid-row: 1; width: auto; align-self: start; }
html.hp .cn-ruler img { height: 180px; }
html.hp .cn-ruler .nm { position: relative; bottom: auto; margin-top: -12px; padding: 4px 12px; font-size: 22px; text-align: center; }
html.hp .cn-bubble { grid-column: 2; grid-row: 1; align-self: start; }
html.hp .cn-bubble::before { top: 60px; bottom: auto; }
html.hp .cn-advisors { grid-column: 1 / -1; grid-row: 2; display: flex; flex-direction: column; gap: 14px; }
html.hp .cn-adv { display: grid; grid-template-columns: 92px 1fr; align-items: center; column-gap: 6px; }
html.hp .cn-adv img { grid-column: 1; grid-row: 1 / span 2; height: 104px; margin: 0; }
html.hp .cn-adv .who { grid-column: 2; grid-row: 1; justify-self: start; margin: 0 0 -8px 12px; }
html.hp .cn-adv .say { grid-column: 2; grid-row: 2; min-height: 0; font-size: 29px; }
html.hp .cn-adv.plain { grid-template-columns: 1fr; }
html.hp .cn-adv.plain .say { grid-column: 1; grid-row: 1; }
html.hp .cn-notes { display: none; }

/* 比較表：標題、表格、卡片由上往下排，太長可以捲動 */
html.hp .scene.council.cmp-on { display: flex; flex-direction: column; gap: 10px; padding: 64px 10px 14px; overflow-y: auto; }
html.hp .scene.council.cmp-on > .cmp-head, html.hp .scene.council.cmp-on > .cmp-table,
html.hp .scene.council.cmp-on > .cmp-tray { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; margin: 0; flex: none; }
html.hp .cmp-table .cell, html.hp .cmp-card { font-size: 28px; }
html.hp .cmp-table .rowh { font-size: 24px; }

/* 標本館：最後的展廳改成由上往下 */
html.hp .mu-hall { grid-template-columns: 1fr !important; overflow-y: auto; }
html.hp .mu-hall .room { overflow: visible; }
html.hp .mu-hall figure { width: 30%; }
html.hp .mu-hall figcaption { font-size: 24px; }
html.hp .mu-door .era { font-size: 22px; }

/* 偵探：資料在上，題目和選項在下，整頁可以捲動 */
html.hp .scene.detective { display: flex; flex-direction: column; gap: 12px; padding: 104px 12px 16px; overflow-y: auto; }
html.hp .scene.detective > .dt-file, html.hp .scene.detective > .dt-ask { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; overflow: visible; flex: none; }
html.hp .dt-ask .q { font-size: 31px; }
html.hp .dt-opt { font-size: 29px; }

/* 謊言怪：巨獸縮小放右上，謊話和卡片放寬 */
html.hp .db-boss { width: 38%; top: 60px; }
html.hp .db-boss img { height: 220px; }
html.hp .db-lie { left: 12px; right: auto; width: calc(62% - 18px); top: 66px; }
html.hp .db-lie::after { display: none; }
html.hp .db-hand { left: 12px; right: 12px; grid-template-columns: 1fr !important; gap: 12px; }
html.hp .db-card { min-height: 0; }
html.hp .db-card .t { font-size: 29px; }

/* ---------- 地理自己的（照英文的 eng_portrait.py 補的幾項） ---------- */
/* 標題畫面：最下面的資料來源（12px 在直拿只剩 7.9px） */
html.hp .title-foot .credit { font-size: 18px; }

/* 結算：答對、連擊、分數的小字 */
html.hp .result .stat { font-size: 20px; }

/* 怪物題重打（射擊 Boss 戰）：題目卡在上面拉滿，巨獸和光球在下面（位置在 JS_PATCH 的 shooter） */
html.hp .boss-panel { left: 12px; right: 12px; width: auto; top: 62px; bottom: auto; max-height: 42%; }
html.hp .boss-panel .muted { font-size: 22px; }

/* 標題畫面最下面的連結（照歷史寫 15px，直拿只剩 9.1px；20px 在 360 寬約 11.3px） */
html.hp .legal-foot { font-size: 20px; }
html.hp .title-foot .credit { font-size: 20px; }

/* 議事廳：每一步的問句（q，2026-11-07 起顯示在情境下面）是題目，要和選項一樣大（28px：390 寬約 17px、360 寬約 15.8px） */
html.hp .cn-bubble .sub { font-size: 28px; }
/* 有自己的問句時，問句比處境大（家長 2026-11-14） */
html.hp .cn-bubble.hasq .t { font-size: 26px; }
html.hp .cn-bubble.hasq .sub { font-size: 33px; }

/* 偵探：資料圖照寬度放大。手機字級規則把圖限制在 158px 高，直拿只剩約 96px，圖上的甲、乙和說明只有 7～9px */
html.hp .dt-fig svg { max-height: none; }

/* 創世旅程：題目框下面那行「點地圖上發光的地點」 */
html.hp .wb-s { font-size: 26px; }

/* 島鎮：已經蓋好幾樣、點建築的說明（照歷史寫 23px，360 寬只剩 12.9px） */
html.hp .town-count, html.hp .town-info { font-size: 26px; }
