/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold: #c9a84c;
    --gold-dim: #8a6d2b;
    --dark-bg: #1a1410;
    --dialog-bg: rgba(15, 10, 5, 0.92);
    --text-color: #e8dcc8;
    --text-dim: #9a8b76;
    --accent-red: #8b2020;
    --accent-red-bright: #c53030;
    --paper: #f4e8c1;
    --ink: #2a1a0a;
    --pressure-green: #4a8c5c;
    --pressure-yellow: #c9a84c;
    --pressure-red: #8b2020;
    --font-main: "Noto Serif SC", "Source Han Serif SC", "SimSun", "STSong", serif;
    --font-ui: "Microsoft YaHei", "PingFang SC", sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: var(--font-main);
}

/* ===== 游戏容器（竖屏 9:16） ===== */
#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--dark-bg);
}

/* ===== 场景背景 ===== */
#scene-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.8s ease, filter 0.6s ease;
}

/* ===== 书房烛光效果 ===== */
#scene-bg[data-scene="study"]::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(
        ellipse 35% 30% at 30% 70%,
        rgba(244, 200, 100, 0.08) 0%,
        rgba(244, 180, 80, 0.03) 40%,
        transparent 70%
    );
    animation: candleFlicker 3s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes candleFlicker {
    0%   { opacity: 0.6; }
    25%  { opacity: 0.9; }
    50%  { opacity: 0.5; }
    75%  { opacity: 1; }
    100% { opacity: 0.7; }
}

/* ===== 现场勘查热点 ===== */
#investigation-overlay {
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
}

#investigation-overlay:not(.hidden) {
    pointer-events: none;
}

.hotspot {
    position: absolute;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s;
}

.hotspot-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(201, 168, 76, 0.6);
    background: rgba(201, 168, 76, 0.15);
    transform: translate(-50%, -50%);
}

.hotspot-dot:hover {
    background: rgba(201, 168, 76, 0.35);
    border-color: rgba(201, 168, 76, 0.9);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
    transform: translate(-50%, -50%) scale(1.15);
}

.hotspot-dot:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.hotspot.found {
    border-color: rgba(100, 100, 100, 0.3);
    background: rgba(100, 100, 100, 0.08);
    pointer-events: none;
    opacity: 0.4;
}

.hotspot.found .hotspot-pulse {
    display: none;
}

.hotspot.found .hotspot-label {
    color: rgba(150, 150, 150, 0.5);
}

.hotspot-pulse {
    position: absolute;
    inset: -6px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: hotspotPulse 2s ease-in-out infinite;
}

@keyframes hotspotPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.5); }
}

.hotspot-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 11px;
    font-family: var(--font-ui);
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    letter-spacing: 1px;
}

#investigation-done-btn {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.08));
    border: 1px solid var(--gold-dim);
    border-radius: 6px;
    padding: 12px 28px;
    color: var(--gold);
    font-family: var(--font-main);
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    animation: fadeInUp 0.5s ease-out;
}

#investigation-done-btn:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== 点选交互场景（走访 hub）===== */
.scene-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    animation: sceneFadeIn 0.5s ease-out;
}

@keyframes sceneFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scene-banner {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    padding: 8px 28px;
    background: linear-gradient(180deg, rgba(26,18,10,0.78), rgba(26,18,10,0.4));
    border: 1px solid rgba(201,168,76,0.4);
    border-radius: 4px;
    max-width: 78%;
}

.scene-title {
    font-family: var(--font-main);
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.scene-intro {
    font-family: var(--font-main);
    font-size: 13px;
    color: rgba(245,236,216,0.78);
    margin-top: 3px;
    letter-spacing: 1px;
    line-height: 1.5;
}

.scene-npc {
    position: absolute;
    transform: translate(-50%, -100%);
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.scene-npc-inner {
    position: relative;
    display: flex;
    flex-direction: column-reverse; /* 标签显示在立绘头顶上方 */
    align-items: center;
}

.scene-npc-sprite {
    height: 30vh;
    max-height: 340px;
    width: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.55));
    -webkit-user-drag: none;
    user-select: none;
}

.scene-npc-label {
    margin: 0 0 6px 0;   /* 头顶上方，而非身下 */
    padding: 3px 12px;
    background: rgba(26,18,10,0.82);
    border: 1px solid rgba(201,168,76,0.55);
    border-radius: 3px;
    color: var(--gold);
    font-family: var(--font-main);
    font-size: 13px;
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}

.scene-npc:hover {
    transform: translate(-50%, -102%) scale(1.04);
    filter: brightness(1.15);
}

.scene-npc:hover .scene-npc-label {
    background: rgba(201,168,76,0.92);
    color: var(--dark-bg);
    border-color: var(--gold);
}

.scene-npc.visited {
    filter: brightness(0.55) grayscale(0.4);
}
.scene-npc.visited .scene-npc-label {
    opacity: 0.65;
}

.scene-exit-row {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    pointer-events: auto;
    z-index: 3;
}

.scene-exit-btn {
    pointer-events: auto;
    background: linear-gradient(135deg, rgba(201,168,76,0.28), rgba(26,18,10,0.85));
    border: 1px solid var(--gold-dim);
    border-radius: 5px;
    padding: 8px 20px;
    color: var(--gold);
    font-family: var(--font-main);
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.scene-exit-btn:hover {
    background: rgba(201,168,76,0.28);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(201,168,76,0.25);
}

.scene-exit-btn:active {
    transform: translateY(0);
}

.scene-hotspot {
    pointer-events: auto;
}

/* ===== 显眼热点（升堂之类的关键入口）===== */
.hotspot-prominent {
    width: auto !important;
    height: auto !important;
    border-radius: 6px !important;
    border: 2px solid var(--gold) !important;
    background: linear-gradient(135deg, rgba(122, 28, 28, 0.92), rgba(70, 14, 14, 0.95)) !important;
    padding: 14px 28px;
    transform: translate(-50%, -50%) !important;
    box-shadow: 0 0 22px rgba(201, 168, 76, 0.45), inset 0 0 8px rgba(0,0,0,0.5);
    animation: prominentPulse 2.4s ease-in-out infinite;
}

.hotspot-prominent:hover {
    background: linear-gradient(135deg, rgba(150, 38, 38, 0.95), rgba(95, 18, 18, 0.97)) !important;
    border-color: #f0d090 !important;
    box-shadow: 0 0 30px rgba(240, 208, 144, 0.65), inset 0 0 8px rgba(0,0,0,0.5) !important;
    transform: translate(-50%, -50%) scale(1.05) !important;
}

.hotspot-prominent .hotspot-label {
    position: static;
    transform: none;
    color: #f4d090;
    font-size: 17px;
    letter-spacing: 6px;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 14px rgba(201,168,76,0.3);
    white-space: nowrap;
}

.hotspot-prominent .hotspot-pulse {
    display: none; /* 用 box-shadow 自带的 prominent 脉动代替 */
}

@keyframes prominentPulse {
    0%, 100% { box-shadow: 0 0 22px rgba(201, 168, 76, 0.45), inset 0 0 8px rgba(0,0,0,0.5); }
    50% { box-shadow: 0 0 36px rgba(201, 168, 76, 0.75), inset 0 0 8px rgba(0,0,0,0.5); }
}

/* ===== 氛围叠加层 ===== */
#atmosphere-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: background 0.8s ease;
    z-index: 1;
}

.atmosphere-interrogation {
    background: linear-gradient(
        to bottom,
        rgba(60, 10, 10, 0.3) 0%,
        rgba(20, 5, 5, 0.1) 40%,
        rgba(20, 5, 5, 0.4) 100%
    ) !important;
}

.atmosphere-tense {
    background: linear-gradient(
        to bottom,
        rgba(80, 10, 10, 0.45) 0%,
        rgba(30, 5, 5, 0.2) 40%,
        rgba(40, 5, 5, 0.55) 100%
    ) !important;
}

.atmosphere-breakthrough {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* ===== 角色立绘 ===== */
#character-layer {
    position: absolute;
    bottom: 32%;
    left: 50%;
    transform: translateX(-50%);
    width: 72%;
    height: 58%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
    transition: transform 0.3s ease, filter 0.3s ease;
}

#character-sprite {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    transition: background-image 0.15s ease, transform 0.2s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

/* 角色动画效果 */
.char-shake {
    animation: charShake 0.4s ease-in-out;
}

.char-tremble {
    animation: charTremble 0.8s ease-in-out infinite;
}

.char-flinch {
    animation: charFlinch 0.3s ease-out;
}

@keyframes charShake {
    0%, 100% { transform: translateX(-50%); }
    20% { transform: translateX(calc(-50% + 8px)); }
    40% { transform: translateX(calc(-50% - 8px)); }
    60% { transform: translateX(calc(-50% + 5px)); }
    80% { transform: translateX(calc(-50% - 3px)); }
}

@keyframes charTremble {
    0%, 100% { transform: translateX(-50%); }
    25% { transform: translateX(calc(-50% + 2px)); }
    75% { transform: translateX(calc(-50% - 2px)); }
}

@keyframes charFlinch {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(0.97); }
    100% { transform: translateX(-50%) scale(1); }
}

/* ===== 角色名牌 ===== */
#name-plate {
    position: absolute;
    top: -16px;
    left: 0;
    z-index: 11;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    padding: 4px 18px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    pointer-events: none;
}

#character-name {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-bg);
    letter-spacing: 4px;
}

/* ===== 对话框 ===== */
#dialog-box {
    position: absolute;
    bottom: 18%;
    left: 4%;
    right: 4%;
    z-index: 10;
    background: var(--dialog-bg);
    border: 1px solid var(--gold-dim);
    border-radius: 4px;
    padding: 20px 18px 16px;
    min-height: 120px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

#dialog-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    letter-spacing: 1px;
    min-height: 60px;
    max-height: 45vh;
    overflow-y: auto;
}

#dialog-text .highlight {
    color: var(--gold);
    font-weight: 700;
}

/* ===== 附耳私语样式（whisper）===== */
/* 狄仁杰/元芳私下小声沟通时：对话框略暗、加一道竖线、文字偏斜、名牌加"· 附耳"后缀 */
#dialog-box.whisper {
    background: rgba(22, 20, 34, 0.78);
    border: 1px solid rgba(180, 150, 80, 0.35);
    border-left: 3px solid rgba(200, 170, 100, 0.55);
}
#dialog-box.whisper #dialog-text {
    font-style: italic;
    color: #d6cfbd;
    opacity: 0.95;
}
#dialog-box.whisper #character-name::after {
    content: ' · 附耳';
    font-size: 0.72em;
    font-weight: 400;
    letter-spacing: 1px;
    margin-left: 6px;
    opacity: 0.7;
}

#click-indicator {
    position: absolute;
    bottom: 8px;
    right: 14px;
    color: var(--gold);
    font-size: 12px;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* ===== 内心独白 ===== */
#inner-thought {
    position: absolute;
    /* 避开 TapTap 小程序顶栏胶囊（~88px 含 safe-area）+ iOS 灵动岛/刘海 */
    top: max(14%, calc(env(safe-area-inset-top, 0px) + 96px));
    left: 6%;
    right: 6%;
    /* z-index 调高盖住右上角胶囊（#menu-btn z=60 / #back-launcher z=50 / #pressure-meter z=12）
       气泡是临时浮层，玩家点开消失后右上角胶囊重新可见 */
    z-index: 70;
    background: rgba(244, 232, 193, 0.95);
    border: 1px solid var(--gold-dim);
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: thoughtSlideIn 0.4s ease-out;
}

@keyframes thoughtSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#thought-icon {
    font-size: 13px;
    flex-shrink: 0;
    background: var(--gold);
    color: var(--dark-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 2px;
    font-style: normal;
}

#thought-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink);
    font-style: normal;
}

/* ===== 选项面板 ===== */
#choices-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);   /* 屏幕上下左右完全居中 */
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: stretch;       /* 让所有按钮横向铺满容器 → 等宽，左右对齐 */
    gap: 14px;
    width: 86%;
    max-width: 420px;
}

.choice-btn {
    /* 半透明背景 + 胶囊圆角，弱化"方格"感 */
    background: rgba(20, 14, 8, 0.5);
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 26px;
    padding: 13px 22px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 15px;
    letter-spacing: 0.8px;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    text-align: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    width: 100%;             /* 等宽：所有按钮宽度 = 容器宽度，左右自然对齐 */
    white-space: normal;
    word-break: keep-all;
}

.choice-btn:hover {
    background: rgba(201, 168, 76, 0.18);
    border-color: rgba(201, 168, 76, 0.7);
    transform: scale(1.02);
}

.choice-btn:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    #choices-panel {
        width: 88%;
    }
    .choice-btn {
        font-size: 14px;
        padding: 12px 18px;
        letter-spacing: 0.5px;
    }
}

/* ===== 审讯输入面板 ===== */
#interrogation-panel {
    position: absolute;
    bottom: calc(10% + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    z-index: 15;
    background: linear-gradient(to top, rgba(10, 6, 3, 0.98) 70%, rgba(10, 6, 3, 0.8));
    padding: 10px 12px 14px;
    border-top: 1px solid var(--gold-dim);
}

#evidence-hint {
    margin-bottom: 8px;
    padding: 6px 12px;
    background: rgba(201, 168, 76, 0.1);
    border-left: 3px solid var(--gold);
    border-radius: 2px;
    font-size: 12px;
    color: var(--gold);
    animation: hintFade 0.3s ease-out;
}

@keyframes hintFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

#input-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

#player-input {
    flex: 1;
    background: rgba(244, 232, 193, 0.08);
    border: 1px solid var(--gold-dim);
    border-radius: 4px;
    padding: 10px 14px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

#player-input:focus {
    border-color: var(--gold);
}

#player-input::placeholder {
    color: var(--text-dim);
}

#send-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    border: none;
    border-radius: 4px;
    padding: 10px 26px;
    min-width: 72px;
    color: var(--dark-bg);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

#send-btn:hover { opacity: 0.9; }
#send-btn:active { transform: scale(0.95); }
#send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

#interrogation-tools {
    display: flex;
    gap: 8px;
}

.tool-btn {
    flex: 1;
    background: rgba(244, 232, 193, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 4px;
    padding: 8px;
    color: var(--text-dim);
    font-family: var(--font-ui);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold);
    border-color: var(--gold-dim);
}

.tool-btn.has-hint {
    background: rgba(201, 168, 76, 0.18);
    color: var(--gold);
    border-color: var(--gold);
    animation: hintPulse 1.8s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
    50%      { box-shadow: 0 0 10px 2px rgba(201, 168, 76, 0.35); }
}

/* ===== 线索面板 ===== */
#evidence-panel {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

#evidence-panel-inner {
    width: 88%;
    max-height: 75vh;
    background: var(--dialog-bg);
    border: 1px solid var(--gold-dim);
    border-radius: 6px;
    padding: 24px 18px;
    overflow-y: auto;
    position: relative;
}

#evidence-panel-inner h3 {
    color: var(--gold);
    font-size: 18px;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-dim);
}

#evidence-search {
    width: 100%;
    background: rgba(244, 232, 193, 0.06);
    border: 1px solid var(--gold-dim);
    border-radius: 4px;
    padding: 8px 12px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

#evidence-search:focus {
    border-color: var(--gold);
    background: rgba(244, 232, 193, 0.12);
}

#evidence-search::placeholder {
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* 搜索时被过滤掉的项 */
.evidence-item.search-hidden,
.ev-cat-header.search-hidden {
    display: none;
}

/* 关键词高亮 */
.ev-search-hl {
    background: rgba(255, 215, 96, 0.35);
    color: #fff8d8;
    padding: 0 2px;
    border-radius: 2px;
}

.evidence-empty-hint {
    color: var(--text-dim);
    text-align: center;
    padding: 20px 10px;
    font-size: 13px;
    letter-spacing: 1px;
    font-style: italic;
}

.ev-cat-header {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 0 4px;
    margin-top: 10px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.25);
    margin-bottom: 8px;
    opacity: 0.8;
}

.ev-cat-header:first-child {
    margin-top: 0;
}

.evidence-item {
    background: rgba(244, 232, 193, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ev-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    background: rgba(244, 232, 193, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.15);
    padding: 4px;
}

.ev-text-wrap {
    flex: 1;
    min-width: 0;
}

.evidence-item:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold-dim);
}

.evidence-item .ev-title {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.evidence-item .ev-desc {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
}

.evidence-item.ev-new {
    border-color: var(--gold);
    animation: evPulse 1s ease-in-out 2;
}

@keyframes evPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
    50% { box-shadow: 0 0 12px 2px rgba(201, 168, 76, 0.3); }
}

#close-evidence {
    position: sticky;
    top: 0;
    width: 100%;
    margin-bottom: 12px;
    padding: 12px;
    font-size: 14px;
    background: var(--dialog-bg);
    border-color: var(--gold-dim);
    color: var(--gold);
    z-index: 1;
}

/* ===== 压力指示器 ===== */
#pressure-meter {
    position: absolute;
    /* 让心理防线避开 TapTap 顶栏 + #menu-btn (env+100) + #back-launcher (env+148) 两层胶囊 */
    top: calc(env(safe-area-inset-top, 0px) + 196px);
    right: 12px;
    z-index: 12;
    text-align: right;
    background: rgba(15, 10, 5, 0.7);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

#pressure-label {
    font-size: 12px;
    color: var(--gold-dim);
    margin-bottom: 5px;
    letter-spacing: 2px;
    font-family: var(--font-ui);
}

#pressure-bar-bg {
    width: 130px;
    height: 8px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    overflow: hidden;
}

#pressure-bar-fill {
    height: 100%;
    width: 100%;
    background: var(--pressure-green);
    border-radius: 4px;
    transition: width 0.6s ease, background-color 0.6s ease;
}

/* 审讯开始时高亮提醒 */
#pressure-meter.highlight {
    animation: defenseHighlight 2s ease-out;
    border-color: var(--gold);
}
@keyframes defenseHighlight {
    0%   { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.6); transform: scale(1); }
    15%  { box-shadow: 0 0 16px 4px rgba(201, 168, 76, 0.5); transform: scale(1.08); }
    40%  { box-shadow: 0 0 8px 2px rgba(201, 168, 76, 0.3); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); transform: scale(1); }
}

/* ===== 击穿演出 ===== */
#breakthrough-overlay {
    position: absolute;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: breakthroughFlash 0.5s ease-out;
}

@keyframes breakthroughFlash {
    0% { background: rgba(201, 168, 76, 0.6); }
    100% { background: rgba(0, 0, 0, 0.9); }
}

#breakthrough-text {
    color: var(--gold);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    animation: btTextReveal 0.8s ease-out 0.3s both;
}

@keyframes btTextReveal {
    from { transform: scale(1.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== 转场遮罩 ===== */
#transition-mask {
    position: absolute;
    inset: 0;
    z-index: 30;
    background: #000;
    transition: opacity 0.6s ease;
}

.mask-fade-in { opacity: 1 !important; }
.mask-fade-out { opacity: 0 !important; }

/* ===== 开始画面 ===== */
#title-screen {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: url('../img/cover.webp') center center / cover no-repeat;
    background-color: #f4e8c1;
    overflow: hidden;
}

/* --- 案卷卷轴 --- */
#scroll-wrap {
    position: absolute;
    inset: 0;
    z-index: 52;
    pointer-events: none;
}

#scroll-left, #scroll-right {
    position: absolute;
    top: 0;
    width: 52%;
    height: 100%;
    background: linear-gradient(to bottom, #e0d4b8, #f4e8c1 20%, #f4e8c1 80%, #e0d4b8);
    z-index: 52;
}

#scroll-left {
    left: 0;
    border-right: 3px solid #c9a84c;
    animation: scrollOpenLeft 1.8s ease-in-out 1s forwards;
}

#scroll-right {
    right: 0;
    border-left: 3px solid #c9a84c;
    animation: scrollOpenRight 1.8s ease-in-out 1s forwards;
}

/* 卷轴纹理线 */
#scroll-left::before, #scroll-right::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 40px,
        rgba(160, 130, 80, 0.08) 40px,
        rgba(160, 130, 80, 0.08) 41px
    );
}

@keyframes scrollOpenLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-105%); }
}

@keyframes scrollOpenRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(105%); }
}

/* --- 印泥分开动画 --- */
#seal-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 53;
    display: flex;
    opacity: 0;
    animation: sealAppear 0.6s ease-out 0.1s forwards, sealFade 0.5s ease-in 2.4s forwards;
}

#seal-left, #seal-right {
    transition: transform 1s ease-in-out;
}

#seal-left {
    animation: sealSplitLeft 1.2s ease-in-out 0.7s forwards;
}

#seal-right {
    animation: sealSplitRight 1.2s ease-in-out 0.7s forwards;
}

@keyframes sealAppear {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes sealSplitLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-30px); }
}

@keyframes sealSplitRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(30px); }
}

@keyframes sealFade {
    to { opacity: 0; }
}

/* --- 标题文字（竖排 · 顶部留白区） --- */
#title-content {
    position: absolute;
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 51;
    text-align: center;
    opacity: 0;
    animation: titleContentReveal 1.2s ease-out 2.5s forwards;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
}

@keyframes titleContentReveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

#game-title {
    font-size: 54px;
    color: #1f1208;
    letter-spacing: 16px;
    text-shadow:
        0 0 10px rgba(244, 232, 193, 0.95),
        0 0 22px rgba(244, 232, 193, 0.75),
        0 1px 0 rgba(244, 232, 193, 0.9);
    writing-mode: vertical-rl;
    display: inline-block;
    margin-bottom: 0;
    font-weight: 600;
}

#title-divider {
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, transparent, #8a6d2b, transparent);
    margin: 0;
    align-self: stretch;
    animation: dividerGrow 0.8s ease-out 3.2s forwards;
}

@keyframes dividerGrow {
    to { height: 58px; }
}

#case-title {
    font-size: 15px;
    color: #4a3a28;
    letter-spacing: 5px;
    font-weight: 500;
    writing-mode: vertical-rl;
    display: inline-block;
    opacity: 0;
    text-shadow:
        0 0 6px rgba(244, 232, 193, 0.95),
        0 0 12px rgba(244, 232, 193, 0.7);
    animation: fadeIn 0.8s ease-out 3.6s forwards;
}

/* --- 底部按钮组：落在地面墨痕下方的干净区 --- */
#title-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4.5%;
    z-index: 51;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    opacity: 0;
    background: none;
    animation: fadeIn 1s ease-out 3.8s forwards;
}

/* 极轻的底部渐隐——只给按钮留出一条干净的宣纸底，不遮挡门楼 */
#title-screen::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16%;
    background: linear-gradient(
        to bottom,
        rgba(244, 232, 193, 0) 0%,
        rgba(244, 232, 193, 0.35) 45%,
        rgba(244, 232, 193, 0.75) 100%
    );
    z-index: 50;
    pointer-events: none;
}

/* 顶部轻柔留白加强——让标题更清晰地浮在宣纸上 */
#title-screen::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 32%;
    background: linear-gradient(
        to bottom,
        rgba(244, 232, 193, 0.55) 0%,
        rgba(244, 232, 193, 0.25) 55%,
        rgba(244, 232, 193, 0) 100%
    );
    z-index: 50;
    pointer-events: none;
}

#api-key-area {
    margin-bottom: 16px;
    width: 75%;
    max-width: 300px;
}

#api-key-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #a08050;
    border-radius: 4px;
    padding: 10px 14px;
    color: #2a1a0a;
    font-family: var(--font-ui);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

#api-key-input:focus {
    border-color: #6a4a2a;
}

#api-key-input::placeholder {
    color: #8a7a66;
}

#api-status {
    margin-top: 6px;
    font-size: 12px;
    font-family: var(--font-ui);
    min-height: 18px;
    color: #5a4a36;
}

.api-ok { color: #4a8c5c; }
.api-err { color: var(--accent-red-bright); }

#continue-btn {
    background: rgba(248, 238, 208, 0.95);
    border: 1px solid #6a4a2a;
    border-radius: 2px;
    padding: 13px 44px;
    color: #2a1a0a;
    font-family: var(--font-main);
    font-size: 17px;
    letter-spacing: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    backdrop-filter: blur(3px);
    box-shadow:
        0 3px 12px rgba(42, 26, 10, 0.2),
        inset 0 0 0 1px rgba(244, 232, 193, 0.6);
}
#continue-btn:hover {
    background: rgba(250, 240, 212, 0.99);
    box-shadow:
        0 4px 16px rgba(42, 26, 10, 0.28),
        inset 0 0 0 1px rgba(244, 232, 193, 0.8);
}

#start-btn {
    background: rgba(248, 238, 208, 0.95);
    border: 1px solid #6a4a2a;
    border-radius: 2px;
    padding: 13px 44px;
    color: #2a1a0a;
    font-family: var(--font-main);
    font-size: 17px;
    letter-spacing: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    box-shadow:
        0 3px 12px rgba(42, 26, 10, 0.2),
        inset 0 0 0 1px rgba(244, 232, 193, 0.6);
}

#start-btn:hover {
    background: rgba(250, 240, 212, 0.99);
    box-shadow:
        0 4px 16px rgba(42, 26, 10, 0.28),
        inset 0 0 0 1px rgba(244, 232, 193, 0.8);
}

#subtitle {
    margin-top: 10px;
    color: #6a5a46;
    font-size: 11px;
    letter-spacing: 3px;
    font-family: var(--font-ui);
    opacity: 0.85;
    text-shadow: 0 0 6px rgba(244, 232, 193, 0.85);
}

/* ===== 结局尾按钮组（重新开始 + 返回主菜单）===== */
#endgame-btns {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 80%;
    max-width: 360px;
    opacity: 0;
}
#endgame-btns.show {
    animation: fadeIn 0.8s ease-out 1s forwards;
}
.endgame-btn {
    display: block;
    width: 100%;
    border-radius: 6px;
    padding: 13px 24px;
    font-family: var(--font-main);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.endgame-btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    border: none;
    color: var(--dark-bg);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 5px;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}
.endgame-btn-primary:hover {
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.5);
    transform: scale(1.03);
}
.endgame-btn-primary:active { transform: scale(0.97); }
.endgame-btn-secondary {
    background: rgba(15, 10, 5, 0.55);
    border: 1px solid rgba(201, 168, 76, 0.45);
    color: var(--gold);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.endgame-btn-secondary:hover {
    background: rgba(201, 168, 76, 0.16);
    border-color: var(--gold);
    transform: scale(1.03);
}
.endgame-btn-secondary:active { transform: scale(0.97); }

/* ===== 指认凶手面板 ===== */
#guess-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);   /* 屏幕完全居中 */
    width: 92%;
    max-width: 520px;
    z-index: 15;
    background: var(--dialog-bg);
    border: 1px solid var(--gold-dim);
    border-radius: 4px;
    padding: 20px 18px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.4s ease-out;
}

#guess-prompt {
    font-size: 15px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 14px;
    text-align: center;
}

#guess-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#guess-input {
    width: 100%;
    background: rgba(244, 232, 193, 0.08);
    border: 1px solid var(--gold-dim);
    border-radius: 4px;
    padding: 10px 14px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

#guess-input:focus {
    border-color: var(--gold);
}

#guess-input::placeholder {
    color: var(--text-dim);
}

#guess-button-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#guess-submit {
    flex: 1;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    border: none;
    border-radius: 4px;
    padding: 11px 20px;
    color: var(--dark-bg);
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 3px;
    transition: transform 0.1s, opacity 0.2s;
}

#guess-submit:hover { opacity: 0.9; }
#guess-submit:active { transform: scale(0.97); }

/* 升堂结案 / 二级按钮——红木金字，与"确认之人"金底分庭抗礼 */
#guess-secondary-btn {
    flex: 1;
    background: linear-gradient(135deg, #6b2e2e 0%, #4a1f1f 100%);
    border: 1px solid #8a4a3a;
    border-radius: 4px;
    padding: 11px 20px;
    color: #f0d8a8;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 3px;
    transition: transform 0.1s, opacity 0.2s;
}

#guess-secondary-btn:hover { opacity: 0.9; background: linear-gradient(135deg, #7a3838 0%, #582525 100%); }
#guess-secondary-btn:active { transform: scale(0.97); }

/* ===== 罪状书面板 ===== */
#indictment-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(88%, 380px);
    background: rgba(15, 10, 5, 0.96);
    border: 1px solid var(--gold-dim);
    border-radius: 8px;
    padding: 24px 20px;
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.35s ease-out;
}
#indictment-panel.visible { opacity: 1; }

#indictment-prompt {
    font-size: 15px;
    color: var(--gold);
    letter-spacing: 2px;
    text-align: center;
}


#indictment-textarea {
    width: 100%;
    min-height: 120px;
    max-height: 200px;
    background: rgba(244, 232, 193, 0.12);
    border: 1px solid var(--gold-dim);
    color: var(--text-color);
    border-radius: 4px;
    padding: 12px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.8;
    resize: vertical;
    box-sizing: border-box;
}
#indictment-textarea:focus { border-color: var(--gold); outline: none; }
#indictment-textarea::placeholder { color: var(--text-dim); }

#indictment-btn-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#indictment-submit {
    flex: 1;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    border: none;
    border-radius: 4px;
    padding: 11px 20px;
    color: var(--dark-bg);
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 3px;
    transition: transform 0.1s, opacity 0.2s;
}
#indictment-submit:hover { opacity: 0.9; }
#indictment-submit:active { transform: scale(0.97); }
#indictment-submit:disabled { opacity: 0.5; cursor: wait; }

#indictment-skip {
    flex: 1;
    background: linear-gradient(135deg, #6b2e2e 0%, #4a1f1f 100%);
    border: 1px solid #8a4a3a;
    border-radius: 4px;
    padding: 11px 20px;
    color: #f0d8a8;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 3px;
    transition: transform 0.1s, opacity 0.2s;
}
#indictment-skip:hover { opacity: 0.9; }
#indictment-skip:active { transform: scale(0.97); }

/* ===== 定场诗 ===== */
#poem-screen {
    position: absolute;
    inset: 0;
    z-index: 55;
    background: linear-gradient(
        to bottom,
        #050302 0%,
        #1a1410 20%,
        #1a1410 80%,
        #050302 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    cursor: pointer;
}

#poem-allusion {
    text-align: center;
    opacity: 0;
    animation: poemFadeIn 1.5s ease-out 0.5s forwards;
}

#allusion-source {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 3px;
    margin-bottom: 12px;
}

#allusion-text {
    font-size: 14px;
    color: var(--gold-dim);
    letter-spacing: 2px;
    line-height: 2;
    max-width: 80%;
    margin: 0 auto;
    font-style: italic;
}

#poem-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 0;
}

.poem-line {
    font-size: 20px;
    color: var(--gold);
    letter-spacing: 4px;
    line-height: 2;
    opacity: 0;
    transform: translateY(12px);
    text-shadow: 0 1px 10px rgba(201, 168, 76, 0.2);
}

.poem-line:nth-child(2n+3) {
    margin-top: 16px;
}

.poem-line.poem-line-show {
    animation: poemLineReveal 0.8s ease-out forwards;
}

@keyframes poemLineReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes poemFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#poem-skip {
    position: absolute;
    bottom: 40px;
    color: var(--text-dim);
    font-size: 13px;
    letter-spacing: 4px;
    font-family: var(--font-ui);
    opacity: 0;
    animation: poemFadeIn 1s ease-out 8s forwards;
}

/* ===== 屏幕震动 ===== */
.screen-shake {
    animation: screenShake 0.5s ease-in-out;
}

@keyframes screenShake {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-6px, 3px); }
    20% { transform: translate(6px, -3px); }
    30% { transform: translate(-4px, 2px); }
    40% { transform: translate(4px, -2px); }
    50% { transform: translate(-2px, 1px); }
}

/* ===== 通用 ===== */
.hidden { display: none !important; }

.fade-in { animation: fadeIn 0.4s ease-out; }
.fade-out { animation: fadeOut 0.4s ease-out forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ===== 对话框内审讯模式下的狄仁杰发言 ===== */
.di-line {
    color: var(--gold);
    font-weight: 700;
}

/* ===== 加载指示器 ===== */
.typing-indicator {
    display: inline-block;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--text-dim);
    border-radius: 50%;
    margin: 0 2px;
    animation: typingDot 1s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

/* ===== 新线索获得提示 ===== */
#new-evidence-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 22;
    background: rgba(10, 6, 3, 0.95);
    border: 2px solid var(--gold);
    border-radius: 6px;
    padding: 20px 30px;
    text-align: center;
    animation: toastIn 0.5s ease-out;
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}

#new-evidence-toast .toast-title {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

#new-evidence-toast .toast-content {
    color: var(--text-color);
    font-size: 16px;
    letter-spacing: 2px;
}

@keyframes toastIn {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* 陆家罪状专用 toast——血色边、暗调，区别于普通线索 */
#new-evidence-toast.toast-lu-charge {
    border-color: #8a3a3a;
    box-shadow: 0 0 30px rgba(138, 58, 58, 0.45);
    background: rgba(18, 6, 6, 0.96);
}
#new-evidence-toast.toast-lu-charge .toast-title {
    color: #c8746b;
    letter-spacing: 5px;
}
#new-evidence-toast.toast-lu-charge .toast-content {
    color: #d6c0b0;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 2px;
}

/* ===== 深查面板 ===== */
#investigate-panel {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

#investigate-panel-inner {
    width: 88%;
    max-height: 75vh;
    background: var(--dialog-bg);
    border: 1px solid var(--gold-dim);
    border-radius: 6px;
    padding: 24px 18px;
    overflow-y: auto;
}

#investigate-panel-inner h3 {
    color: var(--gold);
    font-size: 18px;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-dim);
}

#investigate-hint {
    color: #c9a84c;
    font-size: 13px;
    text-align: center;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: rgba(201, 168, 76, 0.08);
    border-radius: 4px;
    border: 1px dashed rgba(201, 168, 76, 0.3);
}

.contradiction-item {
    background: rgba(244, 232, 193, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.contradiction-item:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold-dim);
}

.contradiction-item.investigated {
    opacity: 0.6;
    cursor: default;
}

.contradiction-item.investigated:hover {
    background: rgba(244, 232, 193, 0.05);
    border-color: rgba(201, 168, 76, 0.2);
}

.contradiction-title {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contradiction-summary {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.4;
}

.contradiction-status {
    color: var(--text-dim);
    font-size: 11px;
    margin-top: 6px;
    text-align: right;
}

.contradiction-status.clickable {
    color: var(--gold);
    cursor: pointer;
}

/* ===== 防线进度条状态 ===== */
.defense-stalled {
    animation: defenseBlink 1.2s ease-in-out infinite;
}

@keyframes defenseBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.defense-truth {
    box-shadow: 0 0 8px rgba(139, 32, 32, 0.6), 0 0 16px rgba(139, 32, 32, 0.3);
    animation: defenseGlow 2s ease-in-out infinite;
}

@keyframes defenseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(139, 32, 32, 0.6); }
    50% { box-shadow: 0 0 16px rgba(201, 64, 64, 0.8), 0 0 24px rgba(201, 64, 64, 0.4); }
}

/* ===== 返回上一节点按钮 ===== */
/* ===== 静音按钮 ===== */
#mute-btn {
    position: absolute;
    top: 44px;
    left: 8px;
    z-index: 50;
    background: rgba(15, 10, 5, 0.5);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    line-height: 36px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.2s;
}
#mute-btn:hover {
    background: rgba(15, 10, 5, 0.8);
    border-color: var(--gold);
}

#btn-back {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 15;
    background: rgba(15, 10, 5, 0.6);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 4px;
    padding: 6px 12px;
    color: var(--text-dim);
    font-size: 12px;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.2s;
}
#btn-back:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(15, 10, 5, 0.8);
}

/* ===================================
 * 辩护场景 · 县衙临堂 (Defense Court)
 * =================================== */
#defense-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 14;
    padding: 14px 4% 0;
    box-sizing: border-box;
}

/* 顶部一排铜铃，4 或 5 盏 */
#defense-bells {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    pointer-events: none;
}

.defense-bell {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold-dim);
    background: radial-gradient(circle at 30% 30%, rgba(244, 200, 100, 0.35), rgba(122, 80, 30, 0.5));
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.25), inset 0 -3px 6px rgba(0,0,0,0.4);
    position: relative;
    transition: all 0.4s ease;
}

.defense-bell::after {
    content: attr(data-num);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(50, 30, 10, 0.7);
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-main);
}

.defense-bell.active {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 96, 0.7), inset 0 -3px 6px rgba(0,0,0,0.4);
    animation: bellPulse 1.6s ease-in-out infinite;
    transform: scale(1.08);
}

.defense-bell.cleared {
    border-color: #4a8c4a;
    background: radial-gradient(circle at 30% 30%, rgba(120, 200, 120, 0.45), rgba(40, 80, 40, 0.6));
    box-shadow: 0 0 14px rgba(80, 200, 100, 0.5), inset 0 -3px 6px rgba(0,0,0,0.3);
    transform: scale(0.95);
}

.defense-bell.cleared::after {
    content: '✓';
    color: #d8f0d0;
    font-size: 22px;
}

@keyframes bellPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 96, 0.7), inset 0 -3px 6px rgba(0,0,0,0.4); }
    50% { box-shadow: 0 0 32px rgba(255, 230, 130, 1.0), inset 0 -3px 6px rgba(0,0,0,0.4); }
}

/* 当前指控陈述卡片 */
#defense-charge {
    background: linear-gradient(180deg, rgba(80, 24, 24, 0.92), rgba(45, 12, 12, 0.95));
    border: 2px solid #8a4a3a;
    border-radius: 6px;
    padding: 14px 20px;
    pointer-events: auto;
    box-shadow: 0 4px 18px rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}

#defense-charge-label {
    color: #c8746b;
    font-size: 12px;
    letter-spacing: 6px;
    margin-bottom: 8px;
    text-align: center;
    text-transform: none;
}

#defense-charge-text {
    color: #f0d8a8;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 1px;
    font-family: var(--font-main);
    text-align: center;
}

/* 元芳推断式提示 */
#defense-yuanfang-hint {
    margin-top: 10px;
    background: linear-gradient(180deg, rgba(20, 30, 50, 0.92), rgba(10, 18, 32, 0.95));
    border: 1px solid var(--gold-dim);
    border-radius: 6px;
    padding: 10px 16px;
    pointer-events: auto;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    animation: hintFadeIn 0.4s ease-out;
}

.dyf-label {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 4px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: top;
}

#defense-yuanfang-text {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 1px;
    font-family: var(--font-main);
    display: inline-block;
    max-width: calc(100% - 70px);
}

@keyframes hintFadeIn {
    from { transform: translateY(-6px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 反驳成功 toast */
#defense-toast {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    background: rgba(40, 80, 40, 0.92);
    border: 2px solid #80c080;
    border-radius: 6px;
    padding: 16px 32px;
    color: #f4ffe8;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 6px;
    box-shadow: 0 0 30px rgba(120, 200, 120, 0.6);
    animation: toastPop 1.4s ease-out forwards;
    pointer-events: none;
}

@keyframes toastPop {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    20% { transform: translateX(-50%) scale(1.08); opacity: 1; }
    35% { transform: translateX(-50%) scale(1); opacity: 1; }
    80% { transform: translateX(-50%) scale(1); opacity: 1; }
    100% { transform: translateX(-50%) scale(0.95); opacity: 0; }
}

/* ============= 时辰对照（古今时辰科普）============= */
#hour-btn {
    position: absolute;     /* 相对 #game-container（max-width:500px 居中），不再 fixed 跑到黑边里 */
    right: 5%;
    bottom: 9%;             /* 不贴底 — 与 dialog box (bottom 18%) 之间留缓冲 */
    min-width: 50px;
    height: 32px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid #c9b886;
    background: rgba(20, 14, 8, 0.85);
    color: #e8d49c;
    font-family: var(--font-main);
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
    line-height: 1;
}
#hour-btn:hover {
    background: rgba(40, 30, 20, 0.95);
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(212, 192, 138, 0.45);
}
#hour-btn.pulse {
    animation: hourPulse 1.4s ease-in-out 4;
}
@keyframes hourPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 212, 156, 0.7); transform: scale(1); }
    50%      { box-shadow: 0 0 0 12px rgba(232, 212, 156, 0); transform: scale(1.18); }
}

#hour-panel {
    position: absolute;     /* 同上 */
    right: 5%;
    bottom: calc(9% + 42px);   /* 在按钮上方弹出 */
    width: 280px;
    max-width: 80vw;
    max-height: 75vh;
    background: rgba(20, 14, 8, 0.96);
    border: 1.5px solid #c9b886;
    border-radius: 8px;
    z-index: 60;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    animation: hourPanelIn 0.25s ease-out;
}
@keyframes hourPanelIn {
    0%   { opacity: 0; transform: translateY(8px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
#hour-panel-inner {
    padding: 14px 14px 12px;
    max-height: 75vh;
    overflow-y: auto;
    position: relative;
}
#hour-panel h3 {
    color: #e8d49c;
    font-size: 15px;
    margin: 0 0 10px 0;
    text-align: center;
    border-bottom: 1px solid rgba(201, 184, 134, 0.45);
    padding-bottom: 8px;
    font-weight: 500;
    letter-spacing: 2px;
}
#close-hour {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 1px solid #c9b886;
    color: #c9b886;
    padding: 1px 8px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
}
#close-hour:hover { background: rgba(201, 184, 134, 0.15); }

.hour-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}
.hour-row {
    display: grid;
    grid-template-columns: 36px 96px 1fr;
    align-items: center;
    padding: 4px 6px;
    color: #9c8a64;
    font-size: 12.5px;
    border-radius: 3px;
    line-height: 1.4;
}
.hour-row.hour-key {
    color: #f0d878;
    background: rgba(160, 110, 50, 0.22);
    font-weight: 600;
}
.hour-name {
    font-weight: bold;
    letter-spacing: 1px;
}
.hour-time {
    font-family: 'Courier New', monospace;
    font-size: 11.5px;
}
.hour-note {
    font-size: 11.5px;
    color: inherit;
    opacity: 0.92;
}
.hour-tip {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(201, 184, 134, 0.3);
    color: #8c7c58;
    font-size: 11px;
    text-align: center;
    letter-spacing: 1px;
}

/* —— 时辰对照·移动端适配 —— */
@media (max-width: 480px) {
    #hour-btn {
        min-width: 46px;
        height: 28px;
        padding: 0 10px;
        font-size: 12px;
        letter-spacing: 1.5px;
        right: 5%;
        bottom: 9%;
    }
    #hour-panel {
        width: 88vw;
        right: 6vw;
        bottom: calc(9% + 38px);
        max-height: 70vh;
    }
    #hour-panel-inner { padding: 12px 12px 10px; max-height: 70vh; }
    #hour-panel h3 { font-size: 14px; letter-spacing: 1px; }
    .hour-row {
        grid-template-columns: 32px 80px 1fr;
        font-size: 11.5px;
        padding: 3px 4px;
        gap: 4px;
    }
    .hour-time { font-size: 10.5px; }
    .hour-note { font-size: 11px; }
    .hour-tip { font-size: 10px; }
}
@media (max-width: 360px) {
    #hour-panel { width: 92vw; right: 4vw; }
    .hour-row {
        grid-template-columns: 28px 72px 1fr;
        font-size: 10.5px;
    }
    .hour-time { font-size: 10px; }
}

/* ===== 一级菜单（汇总返回主菜单 / 返回本节 / 静音）===== */
/* 旧按钮全部隐藏，由 #menu-panel 接管 UI（保留 DOM 供 JS 引用）*/
#mute-btn,
#back-launcher,
#btn-back { display: none !important; }

#menu-btn {
    position: absolute;
    /* 避开 TapTap 小程序顶栏胶囊（实测 ~100px，含 safe-area）+ iOS Safari 灵动岛/刘海 */
    top: calc(env(safe-area-inset-top, 0px) + 100px);
    right: 12px;
    z-index: 60;
    height: 36px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.45);
    background: rgba(15, 10, 5, 0.7);
    color: #c9a84c;
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1;
    letter-spacing: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
#menu-btn:hover {
    background: rgba(40, 30, 20, 0.85);
    border-color: var(--gold);
    transform: scale(1.04);
}
#menu-btn:active { transform: scale(0.96); }

#menu-panel {
    position: absolute;
    /* 按钮下方留间隙（按钮 top + 36 高 + 8 间距）*/
    top: calc(env(safe-area-inset-top, 0px) + 100px);
    right: 12px;
    z-index: 60;
    background: rgba(15, 10, 5, 0.95);
    border: 1px solid rgba(201, 168, 76, 0.45);
    border-radius: 8px;
    padding: 6px;
    min-width: 168px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
    animation: menuFadeIn 0.18s ease-out;
}
#menu-panel.hidden { display: none !important; }
@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: #d8c08c;
    font-family: var(--font-main);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    letter-spacing: 1.5px;
    transition: background 0.15s ease, color 0.15s ease;
}
.menu-item:hover {
    background: rgba(201, 168, 76, 0.16);
    color: var(--gold);
}
.menu-item.hidden { display: none !important; }
.menu-item + .menu-item { margin-top: 2px; }

/* ===== 章节选择（通关后解锁）===== */
#chapter-btn {
    background: rgba(244, 232, 193, 0.55);
    border: 1px solid #6a4a2a;
    border-radius: 4px;
    padding: 10px 36px;
    color: #2a1a0a;
    font-family: var(--font-main);
    font-size: 14px;
    letter-spacing: 6px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
}
#chapter-btn:hover {
    background: rgba(244, 232, 193, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
#chapter-btn.chapter-btn-locked {
    opacity: 0.72;
    color: rgba(42, 26, 10, 0.6);
    border-color: rgba(106, 74, 42, 0.55);
    cursor: not-allowed;
    box-shadow: none;
}
#chapter-btn.chapter-btn-locked:hover {
    background: rgba(244, 232, 193, 0.55);
    box-shadow: none;
}
#chapter-panel {
    position: absolute;
    inset: 0;
    background: rgba(20, 15, 10, 0.96);
    z-index: 60;
    padding: 50px 18px 30px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.chapter-panel-title {
    color: var(--gold);
    text-align: center;
    font-size: 18px;
    letter-spacing: 8px;
    margin-bottom: 20px;
    font-family: var(--font-main);
}
#chapter-list {
    width: 100%;
    max-width: 320px;
    flex: 1;
    overflow-y: auto;
}
.chapter-item {
    padding: 12px 18px;
    margin: 8px auto;
    border: 1px solid var(--gold-dim);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 2px;
}
.chapter-item.unlocked {
    color: var(--gold);
    background: rgba(60, 40, 20, 0.5);
}
.chapter-item.unlocked:hover {
    background: rgba(120, 80, 40, 0.6);
    border-color: var(--gold);
    transform: translateY(-1px);
}
.chapter-item.locked {
    color: #5a4a38;
    background: transparent;
    cursor: not-allowed;
    border-color: rgba(138, 109, 43, 0.3);
}
#chapter-close {
    display: block;
    margin: 18px auto 0 auto;
    padding: 8px 24px;
    background: transparent;
    border: 1px solid var(--gold-dim);
    color: var(--text-dim);
    font-family: var(--font-main);
    font-size: 12px;
    letter-spacing: 4px;
    cursor: pointer;
    border-radius: 2px;
}
#chapter-close:hover {
    color: var(--gold);
    border-color: var(--gold);
}


/* ============================================================
   第三案 · 悬壶双鸩 — 三件套 UI（钱袋 / 行囊 / 线索）
   纯 CSS 古风皮肤；美术素材到位后替换各 background-image 即可。
   ============================================================ */
:root{
  --c3-ink:#2e2317; --c3-gold:#c9a55a; --c3-gold-bright:#f0cd72;
  --c3-paper-1:#efe6cf; --c3-paper-2:#e2d3ad; --c3-paper-edge:#cdb988;
  --c3-lacquer-1:#36281a; --c3-lacquer-2:#241a10; --c3-cinnabar:#9e3b2e;
}

/* —— 顶部 HUD：三枚漆木牌 —— */
#c3-hud{
  position:absolute; top:12px; left:12px;
  display:flex; gap:7px; align-items:stretch;
  z-index:60; font-family:"KaiTi","STKaiti",serif;
}
#c3-hud.hidden{display:none;}
#c3-purse,#c3-bag-btn,#c3-clue-btn{
  display:flex; align-items:center; gap:4px;
  background:linear-gradient(160deg,var(--c3-lacquer-1),var(--c3-lacquer-2));
  border:1px solid var(--c3-gold);
  box-shadow:inset 0 0 0 1px rgba(240,205,114,.18), 0 2px 6px rgba(0,0,0,.4);
  color:#e6d6a6; border-radius:7px;
  padding:5px 11px; font-size:13px; letter-spacing:.5px; white-space:nowrap;
}
#c3-purse{cursor:default;}
#c3-purse b{color:var(--c3-gold-bright); font-size:15px; margin:0 1px;}
#c3-bag-btn,#c3-clue-btn{cursor:pointer; transition:filter .15s, transform .1s;}
#c3-bag-btn:hover,#c3-clue-btn:hover{filter:brightness(1.28); color:var(--c3-gold-bright);}
#c3-bag-btn:active,#c3-clue-btn:active{transform:translateY(1px);}

/* —— 行囊 / 线索：卷宗册页 —— */
#c3-panel{position:absolute; inset:0; background:rgba(8,5,2,.66); z-index:200;
  display:flex; align-items:center; justify-content:center;}
#c3-panel.hidden{display:none;}
#c3-panel-inner{
  position:relative; width:84%; max-width:380px; max-height:74%;
  background:linear-gradient(180deg,var(--c3-paper-1),var(--c3-paper-2));
  border:1px solid var(--c3-paper-edge);
  box-shadow:0 0 0 6px rgba(54,40,26,.92), 0 12px 48px rgba(0,0,0,.6);
  border-radius:3px; display:flex; flex-direction:column;
  padding:20px 20px 16px; color:var(--c3-ink);
  font-family:"KaiTi","STKaiti",serif;
}
#c3-panel-inner::before,#c3-panel-inner::after{
  content:""; position:absolute; width:17px; height:17px; pointer-events:none;
  border-color:var(--c3-gold); border-style:solid;
}
#c3-panel-inner::before{top:6px; left:6px; border-width:2px 0 0 2px;}
#c3-panel-inner::after{bottom:6px; right:6px; border-width:0 2px 2px 0;}
#c3-panel-title{
  font-size:20px; text-align:center; letter-spacing:5px; color:#3a2c18;
  padding-bottom:9px; margin-bottom:10px; border-bottom:2px solid var(--c3-cinnabar);
}
#c3-panel-list{overflow-y:auto; flex:1; padding-right:4px;}
.c3-entry{padding:9px 2px; border-bottom:1px dashed rgba(120,90,40,.45);}
.c3-entry:last-child{border-bottom:none;}
.c3-entry-name{color:#5a3a22; font-size:15.5px; margin-bottom:4px; font-weight:600;}
.c3-entry-name::before{content:"◈ "; color:var(--c3-cinnabar);}
.c3-entry-desc{color:#4a3c2a; font-size:13px; line-height:1.62;}
.c3-empty{color:#8a7550; text-align:center; padding:30px 0; font-size:14.5px;}
#c3-panel-close{
  margin-top:12px; align-self:center;
  background:linear-gradient(160deg,#a8412f,#86301f); color:#f3e0c0;
  border:1px solid #d8a060; border-radius:4px;
  padding:6px 26px; cursor:pointer; font-family:inherit; font-size:14.5px; letter-spacing:3px;
  box-shadow:0 2px 6px rgba(0,0,0,.3);
}
#c3-panel-close:hover{filter:brightness(1.12);}

/* —— 钱财/物品 提示 toast —— */
#c3-toast{
  position:absolute; top:54px; left:50%; transform:translateX(-50%) translateY(-8px);
  background:linear-gradient(160deg,var(--c3-lacquer-1),var(--c3-lacquer-2));
  border:1px solid var(--c3-gold); color:var(--c3-gold-bright);
  border-radius:6px; padding:7px 18px; font-size:13.5px;
  font-family:"KaiTi","STKaiti",serif; letter-spacing:.5px;
  box-shadow:0 4px 14px rgba(0,0,0,.45);
  z-index:210; opacity:0; pointer-events:none; white-space:nowrap;
  transition:opacity .3s, transform .3s;
}
#c3-toast.hidden{display:none;}
#c3-toast.c3-toast-show{opacity:1; transform:translateX(-50%) translateY(0);}

/* —— 弄盘缠：信笺 —— */
#c3-earn{position:absolute; inset:0; background:rgba(8,5,2,.7); z-index:200;
  display:flex; align-items:center; justify-content:center;}
#c3-earn.hidden{display:none;}
#c3-earn-inner{
  position:relative; width:86%; max-width:390px;
  background:linear-gradient(180deg,var(--c3-paper-1),var(--c3-paper-2));
  border:1px solid var(--c3-paper-edge);
  box-shadow:0 0 0 6px rgba(54,40,26,.92), 0 12px 48px rgba(0,0,0,.6);
  border-radius:3px; padding:20px 18px; color:var(--c3-ink);
  font-family:"KaiTi","STKaiti",serif;
}
#c3-earn-title{color:#4a3826; font-size:14.5px; line-height:1.7; margin-bottom:13px;}
#c3-earn-reply{
  color:#5a3a22; font-size:14px; line-height:1.65;
  background:rgba(158,59,46,.08); border-left:3px solid var(--c3-cinnabar);
  padding:8px 11px; margin-bottom:13px; border-radius:2px;
}
#c3-earn-reply.hidden{display:none;}
#c3-earn-input{
  width:100%; box-sizing:border-box;
  background:rgba(255,250,235,.72); border:1px solid var(--c3-paper-edge);
  color:#3a2c18; border-radius:3px; padding:9px;
  font-size:14px; font-family:inherit; resize:none; margin-bottom:11px;
}
#c3-earn-input::placeholder{color:#9a8560;}
#c3-earn-send{
  width:100%; background:linear-gradient(160deg,#a8412f,#86301f); color:#f3e0c0;
  border:1px solid #d8a060; border-radius:4px;
  padding:9px 0; cursor:pointer; font-family:inherit; font-size:15px; letter-spacing:2px;
  box-shadow:0 2px 6px rgba(0,0,0,.3);
}
#c3-earn-send:hover{filter:brightness(1.12);}
#c3-earn-send:disabled{opacity:.6; cursor:default; filter:none;}
