/* Shares the dossier paper, gold flowers and typography; only this page. */
body[data-game='palace'].game-shell #game[data-page='investigation'] {
 display:block; position:relative; padding:clamp(10px,2cqh,24px) clamp(12px,2cqw,34px);
 background:linear-gradient(rgba(250,240,221,.1),rgba(250,240,221,.16)),var(--palace-quiet-folio-image) center / cover;
 color:#574535;
}
body[data-game='palace'] #game[data-page='investigation'] > :is(.game-hud,.game-background,[data-return-home]) { display:none; }
body[data-game='palace'].game-shell #game[data-page='investigation'] #tab-content.clue-board-page {
 position:relative; inset:auto; backdrop-filter:none;
 display:flex; flex-direction:column; gap:clamp(8px,1.5cqh,18px); width:100%; height:100%; min-height:0;
 grid-column:auto; grid-row:auto; padding:0; margin:0; overflow:hidden; background:none; border:0; box-shadow:none;
}
.clue-board-page header { width:auto; margin:0; padding:0; }
.clue-board-page .clue-board-heading { display:flex; justify-content:flex-start; align-items:center; gap:clamp(12px,2cqw,34px); flex:none; min-width:0; padding-right:48px; }
#game .clue-board-heading > h2 { margin:0; font-size:calc((clamp(19px,2cqw,30px)) * var(--text-scale)); font-weight:600; color:#60472f; }
#game .clue-board-heading > button { flex:none; margin:0; font-size:var(--font-body); }
.clue-board-scroll { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#aa8a5955 transparent; padding:2px 5px 18px 0; }
.clue-paper { position:relative; isolation:isolate; overflow:hidden; padding:clamp(12px,1.7cqw,26px); margin-bottom:clamp(10px,1.5cqh,20px); border:1px solid #b394616f; border-radius:12px; background:rgba(255,248,233,.76); box-shadow:0 4px 18px #4f391d17,inset 0 0 12px #ffffff47; backdrop-filter:blur(.6px); }
.clue-paper > .dossier-ornament { z-index:-1; opacity:.26; pointer-events:none; }
.clue-paper > .dossier-corner-top { position:absolute; right:0; top:0; width:clamp(54px,9cqw,120px); }
.clue-paper > .dossier-corner-bottom { position:absolute; left:0; bottom:0; width:clamp(54px,9cqw,120px); }
#game .clue-paper > .dossier-section-heading { margin:0 0 10px; font-size:var(--font-section); display:flex; align-items:center; gap:8px; font-weight:600; line-height:1.25; color:#694b2e; letter-spacing:.08em; }
.clue-card-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(10px,1.5cqw,22px); }
.clue-card-grid > :only-child { grid-column:1 / -1; }
#game .clue-case-card { position:relative; min-width:0; border:1px solid #b394613d; border-radius:9px; padding:clamp(10px,1.3cqw,19px); background:rgba(255,251,242,.35); }
#game .clue-case-card .clue-entry-reading > header { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:start; gap:6px 12px; }
#game .clue-board-page h4 { margin:0; font-size:var(--font-body); font-weight:600; line-height:1.5; }
#game .clue-board-page p { margin:8px 0; font-size:var(--font-body); line-height:1.65; overflow-wrap:anywhere; white-space:pre-line; }
#game .clue-board-page small,#game .clue-board-page .clue-source { color:#8b755d; font-size:var(--font-note); line-height:1.6; }
.clue-status { display:inline-block; border:1px solid #b5976945; border-radius:12px; padding:2px 9px; background:#e6dbea68; color:#7c6379; font-size:var(--font-note); line-height:1.5; }
#game .clue-board-page button { margin:0; min-height:32px; font-size:var(--font-body); line-height:1.5; }
.clue-board-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-top:10px; }
/* A single uninterrupted paper surface: story at left, controls at right.
   Reuse the character dossier's gold line + central ornamental jewel. */
.clue-board-page .clue-entry-layout {
 display:grid; grid-template-columns:minmax(0,1fr) 1px clamp(116px,24%,235px);
 gap:clamp(8px,1.2cqw,20px); align-items:stretch; min-width:0; position:relative;
}
.clue-board-page .clue-entry-layout.clue-entry-readonly { grid-template-columns:minmax(0,1fr); }
.clue-board-page .clue-entry-reading { min-width:0; }
.clue-board-page .clue-entry-layout > .dossier-column-divider {
 position:relative; inset:auto; width:1px; height:auto; align-self:stretch; min-height:34px;
 background:linear-gradient(180deg,transparent,#b79c6755 20%,#b79c6755 80%,transparent);
 pointer-events:none;
}
.clue-board-page .clue-entry-layout > .dossier-column-divider .dossier-column-jewel {
 position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); opacity:.42;
}
.clue-board-page .clue-board-actions.clue-entry-controls {
 display:flex; flex-direction:column; align-items:stretch; justify-content:center;
 gap:clamp(5px,.9cqh,10px); min-width:0; margin:0;
}
.clue-board-page .clue-entry-controls > button {
 display:block; width:100%; min-width:0; margin:0; white-space:normal; text-align:center;
}
/* Four-character enquiry label is a single action, never a broken phrase. */
.clue-board-page .clue-entry-controls > button[data-clue-delegate] {
 white-space:nowrap;
}
.clue-board-page .clue-entry-controls > small { flex:none; overflow-wrap:anywhere; }

.clue-board-actions > small { flex:1 1 180px; }
/* Six thin paper labels share one grid; the full-width preview is its next row. */
.clue-plot-form form {display:flex;flex-direction:column;gap:clamp(12px,2cqh,22px);}
.clue-plot-fields {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.7cqh,20px) clamp(10px,1.8cqw,25px);align-items:end;}
.paper-select-field {min-width:0;display:flex;flex-direction:column;gap:3px;}
.paper-select-caption {color:#917b5b;font-size:var(--font-note);line-height:1.4;}
#game .clue-board-page .paper-select-trigger {
 display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;min-width:0;
 min-height:36px;padding:4px 2px 6px;margin:0;
 color:#5f462c;font-family:inherit;font-size:var(--font-body);font-weight:500;line-height:1.5;
 background:transparent;border:0;border-bottom:1px solid #b7965e99;border-radius:0;box-shadow:none;
 text-align:left;cursor:pointer;
}
.paper-select-value {min-width:0;white-space:normal;overflow-wrap:anywhere;text-wrap:pretty;}
.paper-select-arrow {flex:none;color:#ad8b55;font-size:.8em;line-height:1;}
#game .clue-board-page .paper-select-trigger:hover,
#game .clue-board-page .paper-select-trigger[aria-expanded='true'] {border-color:#a07b42;background:rgba(200,164,98,.07);}
#game .clue-board-page .paper-select-trigger:focus-visible {outline:1px solid #a17c46;outline-offset:3px;}
#game .clue-board-page .paper-select-trigger:disabled {color:#a8977f;cursor:default;}
.paper-select-menu {
 position:fixed;inset:auto;margin:0;box-sizing:border-box;max-width:calc(100vw - 24px);
 padding:7px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b7996655 transparent;
 color:#60482e;background:#f7eedb;border:1px solid #b89b6c88;border-radius:4px;
 box-shadow:0 5px 20px #56402120;font-family:'Noto Serif SC',serif;font-size:var(--font-body);
}
.paper-select-menu::backdrop {background:transparent;}
.paper-select-options {display:flex;flex-direction:column;gap:3px;}
#game .paper-select-menu .paper-select-option {
 display:block;flex:none;width:100%;min-height:36px;margin:0;padding:6px 10px;box-sizing:border-box;
 color:#695138;background:transparent;border:1px solid transparent;border-radius:2px;box-shadow:none;
 font:inherit;font-weight:400;line-height:1.5;text-align:left;white-space:normal;overflow-wrap:anywhere;text-wrap:pretty;cursor:pointer;
}
#game .paper-select-menu .paper-select-option[aria-selected='true'] {background:#e8d5a660;border-color:#c6a46b40;color:#62451f;font-weight:600;}
#game .paper-select-menu .paper-select-option:hover {background:#e8d5a645;}
#game .paper-select-menu .paper-select-option:focus-visible {outline:1px solid #ad8951;outline-offset:-1px;}
.clue-plot-footer {display:flex;flex-direction:column;align-items:center;gap:8px;}
#game .clue-plot-footer > [data-plot-submit] {
 align-self:center;min-width:clamp(125px,17cqw,185px);
}
.clue-plot-notes {width:100%;min-width:0;text-align:center;}
#game .clue-plot-notes > p {margin:0;}
#game .clue-plot-notes > p + p {margin-top:6px;}
.clue-plot-preview {grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2cqw,28px);align-items:stretch;}
.clue-plot-preview[hidden] {display:none;}
.clue-plot-preview > section {
 position:relative;isolation:isolate;min-width:0;box-sizing:border-box;padding:clamp(10px,1.6cqw,22px);
 background:rgba(255,250,237,.32);border:1px solid rgba(176,145,95,.24);border-radius:3px;
}
#game .clue-plot-preview .dossier-section-heading {display:flex;align-items:center;gap:7px;margin:0;color:#765b37;font-size:var(--font-section);font-weight:500;}
.clue-plot-preview > section > .dossier-ornament {opacity:.18;z-index:-1;}
.clue-plot-preview .dossier-heading-flower {width:20px;height:20px;}
#game .clue-plot-preview > section > p {margin:7px 0 0;line-height:1.65;}
.clue-plot-draft {white-space:pre-line;}
.clue-plot-draft:empty {display:none;}
.clue-detail-columns { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:clamp(12px,2cqw,28px); align-items:start; }
.clue-detail-columns > div { min-width:0; }
.clue-timeline-entry { position:relative; border-left:1px solid #b3946180; padding:0 0 12px 16px; margin-left:4px; }
#game .clue-timeline .clue-timeline-entry { border-bottom:0; }
.clue-timeline-entry::before { content:''; position:absolute; top:8px; left:-3px; width:5px; height:5px; border-radius:50%; background:#b39461; }
#game .clue-timeline-entry p { margin:5px 0; }
.clue-case-result { border-left:2px solid #b3946180; padding-left:12px; }

#game[data-page='investigation'] .clue-rumor-verdict.clue-paper {
 padding:clamp(12px,1.5cqw,22px);border-color:rgba(151,111,61,.42);
 background:linear-gradient(110deg,rgba(251,241,222,.9),rgba(255,249,235,.72));
}
#game[data-page='investigation'] .clue-rumor-verdict .clue-rumor-verdict-status {
 font-size:var(--font-heading);font-weight:600;color:#704c2c;margin:4px 0 6px;
}
#game[data-page='investigation'] .clue-rumor-verdict .clue-rumor-verdict-count {
 color:#876746;margin:4px 0 7px;font-size:var(--font-body);
}
#game[data-page='investigation'] .clue-rumor-verdict .clue-rumor-verdict-effect {
 margin:5px 0;padding-left:12px;border-left:2px solid rgba(179,148,97,.6);
 color:#634b33;font-size:var(--font-body);
}
#game[data-page='investigation'] .clue-my-result-preview {
 margin:5px 0 0;color:#825932;font-size:var(--font-note);
}

#game .clue-board-page summary { font-size:var(--font-body); line-height:1.6; }
#game .clue-empty { color:#8b755d; }
@container (max-width:780px) {
 .clue-detail-columns { grid-template-columns:1fr; }
 .clue-card-grid { grid-template-columns:1fr; }
}



/* Current folio index: one sheet, quiet text rows, no nested card stacks.
   Shared detail sections retain the styles above and the following small rules. */
#game[data-page='investigation'] .clue-heading-mark {
 margin-left:auto;white-space:nowrap;color:#947854;
 font-size:var(--font-body);letter-spacing:.12em;
}
#game[data-page='investigation'] .clue-main-tabs {
 display:flex;align-items:center;gap:clamp(8px,1.4cqw,18px);
 margin:0 0 clamp(6px,.9cqh,11px);padding:0 0 8px;
 border-bottom:1px solid rgba(159,124,77,.28);
}
#game[data-page='investigation'] .clue-main-tabs > button {
 min-height:32px;padding:5px clamp(10px,1.2cqw,16px);margin:0;
 border:0;border-radius:3px;background:transparent;box-shadow:none;
 color:#806a4c;font-size:var(--font-body);white-space:nowrap;
}
#game[data-page='investigation'] .clue-main-tabs > button[aria-pressed='true'] {
 color:#493721;background:rgba(185,148,92,.17);font-weight:600;
 border-bottom:2px solid #a9814f;
}
#game[data-page='investigation'] .clue-mine-layout {
 --folio-menu-font:calc(var(--font-heading) - 4px * var(--text-scale));
 display:grid;grid-template-columns:clamp(calc(4 * var(--folio-menu-font) + 64px),24%,240px) minmax(0,1fr);
 align-items:start;gap:clamp(13px,2.2cqw,30px);min-width:0;
}
#game[data-page='investigation'] .clue-mine-menu {
 position:sticky;top:0;
}
#game[data-page='investigation'] .clue-mine-main {min-width:0;}
#game[data-page='investigation'] .clue-mine-compose .clue-mine-menu {position:static;}
#game[data-page='investigation'] .clue-my-list {
 display:flex;flex-direction:column;margin:0;padding:0;
}
#game[data-page='investigation'] .clue-my-row {
 display:grid;grid-template-columns:minmax(0,1fr) auto;
 gap:clamp(10px,2cqw,25px);align-items:center;min-width:0;
 padding:clamp(9px,1.35cqh,15px) clamp(4px,.7cqw,9px);
 border-bottom:1px solid rgba(171,139,92,.22);cursor:pointer;
}
#game[data-page='investigation'] .clue-my-row:hover {background:rgba(255,248,231,.52);}
#game[data-page='investigation'] .clue-my-row-main {min-width:0;}
#game[data-page='investigation'] .clue-my-row h4 {
 margin:0 0 3px;line-height:1.4;color:#594129;font-size:var(--font-body);
}
#game[data-page='investigation'] .clue-my-row-meta {
 display:flex;flex-wrap:wrap;column-gap:clamp(9px,1.2cqw,16px);row-gap:2px;
 color:#90795d;font-size:var(--font-note);line-height:1.4;
}
#game[data-page='investigation'] .clue-my-row > button {
 min-height:30px;padding:4px clamp(12px,1.4cqw,20px);
 background:rgba(255,248,233,.45);
 border:1px solid rgba(162,126,77,.36);border-radius:5px;
 font-size:var(--font-body);
}
#game[data-page='investigation'] .clue-more-plots {
 text-align:center;padding:clamp(8px,1.3cqh,16px) 0;
}
#game[data-page='investigation'] .clue-more-plots > button {
 background:transparent;border:0;box-shadow:none;color:#846644;
 font-size:var(--font-body);
}
#game[data-page='investigation'] .clue-board-folio .clue-plot-form {
 max-width:930px;margin:0 auto;padding:clamp(5px,.9cqw,12px) 0;
}
#game[data-page='investigation'] .clue-plot-form .clue-source {
 color:#927f64;font-size:var(--font-note);line-height:1.45;
}
#game[data-page='investigation'] .clue-index-active .clue-card-grid,
#game[data-page='investigation'] .clue-archive-section .clue-card-grid {
 display:flex;flex-direction:column;gap:0;
}
#game[data-page='investigation'] .clue-index-active .clue-case-card,
#game[data-page='investigation'] .clue-archive-section .clue-case-card {
 padding:clamp(10px,1.3cqh,15px) 2px;margin:0;
 border:0;border-bottom:1px solid rgba(175,145,95,.24);
 border-radius:0;background:none;box-shadow:none;cursor:pointer;
}
/* Move the known title, status and opening to the index; retain one native button. */
#game[data-page='investigation'] .clue-case-card .clue-rumor-open {
 display:block;width:100%;min-height:36px;
 padding:4px clamp(4px,.7cqw,10px);
 background:transparent;border:0;border-radius:5px;box-shadow:none;
 color:#73583b;font-family:inherit;text-align:left;cursor:pointer;
}
#game[data-page='investigation'] .clue-case-card .clue-rumor-open:hover {
 background:rgba(172,132,79,.08);
}
#game[data-page='investigation'] .clue-case-card .clue-rumor-open:focus-visible {
 outline:2px solid #a9824d;outline-offset:2px;
}
#game[data-page='investigation'] .clue-rumor-description {
 display:block;margin-top:4px;font-size:inherit;line-height:inherit;
 white-space:normal;overflow-wrap:anywhere;
}
/* In both the rumor and commission index, the nonbreaking space ties the
   thin chevron to the end of the sentence even when a row wraps. */
#game[data-page='investigation'] .clue-entry-arrow {
 display:inline;white-space:nowrap;
 font-size:1.08em;line-height:1;font-weight:400;color:#9e7b50;
}
#game[data-page='investigation'] .clue-index-active .clue-entry-layout,
#game[data-page='investigation'] .clue-archive-section .clue-entry-layout {
 display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;
}
#game[data-page='investigation'] .clue-index-active .clue-entry-layout > .dossier-column-divider,
#game[data-page='investigation'] .clue-archive-section .clue-entry-layout > .dossier-column-divider {display:none;}
#game[data-page='investigation'] .clue-index-active .clue-entry-controls,
#game[data-page='investigation'] .clue-archive-section .clue-entry-controls {
 flex-direction:row;align-items:center;margin:0;padding:0;border:0;
}
#game[data-page='investigation'] .clue-index-active .clue-entry-controls > button,
#game[data-page='investigation'] .clue-archive-section .clue-entry-controls > button {
 min-height:30px;padding:3px 12px;white-space:nowrap;
}
#game[data-page='investigation'] .clue-case-card .clue-case-background {
 display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
#game[data-page='investigation'] .clue-board-folio .clue-case-cover.clue-paper {
 padding:clamp(12px,1.6cqw,22px);margin-bottom:clamp(10px,1.6cqh,18px);
 background:linear-gradient(115deg,#f6e8cbb5,#fff9e9a6);
 border:1px solid #a3845252;border-radius:8px;
}
#game[data-page='investigation'] .clue-case-cover > .dossier-section-heading {display:none;}
#game[data-page='investigation'] .clue-cover-head {display:flex;align-items:center;justify-content:space-between;gap:12px;}
#game[data-page='investigation'] .clue-cover-title h3 {margin:2px 0;font-size:calc((clamp(19px,1.85cqw,27px)) * var(--text-scale));}
#game[data-page='investigation'] .clue-case-cover .clue-status {
 max-width:36%;padding:5px 10px;border:1px solid #ae8365b3;
 border-radius:2px;background:#b36e4e13;color:#8f4935;text-align:center;
}
#game[data-page='investigation'] .clue-case-cover .clue-cover-description {max-width:82ch;}
#game[data-page='investigation'] .clue-case-cover[data-archived='true'] .clue-status {color:#807360;border-color:#a9957791;}
#game[data-page='investigation'] .clue-detail-columns {grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(12px,2cqw,28px);}
#game[data-page='investigation'] .clue-detail-columns.clue-detail-single {grid-template-columns:minmax(0,1fr);}
/* Active rumor detail: narrower action column (35%), wider progress (65%). */
#game[data-page='investigation'] .clue-rumor-columns:not(.clue-detail-single) {
 grid-template-columns:minmax(0,35fr) minmax(0,65fr);align-items:start;
}
#game[data-page='investigation'] .clue-rumor-columns > .clue-paper {min-width:0;}
#game[data-page='investigation'] .clue-rumor-columns > .clue-detail-progress {
 max-height:clamp(190px,65cqh,540px);overflow-y:auto;overflow-x:hidden;
 overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aa8a5955 transparent;
}
#game[data-page='investigation'] .clue-rumor-columns .clue-detail-progress p {line-height:1.45;margin:4px 0;}
/* Separate rumor progress by fine horizontal rules, not a vertical timeline. */
#game[data-page='investigation'] .clue-rumor-columns .clue-case-status {
 padding-bottom:10px;margin-bottom:11px;border-bottom:1px solid #b3946155;
}
#game[data-page='investigation'] .clue-rumor-columns .clue-timeline-entry {
 margin:0 0 10px;padding:0 0 10px;border-left:0;border-bottom:1px solid #b3946155;
}
#game[data-page='investigation'] .clue-rumor-columns .clue-timeline-entry:last-of-type {border-bottom:0;}
#game[data-page='investigation'] .clue-rumor-columns .clue-timeline-entry p {margin:3px 0;line-height:1.45;}
#game[data-page='investigation'] .clue-detail-progress .clue-timeline-entry::before {top:8px;left:-4px;width:7px;height:7px;background:#ae854d;}
#game[data-page='investigation'] .clue-rumor-columns .clue-timeline-entry::before {content:none;}
#game[data-page='investigation'] .clue-case-actions .clue-board-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
#game[data-page='investigation'] .clue-case-actions .clue-board-actions button {width:100%;white-space:normal;}
/* Exploration buttons use their natural width, even when there is just one. */
#game[data-page='investigation'] .clue-case-actions .clue-exploration-actions {
 display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;
}
#game[data-page='investigation'] .clue-case-actions .clue-exploration-actions button {
 flex:none;width:auto;max-width:100%;padding:5px 14px;white-space:nowrap;
}
.clue-unread-dot {display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:#a85b47;box-shadow:0 0 0 1px #fff6e2a6;}
/* Rumor detail: choose the intended move once, then pick how to carry it out. */
#game .clue-case-actions > .dossier-section-heading {gap:7px;}
#game .clue-case-actions .clue-operation-guide-toggle {
 display:inline-flex;align-items:center;justify-content:center;flex:none;
 width:23px;height:23px;min-height:23px;padding:0;margin:0;
 border:1px solid #ab8b5f83;border-radius:50%;background:rgba(248,236,211,.78);
 color:#937147;font-size:var(--font-note);font-weight:500;letter-spacing:0;line-height:1;
}
#game .clue-case-actions .clue-operation-guide-toggle[aria-expanded='true'] {background:#e9d8b5;}
#game .clue-case-actions .clue-operation-guide {margin:2px 0 10px;padding:5px 10px;border-left:2px solid #b9a076a6;background:#fbf3e564;}
#game .clue-case-actions .clue-operation-guide[hidden] {display:none;}
#game .clue-case-actions .clue-operation-guide p {margin:3px 0;font-size:var(--font-note);}
#game .clue-case-actions .clue-rumor-choices {
 display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:7px;margin:9px 0 12px;min-width:0;
}
#game .clue-case-actions .clue-rumor-choice {
 width:min(100%,260px);min-width:0;min-height:39px;padding:7px 9px;text-align:center;
 border:1px solid #b79d7394;border-radius:6px;
 background:rgba(251,244,226,.6);color:#715638;
}
#game .clue-case-actions .clue-rumor-choice[aria-pressed='true'] {
 border-color:#a78044;background:rgba(224,195,139,.32);
 box-shadow:inset 0 0 0 1px #a7804440;color:#5d4127;font-weight:600;
}
#game .clue-case-actions .clue-rumor-choice:focus-visible {outline:2px solid #a78044;outline-offset:2px;}
.clue-operation-location {min-width:0;}
.clue-operation-location:empty {display:none;}
.clue-operation-location .paper-select-field {margin:1px 0 11px;}
#game .clue-case-actions .clue-operation-buttons {display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:8px;margin-top:7px;}
html body[data-game='palace'] #game .clue-operation-buttons .palace-choice {
 min-width:0;width:min(100%,260px);padding:7px 20px;min-height:36px;font-size:var(--font-body);
 background-size:11px auto,auto 75%,100% 100%;background-position:left 8px center,right 3px center,center;
}
#game .clue-case-actions > .clue-source:empty {display:none;}
#game[data-page='investigation'] .clue-board-folio .clue-paper.clue-archive-section {
 padding:clamp(9px,1.2cqw,15px) 0;
}
#game[data-page='investigation'] .clue-board-folio .clue-paper.clue-archive-section > summary {
 cursor:pointer;display:flex;align-items:center;gap:8px;list-style:none;
 color:#735538;font-weight:600;font-size:var(--font-body);line-height:1.5;
}
@container (max-width:780px) {
 #game[data-page='investigation'] .clue-detail-columns:not(.clue-rumor-columns) {grid-template-columns:1fr;}
 #game[data-page='investigation'] .clue-mine-layout {gap:12px;}
 #game[data-page='investigation'] .clue-mine-menu {padding-right:7px;}
}
@media (orientation:landscape) and (max-height:450px) {
 #game[data-page='investigation'] .clue-my-row {padding:6px 4px;}
}

.clue-competition-card { margin-block: .75rem; }
.clue-competition-rankings { width: 100%; border-collapse: collapse; font: inherit; }
.clue-competition-rankings th, .clue-competition-rankings td { padding: .45rem .3rem; text-align: left; border-bottom: 1px solid rgba(116,82,43,.18); }
.clue-competition-rankings td:nth-child(2) { white-space: nowrap; }

/* The commission index now shares 宫斗事件's ornamental heading and bare text rows. */
#game[data-page='investigation'] .clue-competition-entry > .dossier-section-heading {cursor:pointer;}
#game[data-page='investigation'] .clue-competition-entry > .dossier-section-heading:focus-visible {
 outline:2px solid #a78455;outline-offset:3px;
}
#game[data-page='investigation'] .clue-competition-entry > .clue-competition-open {
 display:block;width:100%;min-width:0;min-height:32px;
 margin:8px 0;padding:0;border:0;border-radius:0;box-shadow:none;
 background:none;text-align:left;color:#73583b;
 font:inherit;font-weight:400;cursor:pointer;
}
/* Both entries sit one gentle step below the ornamental section heading. */
#game[data-page='investigation'] .clue-case-card .clue-rumor-open,
#game[data-page='investigation'] .clue-competition-entry > .clue-competition-open {
 font-size:var(--font-body);line-height:1.6;
}
#game[data-page='investigation'] .clue-competition-entry > .clue-competition-open:hover {
 color:#6b5234;background:none;
}
#game[data-page='investigation'] .clue-competition-entry > .clue-competition-open:focus-visible {
 outline:2px solid #a78455;outline-offset:3px;
}
#game[data-page='investigation'] .clue-competition-status {display:inline;min-width:0;}
#game[data-page='investigation'] .clue-commission-layout {
 display:grid;grid-template-columns:clamp(112px,23%,196px) minmax(0,1fr);
 align-items:start;gap:clamp(12px,2.2cqw,28px);min-width:0;
}
#game[data-page='investigation'] .clue-commission-menu {
 position:sticky;top:0;display:flex;flex-direction:column;
 min-width:0;gap:clamp(5px,.9cqh,10px);
 padding:5px clamp(8px,1.3cqw,16px) 8px 0;
 border-right:1px solid rgba(164,130,85,.3);
}
#game[data-page='investigation'] .clue-commission-menu > button {
 width:100%;min-width:0;min-height:clamp(34px,5.4cqh,45px);
 border:1px solid transparent;border-left:3px solid transparent;
 border-radius:2px;background:transparent;color:#765e43;
 padding:7px clamp(5px,.9cqw,12px);text-align:left;
}
#game[data-page='investigation'] .clue-commission-menu > button[aria-pressed='true'] {
 color:#4e3923;background:rgba(186,147,89,.19);
 border-color:rgba(170,132,81,.14);border-left-color:#a47d49;font-weight:600;
}
#game[data-page='investigation'] .clue-commission-main {min-width:0;}
#game[data-page='investigation'] .clue-commission-main > .dossier-section-heading {
 display:flex;align-items:center;gap:8px;margin:3px 0 clamp(9px,1.5cqh,16px);
 font-size:var(--font-section);color:#694b2e;letter-spacing:.05em;
}
#game[data-page='investigation'] .clue-commission-main .clue-board-actions {
 display:flex;flex-wrap:wrap;gap:clamp(7px,1.2cqw,14px);
}
#game[data-page='investigation'] .clue-commission-main .clue-board-actions > button {max-width:100%;white-space:normal;}
#game[data-page='investigation'] .clue-commission-main .clue-competition-rankings {min-width:0;table-layout:auto;}
@container (max-width:780px) {
 #game[data-page='investigation'] .clue-commission-layout {grid-template-columns:minmax(104px,25%) minmax(0,1fr);gap:10px;}
 #game[data-page='investigation'] .clue-commission-menu {padding-right:6px;}

}

#game[data-page='investigation'] .clue-rumor-heading {display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;}
#game[data-page='investigation'] .clue-archive-toggle > .dossier-section-heading {display:flex;align-items:center;flex:1;gap:8px;margin:0;font-size:var(--font-section);color:#694b2e;}
.clue-archive-toggle::-webkit-details-marker {display:none;}
.clue-fold-arrow {font-size:var(--font-note);transition:transform .15s;}
.clue-archive-section[open] > summary .clue-fold-arrow {transform:rotate(180deg);}

/* Poison plotting keeps continuous scene prose tight; end-of-plot scenes still
   retain their deliberate paragraph breaks. */
#game[data-page='investigation'] .clue-detail-progress .clue-poison-prose {white-space:normal;line-height:1.55;}
#game[data-page='investigation'] .clue-detail-progress .clue-poison-effect {
 margin:5px 0 8px;color:#806647;font-size:var(--font-note);line-height:1.45;white-space:normal;
}
