/* La Tombe du chacal — thème chambre funéraire (sable, or, lapis) */
:root {
    --tp-bg: radial-gradient(circle at 50% 0%, #3b2a10 0%, #191207 70%);
    --tp-text: #faedd0;
    --tp-muted: #d9c39a;
    --tp-accent: #e0a927;
    --tp-accent-2: #f3d082;
    --tp-card: rgba(41, 30, 12, 0.93);
    --tp-border: rgba(224, 169, 39, 0.35);
    --tp-header-bg: rgba(25, 18, 7, 0.9);
    --tp-font-head: 'Cinzel', Georgia, serif;
    --tp-font-body: 'Nunito', system-ui, sans-serif;
    --tp-play-bg: linear-gradient(135deg, #e0a927, #1e3a8a);
    --tp-play-ink: #fff8e7;
    --tp-notebook-bg: rgba(30, 58, 138, 0.18);
    --tp-notebook-border: #6b8cff;
    --tp-notebook-title: #b9c8ff;
}
.tk-hero, .glyph, .tk-secret-bit, .eg-tab-num { font-family: 'Noto Sans Egyptian Hieroglyphs', 'Segoe UI Historic', serif; }
.eg {
    --eg-card: rgba(41, 30, 12, 0.95);
    --eg-card-2: rgba(243, 208, 130, 0.05);
    --eg-text: #faedd0;
    --eg-muted: #d9c39a;
    --eg-accent: #e0a927;
    --eg-accent-ink: #191207;
    --eg-border: rgba(224, 169, 39, 0.28);
    --eg-ok: #86efac;
    --eg-err: #fca5a5;
    --eg-radius: 10px;
    --eg-font-head: 'Cinzel', Georgia, serif;
    --eg-font-body: 'Nunito', system-ui, sans-serif;
    --eg-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}
.eg .eg-input { background: #fff8e7; color: #2a1c08; }
.eg .eg-room-title { color: var(--eg-accent); font-size: clamp(1.3rem, 4.5vw, 1.9rem); }
.small-glyph { font-size: 2.1rem; line-height: 1; }

/* Salle 1 : cartouches */
.sarco { background: linear-gradient(180deg, #c9a45c, #a8823c); color: #2a1c08; border-radius: 14px; padding: 0.8rem 1rem 1.2rem; margin: 0.8rem 0; box-shadow: inset 0 0 30px rgba(60, 40, 10, 0.5); }
.sarco-cap { margin: 0 0 0.6rem; font-size: 0.85rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.cartouches { display: flex; justify-content: center; gap: clamp(1rem, 6vw, 3rem); flex-wrap: wrap; }
.cartouche-col { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.cartouche { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.9rem 0.6rem 1.4rem; border: 3px solid #2a1c08; border-radius: 40px; position: relative; background: rgba(255, 248, 231, 0.35); }
.cartouche::after { content: ''; position: absolute; bottom: -10px; left: 20%; right: 20%; height: 6px; background: #2a1c08; border-radius: 3px; }
.glyph-cell { display: flex; align-items: center; gap: 0.4rem; }
.glyph-cell .glyph { font-size: 2rem; width: 2.4rem; text-align: center; line-height: 1.1; color: #1e2a6e; }
.glyph-sel { font: inherit; font-family: var(--eg-font-mono); font-size: 0.85rem; padding: 0.1rem 0.2rem; border-radius: 4px; border: 1px solid #6b4f1d; background: #fff8e7; color: #2a1c08; }
.cartouche-read { font-family: var(--eg-font-mono); font-weight: 700; letter-spacing: 0.25em; font-size: 1.05rem; color: #2a1c08; background: #fff8e7; padding: 0.2rem 0.6rem; border-radius: 6px; min-width: 6em; text-align: center; }

/* Salle 2 : scellé */
.stone { background: #d9c08c; color: #2a1c08; border-radius: 10px; padding: 0.8rem 1rem; box-shadow: inset 0 0 25px rgba(60, 40, 10, 0.45); line-height: 1.9; }
.stone.wall { background: #b9a47a; }
.stone-cap { margin: 0 0 0.3rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; display: flex; justify-content: space-between; align-items: center; }
.num-glyph { font-size: 1.45rem; color: #1e2a6e; letter-spacing: 0.05em; background: rgba(255, 248, 231, 0.5); padding: 0 0.25rem; border-radius: 4px; }
.mini-cart { border: 2px solid #2a1c08; border-radius: 14px; padding: 0 0.45rem; font-weight: 700; white-space: nowrap; }

/* Salle 3 : carbone 14 */
.c14-wrap { position: relative; margin: 0.6rem 0; }
.c14-wrap .secret-obj { position: absolute; right: 6px; top: 6px; }
.c14-canvas { width: 100%; display: block; border: 1px solid var(--eg-border); border-radius: 6px; }
.c14-ctrl { justify-content: center; }
.c14-slider { flex: 1 1 180px; accent-color: var(--eg-accent); }
.c14-out { text-align: center; color: var(--tp-accent-2); margin: 0.3rem 0 0.8rem; }
.calc .eg-row { margin-top: 0.5rem; }
.calc-in { max-width: 7rem; flex: 0 0 7rem !important; }
