/* 写实材质版：图像负责空间与物件，文字与交互保持清晰。 */
:root { --muted: #b9ad98; --muted-2: #9f9380; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #e8d3a0; outline-offset: 4px; }
.screen--title { background: linear-gradient(90deg, rgba(15,12,10,.91), rgba(15,12,10,.65) 36%, rgba(15,12,10,.08) 75%), url('/assets/scenes/court-hero.jpg') center / cover; }
.title-inner { max-width: 690px; padding-top: clamp(54px, 12vh, 124px); padding-bottom: 35px; }
.brand { margin-bottom: 34px; }
.title-edition { color: #d0b480; font-size: 12px; letter-spacing: .32em; margin-bottom: 20px; }
.title-main { font-size: clamp(54px, 7.5vw, 106px); }
.title-sub { font-size: clamp(16px, 1.8vw, 22px); margin-top: 25px; }
.title-desc { font-size: 14px; max-width: 515px; color: #d5cbb8; line-height: 2.2; }
.title-actions { margin-top: 28px; flex-wrap: wrap; }
.title-actions .btn--gold { display: flex; gap: 34px; align-items: center; }
.title-actions .btn--gold span { font-size: 23px; font-weight: 400; }
.title-meta { margin-top: 32px; color: #c0b098; font-size: 10px; letter-spacing: .1em; }
.title-disclaim { max-width: 480px; color: #b5a790; line-height: 1.8; }
.title-foot { padding-right: 160px; }
.scene-caption { position: absolute; right: 32px; bottom: 38px; font-size: 10px; letter-spacing: .15em; color: #f6e9d1; text-shadow: 0 1px 8px #000; pointer-events: none; }
.scene-caption small { display: block; text-align: right; font-size: 9px; opacity: .72; margin-top: 7px; }
.resume-btn { background: #201b16d9; border: 1px solid #8a7247; color: #e8d3a0; padding: 12px 18px; margin-top: 16px; font-family: inherit; cursor: pointer; font-size: 12px; }
.cases-intro { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 8px 0 0; }
.case-grid { gap: 26px; margin-top: 36px; }
.case-cover { height: clamp(180px, 20vw, 270px); }
.case-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case-card:hover .case-photo { transform: scale(1.035); }
.case-cover::after { background: linear-gradient(180deg, #0005, transparent 35%, #15110fba); }
.case-cover-no { color: #fff1d3; }
.case-photo-label { position: absolute; bottom: 17px; left: 20px; font-size: 11px; color: #eee2cb; z-index: 2; }
.case-card { border-radius: 5px; background: #201a16; }
.case-card.is-locked { opacity: .82; cursor: pointer; }
.case-lock { position: static; display: block; padding: 12px 20px; background: #100e0b; text-align: left; font-size: 11px; border-top: 1px solid #bca16a30; }
.case-body { padding: 23px; }
.case-result { font-size: 11px; color: #d3b783; margin: 3px 0 16px; }
.brief-art { margin: 0 0 28px; position: relative; }
.brief-art img { width: 100%; height: 220px; object-fit: cover; display: block; border-radius: 3px; }
.brief-art figcaption { position: absolute; bottom: 10px; right: 12px; color: #fff1db; font-size: 9px; background: #15120fbc; padding: 5px 8px; }
.brief-left { min-width: 0; }
.brief-right { align-self: start; }
.brief-story { font-size: 14px; line-height: 2.1; color: #e0d5c0; }
.docket { position: fixed; left: 24px; top: 94px; width: 262px; z-index: 12; background: #211c17ed; border: 1px solid #b79a623f; border-top: 2px solid #bb9b61; padding: 15px 17px; box-shadow: 0 10px 35px #0004; }
.docket summary { cursor: pointer; list-style: none; font-size: 12px; color: #dfc698; letter-spacing: .05em; display: flex; justify-content: space-between; gap: 8px; }
.docket summary::-webkit-details-marker { display: none; }
.docket-fold { color: #a89a84; font-size: 9px; white-space: nowrap; }
.docket p { font-size: 12px; line-height: 1.9; color: #d3c7b2; margin: 13px 0; }
.docket-learn { border-top: 1px solid #bca16a30; padding-top: 13px; }
.docket-learn b { font-family: var(--serif); font-size: 16px; font-weight: 400; color: #f0e3cb; }
.docket-learn p { color: #bcb09c; font-size: 11px; }
.docket-tools { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; }
.docket-tools .link-btn { font-size: 11px; color: #d5bc90; }
.docket small { color: #a59983; font-size: 9px; display: block; padding-top: 12px; line-height: 1.6; }
#drawer-scene { position: relative; }
#drawer-scene img { width: 100%; height: 125px; object-fit: cover; display: block; }
#drawer-scene span { position: absolute; left: 20px; bottom: 11px; color: #ffedce; text-shadow: 0 2px 6px #000; font-size: 10px; }
.ev-card.is-pinned { border-left: 3px solid var(--gold); }
.evidence-paper { background: #efe4cf; color: #3e3529; border: 1px solid #c7b89a; padding: 25px 27px; position: relative; box-shadow: 2px 4px 0 #b8a78b, 0 10px 25px #0003; margin: 4px 3px 28px 0; }
.evidence-paper h4 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 25px 0 16px; color: #3c3227; }
.evidence-paper p { font-family: var(--serif); font-size: 14px; line-height: 2.1; color: #493f32; margin-bottom: 4px; }
.evidence-paper small { color: #786b57; font-size: 10px; }
.paper-stamp { color: #96644e; border: 1px solid #a87861; font-size: 10px; position: absolute; right: 15px; top: 14px; padding: 3px 7px; transform: rotate(-4deg); }
.task-foot { flex-wrap: wrap; gap: 8px; padding-top: 12px; }
#task-submit { margin-left: auto; }
.task-explain { max-height: 18vh; overflow: auto; flex-shrink: 0; }
.counterfact-note { color: var(--muted); font-size: 12px; line-height: 1.8; }
.source-links { border-top: 1px solid #c8a45a33; padding-top: 16px; margin-top: 16px; font-size: 11px; color: var(--muted); }
.source-links a { display: block; color: #ddc28d; margin-top: 9px; text-underline-offset: 3px; line-height: 1.7; }
.decision-record { margin-top: 25px; }
.decision { border-top: 1px solid #c8a45a26; padding: 15px 0; }
.decision summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 13px; line-height: 1.9; color: #e0d2b9; }
.decision em { color: #91b193; font-size: 11px; font-style: normal; flex-shrink: 0; }
.decision.needs-review em { color: #d7ac6e; }
.decision p { color: var(--muted); font-size: 12px; line-height: 1.9; padding: 0 15px; }
.quiz-opt:disabled { opacity: 1; cursor: default; }
@media (min-width: 901px) and (max-width: 1180px) { .docket { width: 225px; left: 15px; } }
@media (max-width: 900px) {
  .docket { top: 69px; left: 14px; width: min(340px, calc(100vw - 28px)); padding: 11px 14px; }
  .docket-tools { padding-top: 9px; }
  .docket small { display: none; }
  .docket details[open] { max-height: 27vh; overflow-y: auto; }
  .title-inner { padding-top: 55px; }
  .title-foot { padding-right: 0; padding-bottom: 25px; }
  .title-disclaim { flex-basis: 100%; margin: 4px 0 0; }
  .scene-caption { display: none; }
  .case-cover { height: 230px; }
  .case-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
  .cases-role { flex-wrap: wrap; }
  .screen-head { flex-wrap: wrap; }
  .task { max-height: 64dvh; }
  .task-title { flex-shrink: 0; font-size: 16px; }
  .task-explain { max-height: 16dvh; font-size: 12px; }
  .decision summary { display: block; }
  .decision em { display: block; }
}
@media (max-width: 560px) {
  .screen--title { background-position: 58% center; background-image: linear-gradient(90deg, #0f0c0ae8, #0f0c0a70), url('/assets/scenes/court-hero.jpg'); }
  .title-inner { padding-top: 42px; }
  .brand { margin-bottom: 28px; }
  .title-main { font-size: 60px; }
  .title-edition { margin-bottom: 17px; font-size: 11px; }
  .title-sub { font-size: 18px; margin-top: 20px; }
  .title-desc { font-size: 13px; margin-top: 23px; }
  .title-actions { margin-top: 24px; }
  .title-meta { margin-top: 26px; gap: 8px; line-height: 1.8; }
  .brief-art img { height: 180px; }
  .case-cover { height: 205px; }
  .evidence-paper { padding: 20px; }
  .hud-btn { padding: 7px 9px; }
  .stepper { min-width: 0; flex: 1; }
  .stepper .step-line { width: 5px; flex-shrink: 1; }
  .step-node { gap: 0; }
}

.title-disclaim { color: #e1d4bd; background: #17130ed9; padding: 6px 10px; border-radius: 2px; }

/* 游戏内使用写实人物与庭审镜头，不显示旧的低多边形人物。 */
#court-scene { position:fixed; inset:0; z-index:0; background:#211b15; overflow:hidden; }
#court-scene img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .65s ease; object-position:center 44%; }
#court-scene img.is-current { opacity:1; }
#scene { display:none; }
body::after { background:linear-gradient(180deg,#0002,transparent 25%,transparent 60%,#0006); }
#speaker-tag { left:auto!important; right:30px; top:90px!important; transform:none; background:#211b16ec; color:#f6e9d4; border-left:2px solid #d7bb82; max-width:300px; padding:11px 16px; font-size:13px; }
.photo-hotspot { transform:translate(-50%,-50%); }
.dialogue { width:min(780px,calc(100vw - 96px)); background:linear-gradient(180deg,#201b17f7,#14110ffc); border-top:2px solid #bda36e; }
@media(max-width:900px){
  #court-scene img { object-position:50% 36%; }
  #speaker-tag { top:238px!important; right:14px; max-width:calc(100vw - 28px); font-size:11px; padding:8px 12px; }
  .photo-hotspot { transform:none; padding:8px 10px; font-size:11px; }
  .dialogue { width:calc(100vw - 28px); max-height:48dvh; }
  .dl-text { max-height:28dvh; overflow-y:auto; font-size:14px; }
}
@media(prefers-reduced-motion:reduce){ #court-scene img{transition:none;} }

#court-scene {touch-action:none;cursor:grab;}
#court-scene:active {cursor:grabbing;}
#panorama-canvas {position:absolute;inset:0;width:100%;height:100%;display:none;touch-action:none;}
#court-scene.is-panorama #panorama-canvas {display:block;}
#court-scene.is-panorama img {visibility:hidden;}
.camera-dock {position:fixed;right:24px;top:145px;z-index:13;display:flex;flex-direction:column;gap:6px;padding:10px;background:#1b1712e8;border:1px solid #bd9d614a;border-radius:3px;max-width:145px;}
.camera-dock button {background:#bda16a0d;border:1px solid #bda16a33;color:#e2d1b3;padding:8px 12px;font:11px var(--sans);cursor:pointer;white-space:nowrap;}
.camera-dock button[aria-pressed=true] {background:#d5b779;color:#241b10;border-color:#e6cc96;}
.camera-dock small {color:#a99b85;font-size:9px;padding-top:3px;}
.camera-zoom {display:flex;gap:4px;}
.camera-zoom button {flex:1;padding:6px;}
@media(max-width:900px){
  .camera-dock {top:111px;left:14px;right:14px;max-width:none;flex-direction:row;overflow-x:auto;padding:5px;gap:4px;}
  .camera-dock button {padding:7px 9px;font-size:10px;}
  .camera-dock small {display:none;}
  .camera-zoom {flex-shrink:0;}
}

.three-mode #scene {display:block;}
.three-mode .camera-dock {top:145px;}
.three-mode #speaker-tag {max-width:240px;}
@media(max-width:900px){.three-mode .camera-dock{top:111px;}}

@media(max-width:900px){
 .docket:has(details:not([open])) .docket-tools {display:none;}
 .docket:has(details[open]) {z-index:17;}
 .docket {padding:9px 12px;}
 .hud .stepper {position:static;transform:none;justify-content:center;flex:1;gap:1px;}
 .hud .step-node .num {width:17px;height:17px;font-size:9px;}
 .hud .step-node > span:last-child:not(.num) {display:none;}
 .hud .step-line {width:3px;}
 .hud-side {flex:0 0 auto;}
 .hud-side--right {gap:5px;}
 .hud-icon {width:29px;height:29px;}
 .hud-btn {padding:6px;}
 .hud-btn span {display:none;}
}
@media(max-width:760px){
 .hotspot-label {font-size:10px;padding:8px 9px;max-width:calc((100vw - 36px)/3);}
 .hs-dot{width:4px;height:4px;}
}
