/* 正式站在效果图之上加的东西：顶部导航、全程回顾面板；隐藏效果图演示栏 */
.demo { display: none !important; }
.ask .chal { margin: 10px auto 0; font-size: 14px; font-weight: 700; color: #9a4d12; }
.ovpanel { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 6; width: min(680px, calc(100vw - 32px)); background: rgba(8,24,40,.72); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; padding: 16px 18px; color: #eef4f8; }
.ovpanel .btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ovpanel button { font: inherit; font-size: 14px; font-weight: 800; border: 0; border-radius: 99px; padding: 10px 18px; cursor: pointer; color: #2a1606; background: linear-gradient(180deg, #ffe0a3, #f3a868); }
.ovpanel button.ghost { color: #eef4f8; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); }
.ovpanel .more { display: flex; justify-content: center; gap: 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); }
.ovpanel .more a { color: #cfe6f5; font-size: 14px; font-weight: 700; text-decoration: none; }
.ovpanel .more a:hover { color: #fff; text-decoration: underline; }
.ovpanel .tap { margin: 0 0 12px; text-align: center; font-size: 14px; font-weight: 700; color: #ffd98a; }
.ovpanel .note { text-align: center; font-size: 13px; color: #b8c8d6; margin-top: 10px; }
.ovpanel .vs { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 14px; font-size: 13px; margin: 0 0 12px; }
.ovpanel .vs b { font-weight: 800; } .ovpanel .vs .win { color: #ffc85c; }
.ovpanel .vs .head { color: #b8c8d6; font-size: 12px; }
#again { display: none !important; }

.ask .next-q { display: block; margin: 12px auto 0; padding: 10px 26px; font-size: 16px; }
.ask .next-q[hidden] { display: none; }
.ask input:disabled, .ask .go:disabled { opacity: .5; cursor: default; }
/* 落地提示：只一行“超过了 X% 的人”，深色字 + 浅色描边，浅海深海都看得清；烟花在上方天空 */
.fw-sky { position: fixed; z-index: 3; left: 0; top: 0; width: calc(100vw - var(--cardW) - 16px); height: 62vh; pointer-events: none; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.fw-sky canvas { width: 100%; height: 100%; display: block; }
.fw { z-index: 6; top: 27vh !important; padding: 0; background: none; border: 0; text-shadow: none !important; }
.fw strong { font-size: clamp(30px, 3vw, 46px) !important; font-weight: 900; letter-spacing: .02em; color: #173247 !important; -webkit-text-stroke: 0; paint-order: stroke fill; text-shadow: 0 0 1px #fff7e0, 0 2px 0 #fff7e0, 0 -2px 0 #fff7e0, 2px 0 0 #fff7e0, -2px 0 0 #fff7e0, 2px 2px 0 #fff7e0, -2px 2px 0 #fff7e0, 2px -2px 0 #fff7e0, -2px -2px 0 #fff7e0, 0 6px 18px rgba(10,30,50,.25) !important; }
.fw strong em { font-style: normal; }
/* 倒计时：进度条 + 剩余秒数，最后 5 秒变红 */
.ask .timer { display: flex; align-items: center; gap: 10px; margin: 12px 24px 0; }
.ask .timer .bar { flex: 1; margin: 0 !important; height: 6px !important; }
.ask .timer b { min-width: 2.2em; text-align: right; font-size: 15px; font-weight: 900; color: #2b5f7a; font-variant-numeric: tabular-nums; }
.ask .timer b::after { content: 's'; font-size: 12px; margin-left: 1px; }
.ask.hurry .timer b { color: #c8452f; animation: tick 1s infinite; } @keyframes tick { 50% { transform: scale(1.18); } }
.ask.hurry .bar i { background: linear-gradient(90deg, #ff8a6a, #e2462f) !important; }
.ask .tip { margin-top: 10px !important; font-size: 13px !important; }
/* 接力条：答完的题可以点开回看 */
.relay div.can { cursor: pointer; transition: transform .15s, border-color .15s; }
.relay div.can:hover { transform: translateY(-2px); border-color: var(--gold); }
/* 成绩图弹窗 */
.share-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(4,12,28,.72); backdrop-filter: blur(6px); animation: fadein .25s; } @keyframes fadein { from { opacity: 0; } }
.share-card { display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 94vh; }
.share-card img { height: min(78vh, 900px); max-width: 92vw; object-fit: contain; border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.share-btns { display: flex; gap: 10px; }
.share-btns button { font: inherit; font-size: 15px; font-weight: 800; border: 0; border-radius: 99px; padding: 11px 22px; cursor: pointer; color: #2a1606; background: linear-gradient(180deg, #ffe0a3, #f3a868); }
.share-btns button.ghost { color: #eef4f8; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); }
.share-note { margin: 0; min-height: 1em; color: #cfe6f5; font-size: 14px; }
/* 切换到另一题的场景：一下水雾淡出 */
.scene-cut { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: #d9f3ef; opacity: 0; }
.scene-cut.on { animation: cut .55s ease-out; } @keyframes cut { from { opacity: .9; } to { opacity: 0; } }
body.replay .hud, body.replay .fw { display: none; }
.ask .appeal { display: block; margin: 8px auto 0; font: inherit; font-size: 13px; font-weight: 700; color: #2b5f7a; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.ask .appeal[hidden] { display: none; } .ask .appeal:disabled { text-decoration: none; cursor: default; }

/* 知识卡：带标签的冷知识，每条一个小标签，标签按内容变 */
.kt { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-weight: 400; font-size: 13.5px; line-height: 1.55; }
.kt li { padding: 8px 0 0; border-top: 1px dashed var(--ui-line); color: var(--ui-ink); }
.kt .tg { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 800; background: rgba(127,127,127,.18); color: var(--ui-ink); white-space: nowrap; }
.kt .tg-film, .kt .tg-music, .kt .tg-culture { background: rgba(169,131,239,.22); }
.kt .tg-record, .kt .tg-famous { background: rgba(240,176,60,.28); }
.kt .tg-science, .kt .tg-word { background: rgba(94,163,240,.22); }
.kt .tg-history, .kt .tg-place, .kt .tg-food { background: rgba(88,196,141,.24); }
.card.folded .kt { display: none; }

/* 菜单：收在左上工具栏里，和“视角高度”同一行；海图隐藏时（答题、总览）移到左上角 */
.gmenu { position: fixed; left: 16px; top: 238px; z-index: 7; transition: top .4s; }
body.asking .gmenu, body.changing .gmenu, body.overview .gmenu { top: 16px; }
.gm-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-content: center; gap: 3px; background: rgba(6,18,34,.5); backdrop-filter: blur(10px); }
.gm-btn:hover, .gm-btn[aria-expanded="true"] { background: rgba(6,18,34,.75); }
.gm-btn i { display: block; width: 14px; height: 2px; border-radius: 2px; background: #fff; }
.gm-list { position: absolute; left: 0; top: 42px; min-width: 168px; display: flex; flex-direction: column; padding: 6px; border-radius: 16px; background: var(--ui-bg); backdrop-filter: blur(18px); border: 1px solid var(--ui-line); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.gm-list[hidden] { display: none; }
.gm-list a { color: var(--ui-ink); text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.gm-list a:hover { background: var(--ui-soft); }
.gm-list .brand { font-weight: 900; border-bottom: 1px solid var(--ui-line); border-radius: 10px 10px 0 0; margin-bottom: 4px; }
.camh { left: 58px !important; width: 194px !important; white-space: nowrap; box-sizing: border-box; }
.camh input { min-width: 0; width: 100%; }
@media (max-width: 760px) { .gmenu { left: 8px; top: 150px; } #mm { top: 8px !important; } .camh { top: 150px !important; left: 48px !important; width: 110px !important; } }
#mm, .camh { z-index: 4; }
/* 接力条：浅色底、深色字，任何场景都看得清 */
.relay div { background: rgba(250,244,226,.82) !important; border: 1.5px solid rgba(43,95,122,.25) !important; color: #2b4a5c !important; font-weight: 700; backdrop-filter: blur(8px); }
.relay div i { background: linear-gradient(90deg, rgba(243,168,104,.35), rgba(243,168,104,.75)) !important; }
.relay div.now { border-color: #e39a4f !important; color: #173247 !important; box-shadow: 0 0 0 2px rgba(227,154,79,.35); }
.ptabs button:disabled { opacity: .45; cursor: default; }

.side-sea {
  --ui-bg: #101c37f5;
  --ui-ink: #edf4ff;
  --ui-sub: #b9cce3;
  --ui-line: #c3deff44;
  --ui-soft: #d4e6ff14;
}
.side-sea :is(#mm, .camh) { display: none !important; }
.side-sea .gmenu { top: 16px; }
.side-sea .ask { background: #f0f6faed; }
.side-sea .hud {
  left: 64px !important;
  right: calc(var(--cardW) + 28px);
  transform: none;
  display: block;
  white-space: normal;
}
.side-sea .hud .leg { display: block !important; color: #ffe1a0; }
.side-sea .hud .q { display: block !important; color: #f7fbff; text-shadow: 0 1px 3px #080f27, 0 1px 12px #080f27; }
.side-sea .hud .score {
  position: static;
  transform: none;
  opacity: 1;
  margin-top: 4px !important;
}
.side-sea .hud .score b { font-size: clamp(25px, 3.6vw, 46px); }
.side-sea .hud .score .tier { background: #101c37ed; }
.side-sea .ptabs button.on { color: #272039 !important; background: #ffd17b !important; border-color: #ffd17b !important; }
.side-sea .ovpanel { background: #0d1937ed; }
.side-sea .scene-cut { background: #203859; }
@media (max-width: 760px) {
  .side-sea .hud { left: 53px !important; right: 14px; }
  .side-sea .hud .q { font-size: 16px !important; }
  .side-sea .fw { left: 50%; width: calc(100% - 32px); }
  .side-sea .fw-sky { width: 100%; }
  .side-sea .card:not(.expanded) :is(.pq, .ptabs) { display: none; }
  .side-sea .relay div { min-width: 0; }
  .side-sea .relay div span { overflow: hidden; text-overflow: ellipsis; }
}

.gm-list .gm-music { font: inherit; text-align: left; color: var(--ui-ink); font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.gm-list .gm-music:hover { background: var(--ui-soft); }

/* 答题卡提示：暖色、轻松，不像报错 */
.ask .msg { background: #fff1d6 !important; color: #8a4a12 !important; border: 1.5px solid #f3c27a; font-weight: 700; padding: 4px 14px !important; }
.ask .tip[hidden] { display: none; }
