/* Approved desktop landscape / mobile portrait composition. */
:root{--ink:#302c25;--serif:'Noto Sans SC',sans-serif;--accent:#ffd337}
body{height:100dvh;overflow:hidden;background-image:linear-gradient(#39541500,#24341915),url('assets/camp-v10/landscape.webp')}
.workspace{height:100dvh;min-height:0;max-width:1700px;margin:auto;padding:18px 24px 20px;gap:16px;grid-template-columns:minmax(0,1fr) minmax(320px,34%);grid-template-rows:76px minmax(0,1fr) 80px;grid-template-areas:'header header' 'map heroes' 'tools tools'}
.mobile-header{display:none}.game-header{display:flex;gap:14px;padding:0;background:none;border-radius:0}.brand{display:flex;font-family:inherit;font-size:clamp(28px,3.5vw,52px);font-weight:900;letter-spacing:0;color:#ffe599;background:linear-gradient(#d54525,#971d10);border:3px solid #642a1d;border-top-color:#ff9671;border-radius:10px;padding:0 20px 5px;transform:rotate(-2deg);box-shadow:inset 0 3px #fa8560,0 5px #592b20;text-shadow:2px 3px #5b2914,-1px -1px #fff3c1;-webkit-text-stroke:.5px #743719}.case-title{margin:auto;font-size:clamp(20px,2.6vw,36px);letter-spacing:3px;padding:9px 35px;color:#302b22;background:linear-gradient(#fff6dc,#d7c8aa);border:4px solid #777367;border-top-color:#ece1c3;box-shadow:inset 0 2px #fff,0 5px #383b32;border-radius:12px}.round-info{margin:0;border:3px solid #969589;background:linear-gradient(#363834,#222724);box-shadow:inset 0 3px #101810,0 3px #30372d;padding:9px 14px;border-radius:12px}.round-info>span:first-child{display:none}.round-info .timer{font-size:clamp(20px,2.7vw,34px);color:white;text-shadow:0 3px #111;font-weight:900}.header-action{width:58px;height:58px;padding:0;font-size:32px;border:3px solid #535550;background:linear-gradient(#f5f4e9,#a2a49c);color:white;text-shadow:0 2px #282b27,-1px -1px #282b27;box-shadow:inset 0 3px white,0 5px #30342e}
.map-panel{padding:7px 12px;gap:0;justify-content:center;min-height:0;overflow:visible}.map-heading,.map-footer,.map-key{display:none}.map-shell{width:min(100%,calc(100dvh - 230px));max-width:100%;padding:0;border:0;box-shadow:none;background:none}.board{position:relative;border:10px solid #858a88;border-image:url('assets/approved-v11/wall-h.png') 10 round;border-radius:0;box-shadow:0 6px 4px #1d2c22a0;grid-template-rows:repeat(6,minmax(0,1fr))}
.cell.T,.cell.R,.cell.S,.cell.G{border:0;border-right:1px solid #7b782954;border-bottom:1px solid #7b782954;box-shadow:none;background-size:100% 100%;background-repeat:no-repeat;background-color:#8bbf3e}.cell.T{background-image:url('assets/approved-v11/earth.png')}.cell.R{background-image:url('assets/approved-v11/sand.png')}.cell.S{background-image:url('assets/approved-v11/grass.png')}.cell.G{background-image:url('assets/approved-v11/grain.png')}.cell:before{display:none}.cell.blocked:after{display:none}.stone-wall{position:absolute;pointer-events:none;z-index:6;filter:drop-shadow(0 3px 1px #23302577)}.stone-wall.vertical{width:clamp(7px,1vw,14px);height:calc(100% + 8px);right:-5px;top:-4px;background:url('assets/approved-v11/wall-v.png') center/100% auto repeat-y}.stone-wall.horizontal{height:clamp(7px,1vw,14px);width:calc(100% + 8px);bottom:-5px;left:-4px;background:url('assets/approved-v11/wall-h.png') center/auto 100% repeat-x}.cell:hover:not(:disabled){box-shadow:inset 0 0 0 3px #ffe862;background-color:#bfd958;z-index:7}.cell.room-hover{outline:0}.map-prop{width:var(--object-size);height:var(--object-size);filter:drop-shadow(1px 5px 2px #3c492c70);z-index:2}.figurine.piece{position:absolute;inset:-4%;width:108%;height:108%;object-fit:contain;border:0;border-radius:0;box-shadow:none;background:none;filter:drop-shadow(0 3px 1px #34432b60);z-index:5}.piece-mark{display:none}.cell.solved-cell .piece{border:0}.room-label,.cell.room-hover .room-label{bottom:-3px;right:0;transform:translateX(10%);padding:2px 8px;background:#1c201dce;color:#fff;border:0;border-radius:3px;box-shadow:none;text-shadow:0 2px 2px #111;font-size:clamp(12px,1.3vw,var(--label-size));font-weight:900;line-height:1.4;z-index:9;pointer-events:none}.notes{gap:3px;font-size:16px}.notes>span{background:#fff7c8e6;border:1px solid #caaa59;border-radius:4px}.cross{font-size:clamp(26px,4vw,60px);color:#41622e;opacity:.6}
.evidence-panel{overflow:visible;min-height:0;gap:10px;padding:13px;background:linear-gradient(120deg,#fff8e7,#ded6c2);border:6px solid #85877e;border-top-color:#e1dfcf;border-bottom-color:#50564d;box-shadow:inset 0 0 0 2px #fff7e7,0 6px #283d2a;border-radius:17px}.panel-heading{height:40px;min-height:40px;padding:0 8px}.panel-heading h1{font:900 clamp(24px,2.7vw,40px) 'Noto Sans SC',sans-serif;color:#282922}.panel-heading>span{background:#a39f90;color:white;border:2px solid #777366;border-radius:9px;padding:0 11px;font-size:21px;font-weight:900;text-shadow:0 2px #292b25}.characters,.list-mode .characters{flex:1;min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(6,minmax(0,1fr));gap:8px}.character,.list-mode .character{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;min-height:0;padding:8px 10px 8px 86px;text-align:left;background:linear-gradient(120deg,#fffefa,#f0ebdf);border:2px solid #b8b1a0;border-top-color:white;border-radius:12px;box-shadow:0 2px #a59e8d;overflow:visible;gap:1px}.character-top,.list-mode .character-top{display:contents;padding:0;background:none;border:0;min-width:0}.avatar,.list-mode .avatar{position:absolute;top:50%;left:8px;transform:translateY(-50%);width:65px;height:65px;border:2px solid white;border-radius:10px;box-shadow:0 2px #b2a995}.identity{text-align:left}.identity strong,.list-mode .identity strong{font:900 clamp(18px,1.9vw,26px) 'Noto Sans SC',sans-serif;letter-spacing:0;color:#236bbc;text-shadow:none}.identity small{display:none}.character[data-character='1'] .identity strong{color:#24853e}.character[data-character='2'] .identity strong{color:#c43d22}.character[data-character='3'] .identity strong{color:#147f86}.character[data-character='4'] .identity strong{color:#936814}.character[data-character='5'] .identity strong{color:#8d26bd}.clue,.list-mode .clue{padding:0;min-height:0;font-size:clamp(14px,1.35vw,19px);line-height:1.4;border:0;background:none;text-align:left;color:#302b23;overflow:visible}.clue b{color:inherit;font-weight:800}.character.placed{opacity:.7}.character[aria-pressed=true]{background:#fff3c7;border-color:#f9ca32;box-shadow:0 0 0 2px #ffe777;transform:none}.character[aria-pressed=true] .character-top{background:none}.status{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.symbols{position:absolute;bottom:110px;right:30px}
.tools{height:auto;min-height:0;position:static;display:flex;flex-direction:row;align-items:stretch;gap:12px;padding:7px 10px 10px;border:5px solid #64695e;border-top-color:#d5d5c8;border-radius:16px;background:linear-gradient(#a9aca2,#737a6b);box-shadow:inset 0 2px #e9e9d9,0 5px #34412f}.tools>button{flex:0 1 145px;min-width:0;min-height:0;padding:5px 10px;border:3px solid #42483f;border-top-color:#eeeee4;border-radius:12px;background:linear-gradient(#cbd0c7,#878f82);color:white;text-shadow:1px 2px #20251d,-1px -1px #353c2f;box-shadow:inset 0 3px #fff9,0 4px #363e32;font-size:24px;font-weight:900;display:flex;justify-content:center;align-items:center;gap:8px}.tools>button span{font-size:19px}.tools small,.tool-label,.secondary-tools{display:none}.tools #undo{order:0}.tools #redo{order:1}.tools #erase-tool{order:2}.tools #x-tool{order:3;flex-basis:55px}.tools #hint-open{order:4;background:linear-gradient(#60d4ff,#128cdc 60%,#0873c4);border-color:#15527b;border-top-color:#b0edff;box-shadow:inset 0 3px #97e9ff,0 4px #124266}.tool-spacer{order:5;display:flex;align-items:center;justify-content:center;min-width:0;flex:1;font-size:14px;font-weight:800;color:#343c2e}.tools #submit,.tools #submit.incomplete{order:6;flex:0 1 280px;background:linear-gradient(#b1ff28,#78d300 55%,#52ad00);border:3px solid #355717;border-top-color:#efffd4;box-shadow:inset 0 3px #d7ff8b,0 4px #2f4e17;color:white;text-shadow:1px 2px #254107,-1px -1px #254107;font-size:25px;filter:none}.hint-panel{left:auto;right:30px;bottom:110px}.list-mode .avatar{display:none}.list-mode .character{padding-left:12px}.dark .clue{background:none;color:#302b23}.dark .evidence-panel{background:linear-gradient(#ddd6c3,#ada997)}.dark .character{background:#eee8d7}
@media(max-width:1100px) and (min-width:701px){.workspace{padding:10px;gap:10px;grid-template-rows:60px minmax(0,1fr) 66px;grid-template-columns:minmax(0,1fr) 35%}.map-shell{width:min(100%,calc(100dvh - 180px))}.brand{font-size:30px;padding:3px 10px}.case-title{font-size:23px;padding:6px 16px}.header-action{width:43px;height:43px;font-size:27px}.evidence-panel{padding:8px;gap:6px}.panel-heading{min-height:29px;height:29px}.panel-heading h1{font-size:25px}.character{padding:5px 6px 5px 62px}.avatar{width:48px;height:48px;left:6px}.identity strong{font-size:19px}.clue{font-size:14px}.tools{gap:6px;padding:5px}.tools>button span{font-size:15px}.tools>button{font-size:20px;padding:4px}.tools #submit{font-size:20px}.tool-spacer{display:none}}
@media(max-width:700px){
 body{height:100dvh;overflow:hidden}.workspace{height:100dvh;min-height:0;padding:8px 8px max(8px,env(safe-area-inset-bottom));gap:8px;grid-template-columns:minmax(0,1fr);grid-template-rows:44px minmax(0,1fr) 270px 100px;grid-template-areas:'header' 'map' 'heroes' 'tools'}
 .game-header{display:flex;gap:5px;min-width:0}.brand{display:flex;font-size:23px;padding:3px 7px;white-space:nowrap;border-width:2px;border-radius:6px;box-shadow:0 3px #572919}.case-title{font-size:13px;letter-spacing:0;padding:7px 5px;border-width:2px;white-space:nowrap;border-radius:7px}.round-info{padding:4px 5px;border-width:2px;border-radius:7px}.round-info .timer{font-size:15px;letter-spacing:0}.header-action{width:30px;height:31px;min-width:27px;font-size:21px;padding:0;border-width:2px;border-radius:7px}.game-header>.header-action:last-child{font-size:19px}.mobile-header{display:none}
 .map-panel{padding:0;justify-content:center;min-height:0;flex-shrink:1}.map-shell{width:min(100%,calc(100dvh - 470px));max-width:100%;border:0;padding:0}.board{border-width:6px}.room-label,.cell.room-hover .room-label{font-size:clamp(10px,2.9vw,13px);padding:1px 4px;bottom:-3px;right:0;transform:translateX(5%);border:0;background:#20231fd4;border-radius:2px}.stone-wall.vertical{width:7px;right:-3px}.stone-wall.horizontal{height:7px;bottom:-3px}.notes{font-size:12px}.cross{font-size:35px}
 .evidence-panel{padding:6px;gap:5px;border-width:4px;border-radius:12px;overflow:visible}.panel-heading{height:25px;min-height:25px;padding:0 4px}.panel-heading h1{font-size:23px}.panel-heading>span{font-size:15px;padding:0 8px;border-radius:6px}.characters,.list-mode .characters{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:6px}.character,.list-mode .character{padding:5px 5px 5px 49px;gap:1px;display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;border-radius:8px;min-height:0}.avatar{width:39px;height:48px;left:4px;border-width:1px;border-radius:7px;background-size:300% 200%}.identity strong{font-size:16px;line-height:1.2}.clue,.list-mode .clue{font-size:12px;line-height:1.35;padding:0}.character-top{display:contents}.identity{text-align:left}.character[aria-pressed=true] .character-top{background:none}.list-mode .character{padding-left:6px}.list-mode .identity strong{font-size:16px}
 .tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:40px 36px;gap:5px;padding:5px;border-width:3px;border-radius:11px;position:static;height:auto;z-index:15}.tools>button{min-height:0;height:auto;gap:3px;border-width:2px;padding:1px;border-radius:8px;font-size:20px;box-shadow:inset 0 2px #fff8,0 2px #363e32}.tools>button span{font-size:12px}.tools #erase-tool>span:first-child{font-size:20px}.tools #x-tool .x-icon{font-size:25px}.tools #submit,.tools #submit.incomplete{grid-column:1/-1;font-size:20px;border-width:2px}.tool-spacer{display:none}.tools #undo{font-size:19px}.tools #redo{font-size:19px}.tools #hint-open{font-size:21px}.tools #hint-open span{font-size:13px}
 .hint-panel{bottom:118px;left:10px;right:10px;width:auto;max-height:calc(100dvh - 150px);overflow:auto}.map-panel:has(.show-coordinates){padding:12px 12px 0}.map-panel:has(.show-coordinates) .map-heading{display:none}.show-coordinates .axis{font-size:9px}.show-coordinates .axis.columns{top:-12px}.show-coordinates .axis.rows{left:-12px}.symbols{bottom:110px;right:15px}
}
@media(max-width:700px) and (max-height:740px){.workspace{grid-template-rows:40px minmax(0,1fr) 236px 88px;gap:6px;padding:6px}.map-shell{width:min(100%,calc(100dvh - 414px))}.evidence-panel{padding:5px;gap:4px}.panel-heading{height:22px;min-height:22px}.panel-heading h1{font-size:20px}.characters{gap:4px}.character{padding-top:3px;padding-bottom:3px}.clue{font-size:12px;line-height:1.25}.identity strong{font-size:15px}.tools{grid-template-rows:34px 32px;gap:4px}.brand{font-size:20px}.case-title{font-size:12px;padding:6px 3px}.game-header{gap:4px}.header-action{width:27px;min-width:25px}.round-info .timer{font-size:13px}.avatar{width:34px;height:42px}.character{padding-left:42px}.room-label{font-size:10px}}
@media(max-width:350px){.case-title{display:none}.game-header .round-info{margin-left:auto}.avatar{width:30px;height:36px}.character{padding-left:37px}.clue{font-size:11px}.identity strong{font-size:14px}}
@media print{.workspace{display:none!important}#print-sheet .room-label{color:white;background:#252923!important}#print-sheet .board{border:4px solid #555}}

/* Candidates follow the selected testimony and current exclusions. */
.cell.candidate-cell:before{display:block;content:'';position:absolute;inset:2px;background:linear-gradient(#fff75c70,#f4d32250);opacity:1;box-shadow:inset 0 0 0 2px #ffe55a,0 0 8px #ffea6650;border-radius:3px;pointer-events:none;z-index:1}
.cell.candidate-cell:hover:before{background:#fff45f99;box-shadow:inset 0 0 0 3px #fff4a0,0 0 10px #ffec7b80}
