/* Nachhall V2 – Papier, warmes Messing und kaltes Erinnerungsglas. */
:root { --accent: #98d2bf; --accent-2: #ddbd86; --text: #eeeee5; --text-muted: #b0bdb8; --text-faint: #8d9b96; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
.screen .panel, .dlg-box { background: linear-gradient(145deg, rgba(17,27,29,.97), rgba(8,13,17,.97)); border-color: rgba(159,193,180,.22); border-radius: 8px; }
.panel h2, .set-section h3, .kicker { color: #ddbd86; }
.menu-inner { border-left: 2px solid rgba(152,210,191,.45); padding-left: clamp(20px, 4vw, 58px); }
.menu-head .logo { letter-spacing: .19em; text-shadow: 0 8px 45px rgba(0,0,0,.9); }
.menu-sub { color: #c2d0c4; line-height: 1.6; letter-spacing: .19em; }
.mbtn { border-radius: 4px; }
.mbtn:hover, .mbtn.sel { background: linear-gradient(90deg, rgba(112,162,143,.23), transparent); }
.menu-foot .ver { color: #d9c396; }
.menu-list { gap: 6px; }
#hud-echo { position: absolute; left: 24px; top: 68px; display: flex; align-items: center; gap: 10px; padding: 9px 13px; color: #ddd1b6; background: rgba(11,18,20,.8); border: 1px solid rgba(224,202,154,.26); border-radius: 5px; transform: scale(var(--ui)); transform-origin: 0 0; pointer-events: none; }
#hud-echo strong { display: block; font-size: 10px; letter-spacing: .2em; }
#hud-echo small { display: block; font-size: 10px; margin-top: 5px; color: #bcc6bf; }
.echo-mark { font-size: 26px; }
#hud-echo.active { color: #b2efdb; border-color: #6eae9d; background: rgba(18,39,37,.9); }
#hud-quest { background: rgba(8,16,18,.88); border-left: 2px solid #dfba7a; border-radius: 4px; padding: 14px 17px; }
#hud-quest .q-title { color: #e6c58d; font-size: 11px; }
#hud-quest .q-goal { color: #a8b6ad; font-size: 11px; margin: 5px 0 9px; }
#hud-quest .q-obj { font-size: 15px; line-height: 1.45; color: #f7f0df; }
#hud-toasts { margin-top: 14px; }
.toast { border-radius: 4px; border-color: rgba(152,210,191,.25); }
.dlg-box { border-top: 2px solid #98d2bf; box-shadow: 0 15px 60px rgba(0,0,0,.65); }
#dlg-text { line-height: 1.55; }
#dlg-help { color: #b5c0b6; }
#dlg-choices { gap: 8px; }
.dlg-choice { border-radius: 5px; border-color: rgba(151,181,166,.23); background: #182527; }
.dlg-choice.sel, .dlg-choice:hover { background: #263f3a; border-color: #9ccebb; }
.dlg-portrait canvas { border-radius: 6px; }
.j-detail, .inv-detail { background: rgba(152,210,191,.025); border-radius: 5px; padding: 20px; }
.j-entry, .inv-card, .slot-card { border-radius: 5px; }
.tab.on { color: #e4c99d; border-color: #dfba7a; }
.set-row { min-height: 46px; }
.set-row .note { line-height: 1.5; max-width: 400px; color: #a3b3ad; }
.btn-plain, .seg button { border-radius: 4px; }
.paper { color: #252b27; border-radius: 3px; }
#scene-skip { display: none; position: absolute; top: calc(14px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 85; min-height: 40px; padding: 8px 18px; font-size: 11px; color: #e3ddc8; border: 1px solid #70867a; border-radius: 6px; background: linear-gradient(90deg, #335247 calc(var(--hold,0) * 100%), #111b20 0); touch-action: none; }
#scene-skip.show { display: block; }
#scene-skip.fast { border-color: #c6ae76; }
#evidence-card { position: absolute; z-index: 48; top: 14vh; left: 50%; width: 340px; max-width: 45vw; padding: 10px; background: #d1c8ae; transform: translate(-50%, 10px) rotate(-2deg); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; box-shadow: 0 20px 45px #0009; }
#evidence-card.show { opacity: 1; transform: translate(-50%, 0) rotate(-2deg); }
#evidence-card canvas { width: 100%; height: auto; display: block; }
#evidence-card span { display: block; color: #262f2c; margin-top: 8px; font: 10px monospace; }
body.has-touch #hud-echo { top: 58px; left: 12px; padding: 5px 8px; }
body.has-touch #hud-echo small { display: none; }
body.has-touch #touch-top { gap: 6px; }
body.has-touch #touch-top .tt { width: 42px; height: 42px; background: rgba(10,22,25,.85); border-color: #71877c; }
body.has-touch .tb { background: rgba(12,23,26,.82); border-color: #779084; }
body.has-touch #dialogue.show ~ #touch { visibility: hidden; }
body.in-dialogue #touch { visibility: hidden; }
@media (max-height: 520px) {
  #hud-echo { top: 45px; left: 12px; padding: 4px 8px; }
  #hud-echo small { display: none; }
  #hud-right { max-width: 240px; }
  #hud-quest { padding: 9px 11px; }
  #hud-quest .q-obj { font-size: 12px; }
  #hud-quest .q-goal { display: none; }
  #hud-quest .q-title { font-size: 9px; }
  #hud-toasts { margin-top: 8px; }
  .dlg-box { max-height: 65vh; overflow-y: auto; }
  .dlg-choice { min-height: 44px; font-size: 13px; }
  .dlg-portrait { width: 80px; }
  .menu-head .logo { font-size: clamp(28px, 7vw, 56px); }
  .menu-inner { padding-left: 20px; }
  #evidence-card { top: 9vh; width: 220px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  #hud-right { max-width: 190px; }
  #hud-quest { padding: 8px; }
  #hud-quest .q-goal { display: none; }
  #hud-quest .q-obj { font-size: 12px; }
  #hud-echo { max-width: 105px; }
  #hud-echo small { display: none; }
  .menu-inner { border: none; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .screen *, #evidence-card { animation: none !important; transition-duration: .01s !important; } }

.tt.off { display: none; }
.tt { position: relative; }
.tt .count { font-size: 10px; color: #e5c68c; position: absolute; right: -3px; bottom: -2px; padding: 2px 4px; background: #0c1719; border-radius: 5px; }
/* Keep the mobile centre clear: one task and one queued event, compact edge hints. */
body.has-touch #hud-quest .q-obj .done, body.has-touch #hud-quest .q-obj .sec { display: none; }
body.has-touch #hud-right { max-width: min(220px, 40vw); gap: 5px; }
body.has-touch #hud-toasts { margin-top: 3px; }
body.has-touch .toast { font-size: 11px; padding: 6px 8px; max-width: min(220px, 40vw); }
body.has-touch .toast .t-kicker { font-size: 8px; letter-spacing: .16em; }
body.has-touch #hud-tutorial { top: 112px; left: 12px; max-width: min(210px, 28vw); padding: 6px 9px; font-size: calc(11px * var(--txt)); }
body.has-touch #hud-tutorial .tut-kind { font-size: 8px; margin-bottom: 1px; }
body.has-touch #hud-tutorial .tut-body small { font-size: 10px; }
body.has-touch #hud-hint { top: 54px; max-width: 35vw; padding: 5px 8px; font-size: 10px; }
body.has-touch #hud-echo strong { font-size: 9px; letter-spacing: .14em; }
@media (orientation: portrait) { body.has-touch #hud-tutorial { max-width: 38vw; } }
