/* Compact game-style case desk. Only the artwork owns map geometry.
   Coordinate labels have their own gutters, outside every art layer. */
.case-companion-page{background:radial-gradient(ellipse at 15% 0,#fff7dc,transparent 55%),#f0e9f6}
.case-companion-page .companion{max-width:1160px;padding:8px 20px 28px}
.case-companion-page .book-breadcrumbs{margin:0 0 4px;min-height:32px;font-size:11px;gap:8px}
.case-companion-page .puzzle-heading{gap:12px;margin:0 0 14px;align-items:center}
.case-companion-page .puzzle-heading h1{font-size:clamp(28px,3.2vw,38px);line-height:1.05;margin:0 0 4px}
.case-companion-page .puzzle-heading .book-eyebrow{font-size:10px;letter-spacing:.1em;margin:0 0 3px}
.case-companion-page .puzzle-navigation{border:2px solid #c8b4de;border-radius:13px;background:#fffcf2;box-shadow:0 3px 0 #d9c9e7;padding:3px 5px}
.case-companion-page .puzzle-picker-button{background:#6b40a6;color:#fff8df;border:0;border-radius:8px;box-shadow:0 2px 0 #412566;font-size:18px}
.case-companion-page .puzzle-nav-link{font-weight:650;color:#56317e}
.case-companion-page .visual-workspace{display:grid;grid-template-columns:minmax(0,460px) minmax(0,1fr);grid-template-areas:'map assistance';align-items:start;gap:18px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.case-companion-page .map-column{grid-area:map;max-width:none;width:100%;min-width:0;margin:0;padding:12px;background:#fffdf5;border:2px solid #cbbbda;border-radius:18px;box-shadow:0 4px 0 #cbbadb66;align-self:start}
.case-companion-page .case-assistance{grid-area:assistance;display:block;min-width:0;padding:0}
.case-companion-page .hint-column{display:grid;gap:12px;min-width:0}
.case-companion-page .map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;min-height:38px}
.case-companion-page .map-person-heading{display:flex;align-items:center;gap:8px;min-width:0}
.case-companion-page .map-person-heading h2{font-size:25px;line-height:1.1;overflow-wrap:anywhere}
.desk-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#ffdc72;box-shadow:0 2px 0 #d6ad4e;color:#4b2d68;transform:rotate(-8deg)}
.desk-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}
.case-companion-page .map-zoom-button{display:inline-flex;min-height:44px;border:1px solid #d5c6e1;border-radius:8px;background:#f2eaf9;color:#59357e;text-decoration:none;font:650 11px/1.2 system-ui;padding:7px 10px;margin:0;white-space:nowrap}
.case-companion-page .change-map-person{display:none}
.case-companion-page .map-clue{padding:10px 12px;margin:0 0 5px;border:1px solid #e1cc9f;border-radius:10px;background:#fff3cf;box-shadow:0 2px 0 #ead9ad44}
.case-companion-page .map-clue>p{font:500 13px/1.5 system-ui;color:#4d3b4b;margin:0}
.case-companion-page .map-view-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin:0 0 4px}
.case-companion-page .fill-map-control{font-size:14px;min-height:44px;gap:7px;color:#543277}
.case-companion-page .fill-switch{width:36px;height:22px;border-color:#b49bc8;background:#ded0eb}
.case-companion-page .fill-switch::before{top:2px;left:2px;width:16px;height:16px}
.case-companion-page .fill-map-control input:checked+.fill-switch::before{transform:translateX(14px)}
.case-companion-page .fill-map-control:focus-within{outline:none}
.case-companion-page .fill-map-control:has(input:focus-visible){outline:3px solid #7948b6;outline-offset:2px;border-radius:5px}
.case-companion-page .map-current-status{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.case-companion-page .map-stage{font:750 9px/1.2 system-ui;background:none;border:0;border-radius:0;padding:0;color:#76598c;text-transform:uppercase;letter-spacing:.05em}
.case-companion-page .map-current-status>strong{font:700 11px/1.2 system-ui;max-width:none;color:#634936}
.case-companion-page .puzzle-map-card{padding:6px 6px 3px;border:1px solid #d9c7a2;border-radius:12px;background:#f4e8ce;box-shadow:0 2px 0 #d9c7a255;max-width:none;margin:0}
.case-companion-page .puzzle-map{display:grid;grid-template-columns:22px minmax(0,1fr);grid-template-rows:22px auto;gap:0;width:100%;max-width:none;aspect-ratio:auto;position:relative;margin:0;overflow:visible;isolation:isolate;background:#fffcf1;border:0;border-radius:7px;container-type:normal}
.case-companion-page .map-column-axis{grid-column:2;grid-row:1;position:relative;min-width:0;height:22px;background:#fffcf1;border-radius:5px 5px 0 0;z-index:7}
.case-companion-page .map-row-axis{grid-column:1;grid-row:2;position:relative;width:22px;min-height:0;background:#fffcf1;z-index:7}
.case-companion-page .map-art{grid-column:2;grid-row:2;position:relative;isolation:isolate;container-type:inline-size;aspect-ratio:1;width:100%;min-width:0;background:#fff9ed;border-radius:3px;overflow:visible}
.case-companion-page .map-base-image{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:contain;border-radius:3px}
.case-companion-page .map-axis{position:absolute;transform:translate(-50%,-50%);font:750 13px/1 system-ui,sans-serif;letter-spacing:0;color:#48365b;text-decoration:none;text-shadow:none;z-index:1;white-space:nowrap}
.case-companion-page .map-column-axis .map-axis{top:50%}.case-companion-page .map-row-axis .map-axis{left:50%}
.case-companion-page .puzzle-map-card figcaption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:5px 3px 1px;font:650 10px/1.3 system-ui;color:#796246}
.case-companion-page .map-glow-key{display:flex;gap:6px;align-items:flex-start;margin:8px 1px 0}
.case-companion-page .map-feedback{font:500 11px/1.5 system-ui;color:#6b547d;margin:0;max-width:none}
.case-companion-page .glow-key-swatch{margin-top:2px;width:11px;height:11px}
.case-companion-page .people-panel{padding:13px 14px 9px;border:2px solid #c6aedb;border-radius:17px;background:#ebe0f5;box-shadow:0 4px 0 #cbbadb66;min-width:0}
.case-companion-page .assistance-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.case-companion-page .assistance-heading h2{font-size:25px;line-height:1.1}
.desk-step{font:750 9px/1.3 system-ui;text-transform:uppercase;letter-spacing:.04em;color:#78528f;white-space:nowrap}
.case-companion-page .card-instruction{font:500 12px/1.4 system-ui;color:#684e7b;margin:4px 0 0;max-width:none}
.case-companion-page .suspect-picker{display:grid;grid-template-columns:repeat(var(--people-count,7),minmax(0,1fr));gap:13px 9px;overflow:visible;margin:0;padding:17px 0 6px}
.case-companion-page .game-card{width:100%;max-width:86px;justify-self:center}
.case-companion-page .game-card-name{font-size:13px}
.case-companion-page .suspect-picker:has(.game-card:nth-child(8)) .game-card-name{font-size:11px}
.case-companion-page .suspect-picker:has(.game-card:nth-child(9)) .game-card-name{font-size:10px}
.case-companion-page .game-card[aria-pressed=true]{border:0;outline:0;background:#fff;transform:translateY(-7.462687%);box-shadow:0 3px 0 #3d362f47}
.case-companion-page .game-card[aria-pressed=true]::before{display:none;content:none}
.case-companion-page .game-card:focus-visible{outline:3px solid #7948b6;outline-offset:3px}
.case-companion-page .hint-workspace{background:#fffcf3;border:2px solid #d0bcdf;border-radius:16px;padding:14px;box-shadow:0 3px 0 #d3c2e344;margin:0}
.case-companion-page .hint-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
.case-companion-page .hint-heading h3{font-size:23px;line-height:1.1;margin:0}
.case-companion-page .hint-list{display:grid;gap:8px}
.case-companion-page .hint-list li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;padding-bottom:9px;border-bottom:1px dashed #d4c1e3}
.case-companion-page .hint-list li:last-child{border-bottom:0;padding-bottom:0}
.case-companion-page .hint-list li>span{width:23px;height:23px;border-radius:8px;background:#eadcf7;color:#704394;font:750 11px/1 system-ui;transform:rotate(-4deg)}
.case-companion-page .hint-list .hint-step.is-current>span{background:#7549a6;color:#fff8df}
.case-companion-page .hint-list p{font:500 12px/1.6 system-ui;color:#594467;margin:0}
.case-companion-page .hint-related{gap:5px}.case-companion-page .hint-related small{font-size:10px;color:#7a608c}
.case-companion-page .hint-person-link{font-size:11px;min-height:44px;border:1px solid #d1bde1;background:#f2e9fa;border-radius:8px;padding:6px 10px}
.case-companion-page .hint-next{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.case-companion-page .hint-preview{font:500 11px/1.5 system-ui;color:#796287;max-width:25ch;margin:0}
.case-companion-page .button-gold{border:1.5px solid #b48529;border-radius:10px;background:linear-gradient(#ffe993,#ffd057);color:#3a2453;box-shadow:0 3px 0 #c39435,inset 0 1px 0 #fff8;min-height:46px;font-size:15px;padding:9px 14px}
.case-companion-page .button-gold:hover{background:linear-gradient(#fff0ae,#ffda6a);transform:translateY(-1px)}
.case-companion-page .hint-message{font:500 10px/1.4 system-ui;color:#7e618b;margin-top:8px}
.case-companion-page .solution-invite{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0 0;padding:0 3px;border:0}
.case-companion-page .solution-invite>span{display:inline;font:500 11px/1.4 system-ui;max-width:none;color:#725682}
.case-companion-page .solution-invite .text-link{font:750 12px/1.3 system-ui;min-height:44px;text-align:right;white-space:normal}
.case-companion-page .revealed-solution{padding:14px;border:2px solid #c6aedb;border-radius:18px;background:#fffcf3;box-shadow:0 4px 0 #cbbadb66;margin:0}
.case-companion-page .solution-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:10px;margin:0 0 10px}
.case-companion-page .solution-heading h2{font-size:28px;line-height:1.05;margin:0}
.case-companion-page .solution-heading .book-eyebrow{font:750 9px/1.3 system-ui;letter-spacing:.1em;margin:0 0 3px;color:#7d5593}
.case-companion-page .solution-heading button{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:7px 10px;border:1px solid #c7afd9;background:#f0e5f8;border-radius:9px;font:650 11px/1.2 system-ui;white-space:nowrap;color:#66417f;box-shadow:0 2px 0 #d9c6e8}
.case-companion-page .killer-callout{display:flex;align-items:flex-start;gap:10px;border:1px solid #bda3d6;border-radius:12px;padding:12px;background:linear-gradient(120deg,#7a4aab,#593880);color:#fff9e1;box-shadow:inset 0 1px 0 #ffffff2e}
.case-companion-page .case-seal{display:grid;place-items:center;flex:0 0 33px;width:33px;height:33px;border:2px solid #ffda70;background:#ffda70;color:#5c3583;border-radius:50%;font:24px/1 var(--display);box-shadow:0 2px 0 #37214b55;transform:rotate(-9deg)}
.case-companion-page .killer-answer{font:24px/1.1 var(--display);color:#fff8df}
.case-companion-page .killer-explanation{font:500 12px/1.55 system-ui;color:#f0e6ff;margin:5px 0 0}
.case-companion-page .placement-table-wrap{margin:12px 0 0;overflow:visible}
.case-companion-page .placement-table{width:100%;border-collapse:separate;border-spacing:0;margin:0;table-layout:fixed;font:500 12px/1.3 system-ui;color:#4b365c}
.case-companion-page .placement-table caption{text-align:left;font:21px/1.1 var(--display);padding:0 0 8px;color:#3f225c}
.case-companion-page .placement-table th{padding:4px 5px 6px;border:0;border-bottom:1px solid #d6c4e2;font:750 9px/1.2 system-ui;letter-spacing:.05em;color:#80628f}
.case-companion-page .placement-table th:first-child{width:40%}.case-companion-page .placement-table th:nth-child(2){width:41%}.case-companion-page .placement-table th:last-child{width:19%;text-align:right}
.case-companion-page .placement-table td{padding:6px 5px;border:0;border-bottom:1px solid #e6daee;vertical-align:middle;font:500 12px/1.35 system-ui;color:#58416c}
.case-companion-page .placement-table tr:last-child td{border-bottom:0}
.case-companion-page .placement-table tr.is-killer td{background:#f2e7fb}
.case-companion-page .placement-table tr.is-killer td:first-child{border-radius:8px 0 0 8px}.case-companion-page .placement-table tr.is-killer td:last-child{border-radius:0 8px 8px 0}
.placement-person{display:flex;align-items:center;gap:7px;min-width:0}.placement-portrait{display:block;flex:0 0 33px;width:33px;height:33px;object-fit:contain;background:var(--person-color,#cbb7df);border-radius:7px}.placement-name{display:block;min-width:0}
.placement-name strong{display:block;font:750 12px/1.25 system-ui;overflow-wrap:anywhere;color:#523269}
.case-companion-page .placement-name small{display:block;font:650 9px/1.3 system-ui;color:#8b6b9a;margin-top:2px}
.case-companion-page .placement-room{overflow-wrap:anywhere;color:#765e84}
.case-companion-page .placement-table td.book-coordinate{text-align:right;font-family:system-ui,sans-serif;text-decoration:none}
.coordinate-chip{display:inline-flex;align-items:center;justify-content:center;min-width:37px;min-height:31px;padding:4px 7px;border:1px solid #d9c6e9;border-radius:8px;background:#eee2f9;color:#603683;font:800 16px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;font-feature-settings:normal;letter-spacing:0;text-decoration:none;text-shadow:none}
.case-companion-page .coordinate-example{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:26px;border:1px solid #d9c6e9;border-radius:6px;background:#eee2f9;font:750 12px/1 system-ui;color:#674185}
.case-companion-page .answer-note{display:flex;align-items:center;gap:7px;font:500 10px/1.5 system-ui;color:#7b618b;margin:8px 0 0;padding-top:8px;border-top:1px dashed #d6c3e2}
.case-companion-page .case-guide{margin:14px 0 0;border:1px solid #cfbddf;border-radius:12px;background:#f9f4ff;overflow:hidden;box-shadow:0 2px 0 #dacbe744}
.case-companion-page .case-guide>summary{display:flex;align-items:center;gap:8px;min-height:48px;padding:7px 12px;color:#65417e;font:700 12px/1.3 system-ui;list-style:none;cursor:pointer}
.case-companion-page .case-guide>summary>span,.case-companion-page .case-guide[open]>summary>span{font:inherit;transform:none}
.case-companion-page .case-guide>summary>.guide-question{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border-radius:50%;background:#dfceed;color:#674085;font:18px/1 var(--display)}
.case-companion-page .case-guide>summary>.guide-summary-note{font:500 11px/1.3 system-ui;color:#866c97;margin-left:auto}
.case-companion-page .case-guide>summary>.guide-plus{font:24px/1 system-ui;margin-left:5px;transform:none}.case-companion-page .case-guide[open]>summary>.guide-plus{transform:rotate(45deg)}
.case-companion-page .case-guide>.guide-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 12px 13px}
.guide-grid article{position:relative;padding:12px 12px 12px 35px;background:#fffdf5;border:1px solid #e1d4eb;border-radius:10px}
.guide-grid h3{font:20px/1.1 var(--display);margin:0 0 6px;color:#5f397c}.case-companion-page .guide-grid p{font:500 11px/1.65 system-ui;color:#775f85;margin:0}
.guide-number{position:absolute;left:9px;top:12px;display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#eadbf7;color:#764b99;font:750 11px/1 system-ui;transform:rotate(-5deg)}
.case-companion-page .case-bottom{margin:8px 0 0;font:500 11px/1.3 system-ui}
.case-companion-page .mobile-map-return{display:none}
.case-companion-page .map-dialog{max-width:min(95vw,800px);padding:16px}.case-companion-page .map-dialog .puzzle-map{grid-template-columns:26px minmax(0,1fr);grid-template-rows:26px auto}.case-companion-page .map-dialog .map-column-axis{height:26px}.case-companion-page .map-dialog .map-row-axis{width:26px}.case-companion-page .map-dialog .map-axis{font-size:15px}
.case-companion-page .hint-history>summary,.case-companion-page .map-inline-hint{display:none}
@media(max-width:949px){
 .case-companion-page .companion{padding-inline:20px;max-width:760px}
 .case-companion-page .visual-workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:'people' 'map' 'hints';gap:12px}
 .case-companion-page .case-assistance,.case-companion-page .hint-column:not([hidden]){display:contents}
 .case-companion-page .people-panel{grid-area:people;padding:12px 14px 8px}
 .case-companion-page .map-column{grid-area:map;max-width:580px;width:100%;margin-inline:auto;padding:11px}
 .case-companion-page .hint-panel-body,.case-companion-page .revealed-solution{grid-area:hints}
 .case-companion-page .suspect-picker,.case-companion-page .suspect-picker:has(.game-card:nth-child(8)),.case-companion-page .suspect-picker:has(.game-card:nth-child(9)){grid-template-columns:repeat(var(--people-count,7),minmax(0,1fr));gap:8px}
 .case-companion-page .game-card{max-width:77px}.case-companion-page .game-card-name{font-size:12px}
 .case-companion-page .map-inline-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;margin-top:10px;background:#f0e5fa;border:1px solid #cbb4df;border-radius:11px;box-shadow:0 2px 0 #dac9e955}
 .case-companion-page .inline-hint-label{font:750 9px/1.3 system-ui;letter-spacing:.05em;color:#805a94}
 .case-companion-page .map-inline-hint p{font:500 12px/1.55 system-ui;color:#604475;margin:4px 0 0}.case-companion-page .map-inline-hint .button{flex-shrink:0;font-size:14px}
 .case-companion-page .hint-heading{display:none}.case-companion-page .hint-workspace{padding:0 12px;max-width:580px;margin-inline:auto}.case-companion-page .hint-next{display:none}
 .case-companion-page .hint-history>summary{display:flex;font:700 12px/1.2 system-ui;min-height:46px}.case-companion-page .hint-history-content{padding:10px 0}.case-companion-page .hint-message{font-size:10px}
 .case-companion-page .map-return-link{display:none}.case-companion-page .solution-invite{max-width:580px;margin:5px auto 0}
 .case-companion-page .revealed-solution{max-width:580px;width:100%;margin:0 auto}.case-companion-page .case-guide>.guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .case-companion-page .change-map-person{display:inline-flex;align-items:center;min-height:44px;margin-left:auto;font:650 10px/1.3 system-ui;padding:4px}
 .case-companion-page .mobile-map-return{display:flex;min-height:44px;font:700 12px/1.3 system-ui;margin:4px 0 0}
}
@media(max-width:599px){
 .case-companion-page .companion{padding:5px 12px 22px}.case-companion-page .book-breadcrumbs{font-size:10px;min-height:30px;gap:6px;margin-bottom:2px}
 .case-companion-page .puzzle-heading{margin-bottom:11px}.case-companion-page .puzzle-heading h1{font-size:28px;line-height:1.06}.case-companion-page .puzzle-heading p[data-puzzle-subtitle]{font-size:11px}
 .case-companion-page .puzzle-navigation{position:fixed;left:12px;right:12px;bottom:8px;width:auto;padding:3px 5px;padding-bottom:calc(3px + env(safe-area-inset-bottom,0px));border-radius:14px;background:#fffaf0f7;box-shadow:0 3px 0 #b69ccb,0 5px 18px #32154d25;backdrop-filter:blur(8px)}
 .case-companion-page .puzzle-nav-link{font-size:11px;padding-inline:8px;gap:5px}.case-companion-page .puzzle-picker-button{font-size:17px;min-height:44px}
 .case-companion-page .people-panel{padding:11px 11px 7px;border-radius:15px}.case-companion-page .assistance-heading h2{font-size:23px}.case-companion-page .card-instruction{font-size:11px}.case-companion-page .desk-step{font-size:8px}
 .case-companion-page .suspect-picker,.case-companion-page .suspect-picker:has(.game-card:nth-child(8)){grid-template-columns:repeat(4,minmax(0,1fr));gap:11px 9px;padding-top:15px}
 .case-companion-page .suspect-picker:has(.game-card:nth-child(9)){grid-template-columns:repeat(5,minmax(0,1fr));column-gap:6px}
 .case-companion-page .game-card{max-width:74px}.case-companion-page .game-card-name{font-size:12px}.case-companion-page .suspect-picker:has(.game-card:nth-child(9)) .game-card-name{font-size:10px}
 .case-companion-page .map-column{padding:9px;border-radius:15px}.case-companion-page .map-person-heading{gap:6px}.case-companion-page .map-person-heading h2{font-size:22px}
 .case-companion-page .desk-icon{width:26px;height:26px;flex-basis:26px}.case-companion-page .desk-icon svg{width:18px;height:18px}.case-companion-page .map-toolbar{gap:4px;margin-bottom:5px}
 .case-companion-page .map-zoom-button{padding-inline:7px;font-size:10px}.case-companion-page .change-map-person{font-size:9px;padding-inline:2px}
 .case-companion-page .map-clue{padding:9px 10px}.case-companion-page .map-clue>p{font-size:12px}.case-companion-page .fill-map-control{font-size:13px}.case-companion-page .map-current-status>strong{font-size:10px}.case-companion-page .map-stage{font-size:8px}
 .case-companion-page .puzzle-map-card{padding:4px 4px 3px;border-radius:10px}.case-companion-page .puzzle-map{grid-template-columns:18px minmax(0,1fr);grid-template-rows:20px auto}.case-companion-page .map-column-axis{height:20px}.case-companion-page .map-row-axis{width:18px}.case-companion-page .map-axis{font-size:12px}
 .case-companion-page .puzzle-map-card figcaption{font-size:9px;padding-top:4px}.case-companion-page .map-feedback{font-size:10px;line-height:1.5}
 .case-companion-page .map-inline-hint{flex-direction:column;align-items:stretch;gap:9px;padding:10px}.case-companion-page .map-inline-hint p{font-size:12px}.case-companion-page .map-inline-hint .button{width:100%}
 .case-companion-page .solution-invite>span{font-size:10px;max-width:19ch}.case-companion-page .solution-invite .text-link{font-size:12px}
 .case-companion-page .revealed-solution{padding:11px;border-radius:15px}.case-companion-page .solution-heading h2{font-size:25px}.case-companion-page .solution-heading button{font-size:10px;padding-inline:8px}
 .case-companion-page .killer-callout{padding:11px;gap:9px}.case-companion-page .killer-answer{font-size:23px}.case-companion-page .killer-explanation{font-size:11px;line-height:1.6}
 .case-companion-page .placement-table th:first-child{width:41%}.case-companion-page .placement-table th:nth-child(2){width:40%}.case-companion-page .placement-table td{padding:6px 3px;font-size:11px}.case-companion-page .placement-table th{padding-inline:3px;font-size:8px}
 .case-companion-page .placement-name strong{font-size:11px}.case-companion-page .placement-name small{font-size:8px}.case-companion-page .placement-portrait{width:29px;height:29px;flex-basis:29px;border-radius:6px}.case-companion-page .placement-person{gap:5px}
 .case-companion-page .coordinate-chip{min-width:33px;min-height:31px;padding:4px 5px;font-size:16px}.case-companion-page .answer-note{font-size:10px}
 .case-companion-page .case-guide{margin-top:12px}.case-companion-page .case-guide>summary{font-size:11px;padding:7px 10px}.case-companion-page .guide-summary-note{display:none}.case-companion-page .guide-plus{margin-left:auto!important}
 .case-companion-page .case-guide>.guide-grid{grid-template-columns:1fr;padding:0 10px 10px;gap:8px}.case-companion-page .guide-grid article{padding:10px 11px 10px 35px}.case-companion-page .guide-grid h3{font-size:20px;margin-bottom:4px}.case-companion-page .guide-grid p{font-size:11px;line-height:1.65}
 .case-companion-page .case-bottom{font-size:10px;gap:8px}.case-companion-page:has(.puzzle-help:not([hidden])) .site-footer{padding-bottom:88px}.case-companion-page .companion:has(.puzzle-help:not([hidden])){padding-bottom:22px}
}
@media(prefers-reduced-motion:reduce){.case-companion-page .button-gold:hover{transform:none}.case-companion-page .map-cell-glow{animation:none}}

/* A single reading order: person, original clue, map, then the latest hint.
   The same native character cards move into a modal drawer on small screens. */
.case-companion-page .people-trigger{display:none}
.case-companion-page .map-clue{display:flex;align-items:flex-start;gap:10px;padding:12px;margin-bottom:6px}
.case-companion-page .clue-card-icon{width:40px;height:40px;flex:0 0 40px;object-fit:contain}
.case-companion-page .clue-card-label{font:750 11px/1.3 system-ui;letter-spacing:.025em;color:#76552c;margin:0 0 4px}
.case-companion-page .map-clue>div>p{font:550 15px/1.55 system-ui;color:#4b354e;margin:0}
.case-companion-page .current-hint-card{display:block;margin:0;padding:18px;border:2px solid #b69acb;border-radius:17px;background:linear-gradient(125deg,#f4eafb,#eee1f8);box-shadow:0 4px 0 #ccb9df66}
.case-companion-page .current-hint-heading{display:flex;align-items:center;gap:12px;min-width:0}
.case-companion-page .current-hint-icon{display:block;width:56px;height:56px;flex:0 0 56px;object-fit:contain;filter:drop-shadow(0 2px 0 #35204625)}
.case-companion-page .current-hint-card .inline-hint-label{font:750 11px/1.3 system-ui;color:#754c8c;letter-spacing:.06em;text-transform:uppercase}
.case-companion-page .current-hint-heading h3{font:26px/1.08 var(--display);color:#472564;margin:4px 0 0}
.case-companion-page .current-hint-card .current-hint-text{font:550 17px/1.6 system-ui;color:#3f2951;margin:14px 0 0;max-width:none}
.case-companion-page .current-hint-related:empty{display:none}
.case-companion-page .current-hint-related{margin-top:12px}
.case-companion-page .current-hint-related .hint-related{display:flex;gap:7px}
.case-companion-page .current-hint-related .hint-related small{font:650 12px/1.5 system-ui;color:#705382}
.case-companion-page .hint-person-link{font:700 13px/1.3 system-ui;min-height:44px;padding:8px 12px;background:#fffcf5}
.case-companion-page .current-hint-action{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:14px;margin-top:14px;border-top:1px solid #d2bce2}
.case-companion-page .current-hint-action>p{font:500 12px/1.5 system-ui;color:#6b4a7e;max-width:26ch;margin:0}
.case-companion-page .current-hint-action .button{flex-shrink:0;min-height:48px;font-size:17px;padding-inline:18px}
.case-companion-page .current-hint-action:not(:has(.button:not([hidden])))>p{max-width:none}
.case-companion-page .hint-workspace{padding:0;margin:9px 0 0;background:transparent;border:0;box-shadow:none}
.case-companion-page .hint-workspace:has(.hint-history[data-hint-count="0"]):has(.hint-message:empty){display:none}
.case-companion-page .hint-history{border:1px solid #cbb7db;border-radius:12px;background:#fffaf1;overflow:hidden}
.case-companion-page .hint-history[data-hint-count="0"]{display:none}
.case-companion-page .hint-history>summary{display:flex;align-items:center;gap:8px;min-height:48px;font:700 13px/1.3 system-ui;color:#614077;padding:10px 13px}
.case-companion-page .hint-history-content{padding:0 12px 12px;border:0}
.case-companion-page .hint-list{display:grid;gap:10px;margin:0}
.case-companion-page .hint-list li{display:flex;align-items:flex-start;gap:12px;padding:13px;background:#f4ecfa;border:1px solid #dfcdeb;border-radius:11px}
.case-companion-page .hint-list li:last-child{padding:13px;border:1px solid #dfcdeb}
.case-companion-page .hint-step-icon{width:42px;height:42px;flex:0 0 42px;object-fit:contain}
.case-companion-page .hint-step-body{min-width:0;flex:1}
.case-companion-page .hint-step-heading{display:flex;flex-direction:column;gap:3px;margin-bottom:7px}
.case-companion-page .hint-step-heading small{font:750 10px/1.3 system-ui;letter-spacing:.05em;text-transform:uppercase;color:#79538d}
.case-companion-page .hint-step-heading strong{font:21px/1.08 var(--display);color:#51316b}
.case-companion-page .hint-list p{font:500 15px/1.6 system-ui;color:#4e355f;margin:0}
.case-companion-page .hint-list .hint-related{margin-top:10px}
.case-companion-page .hint-message{font:500 12px/1.5 system-ui;color:#6d4d80;margin:8px 2px 0}
.case-companion-page .solution-invite{margin-top:8px}.case-companion-page .solution-invite>span{font-size:12px;max-width:none}.case-companion-page .solution-invite .text-link{font-size:13px}
.case-companion-page .map-feedback{font-size:12px}.case-companion-page .map-room-list,.case-companion-page .fill-map-note{font-size:11px;line-height:1.5}
.case-companion-page .people-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:340px;max-width:calc(100vw - 24px);height:100dvh;max-height:100dvh;padding:0 0 max(20px,env(safe-area-inset-bottom));border:0;border-left:2px solid #8963ac;background:#f4edf9;color:#4b2b65;box-shadow:-12px 0 50px #150a2b55;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.case-companion-page .people-drawer::backdrop{background:#170c2db3;backdrop-filter:blur(3px)}
.case-companion-page .people-drawer-header{display:flex;align-items:center;justify-content:space-between;gap:10px;background:linear-gradient(115deg,#4c2a76,#2b1748);color:#fff8df;padding:20px 18px 17px;border-bottom:3px solid #b893d4}
.case-companion-page .people-drawer-header p{font:650 11px/1.4 system-ui;color:#ddd0f7;margin:0 0 4px;letter-spacing:.03em}
.case-companion-page .people-drawer-header h2{font:29px/1.1 var(--display);color:#fff8df;margin:0}
.case-companion-page .drawer-close{display:grid;place-items:center;min-width:46px;min-height:46px;padding:0;flex:0 0 46px;border:1px solid #9978b4;border-radius:12px;background:#ffffff15;color:#fff8df;font:32px/1 system-ui;cursor:pointer;box-shadow:0 2px 0 #12061d66}
.case-companion-page .people-drawer-intro{font:500 14px/1.6 system-ui;color:#66437a;margin:16px 19px 0}
.case-companion-page .people-drawer .people-panel{padding:13px 17px 0;border:0;box-shadow:none;background:none;border-radius:0}
.case-companion-page .people-drawer .assistance-heading,.case-companion-page .people-drawer .card-instruction{display:none}
.case-companion-page .people-drawer .suspect-picker,.case-companion-page .people-drawer .suspect-picker:has(.game-card:nth-child(8)),.case-companion-page .people-drawer .suspect-picker:has(.game-card:nth-child(9)){grid-template-columns:repeat(3,minmax(0,1fr));column-gap:17px;row-gap:20px;padding:17px 0 10px;margin:0}
.case-companion-page .people-drawer .game-card{max-width:85px;width:100%;background:#e2d6e5}
.case-companion-page .people-drawer .game-card[aria-pressed=true]{background:white;border:0;outline:0;transform:translateY(-7.462687%);box-shadow:0 3px 0 #3d362f47}
.case-companion-page .people-drawer .game-card[aria-pressed=true]::before{content:none;display:none}
.case-companion-page .people-drawer .game-card.is-victim:not([aria-pressed=true]) .game-card-disc{filter:none}
.case-companion-page .people-drawer .game-card:focus-visible{outline:3px solid #7948b6;outline-offset:3px}
.case-companion-page .people-drawer .suspect-picker .game-card-name{font-size:14px}
.case-companion-page .people-drawer .suspect-picker:has(.game-card:nth-child(8)) .game-card-name,.case-companion-page .people-drawer .suspect-picker:has(.game-card:nth-child(9)) .game-card-name{font-size:14px}
.case-companion-page .people-drawer-note{display:flex;gap:9px;align-items:flex-start;margin:14px 18px 0;padding:13px 0 0;border-top:1px solid #d6c0e3;font:500 12px/1.6 system-ui;color:#745286}
.case-companion-page .people-drawer-note img{flex:0 0 30px;object-fit:contain}
.case-companion-page :is(.people-trigger,.drawer-close):focus-visible{outline:3px solid #9d65db;outline-offset:3px}
@media(max-width:949px){
 .case-companion-page .visual-workspace{grid-template-areas:'map' 'hints';gap:12px}
 .case-companion-page [data-people-inline-mount]{display:none}
 .case-companion-page .map-column{max-width:580px}
 .case-companion-page .map-toolbar>.map-person-heading{display:none}
 .case-companion-page .is-answer .map-toolbar>.map-person-heading{display:flex}
 .case-companion-page .people-trigger{display:flex;align-items:center;gap:9px;min-width:0;flex:1;min-height:54px;text-align:left;border:0;border-radius:10px;padding:4px 8px 4px 4px;background:#ebe0f4;color:#4c2a68;cursor:pointer}
 .case-companion-page .people-trigger>img{width:44px;height:44px;flex:0 0 44px;border-radius:7px;background:var(--person-color,#ceb5df);object-fit:contain}
 .case-companion-page .people-trigger>span:nth-child(2){display:flex;flex-direction:column;min-width:0;gap:2px}
 .case-companion-page .people-trigger-label{font:650 10px/1.3 system-ui;color:#74518a}
 .case-companion-page .people-trigger strong{font:22px/1.1 var(--display);overflow-wrap:anywhere}
 .case-companion-page .people-trigger-action{font:750 11px/1.3 system-ui;white-space:nowrap;margin-left:auto;color:#714a8c}
 .case-companion-page .is-answer .people-trigger{display:none}
 .case-companion-page .map-toolbar{gap:8px;margin-bottom:10px}
 .case-companion-page .map-zoom-button{font-size:11px;min-height:48px}
 .case-companion-page .hint-panel-body{max-width:580px;width:100%;margin:0 auto}
 .case-companion-page .current-hint-card{padding:16px;margin:0}
 .case-companion-page .current-hint-heading h3{font-size:25px}
 .case-companion-page .current-hint-card .current-hint-text{font-size:16px;line-height:1.6}
 .case-companion-page .hint-workspace{padding:0;margin:9px 0 0}
 .case-companion-page .hint-history-content{padding:0 11px 11px}
 .case-companion-page .solution-invite{margin-top:6px}
 .case-companion-page .map-return-link{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:max-content;min-height:44px;padding:8px 12px;border:1px solid #cbb7db;border-radius:8px;background:#fffaf1;font:700 12px/1.3 system-ui;margin-top:9px}
}
@media(max-width:599px){
 .case-companion-page .current-hint-card{padding:14px;border-radius:15px}
 .case-companion-page .current-hint-icon{width:50px;height:50px;flex-basis:50px}
 .case-companion-page .current-hint-heading{gap:10px}
 .case-companion-page .current-hint-card .inline-hint-label{font-size:10px}
 .case-companion-page .current-hint-heading h3{font-size:24px}
 .case-companion-page .current-hint-action{flex-direction:column;align-items:stretch;gap:10px;padding-top:12px;margin-top:12px}
 .case-companion-page .current-hint-action>p{max-width:none;font-size:12px}
 .case-companion-page .current-hint-action .button{width:100%;font-size:17px}
 .case-companion-page .clue-card-icon{width:34px;height:34px;flex-basis:34px}
 .case-companion-page .map-clue{gap:8px;padding:10px}
 .case-companion-page .map-clue>div>p{font-size:14px;line-height:1.55}
 .case-companion-page .map-feedback{font-size:11px}.case-companion-page .map-room-list,.case-companion-page .fill-map-note{font-size:10px}
 .case-companion-page .hint-list li,.case-companion-page .hint-list li:last-child{padding:11px;gap:9px}
 .case-companion-page .hint-step-icon{width:35px;height:35px;flex-basis:35px}
 .case-companion-page .hint-list p{font-size:14px;line-height:1.65}
 .case-companion-page .hint-step-heading strong{font-size:20px}
 .case-companion-page .solution-invite>span{font-size:11px;max-width:18ch}.case-companion-page .solution-invite .text-link{font-size:12px}
}
/* The book's victim mark: original skull in a white circle over the corner. */
.case-companion-page .victim-badge{position:absolute;display:grid;place-items:center;box-sizing:border-box;aspect-ratio:1;border:1.1px solid #76569d;border-radius:50%;padding:3px;background:#fff;pointer-events:none;z-index:3}
.case-companion-page .victim-badge>img{display:block;width:100%;height:100%;object-fit:contain;border:0;border-radius:0;filter:none}
.case-companion-page .game-card{overflow:visible}
.case-companion-page .game-card-victim-badge{width:30%;max-width:30px;right:-6px;top:-6px}
.case-companion-page .map-person.is-victim{overflow:visible}
.case-companion-page .map-person.is-victim.is-revealed .map-person-portrait{filter:none}
.case-companion-page .map-person>.map-person-victim-badge{inset:auto;right:-11%;top:-11%;bottom:auto;width:38%;min-width:14px;max-width:30px;height:auto;padding:2px;background:#fff;border:1.1px solid #76569d;border-radius:50%;color:inherit;font-size:inherit}

/* Opened hints read like a conversation: 1, then 2, then 3, then the action. */
.case-companion-page .current-hint-card{display:block;padding:16px;border:2px solid #c7b1da;border-radius:17px;background:#eee4f7;box-shadow:0 3px 0 #cbbadb66}
.case-companion-page .current-hint-heading{display:flex;align-items:center;gap:11px;margin:0;min-width:0}
.case-companion-page .current-hint-icon{width:42px;height:42px;flex:0 0 42px;filter:none}
.case-companion-page .current-hint-heading>div{min-width:0}
.case-companion-page .current-hint-card .inline-hint-label{font:750 10px/1.4 system-ui;color:#74508b;letter-spacing:.055em}
.case-companion-page .current-hint-heading h3{font:25px/1.12 var(--display);margin:3px 0 0;color:#482865;overflow-wrap:anywhere}
.case-companion-page .current-hint-card .current-hint-text{font:500 16px/1.55 system-ui;color:#5a3e70;margin:12px 0 0}
.case-companion-page .current-hint-card .hint-list{display:grid;gap:11px;padding:0;margin:15px 0 0;list-style:none}
.case-companion-page .current-hint-card .hint-list:empty{display:none}
.case-companion-page .current-hint-card .hint-list .hint-step{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:12px;padding:14px;border:1px solid #d8c5e6;border-radius:12px;background:#fff;box-shadow:0 2px 0 #d8c8e34d;min-width:0}
.case-companion-page .current-hint-card .hint-step::before{content:'';position:absolute;left:-5px;top:24px;width:8px;height:8px;border-left:1px solid #d8c5e6;border-bottom:1px solid #d8c5e6;background:#fff;transform:rotate(45deg)}
.case-companion-page .current-hint-card .hint-step>.hint-step-symbol{display:grid;place-items:center;position:relative;width:42px;height:42px;background:transparent;border:0;border-radius:0;transform:none}
.case-companion-page .hint-step-symbol .hint-step-icon{display:block;width:40px;height:40px;object-fit:contain;flex:none}
.case-companion-page .hint-step-number{position:absolute;right:-1px;bottom:-2px;display:grid;place-items:center;box-sizing:border-box;width:20px;height:20px;border:2px solid #fff;border-radius:50%;background:#6b40a6;color:#fff;font:750 11px/1 system-ui;box-shadow:0 1px 2px #42216133}
.case-companion-page .current-hint-card .hint-step-heading{display:flex;flex-direction:column;gap:3px;margin:0 0 7px;min-height:39px;justify-content:center}
.case-companion-page .current-hint-card .hint-step-heading small{font:750 10px/1.2 system-ui;letter-spacing:.05em;color:#7a588f;text-transform:uppercase}
.case-companion-page .current-hint-card .hint-step-heading strong{font:21px/1.12 var(--display);color:#51316b}
.case-companion-page .current-hint-card .hint-list p{font:500 16px/1.6 system-ui;color:#442f56;margin:0;overflow-wrap:anywhere}
.case-companion-page .current-hint-card .hint-step-body{min-width:0}
.case-companion-page .current-hint-card .hint-related{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px}
.case-companion-page .current-hint-card .hint-related small{flex-basis:100%;font:600 11px/1.5 system-ui;color:#785c8a}
.case-companion-page .current-hint-card .hint-person-link{min-height:44px;padding:7px 11px;border:1px solid #d6c3e3;border-radius:8px;background:#f6f0fb;color:#593775;font:700 12px/1.3 system-ui}
.case-companion-page .current-hint-action{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:13px;margin-top:14px;border-top:1px solid #d2bedf}
.case-companion-page .current-hint-action>p{font:500 12px/1.5 system-ui;color:#705181;max-width:26ch;margin:0}
.case-companion-page .current-hint-action .button{min-height:48px;font-size:17px;flex-shrink:0;padding:10px 18px}
.case-companion-page .current-hint-action:not(:has(.button:not([hidden]))){border:0;padding-top:0;margin-top:13px}
.case-companion-page .current-hint-action:not(:has(.button:not([hidden])))>p{max-width:none;font-weight:650}
.case-companion-page .hint-workspace{padding:0;margin:0;border:0;background:transparent;box-shadow:none}
.case-companion-page .hint-workspace:has(.hint-message:empty){display:none}
.case-companion-page .hint-message{font:600 12px/1.5 system-ui;color:#70417e;margin:9px 2px 0}
.case-companion-page .hint-message[data-message-kind=success]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.case-companion-page .hint-panel-body{min-width:0}
.case-companion-page .solution-invite{padding:0 2px;margin:6px 0 0}
.case-companion-page .hint-step-heading:focus-visible{outline:3px solid #7948b6;outline-offset:4px;border-radius:3px}
@media(min-width:950px){
 .case-companion-page .suspect-picker:has(.game-card:nth-child(8)){grid-template-columns:repeat(5,minmax(0,1fr));column-gap:12px;row-gap:17px}
 .case-companion-page .suspect-picker:has(.game-card:nth-child(8)) .game-card-name{font-size:13px}
}
@media(max-width:949px){
 .case-companion-page .hint-panel-body{width:100%;max-width:580px;margin-inline:auto}
}
@media(max-width:599px){
 .case-companion-page .current-hint-card{padding:13px;border-radius:15px}
 .case-companion-page .current-hint-heading h3{font-size:23px}
 .case-companion-page .current-hint-icon{width:38px;height:38px;flex-basis:38px}
 .case-companion-page .current-hint-card .hint-list{margin-top:13px;gap:10px}
 .case-companion-page .current-hint-card .hint-list .hint-step{padding:12px;grid-template-columns:36px minmax(0,1fr);gap:10px}
 .case-companion-page .current-hint-card .hint-step>.hint-step-symbol{width:36px;height:36px}
 .case-companion-page .hint-step-symbol .hint-step-icon{width:35px;height:35px}
 .case-companion-page .hint-step-number{width:19px;height:19px;right:-2px;bottom:-3px;font-size:10px}
 .case-companion-page .current-hint-card .hint-step-heading{min-height:36px;margin-bottom:7px}
 .case-companion-page .current-hint-card .hint-step-heading strong{font-size:20px}
 .case-companion-page .current-hint-card .hint-list p{font-size:15px;line-height:1.6}
 .case-companion-page .current-hint-action{align-items:stretch;flex-direction:column;gap:9px;padding-top:12px;margin-top:12px}
 .case-companion-page .current-hint-action>p{max-width:none;font-size:12px}
 .case-companion-page .current-hint-action .button{width:100%;min-height:48px}
 .case-companion-page .hint-panel-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}
 .case-companion-page .current-hint-card{grid-column:1/-1}
 .case-companion-page .map-return-link{grid-column:1;width:auto;min-width:0;min-height:44px;padding:8px;gap:6px;margin:0;font-size:12px;align-self:start}
 .case-companion-page .solution-invite{grid-column:2;width:100%;min-width:0;margin:0;padding:0;justify-content:stretch;align-items:stretch}
 .case-companion-page .solution-invite>span{display:none}
 .case-companion-page .solution-invite .text-link{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;margin:0;padding:8px;border:1px solid #cbb7db;border-radius:8px;background:#fffaf1;font:700 12px/1.3 system-ui;text-align:center;text-decoration:none}
}

/* Keep early hints compact; align the outside edges once all three are open. */
.case-companion-page{--desk-frame-border:#c5afd9;--desk-frame-radius:18px;--desk-frame-shadow:0 4px 0 #cbbadb66}
.case-companion-page :is(.map-column,.people-panel,.current-hint-card,.revealed-solution){box-sizing:border-box;border:2px solid var(--desk-frame-border);border-radius:var(--desk-frame-radius);box-shadow:var(--desk-frame-shadow)}
@media(min-width:950px){
 .case-companion-page .visual-workspace:not(.is-answer):has([data-open-hints="3"]){grid-template-areas:'map people' 'map hints' '. actions';grid-template-rows:auto minmax(0,1fr) auto;column-gap:18px;row-gap:12px;align-items:stretch}
 .case-companion-page .visual-workspace:not(.is-answer):has([data-open-hints="3"]) :is(.case-assistance,.hint-column:not([hidden]),.hint-panel-body){display:contents}
 .case-companion-page .visual-workspace:not(.is-answer):has([data-open-hints="3"]) [data-people-inline-mount]{grid-area:people;min-width:0}
 .case-companion-page .map-column{padding:14px}
 .case-companion-page .visual-workspace:is(.is-answer,:has([data-open-hints="3"])) .map-column{display:flex;flex-direction:column;align-self:stretch}
 .case-companion-page .visual-workspace:is(.is-answer,:has([data-open-hints="3"])) .map-column>:is(.map-toolbar,.map-clue,.map-view-bar,.puzzle-map-card){flex-shrink:0}
 .case-companion-page .visual-workspace:is(.is-answer,:has([data-open-hints="3"])) .map-column .map-glow-key{margin-top:auto;padding-top:8px}
 .case-companion-page .people-panel{padding:14px 14px 10px}
 .case-companion-page .visual-workspace:not(.is-answer):has([data-open-hints="3"]) .current-hint-card{grid-area:hints;display:flex;flex-direction:column;min-width:0;padding:16px}
 .case-companion-page .visual-workspace:not(.is-answer):has([data-open-hints="3"]) .current-hint-action{margin-top:auto;padding-top:14px;flex-shrink:0}
 .case-companion-page .visual-workspace:not(.is-answer):has([data-open-hints="3"]) .current-hint-action:not(:has(.button:not([hidden]))){margin-top:auto}
 .case-companion-page .visual-workspace:not(.is-answer):has([data-open-hints="3"]) .current-hint-card .hint-list{margin-bottom:14px}
 .case-companion-page .visual-workspace:not(.is-answer):has([data-open-hints="3"]) .solution-invite{grid-area:actions;margin:0;min-width:0}
 .case-companion-page .map-return-link{display:none}
 .case-companion-page .visual-workspace.is-answer{grid-template-areas:'map answer';grid-template-rows:auto;align-items:stretch}
 .case-companion-page .visual-workspace.is-answer .case-assistance{display:contents}
 .case-companion-page .revealed-solution{grid-area:answer;align-self:stretch;min-width:0}
}
@media(max-width:599px){.case-companion-page{--desk-frame-radius:15px}}
@media(prefers-reduced-motion:no-preference){
 .case-companion-page .hint-step.is-new-hint{animation:desk-hint-arrive .24s cubic-bezier(.2,.8,.2,1) both}
 .case-companion-page .people-drawer[open]{animation:desk-drawer-arrive .22s cubic-bezier(.2,.8,.2,1) both}
 .case-companion-page .people-drawer[open]::backdrop{animation:desk-backdrop-arrive .18s ease-out both}
 .case-companion-page .game-card{transition:transform .16s ease-out,background .16s ease-out,box-shadow .16s ease-out}
 .case-companion-page :is(.map-zoom-button,.hint-person-link,.map-return-link){transition:background-color .16s ease-out,border-color .16s ease-out}
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .case-companion-page .game-card:not([aria-pressed=true]):hover{transform:translateY(-3px);background:#f5edf9;box-shadow:0 5px 0 #3d362f35}
}
@keyframes desk-hint-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes desk-drawer-arrive{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:translateX(0)}}
@keyframes desk-backdrop-arrive{from{opacity:0}to{opacity:1}}

/* A single readable number replaces the small icon-and-badge combination. */
.case-companion-page .current-hint-heading{gap:10px;align-items:center}
.case-companion-page .current-hint-heading>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.case-companion-page .current-hint-card .inline-hint-label{display:block;margin:0;font-size:10px;line-height:1.2}
.case-companion-page .current-hint-heading h3{margin:0;font-size:24px;line-height:1.1}
.case-companion-page .current-hint-card .hint-step>.hint-step-symbol{box-sizing:border-box;width:42px;height:42px;border:1px solid #573180;border-radius:50%;background:#6b40a6;box-shadow:0 2px 0 #40236026;color:#fff8df;font:29px/1 var(--display)}
.case-companion-page .hint-step-symbol .hint-step-number{position:static;display:grid;place-items:center;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;box-shadow:none;color:inherit;font:inherit}
.case-companion-page .current-hint-card .hint-step-heading{min-height:42px;gap:3px;justify-content:center}
@media(max-width:599px){
 .case-companion-page .current-hint-icon{width:40px;height:40px;flex-basis:40px}
 .case-companion-page .current-hint-heading{gap:9px}
 .case-companion-page .current-hint-heading h3{font-size:22px}
 .case-companion-page .current-hint-card .hint-list .hint-step{grid-template-columns:40px minmax(0,1fr)}
 .case-companion-page .current-hint-card .hint-step>.hint-step-symbol{width:40px;height:40px;font-size:27px}
 .case-companion-page .current-hint-card .hint-step-heading{min-height:40px}
}

/* Separate a single-person placement from the next progressive hint. */
.case-companion-page .current-hint-action{flex-wrap:wrap;align-items:center}
.case-companion-page .current-hint-action>p{flex:1 1 150px}
.case-companion-page .hint-action-buttons{display:flex;align-items:stretch;justify-content:flex-end;gap:9px;flex:0 1 auto;min-width:0;margin-left:auto}
.case-companion-page .hint-action-buttons .button{box-sizing:border-box;min-width:132px;min-height:48px;width:auto;white-space:nowrap;font-size:16px;padding:10px 14px}
.case-companion-page .hint-action-buttons .button-place-person{background:linear-gradient(#f5f4f6,#dedbe3);border:1.5px solid #9d94a9;border-radius:10px;box-shadow:0 3px 0 #afa6bb,inset 0 1px 0 #fff;color:#493857}
.case-companion-page .hint-action-buttons .button-place-person:hover:not(:disabled){background:linear-gradient(#fff,#e9e5ee)}
.case-companion-page .hint-action-buttons .button-place-person:disabled{opacity:1;background:#e8e4ed;border-color:#c0b7ca;box-shadow:0 2px 0 #d2c9dc;color:#766783;cursor:default;transform:none}
.case-companion-page .hint-action-buttons .button:focus-visible{outline:3px solid #6b40bc;outline-offset:4px}
.case-companion-page .current-hint-action:has(.hint-action-buttons>.button:not([hidden])){display:flex}
.case-companion-page .current-hint-action:has(.hint-action-buttons>.button:not([hidden]))>p{max-width:26ch}
@media(max-width:599px){
 .case-companion-page .current-hint-action{flex-direction:column;align-items:stretch}
 .case-companion-page .current-hint-action>p{flex:0 1 auto;max-width:none}
 .case-companion-page .current-hint-action:has(.hint-action-buttons>.button:not([hidden]))>p{max-width:none}
 .case-companion-page .hint-action-buttons{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:100%;margin:0}
 .case-companion-page .hint-action-buttons .button{min-width:0;width:100%;font-size:15px;padding:10px 8px}
 .case-companion-page .hint-action-buttons:not(:has([data-map-reveal-hint]:not([hidden]))){grid-template-columns:minmax(0,1fr)}
}
/* Keep the book identity in the purple mobile drawer heading. */
.case-companion-page .people-drawer-header{position:relative;isolation:isolate}
.case-companion-page .people-drawer-header::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/assets/brand/sudomort-book-pattern-white.svg') right -8px top -4px/280px 400px no-repeat;opacity:.22;mask-image:linear-gradient(90deg,transparent,#000 80%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 80%)}

/* Complete source portraits: hats and hair can extend beyond the upper circle. */
.case-companion-page .game-card{border-radius:7px}
.case-companion-page .game-card-disc{isolation:isolate;background:transparent;border-radius:0 0 50% 50%;overflow:hidden}
.case-companion-page .game-card-disc::before{content:'';position:absolute;inset:0;z-index:0;border-radius:50%;background:var(--person-color)}
.case-companion-page .game-card .game-card-portrait{z-index:1;left:var(--portrait-left,0%);top:var(--portrait-top,0%);width:var(--portrait-width,100%);height:var(--portrait-height,125%);object-fit:fill;clip-path:inset(var(--portrait-clip-top,0%) 0 0 0)}

/* Book68: six concise rule topics from the corrected print edition. */
@media(min-width:1100px){.case-companion-page .case-guide>.guide-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
