.scene-workspace { grid-template-columns: minmax(0, 1fr); }
.scene-workspace .side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scene-workspace .desk { scroll-margin-top: 14px; }
.scene-workspace .desk-body { padding: 0; }
.case-view .case-hero { min-height: 164px; }
.case-view .case-hero .hero-inner { width: min(100%, 850px); padding-block: 17px 20px; }
.case-view .case-hero h1 { margin-block: 5px 7px; font-size: clamp(2rem, 4.9vw, 3.7rem); }
.case-view .case-hero p { max-width: 67ch; font-size: .96rem; }
.exploration { padding: 14px 16px; }
.explore-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.explore-head .kicker { margin-bottom: 2px; }
.scene-clock { display: flex; align-items: center; gap: 5px; color: var(--accent); font: .85rem var(--mono); white-space: nowrap; }
.camera-help { color: var(--muted); margin: 7px 0 12px; font-size: .88rem; }
.field-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 235px); gap: 10px; align-items: start; }
.camera-window { position: relative; isolation: isolate; overflow: clip; min-width: 0; border: 1px solid #56645b; border-radius: 6px; aspect-ratio: 3/2; min-height: 415px; background: #0b1210; cursor: crosshair; }
.camera-world { position: absolute; isolation: isolate; inset: 0 auto auto 0; width: max(100%, 625px); aspect-ratio: 3/2; user-select: none; will-change: transform; }
.camera-backdrop, .camera-weather { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.camera-backdrop { object-fit: fill; }
.camera-weather { opacity: .65; }
.camera-radio .camera-weather { background: radial-gradient(ellipse at 48% 41%, #eaa76749, transparent 36%); animation: lamp-light 5s ease-in-out infinite alternate; }
.camera-pier .camera-weather { background: linear-gradient(100deg, transparent 15%, #9fbfb332 34%, transparent 68%); animation: lamp-light 9s ease-in-out infinite alternate; }
.camera-arquivo .camera-weather {
  background: radial-gradient(circle at 2px 3px,#f2d6a465 0 1px,transparent 1.5px) 0 0 / 73px 83px,
    radial-gradient(circle at 5px 8px,#eac99b48 0 1px,transparent 1.5px) 0 0 / 113px 101px;
  mask-image: radial-gradient(ellipse at 70% 45%, #000, transparent 56%);
  animation: dust-drift 20s linear infinite;
}
@keyframes lamp-light { from {opacity: .1;} to {opacity: .65;} }
@keyframes dust-drift { to {background-position: 73px -83px, -113px -101px;} }

.map-clue { position: absolute; z-index: 250; left: var(--point-x); top: var(--point-y); transform: translate(-50%, -50%); display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #f7d092; border-radius: 50%; color: #f7d092; background: #111b17f2; box-shadow: 0 0 0 4px #ce984852; }
.map-clue.found { color: #c1dcc1; border-color: #c1dcc1; box-shadow: 0 0 0 3px #6e91734a; }
.map-clue::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.map-clue:hover, .map-clue:focus-visible { z-index: 280; color: #181a13; background: #f7d092; }
.map-tooltip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; width: max-content; max-width: 142px; transform: translateX(-50%); padding: 4px 7px; border: 1px solid #a28a61; border-radius: 3px; color: #f6e5c8; background: #101713f5; font-size: .8rem; line-height: 1.15; }
.map-clue:hover .map-tooltip, .map-clue:focus-visible .map-tooltip { display: block; }
.actor { position: absolute; left: var(--point-x); top: var(--point-y); transform: translate(-50%, -100%); height: 18%; width: 9%; display: grid; justify-items: center; align-items: end; padding: 0; border: 0; background: none; }
.actor-sprite { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; pointer-events: none; filter: drop-shadow(0 3px 2px #080d0bdb); transform: scaleX(var(--direction,1)); transform-origin: center bottom; }
.actor-shadow { position: absolute; bottom: -2%; width: 61%; height: 11%; border-radius: 50%; background: #0a100fc1; filter: blur(2px); }
.player { z-index: var(--depth, 174); pointer-events: none; }
.player .actor-shadow { border: 1px solid #eac188; background: #362c23b8; filter: none; }
.actor-name { position: absolute; top: calc(100% + 3px); width: max-content; max-width: 137%; color: #ffedce; padding: 2px 5px; border-radius: 3px; border: 1px solid #817254; background: #0e1614f0; font-size: clamp(.63rem, 1.15vw, .79rem); font-weight: 650; line-height: 1.17; text-align: center; cursor: inherit; }
.player .actor-name { color: #161b14; background: #e8b679; border-color: #e8b679; }
.npc { z-index: var(--depth); }
.npc.seated { height: 14.4%; width: 12%; }
.npc.seated .actor-shadow { width: 68%; }
.npc:hover, .npc:focus-visible { z-index: 220; }
.npc:hover .actor-name, .npc:focus-visible .actor-name { color: #161b14; background: #e8b679; }
.actor.walking .actor-sprite { animation: walk-cycle .24s ease-in-out infinite alternate; }
.npc.walking .actor-sprite { animation-duration: .32s; }
@keyframes walk-cycle {
  from { transform: translateY(0) scaleX(var(--direction,1)) rotate(-2deg); }
  to { transform: translateY(-4%) scaleX(var(--direction,1)) rotate(2deg); }
}
.ground-target { position: absolute; left: var(--point-x); top: var(--point-y); transform: translate(-50%, -50%); width: 24px; height: 14px; border: 1px solid #efc891; border-radius: 50%; box-shadow: 0 0 8px #ffe2ab80; pointer-events: none; }

.field-index { border: 1px solid var(--line); border-radius: 5px; background: #101816; padding: 12px; }
.field-index h3 { font: .76rem var(--mono); letter-spacing: .09em; color: var(--accent); text-transform: uppercase; margin: 1px 0 6px; }
.field-index ul + h3 { margin-top: 11px; }
.field-index ul { margin: 0; padding: 0; list-style: none; }
.field-item { display: flex; gap: 7px; align-items: center; min-height: 38px; width: 100%; padding: 5px; border: 0; border-radius: 3px; background: transparent; color: var(--ink); text-align: left; line-height: 1.24; font-size: .85rem; }
.field-item .ico { color: var(--muted); width: 16px; height: 16px; }
.field-item:hover { background: #27352e; }
.field-item.found .ico { color: var(--green); }

@media (min-width: 900px) {
  dialog.field-dialog { width: min(420px, 44vw); margin: auto max(24px, calc((100vw - 1200px) / 2)) auto auto; }
  dialog.field-dialog::backdrop { background: #060b0996; }
}
@media (max-width: 870px) {
  .field-layout { grid-template-columns: 1fr; }
  .field-index ul { display: flex; flex-wrap: wrap; column-gap: 8px; }
  .field-item { padding-inline: 6px; }
}
@media (max-width: 600px) {
  .exploration { padding: 10px; }
  .explore-head h2 { font-size: 1.45rem; }
  .camera-window { aspect-ratio: auto; height: 350px; min-height: 0; }
  .camera-world { width: 650px; }
  .map-clue { width: 34px; height: 34px; }
  .scene-workspace .side { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .camera-weather, .actor.walking .actor-sprite { animation: none; }
}
