/* Night Village (w046) */
.nv, .nv > *, .nv .kit-card > *, .nv .nv-stage > * { min-width: 0; }
.nv .nv-label { margin: 0; color: var(--muted); font-weight: 700; }
.nv .nv-field { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.nv .nv-stepper { display: inline-grid; grid-template-columns: 52px minmax(6.5rem, auto) 52px; align-items: center; gap: .4rem; }
.nv .nv-stepper button { min-height: 52px; font-size: 1.5rem; }
.nv .nv-stepper output { text-align: center; font-size: 1.15rem; font-weight: 800; }
.nv .nv-roles-line { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin: 0; color: var(--muted); font-weight: 600; }
.nv .nv-roles-line span { white-space: nowrap; unicode-bidi: isolate; }
.nv .nv-go { min-height: 56px; padding-inline: 1.5rem; font-size: 1.1rem; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.nv .nv-start-row .nv-go { flex: 1 1 12rem; }
.nv .nv-more { border: 1px solid var(--border); border-radius: .85rem; background: #0c1220; }
.nv .nv-more summary { display: flex; align-items: center; min-height: 48px; padding: .5rem 1rem; cursor: pointer; font-weight: 700; }
.nv .nv-more-body { display: grid; gap: .75rem; padding: 0 1rem 1rem; }
.nv .nv-more-body p { margin: 0; }
.nv .nv-names { display: grid; gap: .5rem; margin: 0; padding: 0; border: 0; }
.nv .nv-names legend { margin-bottom: .35rem; padding: 0; color: var(--muted); font-weight: 600; }
.nv .nv-name-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .4rem .75rem; margin: 0; padding-inline-start: 1.8rem; }
.nv .nv-name-list li::marker { color: var(--muted); font-weight: 700; }
.nv .nv-name-list input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.nv .nv-timer-field { max-width: 16rem; }
.nv .nv-saved { display: grid; gap: .4rem; justify-items: start; }
.nv .nv-saved .kit-status:empty, .nv .nv-status-slot .kit-status:empty { display: none; }

/* In game: one step per screen, no page header. */
body.nv-playing .kit-lead, body.nv-playing .kit-local { display: none; }
body.nv-secret .kit-top, body.nv-secret #tool-title { display: none; }
body.nv-secret .kit-tool { margin-top: .5rem; }
.nv .nv-stage { display: grid; gap: .9rem; align-content: start; padding: clamp(.25rem, 3vw, 1.25rem) 0; }
.nv .nv-center { display: grid; gap: .9rem; justify-items: center; text-align: center; }
.nv .nv-center-actions { justify-content: center; }
.nv .nv-progress { margin: 0; text-align: center; color: var(--muted); font-weight: 700; }
.nv .nv-title { margin: 0; text-align: center; font-size: clamp(1.4rem, 6vw, 2.1rem); line-height: 1.2; overflow-wrap: break-word; }
.nv [tabindex="-1"]:focus, .nv [tabindex="-1"]:focus-visible { outline: none; } /* headings focused by the page, not by Tab */
.nv .nv-big { margin: 0; font-size: clamp(2rem, 11vw, 3.6rem); font-weight: 850; line-height: 1.1; overflow-wrap: anywhere; }
.nv .nv-how { margin: 0; text-align: center; font-size: 1.05rem; line-height: 1.5; overflow-wrap: break-word; }
.nv .nv-how:empty { display: none; }
.nv .nv-news { font-size: clamp(1.35rem, 6vw, 2rem); }
.nv .nv-quit { display: flex; justify-content: center; }
.nv .nv-quit button { border-color: transparent; background: transparent; color: var(--muted); font-weight: 600; }

/* The role card: hold to see. Every card has the same three lines and colours. */
.nv .nv-hold { display: grid; place-items: center; width: min(100%, 22rem); min-height: 14rem; padding: 1.25rem; border: 2px dashed #5b6b8a; border-radius: 1.25rem; background: #0c1220; color: var(--text); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.nv .nv-hold.nv-open { border-style: solid; border-color: var(--accent); background: #13231f; }
.nv .nv-hold-cover { font-size: 1.2rem; font-weight: 800; color: var(--muted); }
.nv .nv-hold-face { display: grid; gap: .5rem; }
.nv .nv-face-label { color: var(--muted); font-weight: 700; }
.nv .nv-face-role { font-size: clamp(1.9rem, 10vw, 3rem); font-weight: 850; line-height: 1.15; color: #ffd36e; overflow-wrap: break-word; }
.nv .nv-face-note { color: var(--text); font-weight: 600; }

/* The night screen and the vote: a grid of player buttons, a selected one is marked with ✓ and a border. */
.nv .nv-role-line { margin: 0; text-align: center; font-size: 1.15rem; font-weight: 800; color: #ffd36e; }
.nv .nv-targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.nv .nv-target { display: grid; align-content: center; gap: .1rem; width: 100%; min-height: 56px; padding: .4rem .6rem; font-size: 1.05rem; text-align: center; overflow-wrap: anywhere; }
.nv .nv-target[aria-pressed="true"] { border: 3px solid var(--accent); background: #13231f; }
.nv .nv-target[aria-pressed="true"] .nv-target-name::before { content: '✓ '; color: var(--accent); }
.nv .nv-target:disabled[aria-pressed="false"] { opacity: .45; }
.nv .nv-target:disabled[aria-pressed="true"] { opacity: 1; }
.nv .nv-tag { font-size: .8rem; font-weight: 600; color: var(--muted); }
.nv .nv-tag:empty { display: none; }
.nv .nv-none .nv-target { border-style: dashed; }
.nv #night-view > .nv-go, .nv #vote-view > .nv-go { width: 100%; }
.nv .nv-result { display: grid; place-items: center; min-height: 4.5rem; margin: 0; padding: .6rem 1rem; border: 1px solid var(--border); border-radius: .85rem; background: #0c1220; text-align: center; font-size: 1.1rem; font-weight: 700; overflow-wrap: break-word; }
.nv .nv-result[data-state="wait"] { color: var(--muted); font-weight: 600; }

.nv .nv-discuss { display: grid; gap: .9rem; }
.nv .nv-timer { display: grid; gap: .5rem; justify-items: center; }
.nv .nv-timer .kit-display { min-width: 10rem; }

/* Player board: words plus strike-through, never colour alone. */
.nv .nv-board { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.nv .nv-board li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; padding: .5rem .9rem; border: 1px solid var(--border); border-radius: .7rem; background: var(--card); }
.nv .nv-board .nv-name { font-weight: 700; overflow-wrap: anywhere; }
.nv .nv-board .nv-detail { color: var(--muted); }
.nv .nv-board li[data-out="true"] { background: transparent; border-style: dashed; }
.nv .nv-board li[data-out="true"] .nv-name { color: var(--muted); text-decoration: line-through; }
.nv .nv-board li[data-role="mafia"] { border-color: var(--danger); }
.nv .nv-board li[data-role="mafia"] .nv-detail { color: var(--danger); font-weight: 700; }
.nv .nv-win[data-winner="village"] { color: var(--ok); }
.nv .nv-win[data-winner="mafia"] { color: var(--danger); }
.nv .nv-log { display: grid; gap: .3rem; margin: 0; padding-inline-start: 1.4rem; }
/* Korean wraps between words, not inside them. */
.nv:lang(ko) :is(.nv-title, .nv-how, .nv-go, .nv-result, .nv-face-note, .nv-roles-line) { word-break: keep-all; overflow-wrap: break-word; }
