/* Single coherent 2D game skin. No inherited art skins or raster ground grain. */
:root{font-family:'Noto Sans SC',sans-serif;--serif:'Noto Sans SC',sans-serif;--ink:#413728;--muted:#70614c;--paper:#fff4da;--surface:#eed5a5;--line:#c3a778;--accent:#e8af2f;--gold:#ffe275;--T:#d9ad70;--R:#e5ce98;--S:#83b94e;--G:#b4be65;background:#354e35;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 26%,#83a45a,#4c7445 55%,#2c4b37 100%);color:var(--ink)}
button{border:2px solid #685338;border-radius:12px;background:linear-gradient(#fff2ce 0%,#ebcc8e 100%);color:#60451f;box-shadow:inset 0 3px #fff7e5,0 4px #513f29;font-weight:800;cursor:pointer;transition:transform .12s,filter .12s}
button:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}button:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 2px #fff5,0 1px #513f29}button:disabled{opacity:.46;cursor:default;filter:saturate(.4)}button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #ffed8a;outline-offset:3px}
.workspace{height:100dvh;min-height:800px;display:grid;grid-template-columns:minmax(0,1fr) 96px;grid-template-rows:64px minmax(300px,1fr) 218px;grid-template-areas:'header tools' 'map tools' 'heroes tools';gap:14px;padding:14px 18px}
.game-header{grid-area:header;display:flex;align-items:center;gap:28px;padding:0 10px}
.brand{font-size:27px;font-weight:900;letter-spacing:0;color:#fff3cb;text-shadow:0 3px #51452d,2px 0 #51452d,-2px 0 #51452d;gap:11px;flex-shrink:0}
.brand small{font-family:inherit;font-size:12px;font-weight:700;color:#e6e7c7;text-shadow:0 1px #435135;letter-spacing:1px;margin-top:3px}
.seal{display:grid;place-items:center;width:49px;height:53px;border-radius:12px;outline:none;border:3px solid #ffdf70;background:linear-gradient(#ffca42,#dd8620);color:#fffbd9;font:900 34px 'Noto Sans SC',sans-serif;box-shadow:inset 0 3px #fff5b0,0 5px #9a561b;text-shadow:0 2px #bb6c1e;transform:rotate(-6deg)}
.case-note{border:0;border-left:3px solid #c9d19d;padding:0 0 0 18px;line-height:1.6;color:#f6efd8;font-size:14px;max-width:540px;background:none}.case-note button{display:inline;margin-left:8px;padding:0;border:0;border-bottom:1px solid #f3d37b;box-shadow:none;border-radius:0;background:none;color:#ffe69c;font-size:13px}
.round-info{margin-left:auto;display:flex;align-items:center;gap:13px;background:#2c442bcc;box-shadow:inset 0 2px #182f25;border:2px solid #92a668;border-radius:14px;padding:8px 14px;white-space:nowrap;color:#dce7c0;font-size:12px}.timer{color:#ffe59a;font-size:18px;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:1px}
.evidence-panel{grid-area:heroes;border:3px solid #555c4c;border-top:4px solid #e6e0b9;border-radius:18px;background:linear-gradient(#b9bb9d,#949e83);padding:8px 11px 11px;box-shadow:inset 2px 0 #dce1bb,inset -2px 0 #737f68,0 5px #344b36;gap:8px;display:flex;flex-direction:column;min-width:0;overflow:visible}
.panel-heading{min-height:19px}.panel-heading h1{font-size:15px;font-weight:900;color:#3d4c35;margin:0}.panel-heading>span{font-size:12px;font-weight:600;color:#4c5941}.characters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;flex:1;min-height:0}.character{position:relative;display:flex;flex-direction:column;text-align:center;min-width:0;padding:0;border:3px solid #715530;border-radius:13px;overflow:hidden;background:#f6e4bd;box-shadow:inset 0 2px #fff2d4,0 4px #5a5239;transition:transform .12s,filter .12s}
.character-top{display:flex;flex-direction:row;align-items:center;gap:8px;padding:6px 7px;background:linear-gradient(#f5dba0,#e4b967);border-bottom:2px solid #bf9855;min-height:78px}
.portrait{background-image:url('assets/redesign-v9/portraits.png');background-size:300% 200%;background-repeat:no-repeat}.avatar{position:static;width:64px;height:64px;border:2px solid #fff3c4;border-radius:10px;flex-shrink:0;box-shadow:0 3px #987032;background-color:#668c67}
.identity{text-align:left}.identity strong{font-size:19px;font-weight:900;letter-spacing:0;color:#60411e;text-shadow:0 1px #fff6d6;white-space:nowrap}.identity small{font-size:10px;color:#896335;font-weight:700;margin-top:3px}
.clue{font-size:13px;line-height:1.7;min-height:0;flex:1;padding:7px 7px;background:#fff1d1;border:0;border-radius:0;font-weight:500;color:#674b2a;display:flex;align-items:center;justify-content:center;display:block}.clue b{font-weight:800;color:#483116}
.character[aria-pressed=true]{border-color:#ffe987;box-shadow:0 4px #b47a27,0 0 0 2px #fff5b3;transform:translateY(-4px);z-index:2}.character[aria-pressed=true] .character-top{background:linear-gradient(#ffeaa0,#ffc943)}.character[aria-pressed=true] .identity strong{color:#805316}.character.placed{opacity:.42;filter:saturate(.55)}.character.struck .avatar:after{border-color:#c53c32}.status{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;font-size:12px;color:#364a31;margin:0}.symbols{position:absolute;bottom:233px;padding:6px;z-index:12;border-radius:12px;background:#ece0b7;border:2px solid #586b47}.symbol{background:#fff4d1}
.map-panel{grid-area:map;min-height:0;padding:0;display:flex;align-items:center;justify-content:center;gap:0}
.map-heading{width:min(100%,calc(100dvh - 390px));max-width:none;margin:0 0 10px;color:#f7eccc;font-size:12px;line-height:20px}.map-heading>span:first-child{font-size:18px;font-weight:900;color:#fff1ba;text-shadow:0 2px #475638}.map-heading>span:last-child{background:#2f492c88;border:1px solid #a2b47b;padding:2px 8px;border-radius:8px;font-size:12px}
.map-shell{position:relative;width:min(100%,calc(100dvh - 390px));padding:9px;border:4px solid #536042;border-radius:15px;background:linear-gradient(135deg,#d4d2ad,#9eaa81);box-shadow:inset 0 3px #f2edce,inset 3px 0 #dee3ba,inset 0 -3px #7f8e65,0 7px #3d5535,0 13px 22px #1f3c3338}
.board{border:2px solid #668044;border-radius:5px;box-shadow:0 2px #e3dcb3;overflow:hidden;aspect-ratio:1;isolation:isolate}
.cell{position:relative;padding:0;aspect-ratio:1;border:0;border-right:1px solid #59743b20;border-bottom:1px solid #59743b20;border-radius:0;box-shadow:none;display:grid;place-items:center;overflow:visible;background:var(--R);transition:none}
.cell.T{background:#dcb878}.cell.R{background:#e8d5a3}.cell.S{background:#8cbd55}.cell.G{background:#b6c16a}.cell:before{content:'';position:absolute;inset:0;background:linear-gradient(145deg,#ffffff13,transparent 65%);opacity:calc(var(--texture) * 1.5);pointer-events:none}.cell.G:before,.cell.S:before{background:linear-gradient(145deg,#ffffff16,transparent 65%)}
.cell.bound-right{border-right:var(--wall) solid #819b58;box-shadow:inset -1px 0 #e9e3b5}.cell.bound-bottom{border-bottom:var(--wall) solid #819b58;box-shadow:inset 0 -1px #e9e3b5}.cell.bound-right.bound-bottom{box-shadow:inset -1px -1px #e9e3b5}
.cell.blocked:after{background:#7c6338;opacity:calc(var(--shade)*.22)}.cell:hover:not(:disabled){transform:none;filter:none;box-shadow:inset 0 0 0 3px #fff2ac}.cell:active:not(:disabled){transform:none}.cell.room-hover{outline:1px solid #fffcc653;outline-offset:-2px}.cell.room-hover .room-label{background:#7b8745}.cell.relevant.R{box-shadow:inset 0 0 0 3px #fff1a1}
.map-prop{width:var(--object-size);height:var(--object-size);filter:drop-shadow(0 4px 1px #40562130);object-fit:contain}.cell.relevant .map-prop{filter:drop-shadow(0 0 3px #fffbd0) drop-shadow(0 0 4px #ffe58c)}
.room-label{font-size:clamp(9px,1vw,12px);font-weight:800;line-height:1.45;padding:0 4px;color:#fff4cf;background:#6a7943e8;border:1px solid #dfe6aa;border-radius:4px;box-shadow:0 2px #566a36;bottom:1px;right:1px;text-shadow:0 1px #596539}
.piece{border:3px solid #fff0a2;border-radius:19%;inset:7%;box-shadow:0 4px #996b31,0 0 0 1px #b68139}.piece-mark{font:900 clamp(14px,1.7vw,25px) 'Noto Sans SC',sans-serif;color:#67441f;background:linear-gradient(#ffeeb0,#f2c65d);border:1px solid #a4702b;border-radius:6px;box-shadow:0 2px #865b23;padding:1px 3px;text-shadow:0 1px #ffedac}
.cross{font-weight:900;color:#536d35;opacity:.8;text-shadow:0 2px #eff2b5;font-size:clamp(30px,5vw,80px)}.notes{font-family:inherit;font-weight:900;font-size:clamp(11px,1.2vw,17px);gap:2px 4px}.notes>span{background:#fff1b7d9;border-radius:4px;padding:0 2px;text-shadow:0 1px #fff}
.map-footer{width:min(100%,calc(100dvh - 390px));max-width:none;margin:13px 0 0;font-size:12px;color:#eff0cb;line-height:20px}.map-footer b{background:#29452bb3;border:1px solid #a0b47c;border-radius:8px;padding:3px 9px;color:#ffeca8;box-shadow:inset 0 2px #233d2a}.map-key{display:none}.axis{color:#e8eac3;font-weight:800;font-size:11px}.show-coordinates .axis.columns{top:-24px}.show-coordinates .axis.rows{left:-24px}.map-panel:has(.show-coordinates) .map-heading{margin-bottom:29px}
.tools{grid-area:tools;height:auto;position:static;border:3px solid #4e5c46;border-top:4px solid #e0e5be;border-radius:19px;padding:10px 7px;display:flex;flex-direction:column;gap:12px;background:linear-gradient(100deg,#b8bea0,#939f80);box-shadow:inset 2px 0 #d4ddba,inset -2px 0 #7b8b6b,0 6px #344d34}
.tool-label{text-align:center;color:#4b5d3b;font-size:11px;font-weight:800;letter-spacing:2px}.tools>button{border:2px solid #7f714a;border-radius:13px;min-height:58px;background:linear-gradient(#fff9db,#f3dfac 47%,#e7cc91 49%,#edd59f);box-shadow:inset 0 3px #fffdec,0 4px #665838;color:#66522c;font-size:14px;padding:6px 3px;text-shadow:0 1px #fff9db}.tools>button[aria-pressed=true]{background:linear-gradient(#fff1a5,#ffdc60 46%,#f1ba38 49%,#ffd25b);border-color:#b88829;box-shadow:inset 0 3px #fff9c2,0 4px #8b6528}.tools small{font-size:10px;color:inherit;font-weight:600;display:block;margin-top:2px}.x-icon{font-size:39px}.tools #erase-tool>span{font-size:27px}.tool-spacer{min-height:8px;flex:1}
#hint-open{background:linear-gradient(#b4e9ff,#63c7f5 46%,#379ee0 49%,#66bdec);border-color:#43728d;box-shadow:inset 0 3px #e0f9ff,0 5px #315979;color:#fffbe3;text-shadow:0 2px #3b83aa}
#submit,#submit.incomplete{background:linear-gradient(#d7f881,#ace153 46%,#7fbd31 49%,#a5d850);border:2px solid #64832e;box-shadow:inset 0 3px #efffbd,0 5px #466129;color:#fffdda;text-shadow:0 2px #699332;font-size:17px}#submit.incomplete{filter:saturate(.75)}#submit small{font-size:10px}
.secondary-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px}.secondary-tools>button{padding:6px 2px;font-size:15px;background:linear-gradient(#e4e4c6,#b8c2a0);border:1px solid #71805b;box-shadow:inset 0 2px #f6f4da,0 3px #5a6c4c;color:#526744;border-radius:8px}.secondary-tools>button:first-child{font-size:11px}
.hint-panel{bottom:245px;left:28px;border:3px solid #77613e;border-top:5px solid #dac18a;border-radius:15px;background:linear-gradient(#fff1ca,#e9cd96);box-shadow:inset 0 2px #fff8df,0 5px #58452b,0 16px 30px #1c35295e;color:#614729;padding:14px;width:320px}.hint-panel header{color:#8d744d;font-weight:700}.hint-panel h2{font:900 21px 'Noto Sans SC',sans-serif;color:#715026}.hint-panel p{font-size:14px}.hint-panel header button{border:0;box-shadow:none;background:none}.hint-panel nav button{font-size:12px;background:linear-gradient(#fce7ad,#eac570)}
dialog{background:#f4e4bd;border:5px solid #717d62;border-top:7px solid #d7ddba;border-radius:21px;color:#57462e;box-shadow:inset 0 3px #fff4d3,0 8px #40533a,0 25px 80px #1a332ba8;padding:20px}dialog::backdrop{background:#15372ac2;backdrop-filter:blur(3px)}dialog header{margin:-10px -10px 18px;padding:12px;background:linear-gradient(#afb994,#8c9c75);border-bottom:3px solid #6c8057;border-radius:10px}dialog header h2{font:900 24px 'Noto Sans SC',sans-serif;color:#fff3c7;text-shadow:0 2px #5f7349}dialog header button{border:2px solid #964235;border-radius:9px;background:linear-gradient(#fb9875,#d4543d);box-shadow:inset 0 2px #ffd1a9,0 3px #823829;color:#fff8d8;font-size:24px;width:32px;height:32px;padding:0;line-height:24px}
.tabs{border-color:#c3b184;gap:7px}.tabs button{background:linear-gradient(#ead6a7,#cfb67f);border-color:#ab8e59;font-size:13px;padding:8px 3px}.tabs button[aria-selected=true]{background:linear-gradient(#c3e983,#89bb4b);border-color:#719445;color:#426428;box-shadow:inset 0 2px #e8ffc1,0 3px #637c3d}.option{border-color:#d9c89d}.primary{background:linear-gradient(#c6ee7c,#8abf40);border-color:#6b8c36;color:#365721}.verdict{font:900 34px 'Noto Sans SC',sans-serif;color:#65912c}.verdict.failure{color:#b55738}.hold-demo{background:#decea1}.solved-cover{background:#375a3388;border-radius:6px}.solved-cover strong{font-family:'Noto Sans SC',sans-serif;font-weight:900;color:#ffdf65;text-shadow:0 4px #8d632a,2px 0 #8d632a,-2px 0 #8d632a}.solved-cover button{padding:12px 24px;background:linear-gradient(#fff0ac,#ffc653)}
.list-mode .characters{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,1fr);gap:8px}.list-mode .character{flex-direction:row;align-items:center}.list-mode .character-top{padding:5px;min-width:103px;background:none;border:0}.list-mode .avatar{width:43px;height:43px}.list-mode .identity strong{font-size:16px}.list-mode .identity small{display:none}.list-mode .clue{font-size:12px;text-align:left;padding:6px;min-height:0}
.dark{background:radial-gradient(ellipse at 50% 26%,#506b48,#253f32);--ink:#e9e2c4;--muted:#d2d8ba}.dark .evidence-panel,.dark .tools{background:linear-gradient(#879778,#657c60)}.dark .clue{background:#e3d0a4;color:#59442a}.dark .clue b{color:#46311b}.dark .character{border-color:#5c653d}.dark .character[aria-pressed=true]{border-color:#ffe18a}.dark dialog,.dark .hint-panel{color:#57462e}.dark .identity strong{color:#64471f}
/* Reference-led world surface and floating game controls. */
body{background-color:#5a7840;background-image:linear-gradient(#23361f10,#142b1936),url('assets/camp-v10/landscape.webp');background-position:center;background-size:cover;background-attachment:fixed}
.game-header{background:linear-gradient(90deg,#253827b3,#25382700);border-radius:13px}.case-note{text-shadow:0 1px 2px #23361f}.round-info{background:#202b23c9;border-color:#a8ac83}
.tools{background:none;border:0;box-shadow:none;padding:10px 7px}.tool-label{color:#fff8db;text-shadow:0 2px #405235}.tools>button{border-color:#636651;box-shadow:inset 0 3px #ffffef,0 4px #454d38;background:linear-gradient(#fffdec,#e1e3cf 47%,#c7cbb4 49%,#d4d7c0);color:#555b41}
.secondary-tools>button{background:linear-gradient(#eeeee0,#b9c0a5);border-color:#68715b;box-shadow:inset 0 2px #fff,0 3px #46543b}.tool-spacer{flex:1}
.evidence-panel{background:linear-gradient(#ced0bfef,#a7af97f2);border:3px solid #59604d;border-top:4px solid #f8f8e9;box-shadow:0 5px #3b4b32;border-radius:13px}
.character{border-color:#757761;background:#fffef1;box-shadow:0 3px #636b4f}.character-top{background:linear-gradient(#f3f0df,#dedfca);border-color:#c7ccb4}.clue{background:#fffdf0;color:#514a3a}.clue b{color:#373628}
.map-shell{background:none;border:0;padding:0;border-radius:4px;box-shadow:none}.board{border:5px solid #969a89;border-radius:3px;box-shadow:0 5px #535b43,0 9px 18px #203b2545}
.cell.T{background:#baae6e}.cell.R{background:#d4cb91}.cell.S{background:#80a74f}.cell.G{background:#9dad5d}
.cell:before{background-image:url('assets/camp-v10/terrain.webp');background-size:200% 200%;background-repeat:no-repeat;opacity:clamp(0,calc(var(--texture)*1.7),1)}
.cell.T:before{background-position:0 0}.cell.R:before{background-position:100% 0}.cell.S:before{background-image:url('assets/camp-v10/terrain.webp');background-position:0 100%}.cell.G:before{background-image:url('assets/camp-v10/terrain.webp');background-position:100% 100%}.cell.S:before,.cell.G:before{background-size:200% 200%}
.cell.bound-right{border-right:var(--wall) solid #8e9382;box-shadow:inset -1px 0 #d9ddc5}.cell.bound-bottom{border-bottom:var(--wall) solid #8e9382;box-shadow:inset 0 -1px #d9ddc5}.cell.bound-right.bound-bottom{box-shadow:inset -1px -1px #d9ddc5}
.room-label{background:#53643fe8;border:1px solid #dfe3b4;box-shadow:0 1px #425336}.map-heading>span:first-child,.map-footer{text-shadow:0 2px 2px #293d26}.map-heading>span:last-child{background:#293e28bd}
#hint-open{background:linear-gradient(#b8e9ff,#68c5ef 46%,#3d9cce 49%,#74c2e6);border-color:#456c7b;box-shadow:inset 0 3px #e1f8ff,0 4px #304f61;color:#fff}
#submit,#submit.incomplete{background:linear-gradient(#d6fb80,#a8df4e 46%,#7bb72b 49%,#a0d444);border-color:#607f31;box-shadow:inset 0 3px #f0ffc4,0 5px #425f2b;color:#fff}
dialog{background:#f2f2e8;border:5px solid #52594c;border-top:7px solid #979b87;box-shadow:inset 0 2px #fff,0 6px #303a2c,0 25px 80px #1c2d24b0;border-radius:16px;color:#44483b}
dialog header{background:linear-gradient(#888d7b,#626955);border-color:#474f3e;border-radius:6px}dialog header h2{color:#fffef1;text-shadow:0 2px #363f2e}.tabs{border-color:#c6cbbb}.tabs button{background:linear-gradient(#a0a594,#808974);color:#fffdf0;border-color:#646b59;box-shadow:inset 0 2px #b7beaa,0 3px #535d48}.tabs button[aria-selected=true]{background:linear-gradient(#fff,#eceee1);border-color:#c6cbb9;color:#404834;box-shadow:inset 0 2px #fff,0 3px #a3ad8f}.option{border-color:#d5d9cb}.hint-panel{background:#f3f2e6;border-color:#656c59;border-top-color:#cdd2c0;color:#444b37}.hint-panel h2{color:#4e5a3c}
.dark{background-image:linear-gradient(#162a2b75,#112d2780),url('assets/camp-v10/landscape.webp')}.dark .tools{background:none}.dark .evidence-panel{background:linear-gradient(#8b987eef,#687b61f2)}.dark .character{background:#e0e4d4}.dark .clue{background:#e0e4d4}
@media(max-width:1150px) and (min-width:701px){.workspace{grid-template-rows:64px minmax(280px,1fr) 214px;padding:12px;gap:12px;grid-template-columns:minmax(0,1fr) 82px;min-height:780px}.case-note{font-size:12px}.game-header{gap:14px}.brand{font-size:23px}.round-info>span:first-child{display:none}.round-info{padding:7px 9px}.character-top{flex-direction:column;gap:2px;padding:4px}.avatar{width:48px;height:48px}.identity{text-align:center}.identity strong{font-size:16px}.identity small{display:none}.clue{font-size:12px;padding:5px}.characters{gap:7px}.map-shell,.map-heading,.map-footer{width:min(100%,calc(100dvh - 380px))}.tools{padding:9px 5px}}
@media(min-width:701px) and (max-height:799px){.workspace{height:auto;min-height:800px}.map-shell,.map-heading,.map-footer{width:410px;max-width:100%}}
@media(max-width:700px){
 :root{--mobile-header:46px;--dock-height:clamp(210px,27dvh,242px);--mobile-tools:58px}
 body{height:100dvh;overflow:hidden;background-position:center;background-size:auto 100%}
 .game-header{display:none}
 .mobile-header{display:flex;align-items:center;gap:8px;height:var(--mobile-header);padding:5px 10px;background:linear-gradient(#555a4bdd,#303c30df);color:#fff8dd;border-bottom:2px solid #262e23;box-shadow:inset 0 2px #a0a38a}
 .mobile-header .seal{width:29px;height:31px;font-size:22px;border-width:2px;border-radius:7px;box-shadow:0 2px #936320}.mobile-header b{font-size:17px;text-shadow:0 2px #253225}.mobile-header .timer{font-size:14px;margin-left:auto}
 .mobile-header button{width:30px;height:30px;padding:0;border-radius:7px;border:1px solid #5e604f;background:linear-gradient(#fffef0,#cdcfb8);color:#4d5141;box-shadow:0 2px #303c2f;font-size:16px}
 .workspace{height:calc(100dvh - var(--mobile-header));min-height:0;padding:8px 9px max(6px,env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) var(--dock-height) var(--mobile-tools);grid-template-areas:'map' 'heroes' 'tools';gap:8px;overflow:visible}
 .map-panel{min-height:0;padding:0;gap:5px;justify-content:center;overflow:visible}.map-heading{display:none}
 .map-shell{width:min(100%,calc(100dvh - var(--mobile-header) - var(--dock-height) - var(--mobile-tools) - 61px));min-width:0;padding:0;border:0;background:none;box-shadow:none;border-radius:4px}
 .board{border:4px solid #8b9180;border-radius:3px;box-shadow:0 4px #4a553c,0 8px 14px #1b37263b}
 .map-footer{width:min(100%,calc(100dvh - var(--mobile-header) - var(--dock-height) - var(--mobile-tools) - 61px));min-width:0;margin:3px 0 0;font-size:10px;line-height:18px;gap:5px;text-shadow:0 1px #2e462b}.map-footer b{padding:0 6px;font-size:10px;border-radius:5px;line-height:18px}.map-key{display:none}
 .room-label{font-size:9px;padding:0 2px;line-height:1.3}.cross{font-size:clamp(28px,10vw,42px)}.notes{font-size:11px;gap:1px 2px}.piece{border-width:2px}.piece-mark{font-size:13px;padding:0 2px}
 .evidence-panel{min-height:0;margin:0;border:2px solid #53594a;border-top:3px solid #eef0de;border-radius:10px;padding:6px;box-shadow:0 3px #323f2c;overflow:visible;gap:5px;background:linear-gradient(#b9bca7ef,#999f88f5)}
 .panel-heading{min-height:16px;height:16px}.panel-heading h1{font-size:13px;color:#384533;text-shadow:none}.panel-heading>span{font-size:10px;color:#4d5b43}
 .characters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-rows:auto;gap:6px;flex:1;min-height:0}
 .character{display:flex;flex-direction:column;min-height:0;border:2px solid #73775d;border-radius:8px;box-shadow:0 2px #586046;overflow:hidden;background:#fffdf0}
 .character-top{display:flex;flex-direction:row;align-items:center;justify-content:center;min-height:0;gap:5px;padding:4px 3px 2px;background:none;border:0}
 .avatar{position:static;width:34px;height:34px;border:2px solid #e9cc82;border-radius:7px;box-shadow:0 2px #ac8540}
 .identity{text-align:left}.identity strong{font-size:14px;color:#594322;text-shadow:none}.identity small{display:none}
 .clue{background:none;min-height:0;padding:3px 4px 4px;font-size:12px;line-height:1.4;text-align:left;flex:1;overflow:visible;color:#534b3c}.clue b{color:#3f392d}
 .character[aria-pressed=true] .character-top{background:none}.character[aria-pressed=true]{transform:none;border-color:#ffda62;box-shadow:0 2px #aa7e28,0 0 0 1px #fff6bc;background:#fff4cd}
 .status{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.symbols{bottom:80px;left:12px}
 .tools{grid-area:tools;display:flex;flex-direction:row;align-items:stretch;position:static;height:auto;min-height:0;border:0;border-radius:0;padding:2px 0 4px;gap:8px;background:none;box-shadow:none;z-index:15}
 .tool-label,.tool-spacer,.secondary-tools{display:none}.tools>button{flex:1;min-width:0;min-height:0;height:100%;padding:3px 1px;font-size:12px;border-radius:10px}.tools>button#submit{flex:1.4;font-size:16px}.tools small,#submit small{display:none}.tools .x-icon{font-size:34px}.tools #erase-tool>span{font-size:26px}.tools #undo{font-size:13px}
 .hint-panel{bottom:calc(var(--mobile-tools) + 20px);left:12px;width:calc(100% - 24px);max-width:350px;max-height:calc(100dvh - 110px);overflow:auto;padding:12px}.hint-panel h2{font-size:18px}.hint-panel p{font-size:13px}
 .map-panel:has(.show-coordinates){padding-left:15px;padding-right:15px;padding-top:12px}.map-panel:has(.show-coordinates) .map-heading{display:none}.axis{font-size:9px}.show-coordinates .axis.columns{top:-15px}.show-coordinates .axis.rows{left:-15px}
 .list-mode .characters{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:5px}.list-mode .character{display:flex;flex-direction:row}.list-mode .character-top{padding:3px;min-width:45px}.list-mode .avatar{display:none}.list-mode .identity strong{font-size:12px}.list-mode .clue{padding:3px;font-size:11px;line-height:1.35}
 .dark .evidence-panel{background:linear-gradient(#87957b,#65765e)}.dark .character{background:#e6e5d2}.dark .clue{background:none}.dark .character[aria-pressed=true]{background:#f4e8ba}
}
@media(max-width:700px) and (max-height:680px){:root{--mobile-header:42px;--dock-height:188px;--mobile-tools:52px}.workspace{gap:6px;padding-top:6px}.avatar{width:28px;height:28px}.character-top{padding:3px 2px 1px;gap:3px}.identity strong{font-size:13px}.clue{font-size:11px;line-height:1.3;padding:3px}.evidence-panel{padding:5px;gap:4px}.panel-heading h1{font-size:12px}.panel-heading>span{font-size:9px}.characters{gap:5px}.room-label{font-size:8px}.map-footer{font-size:9px}}
@media print{.game-header,.mobile-header,.workspace{display:none!important}body{background:white!important}#print-sheet .cell{background-color:#f4eddb}#print-sheet .portrait{background-image:url('assets/redesign-v9/portraits.png')}#print-sheet .map-prop{filter:none}#print-sheet .room-label{color:#3c4c2b;background:#e8e3b4}}
