/* First presentation pass. Loaded after the original layout in game and Walk.
   Keep visibility, hit testing, responsive positions and state selectors intact. */
:root {
  --night: #111519; --plum: #1b2127; --plum-2: #242c33; --plum-3: #333e47;
  --line: #ffffff18; --line-2: #ffffff30;
  --ink: #f1f4f5; --muted: #bec7cc; --dim: #a3aeb6;
  --parch: #e5edf0; --parch-2: #c4d1d7; --parch-ink: #182127;
  --candle: #d8b879; --candle-2: #f0d49a; --gilt: #b9c7cf;
  --blood: #e17c79; --blood-2: #ffa29b; --teal: #88c8b6; --leaf: #a6c98d;
  --glass: #1b2127; --glass-solid: #1b2127; --glass-hud: #181e24ed;
  --panel: #1b2127f5;
  --ui: 'Alegreya Sans', 'Gill Sans', 'Trebuchet MS', system-ui, sans-serif;
  --display: var(--ui); --serif: var(--ui); --caps: var(--ui);
  --hair: inset 0 0 0 1px var(--line-2);
  --r: 10px;
}
.btn, .input, .seg, .stepper, .tag { border-radius: 8px; }
#menu { background: linear-gradient(90deg, #11151966, #11151922 45%, transparent 75%); }
#menu::after { background: none; }
.menu-name { display: grid; gap: .375rem; }
.menu-name label { font-size: .875rem; color: var(--muted); }
.menu-name .input { width: 100%; box-sizing: border-box; }
.menu-layout { align-items: stretch; }
.menu-layout > .menu-identity { align-content: start; }
.identity-card { background: #242c33; border-radius: 8px; min-height: 44px; }
.identity-card.on { background: #34414a; }
.title-lockup h1 span::before, .title-lockup h1 span::after { content: none; }
.btn { background: #303a43; box-shadow: inset 0 0 0 1px var(--line-2); letter-spacing: 0; }
.btn.primary { background: var(--parch); color: var(--parch-ink); box-shadow: none; }
.btn.danger { background: #8c3538; color: #fff; box-shadow: none; }
.btn.ghosty { background: transparent; }
.input, .seg, .stepper { background: #11171c; }
.input:focus { box-shadow: inset 0 0 0 2px var(--candle); }
.orn, .orn::before, .orn::after, .orn i { display: none; }
.eyebrow, .soft, .field > span { letter-spacing: .02em; }
.portrait { background: #303a43; border-radius: 10px; }
.card, .hud-card, .compass, .mic-state, .voice-list div, .chatbar .line {
  border-radius: 10px; box-shadow: var(--hair), 0 4px 16px #0003;
}
.hud-card h4 { font-size: .875rem; letter-spacing: 0; color: var(--muted); }
.hud-tr { width: min(19em, calc(100vw - 1.75rem)); gap: .4em; font-size: clamp(12px, .8125rem, 16px); }
.hud-tr .hud-card { padding: .6em .75em; font-size: inherit; }
.hud-tr h4 { font-size: 1em; margin-bottom: .4em; }
.role-card { grid-template-columns: 1.8em minmax(0, 1fr); gap: .55em; }
.role-card .emb { width: 1.8em; height: 1.8em; background: #ffffff08; box-shadow: none; border-radius: 6px; }
.role-card .emb .ico { width: 1.2em; height: 1.2em; }
.role-card b { font-weight: 700; font-size: 1.1em; line-height: 1.2; }
.role-card small { font-size: .9em; margin-top: .15em; }
.chore-list { gap: .15em; max-height: min(42dvh, 23em); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; pointer-events: auto; }
html.hud-quiet .chore-list { pointer-events: none; }
.chore-list li { padding-block: .3em; gap: .45em; line-height: 1.3; }
.chore-list li i { width: .85em; height: .85em; }
.chore-list li i { box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 3px; }
.prog { height: 5px; box-shadow: none; }
.prog i { background: var(--candle); }
.hud-card:has(.chore-list) .chore-list li { grid-template-columns: .85em minmax(0, 1.35fr) minmax(0, 1fr); }
.hud-card:has(.chore-list) .chore-list li small { grid-column: 3; max-width: none; font-size: .85em; white-space: normal; overflow-wrap: anywhere; }
.hud-tr .dawn { margin-top: .5em; gap: .4em; }
.hud-tr .dawn-cap { font-size: .85em; margin-top: .2em; }
html[data-touch-controls=true] .hud-tr { width: min(19em, calc(100vw - var(--safe-left) - var(--safe-right))); }
.act { border-radius: 10px; box-shadow: var(--hair); }
.act.hot { transform: none; }
.act.ready { animation: none; }
.act .ring { border-radius: 12px; }
.vignette { background: radial-gradient(ellipse at center, transparent 65%, #00000012); }
.timer::before { background: var(--glass-solid); }
.timer.low { animation: none; }
.table-meeting-head strong { font: 700 1.5rem/1.2 var(--ui); }
kbd { background: #34414a; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 4px; }
.marker i { background: var(--candle); animation: none; }
.marker.fix i { background: #df8482; }
.toast { padding: .625rem 1rem; border-radius: 10px; background: var(--glass-hud); box-shadow: var(--hair); gap: .125rem; }
.toast b, .toast.secret b { font: 700 1.125rem/1.25 var(--ui); color: var(--ink); text-shadow: none; }
.toast span { font: 400 .9375rem/1.35 var(--ui); color: var(--muted); text-shadow: none; }
.toast span:not(:empty)::before { display: none; }
#walkHud .w-room b, #walkHud.in-game .w-room b { font: 700 1.375rem/1.2 var(--ui); color: var(--ink); }
#walkHud .w-room small, #walkHud.in-game .w-room small { font: 500 .8125rem/1.3 var(--ui); letter-spacing: .02em; color: var(--muted); text-transform: none; }
#walkHud.in-game .w-room small::after { display: none; }
#walkHud .w-prompt, #walkHud.in-game .w-prompt { background: var(--glass-hud); border-radius: 8px; box-shadow: var(--hair); font-family: var(--ui); max-width: calc(100vw - 32px); box-sizing: border-box; white-space: normal; }
/* These are projected from the gameplay eye; hide them during the brief self
   view instead of leaving misleading targets over the character. */
body.self-emote-view #labels,
body.self-emote-view #walkHud :is(.w-cross, .w-prompt) { visibility: hidden; }
#walkHud .w-prompt kbd, #walkHud.in-game .w-prompt kbd { background: var(--parch); color: var(--parch-ink); box-shadow: none; border-radius: 4px; }
#walkHud .w-prompt small { color: var(--muted); }
#walkHud .w-card, #walkHud .w-help, #walkHud .w-held { background: var(--glass-hud); color: var(--ink); border-radius: 8px; box-shadow: var(--hair); }
#walkHud details.w-help { pointer-events: auto; max-width: calc(100vw - 32px); white-space: normal; box-sizing: border-box; }
#walkHud details.w-help summary, .control-help summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
#walkHud details.w-help:not([open]) { width: auto; }
.toast span:empty, .menu-status:empty, .err:empty { display: none; }
#walkHud .w-toast b { font: 700 20px/1.3 var(--ui); color: var(--ink); text-shadow: none; }
/* Light neutral work surfaces keep the existing minigame controls legible. */
:is(.taskbox,.taskout) .sheet, #walkHud.in-game .w-task .sheet {
  background: #e9eef0; color: #1c2930; border-radius: 12px; box-shadow: 0 12px 36px #0005;
}
:is(.taskbox,.taskout) h2, #walkHud.in-game .w-task h2 { color: #1c2930; font: 700 1.5rem/1.2 var(--ui); }
:is(.taskbox,.taskout) .sub { color: #475b66; font-style: normal; }
:is(.taskbox,.taskout) .x, #walkHud.in-game .w-task .x { min-width: 44px; min-height: 44px; background: #d4dde1; color: #1c2930; border-radius: 8px; }
:is(.taskbox,.taskout) .mg-btn, #walkHud.in-game .w-task .mg-btn { background: #293b46; color: #fff; border-radius: 8px; box-shadow: none; letter-spacing: 0; }
html[data-touch-controls=true] :is(.phone-tools, .phone-voice) button { background: var(--glass-solid); border-radius: 8px; box-shadow: none; }
html[data-touch-controls=true] .w-touch button { background: var(--glass-solid); color: var(--ink); border-radius: 8px; box-shadow: var(--hair); }
html[data-touch-controls=true] .w-touch button[aria-pressed=true], html[data-touch-controls=true] .w-touch button.is-held { background: #465766; border-color: var(--candle); }
html[data-touch-controls=true] .w-touch .w-touch-use { background: var(--parch); color: var(--parch-ink); }
html[data-touch-controls=true] .w-touch-stick { background: #18212780; box-shadow: inset 0 0 0 1px #ffffff55; }
html[data-touch-controls=true] .w-touch-knob { background: #c4d1d7b0; box-shadow: none; }
@media (hover:hover) and (pointer:fine) {
  .btn:hover:not(:disabled) { background: #43515d; }
  .btn.primary:hover:not(:disabled) { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .hud-card, #walkHud .w-prompt { transition: none; animation: none; }
}
