/* V131: a quiet ritual frame. Camera pixels remain the actual rear-camera feed. */
#screen-dungeon .dg-camp{background:#090f10;gap:16px}
#screen-dungeon .dg-camp-hero{min-height:250px;border:0;border-radius:2px;padding:28px 24px;box-shadow:none;animation:none;background:#0b1112;isolation:isolate}
#screen-dungeon .dg-camp-hero .dg-camp-art{object-fit:cover;object-position:65% 55%;opacity:.85}
#screen-dungeon .dg-camp-hero:after{background:linear-gradient(90deg,#060b0de8,#060b0d30),linear-gradient(0deg,#090f10,transparent 65%)}
#screen-dungeon .dg-camp-hero small{display:block;font-size:11px;letter-spacing:.12em;color:#e0c58e}
#screen-dungeon .dg-camp-hero h2{font:700 clamp(27px,4vw,44px)/1.35 var(--serif);max-width:12ch;letter-spacing:-.03em;color:#f1e5c7}
#screen-dungeon .dg-camp-hero p{max-width:25em;font-size:13px;line-height:1.7;color:#d4cbb5}
#screen-dungeon .dg-ritual-route{grid-column:1/-1;order:-1;padding:6px 2px 16px;border-bottom:1px solid #b99a6244;background:none;text-align:left}
#screen-dungeon .dg-ritual-route small{font-size:11px;color:#c9b382;letter-spacing:.08em}
#screen-dungeon .dg-ritual-route p{margin:8px 0;font:700 clamp(13px,2.5vw,18px)/1.6 var(--serif);color:#f0e2c4;word-break:keep-all}
#screen-dungeon .dg-ritual-route>span{display:block;max-width:58em;font-size:12px;line-height:1.7;color:#b8c4bd;word-break:keep-all}
#screen-dungeon .dg-camera-entry{position:relative;grid-column:1/-1;order:1;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:112px;padding:18px 48px 18px 18px;border:1px solid #baa16b70;border-radius:3px;background:linear-gradient(115deg,#2b3028,#111c1c);color:#e9dfc5;text-align:left;cursor:pointer}
#screen-dungeon .dg-camera-entry small{color:#d6bc80;font-size:10px;letter-spacing:.1em}
#screen-dungeon .dg-camera-entry b{font:700 18px/1.45 var(--serif)}
#screen-dungeon .dg-camera-entry span{font-size:12px;line-height:1.6;color:#bac8bf;word-break:keep-all}
#screen-dungeon .dg-camera-entry i{position:absolute;right:18px;top:32px;font:26px var(--serif);color:#ddc48b}
#screen-dungeon .dg-camera-entry:focus-visible{outline:2px solid #f1d89b;outline-offset:4px}
#screen-dungeon .dg-ritual-brief{margin:0;padding:12px 0;border-block:1px solid #a58f5c44;font-size:13px;line-height:1.7;color:#d9ccb0;text-align:center;word-break:keep-all}
#screen-dungeon .dg-impact-readout{position:absolute;z-index:5;left:50%;top:38%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:4px;color:#f5e1ae;text-shadow:0 2px 5px #000,0 0 12px #000;opacity:0;pointer-events:none;transition:opacity .12s}
#screen-dungeon .dg-impact-readout.show{opacity:1}
#screen-dungeon .dg-impact-readout b{font:700 clamp(16px,3vw,24px)/1.1 var(--serif);letter-spacing:.12em}
#screen-dungeon .dg-impact-readout span{font:700 18px/1.1 var(--sans);color:#fff2d3}
#screen-dungeon .dg-impact-readout[data-kind=seal]{color:#bde9d0}
#screen-dungeon .dg-impact-readout[data-kind=heavy] b{color:#ffd48e}
#screen-dungeon .dg-battle .dg-objective{border:0;border-left:2px solid #bfa46a;border-radius:0;background:#081211d9;font-size:12px;line-height:1.6;text-align:left;max-width:min(40vw,350px);padding:6px 12px}
#screen-dungeon .dg-battle .px-action.attack{border:2px solid #e0c18c;background:linear-gradient(145deg,#625035ed,#241e16f5);box-shadow:inset 0 0 0 2px #b89a5755}
#screen-dungeon .dg-battle .px-action.dodge{border-color:#b4d7c8;background:#142a28ed}
#screen-dungeon .dg-battle .px-action.seal.ready{border:2px solid #f5d48d;background:#43351fe8}
#screen-dungeon .dg-stage-shift .px-stage{animation:none}
#screen-ar-outing .ar-outing-scene::before{opacity:0;animation:none}
#screen-ar-outing .ar-outing-head{background:linear-gradient(#050b0de8,transparent);padding-bottom:8px}
#screen-ar-outing .ar-outing-head b{font:700 20px/1.2 var(--serif);color:#f3e4c1}
#screen-ar-outing .ar-outing-head .btn{border:1px solid #d3bd8780;border-radius:3px;background:#090e10b0;color:#ebdfc0}
#screen-ar-outing .ar-outing-objective{border:0;border-radius:0;background:#07110fbb;color:#eee2c4;padding:5px 9px}
#screen-ar-outing .ar-outing-mode{border-radius:0;background:#07110fbb}
#screen-ar-outing .ar-outing-signal{border-radius:2px;border:0;background:#07110fbb}
#screen-ar-outing .ar-outing-signal-text{font-size:11px}
#screen-ar-outing .ar-ritual-viewfinder{position:absolute;z-index:1;left:50%;top:47%;width:clamp(120px,50vw,250px);height:clamp(130px,30dvh,270px);transform:translate(-50%,-50%);pointer-events:none;color:#dfcc98;opacity:.55}
#screen-ar-outing .ar-ritual-viewfinder i{position:absolute;width:17px;height:17px;border:0 solid currentColor}
#screen-ar-outing .ar-ritual-viewfinder i:nth-child(1){left:0;top:0;border-width:2px 0 0 2px}
#screen-ar-outing .ar-ritual-viewfinder i:nth-child(2){right:0;top:0;border-width:2px 2px 0 0}
#screen-ar-outing .ar-ritual-viewfinder i:nth-child(3){left:0;bottom:0;border-width:0 0 2px 2px}
#screen-ar-outing .ar-ritual-viewfinder i:nth-child(4){right:0;bottom:0;border-width:0 2px 2px 0}
#screen-ar-outing[data-focus=ready] .ar-ritual-viewfinder{color:#d6f1ce;opacity:1}
#screen-ar-outing .ar-ritual-focus{position:absolute;z-index:3;left:50%;top:53%;transform:translate(-50%,-50%);margin:0;padding:5px 9px;max-width:80%;font-size:12px;color:#ead9ac;background:#060e10b8;pointer-events:none;white-space:nowrap}
#screen-ar-outing .ar-outing-target.manifest::before{top:88%;width:100px;height:38px;border:1px solid #d8c48c;box-shadow:0 0 0 5px #d8c48c18,0 0 16px #e6d59544;transform:translate(-50%,-50%)}
#screen-ar-outing .ar-outing-footer{gap:5px 8px}
#screen-ar-outing .ar-ritual-select{grid-column:1/-1;pointer-events:auto;min-height:48px;border:1px solid #e0c888;border-radius:3px;background:#ead6a5;color:#211d15;font-weight:800;font-size:14px;box-shadow:none}
#screen-ar-outing .ar-ritual-select:disabled{background:#0b1719e8;border-color:#82968a77;color:#c5cdbf;opacity:1}
#screen-ar-outing .ar-outing-controls{display:flex;gap:6px;justify-content:flex-end;pointer-events:auto}
#screen-ar-outing .ar-outing-controls .btn{font-size:11px;border-radius:3px;min-height:44px;background:#081719e0;color:#e0d1ae}
#screen-ar-outing .ar-outing-safety,#screen-ar-outing .ar-outing-motion,#screen-ar-outing .ar-outing-discovery{border-radius:0;border:0;background:#061113c9;padding:5px 8px}
#screen-ar-outing .ar-outing-motion{font-size:11px}
#screen-ar-outing[data-camera=live] .ar-outing-fallback{display:none}
#screen-ar-outing .ar-outing-spirit.behavior-watch,#screen-ar-outing .ar-outing-spirit.behavior-drift,#screen-ar-outing .ar-outing-spirit.behavior-flicker{animation:none}
@media(orientation:landscape) and (max-height:500px){
 #screen-dungeon .dg-camp-hero{min-height:180px;padding:20px}
 #screen-dungeon .dg-ritual-route{padding-bottom:10px}
 #screen-dungeon .dg-battle .dg-objective{font-size:11px;max-width:38vw}
 #screen-dungeon .dg-impact-readout{top:31%;left:55%}
 #screen-ar-outing .ar-ritual-select{min-height:44px;font-size:12px}
 #screen-ar-outing .ar-outing-footer{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px}
 #screen-ar-outing .ar-outing-safety{font-size:10px;line-height:1.3}
 #screen-ar-outing .ar-outing-motion{font-size:10px;line-height:1.3}
 #screen-ar-outing .ar-outing-head b{font-size:17px}
 #screen-ar-outing .ar-ritual-viewfinder{top:44%;height:120px;width:170px}
 #screen-ar-outing .ar-ritual-focus{top:40%;font-size:11px}
}
@media(prefers-reduced-motion:reduce){#screen-dungeon .dg-impact-readout{transition:none}}
