/* 《地貌猜地点》样式 —— 双主题，全部取色自"参考图"里的真实摄影
 * 暗色「洱海暮航」：洱海夜蓝打底，日落金做灯（参考图 sunset.jpg）
 * 亮色「水岸处方」：蒲苇白纸面 + 墨青字 + 钴蓝主强调（参考图 canglan-*.jpg）
 * 手账质感保留：纸噪点、折痕、胶带便签、楷体红批注、feTurbulence 手绘线条。
 * 零外部依赖：纹理为内联 SVG data URI，照片为构建期压缩的 base64（js/photos.js）。 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0c1a26;
  --panel: rgba(15, 31, 44, .8);
  --panel-solid: #0f1f2c;
  --panel2: rgba(160, 200, 230, .06);
  --glass-hi: rgba(170, 210, 235, .06);
  --glass-lo: rgba(170, 210, 235, .02);
  --line: rgba(140, 180, 215, .17);
  --line-strong: rgba(140, 180, 215, .34);
  --ink: #dfe9f0; --ink-dim: #94aabc; --ink-faint: #62798b;
  --amber: #e2a24b; --amber-2: #f0c178;
  --green: #58b57a; --red: #dd6a55; --blue: #5f9bd6;
  --cat: #e2a24b; --cat-soft: rgba(226,162,75,.14); --cat-line: rgba(226,162,75,.5);
  --track: rgba(200, 225, 245, .09);
  --input-bg: rgba(6, 14, 22, .6);
  --sea: rgba(160, 200, 230, .05);
  --stamp: #d96a5a;
  --shadow: 0 18px 44px rgba(0, 0, 0, .34);
  --serif: 'Noto Serif SC', 'Source Han Serif SC', 'STZhongsong', 'SimSun', serif;
  --sans: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}
html { scrollbar-color: #1e3547 transparent; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); min-height: 100vh; }
/* 等高线纹理 + 顶部双辉光（金 + 蓝，日落与湖面的余光） */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='160' viewBox='0 0 300 160'%3E%3Cg fill='none' stroke='%238fb7d4' stroke-width='1'%3E%3Cpath d='M-10 30 Q 40 8 90 30 T 190 30 T 290 30'/%3E%3Cpath d='M-10 70 Q 40 48 90 70 T 190 70 T 290 70'/%3E%3Cpath d='M-10 110 Q 40 88 90 110 T 190 110 T 290 110'/%3E%3Cpath d='M-10 150 Q 40 128 90 150 T 190 150 T 290 150'/%3E%3C/g%3E%3C/svg%3E");
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 72% -140px, rgba(226, 162, 75, .10), transparent 62%),
    radial-gradient(720px 400px at 10% -90px, rgba(95, 155, 214, .10), transparent 60%);
}
::selection { background: rgba(95, 155, 214, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #1e3547; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* —— 11 类地貌主题色（暗色·照片同源） —— */
body[data-cat="喀斯特"]      { --cat:#4fc4b0; --cat-soft:rgba(79,196,176,.14); --cat-line:rgba(79,196,176,.5); }
body[data-cat="红层丹霞"]    { --cat:#d4623a; --cat-soft:rgba(212,98,58,.14); --cat-line:rgba(212,98,58,.5); }
body[data-cat="红树林"]      { --cat:#58b57a; --cat-soft:rgba(88,181,122,.14); --cat-line:rgba(88,181,122,.5); }
body[data-cat="潮滩"]        { --cat:#d3b06e; --cat-soft:rgba(211,176,110,.14); --cat-line:rgba(211,176,110,.5); }
body[data-cat="三角洲"]      { --cat:#5f9bd6; --cat-soft:rgba(95,155,214,.14); --cat-line:rgba(95,155,214,.5); }
body[data-cat="黄土"]        { --cat:#cf9a3d; --cat-soft:rgba(207,154,61,.15); --cat-line:rgba(207,154,61,.5); }
body[data-cat="河流地貌"]    { --cat:#5493c4; --cat-soft:rgba(84,147,196,.14); --cat-line:rgba(84,147,196,.5); }
body[data-cat="荒漠地貌"]    { --cat:#d98a3f; --cat-soft:rgba(217,138,63,.14); --cat-line:rgba(217,138,63,.5); }
body[data-cat="冰川峡湾"]    { --cat:#86c3dd; --cat-soft:rgba(134,195,221,.14); --cat-line:rgba(134,195,221,.5); }
body[data-cat="火山地热"]    { --cat:#dd6a4f; --cat-soft:rgba(221,106,79,.14); --cat-line:rgba(221,106,79,.5); }
body[data-cat="海岸与珊瑚礁"]{ --cat:#e08090; --cat-soft:rgba(224,128,144,.14); --cat-line:rgba(224,128,144,.5); }

/* —— 亮色「水岸处方」：蒲苇白纸面 + 墨青字 + 钴蓝 —— */
body.light {
  --bg: #f4f0e4;
  --panel: rgba(255, 253, 247, .84);
  --panel-solid: #fffdf6;
  --panel2: rgba(46, 90, 120, .07);
  --glass-hi: rgba(255, 255, 255, .85);
  --glass-lo: rgba(255, 255, 255, .4);
  --line: rgba(60, 100, 130, .22);
  --line-strong: rgba(60, 100, 130, .4);
  --ink: #2c3e4a; --ink-dim: #5f7382; --ink-faint: #8fa0aa;
  --amber: #b8802e; --amber-2: #8a5f1d;
  --green: #2f7d5b; --red: #b3443a; --blue: #2e6f9e;
  --track: rgba(60, 100, 130, .16);
  --input-bg: rgba(255, 255, 255, .85);
  --sea: rgba(46, 90, 120, .06);
  --stamp: #b3443a;
  --shadow: 0 12px 30px rgba(50, 80, 105, .16);
}
body.light::before {
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='160' viewBox='0 0 300 160'%3E%3Cg fill='none' stroke='%236a92b0' stroke-width='1'%3E%3Cpath d='M-10 30 Q 40 8 90 30 T 190 30 T 290 30'/%3E%3Cpath d='M-10 70 Q 40 48 90 70 T 190 70 T 290 70'/%3E%3Cpath d='M-10 110 Q 40 88 90 110 T 190 110 T 290 110'/%3E%3Cpath d='M-10 150 Q 40 128 90 150 T 190 150 T 290 150'/%3E%3C/g%3E%3C/svg%3E");
}
body.light::after {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.3 0 0 0 0 0.38 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(900px 420px at 72% -140px, rgba(46, 111, 158, .07), transparent 62%);
}
body.light ::-webkit-scrollbar-thumb { background: #b9c8d4; border-color: var(--bg); }
/* 亮色下的地貌主题色（加深保证对比度，仍取自照片） */
body.light[data-cat="喀斯特"]      { --cat:#17877a; --cat-soft:rgba(23,135,122,.12); --cat-line:rgba(23,135,122,.5); }
body.light[data-cat="红层丹霞"]    { --cat:#b85434; --cat-soft:rgba(184,84,52,.12); --cat-line:rgba(184,84,52,.5); }
body.light[data-cat="红树林"]      { --cat:#1f7d4e; --cat-soft:rgba(31,125,78,.12); --cat-line:rgba(31,125,78,.5); }
body.light[data-cat="潮滩"]        { --cat:#96742c; --cat-soft:rgba(150,116,44,.13); --cat-line:rgba(150,116,44,.5); }
body.light[data-cat="三角洲"]      { --cat:#33628f; --cat-soft:rgba(51,98,143,.12); --cat-line:rgba(51,98,143,.5); }
body.light[data-cat="黄土"]        { --cat:#9a6d1a; --cat-soft:rgba(154,109,26,.13); --cat-line:rgba(154,109,26,.5); }
body.light[data-cat="河流地貌"]    { --cat:#2c6f9e; --cat-soft:rgba(44,111,158,.12); --cat-line:rgba(44,111,158,.5); }
body.light[data-cat="荒漠地貌"]    { --cat:#a35f1c; --cat-soft:rgba(163,95,28,.12); --cat-line:rgba(163,95,28,.5); }
body.light[data-cat="冰川峡湾"]    { --cat:#2a7a97; --cat-soft:rgba(42,122,151,.12); --cat-line:rgba(42,122,151,.5); }
body.light[data-cat="火山地热"]    { --cat:#b0432f; --cat-soft:rgba(176,67,47,.12); --cat-line:rgba(176,67,47,.5); }
body.light[data-cat="海岸与珊瑚礁"]{ --cat:#b04a5e; --cat-soft:rgba(176,74,94,.12); --cat-line:rgba(176,74,94,.5); }

/* —— 页头 —— */
header {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px; flex-wrap: wrap; gap: 12px;
  background: linear-gradient(180deg, rgba(8, 18, 27, .94), rgba(8, 18, 27, .78));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
body.light header { background: linear-gradient(180deg, rgba(250, 247, 237, .95), rgba(250, 247, 237, .82)); box-shadow: 0 8px 22px rgba(50, 80, 105, .14); }
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  font-size: 24px; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 15px; background: linear-gradient(145deg, #17293a, #0c1926);
  border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 6px 18px rgba(0, 0, 0, .35);
}
body.light .logo { background: linear-gradient(145deg, #ffffff, #dfe8ee); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 5px 14px rgba(50,80,105,.2); }
h1 { font-family: var(--serif); font-size: 21px; letter-spacing: 4px; font-weight: 700; }
.sub { color: var(--ink-dim); font-size: 12px; margin-top: 3px; letter-spacing: 1px; }
.hud { display: flex; gap: 10px; flex-wrap: wrap; }
.hud-item {
  text-align: center; min-width: 76px; padding: 6px 14px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 13px;
}
.hud-num { display: block; font-size: 19px; font-weight: 700; color: var(--amber-2); font-variant-numeric: tabular-nums; }
body.light .hud-num { color: var(--blue); }
.hud-label { font-size: 11px; color: var(--ink-faint); letter-spacing: 1px; }
.hud-item .hud-num.hot { color: var(--red); }
.hud-item .hud-num.hot::before { content: '🔥'; font-size: 13px; margin-right: 2px; }
.hdr-btns { display: flex; gap: 8px; }
.icon-btn {
  width: 44px; padding: 9px 0; font-size: 17px; text-align: center;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px;
}
.icon-btn:hover { border-color: var(--amber); }
body.light .icon-btn:hover { border-color: var(--blue); }

main { max-width: 1080px; margin: 26px auto 70px; padding: 0 16px; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 30px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
}
body.light .panel { box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .8); backdrop-filter: blur(3px); }
.panel h2 { font-size: 18px; margin-bottom: 12px; }
.tip { color: var(--ink-dim); font-size: 13px; line-height: 1.9; margin-bottom: 18px; }
.tip b { color: var(--amber-2); }
body.light .tip b { color: var(--blue); }

/* —— 胶片盒 hero —— */
.hero {
  position: relative; height: 300px; border-radius: 18px; overflow: hidden;
  background-size: cover; background-position: center;
  border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 18px;
}
.hero > svg { position: absolute; inset: 0; width: 100%; height: 100%; } /* 程序画按 cover 铺满 */
.hero-caption {
  position: absolute; left: 20px; right: 20px; bottom: 84px;
  color: #fff; font-size: 13.5px; letter-spacing: 1px; line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .65);
}
.hero-caption b { color: #ffd98a; }
.film-thumbs { position: absolute; left: 20px; bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.film-thumb {
  width: 84px; height: 56px; border-radius: 9px; background-size: cover; background-position: center;
  cursor: pointer; border: 2px solid rgba(255, 255, 255, .55); overflow: hidden; position: relative;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35); transition: transform .12s, border-color .15s;
}
.film-thumb > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-thumb:hover { transform: translateY(-2px); }
.film-thumb.on { border-color: #ffd98a; box-shadow: 0 4px 14px rgba(255, 217, 138, .35); }

/* —— 开局设置 —— */
#setup h2 { font-family: var(--serif); font-size: 24px; letter-spacing: 5px; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13px; color: var(--ink-dim); margin-bottom: 9px; letter-spacing: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel2); color: var(--ink); font-size: 13px; cursor: pointer;
  user-select: none; transition: border-color .18s, background .18s, transform .12s;
}
.chip:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.chip.on { background: linear-gradient(135deg, #f0c178, #e2a24b); border-color: var(--amber); color: #241b07; font-weight: 700; box-shadow: 0 6px 16px rgba(226, 162, 75, .28); }
body.light .chip.on { background: linear-gradient(135deg, #4b8fbd, #2e6f9e); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(46, 111, 158, .3); }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 6px currentColor; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row label { margin-bottom: 0; }
input[type="number"], input[type="text"] {
  background: var(--input-bg); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 10px 13px; font-size: 14px; font-family: var(--sans);
  transition: border-color .18s, box-shadow .18s;
}
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 111, 158, .18); outline: none; }
.tip-inline { color: var(--ink-faint); font-size: 12px; }

button {
  border: none; border-radius: 11px; cursor: pointer; font-family: var(--sans);
  font-size: 14px; padding: 10px 18px; color: var(--ink);
  transition: transform .12s, box-shadow .2s, filter .2s, border-color .2s, background .2s;
}
button:hover { filter: brightness(1.08); }
button:active { transform: scale(.97); }
button:disabled { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.primary { background: linear-gradient(135deg, #f0c178, #e2a24b); color: #241b07; font-weight: 700; box-shadow: 0 6px 18px rgba(226, 162, 75, .25); }
.primary:hover { box-shadow: 0 9px 26px rgba(226, 162, 75, .38); transform: translateY(-1px); }
body.light .primary { background: linear-gradient(135deg, #4b8fbd, #2e6f9e); color: #fff; box-shadow: 0 6px 18px rgba(46, 111, 158, .32); }
body.light .primary:hover { box-shadow: 0 9px 26px rgba(46, 111, 158, .42); }
.ghost { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); }
.ghost:hover { border-color: var(--amber); color: var(--amber-2); }
body.light .ghost:hover { border-color: var(--blue); color: var(--blue); }
.danger { background: transparent; color: var(--red); border: 1px solid rgba(221, 106, 85, .5); }
body.light .danger { border-color: rgba(179, 68, 58, .55); }
.danger:hover { background: rgba(221, 106, 85, .09); border-color: var(--red); }
.big { padding: 13px 36px; font-size: 16px; letter-spacing: 2px; }

.hidden { display: none !important; }

/* —— 对局布局 —— */
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.left-col { min-width: 0; }
.right-col {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  position: sticky; top: 92px; box-shadow: var(--shadow);
}
.log-title { font-size: 12px; color: var(--ink-faint); margin-bottom: 10px; letter-spacing: 3px; }
#logBox { display: flex; flex-direction: column; gap: 9px; max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.log-line { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: start; animation: rise .3s ease both; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; background: var(--panel-solid); border: 1px solid var(--line);
}
.log-line.host .avatar { border-color: rgba(226, 162, 75, .5); }
.log-line.judge .avatar { border-color: rgba(95, 155, 214, .5); }
.log-line.hint .avatar { border-color: rgba(88, 181, 122, .5); }
.bubble {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px;
  border-top-left-radius: 4px; padding: 8px 12px; font-size: 13px; line-height: 1.75;
}
.log-line.judge .bubble { border-left: 2px solid var(--blue); }
.log-line.host .bubble { border-left: 2px solid var(--amber); }
.log-line.hint .bubble { border-left: 2px solid var(--green); }

/* —— 题目区 —— */
.q-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.badge {
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--panel2); border: 1px solid var(--line); letter-spacing: 1px;
}
.badge.cat { color: var(--cat); border-color: var(--cat-line); background: var(--cat-soft); font-weight: 700; }
.badge.score { color: var(--green); font-variant-numeric: tabular-nums; }
.clue-count { color: var(--ink-faint); font-size: 12px; margin-left: auto; letter-spacing: 1px; }
.q-title { font-family: var(--serif); font-size: 23px; letter-spacing: 3px; margin-bottom: 14px; }

/* 线索时间轴 */
#clueList { display: flex; flex-direction: column; margin: 4px 0 18px; }
.clue-card { display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 7px 0; position: relative; animation: rise .4s ease both; }
.clue-card:not(:last-child)::before {
  content: ''; position: absolute; left: 16px; top: 44px; bottom: -9px; width: 2px;
  background: linear-gradient(180deg, var(--cat-line), transparent); opacity: .5;
}
.clue-num {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: var(--cat);
  background: var(--cat-soft); border: 1px solid var(--cat-line);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.clue-body {
  background: linear-gradient(180deg, var(--glass-hi), var(--glass-lo));
  border: 1px solid var(--line); border-radius: 13px; padding: 10px 15px;
  transition: border-color .18s;
}
.clue-body:hover { border-color: var(--line-strong); }
.clue-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--cat);
  background: var(--cat-soft); border: 1px solid var(--cat-line);
  padding: 2px 9px; border-radius: 6px; letter-spacing: 2px;
}
.clue-text { display: block; margin-top: 5px; font-size: 14px; line-height: 1.85; }
#hintList { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
#hintList .clue-num { color: var(--green); background: rgba(88, 181, 122, .13); border-color: rgba(88, 181, 122, .45); font-size: 15px; }
body.light #hintList .clue-num { background: rgba(47, 125, 91, .12); border-color: rgba(47, 125, 91, .5); }
#hintList .clue-body { border-color: rgba(88, 181, 122, .3); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.guess-bar { display: flex; gap: 10px; }
.guess-bar input { flex: 1; min-width: 0; }

/* —— 揭晓面板 —— */
.reveal { margin-top: 20px; overflow: hidden; position: relative; }
.reveal::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 150px; pointer-events: none;
  background: linear-gradient(165deg, var(--cat-soft), transparent 72%);
}
.reveal-head {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-bottom: 1px dashed var(--line-strong); padding-bottom: 16px; margin-bottom: 16px; position: relative;
}
.reveal-label { color: var(--ink-faint); font-size: 12px; letter-spacing: 4px; }
#ansName { font-family: var(--serif); color: var(--amber-2); font-size: 29px; letter-spacing: 3px; margin: 5px 0 9px; text-shadow: 0 2px 16px rgba(226, 162, 75, .28); }
body.light #ansName { color: var(--blue); text-shadow: none; }
.ans-meta { color: var(--ink-dim); font-size: 13px; line-height: 2; }
.ans-meta b { color: var(--ink); }
.reveal-score { text-align: center; min-width: 110px; position: relative; }
.ring {
  --p: 0; width: 98px; height: 98px; border-radius: 50%; margin: 0 auto; position: relative;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--track) 0);
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .25), 0 0 0 1px var(--line);
}
.ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--panel-solid); }
.ring b { position: relative; font-size: 30px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.ring.zero { background: conic-gradient(var(--ink-faint) calc(var(--p) * 1%), var(--track) 0); }
.ring.zero b { color: var(--ink-faint); }
.rs-label { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 8px; letter-spacing: 2px; }
.stamp {
  display: inline-block; margin-top: 10px; padding: 4px 10px;
  font-family: var(--serif); font-size: 12px; letter-spacing: 3px; font-weight: 700;
  color: var(--stamp); border: 2px solid var(--stamp); border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--stamp);
  transform: rotate(-7deg); opacity: .82; user-select: none;
}

/* —— 实景照 —— */
.photo-card {
  max-width: 620px; margin: 0 auto 18px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: rise .4s ease both;
}
.photo-card img { display: block; width: 100%; height: auto; }
.postcard-svg svg { display: block; width: 100%; height: auto; } /* 明信片整幅展示 */
.photo-note {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 9px 13px; font-size: 12.5px; background: var(--panel-solid); border-top: 1px solid var(--line);
}
.photo-note i { font-style: normal; color: var(--ink-faint); }

/* —— 地图落点 —— */
.map-panel { max-width: 620px; margin: 0 auto 18px; position: relative; }
.map-title { font-size: 13px; color: var(--ink-dim); margin-bottom: 8px; letter-spacing: 2px; }
.map-title i { font-style: normal; color: var(--ink-faint); font-size: 11px; margin-left: 8px; letter-spacing: 1px; }
.locmap { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--sea); box-shadow: inset 0 0 30px rgba(0,0,0,.12); }
.locmap .sea { fill: var(--sea); }
.locmap .land { fill: var(--cat-soft); stroke: var(--cat-line); stroke-width: .4; }
.locmap .grat line { stroke: var(--line); stroke-width: .3; }
.locmap .eq { stroke: var(--cat-line); stroke-width: .4; }
.locmap .tr { stroke: var(--line-strong); stroke-width: .3; stroke-dasharray: 3 3; }
.locmap .aim { stroke: var(--cat-line); stroke-width: .35; stroke-dasharray: 2 2; opacity: .8; }
.locmap .marker .core { fill: var(--cat); stroke: var(--panel-solid); stroke-width: .8; }
.locmap .marker .pulse { fill: none; stroke: var(--cat); opacity: 0; animation: pulse 2.2s ease-out infinite; }
.locmap .marker .p2 { animation-delay: 1.1s; }
.locmap .marker .core { animation: drop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.locmap .mlabel { fill: var(--ink); font-size: 8.5px; font-family: var(--sans); letter-spacing: .5px; paint-order: stroke; stroke: var(--panel-solid); stroke-width: 2.5; }
@keyframes pulse { 0% { r: 3; opacity: .8; } 100% { r: 16; opacity: 0; } }
@keyframes drop { 0% { transform: scale(3); opacity: 0; } 60% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

.chain-title { font-weight: 700; margin-bottom: 12px; letter-spacing: 2px; }
#chainList { list-style: none; counter-reset: step; margin-bottom: 16px; }
#chainList li {
  counter-increment: step; position: relative; padding: 11px 16px 11px 50px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 9px; font-size: 14px; line-height: 1.85; animation: rise .35s ease both;
}
#chainList li:nth-child(2) { animation-delay: .06s; }
#chainList li:nth-child(3) { animation-delay: .12s; }
#chainList li:nth-child(4) { animation-delay: .18s; }
#chainList li:nth-child(5) { animation-delay: .24s; }
#chainList li::before {
  content: counter(step); position: absolute; left: 13px; top: 11px;
  width: 24px; height: 24px; border-radius: 9px; background: var(--cat-line);
  color: #0d1420; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
body.light #chainList li::before { color: #fffdf6; }
.fact {
  position: relative; padding: 12px 14px 12px 42px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(226, 162, 75, .11), rgba(226, 162, 75, .04));
  border: 1px solid rgba(226, 162, 75, .35); border-radius: 12px;
  font-size: 13px; line-height: 1.85;
}
body.light .fact { border-color: rgba(46, 111, 158, .4); background: linear-gradient(135deg, rgba(46, 111, 158, .09), rgba(46, 111, 158, .03)); }
.fact::before { content: '💡'; position: absolute; left: 14px; top: 11px; }
.fact b { color: var(--amber-2); margin-right: 6px; }
body.light .fact b { color: var(--blue); }
.recap { color: var(--ink-dim); font-size: 12px; margin-bottom: 18px; line-height: 1.9; }

/* —— 存档：续玩条 / 生涯战绩 —— */
.resume-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--panel2); }
.career { color: var(--amber-2); font-size: 13px; letter-spacing: 1px; margin-bottom: 14px; }
body.light .career { color: var(--blue); }

/* —— 结算与徽章墙 —— */
#summaryBody { line-height: 2.1; font-size: 14px; margin-bottom: 16px; }
#summaryBody .score-line { font-family: var(--serif); font-size: 26px; color: var(--amber-2); font-weight: 700; letter-spacing: 2px; }
body.light #summaryBody .score-line { color: var(--blue); }
#summaryBody table { border-collapse: collapse; margin-top: 12px; width: 100%; max-width: 560px; }
#summaryBody td, #summaryBody th { border: 1px solid var(--line); padding: 7px 11px; font-size: 13px; text-align: left; }
#summaryBody th { color: var(--ink-faint); font-weight: 400; letter-spacing: 1px; }
.wall-title { font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; }
.badge-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.badge-card {
  text-align: center; padding: 14px 10px; border-radius: 14px;
  background: var(--panel2); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.badge-card .b-icon { font-size: 26px; }
.badge-card b { font-size: 13px; letter-spacing: 1px; }
.badge-card i { font-style: normal; font-size: 11px; color: var(--ink-faint); }
.badge-card.got { border-color: rgba(226, 162, 75, .55); background: linear-gradient(160deg, rgba(226, 162, 75, .14), var(--panel2)); box-shadow: 0 6px 18px rgba(226, 162, 75, .15); }
body.light .badge-card.got { border-color: rgba(184, 128, 46, .5); background: linear-gradient(160deg, rgba(184, 128, 46, .12), var(--panel2)); box-shadow: 0 6px 18px rgba(184, 128, 46, .12); }
.badge-card.lock { opacity: .55; filter: grayscale(.6); }

/* —— toast —— */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(14, 30, 43, .96), rgba(9, 22, 33, .96));
  color: var(--ink); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 11px 24px; font-size: 14px; font-weight: 700; letter-spacing: 1px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45); z-index: 60; pointer-events: none;
}
body.light .toast { background: linear-gradient(135deg, rgba(255, 253, 247, .97), rgba(236, 240, 240, .97)); box-shadow: 0 12px 28px rgba(50, 80, 105, .25); }
.toast.go { animation: toastUp 1.9s ease both; }
@keyframes toastUp {
  0% { opacity: 0; transform: translate(-50%, 14px); }
  12% { opacity: 1; transform: translate(-50%, 0); }
  84% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}

footer { text-align: center; color: var(--ink-faint); font-size: 12px; padding: 22px; letter-spacing: 1px; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* —— 亮色手账化：楷体、折痕、胶带便签、红批注、手绘线条 —— */
body.light { font-family: 'KaiTi', 'STKaiti', 'Kaiti SC', '楷体', var(--sans); }
body.light .hud-label, body.light .tip-inline, body.light .map-title i, body.light .clue-count,
body.light .badge, body.light .log-title, body.light .mlabel, body.light .rs-label,
body.light .photo-note i { font-family: var(--sans); }
body.light .panel { border-radius: 15px 19px 14px 18px / 18px 14px 19px 15px; }
body.light .panel::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(112deg, transparent 30.8%, rgba(60, 100, 130, .05) 31%, rgba(60, 100, 130, .05) 31.4%, transparent 31.6%),
    linear-gradient(112deg, transparent 68.7%, rgba(60, 100, 130, .045) 68.8%, rgba(60, 100, 130, .045) 69.2%, transparent 69.3%),
    radial-gradient(150px 95px at 88% 95%, rgba(70, 110, 140, .09), transparent 70%);
}
.panel { position: relative; }
/* 手绘 logo 与头像 */
.logo-svg { width: 30px; height: 30px; display: block; }
body:not(.light) .logo-svg { color: var(--amber-2); }
body.light .logo-svg { color: #3a688c; }
.face { width: 21px; height: 21px; display: block; }
.log-line.host .face { color: #3a688c; }
.log-line.judge .face { color: var(--red); }
.log-line.hint .face { color: #2f8f60; }
/* 便签卡微微歪斜 + 顶部胶带（蓝白胶带，贴在水岸纸上） */
body.light #clueList .clue-card:nth-child(odd) { rotate: .4deg; }
body.light #clueList .clue-card:nth-child(even) { rotate: -.45deg; }
body.light #chainList li:nth-child(odd) { rotate: .3deg; }
body.light #chainList li:nth-child(even) { rotate: -.3deg; }
body.light .clue-body { position: relative; }
body.light .clue-body::before {
  content: ''; position: absolute; top: -9px; left: 50%; width: 58px; height: 15px;
  transform: translateX(-50%) rotate(-2deg);
  background: linear-gradient(90deg, rgba(190, 214, 230, 0), rgba(190, 214, 230, .55) 14%, rgba(214, 230, 240, .65) 50%, rgba(190, 214, 230, .55) 86%, rgba(190, 214, 230, 0));
  box-shadow: 0 1px 3px rgba(50, 80, 105, .2);
}
body.light #hintList .clue-body::before {
  background: linear-gradient(90deg, rgba(150, 200, 170, 0), rgba(150, 200, 170, .45) 14%, rgba(175, 218, 190, .55) 50%, rgba(150, 200, 170, .45) 86%, rgba(150, 200, 170, 0));
}
/* 老队长的红笔批注 */
body.light .log-line.judge .bubble {
  color: #a03b30; font-family: 'KaiTi', 'STKaiti', '楷体', serif;
  border-left-color: var(--red);
  background: linear-gradient(180deg, rgba(179, 68, 58, .07), rgba(179, 68, 58, .03));
}
/* 结算评语 */
.verdict {
  font-family: 'KaiTi', 'STKaiti', '楷体', serif; font-size: 15px; color: var(--ink-dim);
  margin-bottom: 6px; letter-spacing: 1px;
}

@media (max-width: 860px) {
  .game-grid { grid-template-columns: 1fr; }
  .right-col { position: static; }
  header { padding: 12px 16px; }
  .panel { padding: 20px 18px; }
  .hero { height: 240px; }
  .hero-caption { bottom: 76px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
/* —— 打印 —— */
@media print {
  header, footer, .actions, .guess-bar, .hud, .hdr-btns, #logBox, .right-col, #btnNext, .toast, .hero { display: none !important; }
  body, .panel { background: #fff !important; color: #222 !important; }
  .panel { box-shadow: none !important; border: 1px solid #bbb !important; }
  .game-grid { display: block !important; }
  #summaryBody table { display: none; }
}
