/* Zen Maru Gothic, bundled (see fonts/README.txt): the one face of the play screen and of the setup page's controls. */
@font-face{font-family:"NP Maru";font-style:normal;font-weight:700;font-display:swap;src:url("./fonts/zen-maru-gothic-700-latin.woff2") format("woff2")}
@font-face{font-family:"NP Maru";font-style:normal;font-weight:800 900;font-display:swap;src:url("./fonts/zen-maru-gothic-900-latin.woff2") format("woff2")}
.np{--hud-font:"NP Maru",ui-rounded,"Hiragino Maru Gothic ProN","Arial Rounded MT Bold","Nunito","Segoe UI",system-ui,sans-serif;--plum:#302238;--night:#141a3a;--panel:#1d2547;--line:#505472;--gold:#f3cd81;--cream:#f6ecd7;--muted:#c1bed0;--red:#d96751;margin:0;background:var(--night);color:var(--cream);font:700 16px/1.55 var(--hud-font)}
.np *{box-sizing:border-box}
.np [hidden]{display:none!important}
.np h1,.np h2,.np h3,.np p{margin:0 0 .8rem}
.np h1{font:700 clamp(2.8rem,6vw,5.8rem)/1.05 var(--hud-font);letter-spacing:-.04em;color:var(--gold)}
.np h2{font:700 1.6rem/1.2 var(--hud-font)}
.np h3{font-size:1rem;color:var(--gold)}
.np h2 small{font:700 .75rem var(--hud-font);color:var(--gold);margin-right:.5rem}
.np a{color:var(--gold)}
.np button{font:inherit;color:var(--cream);background:#262f54;border-top:1px solid var(--line);border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-left:1px solid var(--line);border-radius:7px;padding:.55rem .85rem;box-shadow:none;cursor:pointer;min-height:42px;text-transform:none;letter-spacing:normal}
.np button:hover{background:#354064;border-color:var(--gold)}
.np button:disabled{opacity:.5;cursor:default}
.np button.np-primary{background:#a74436;border-color:#f09676;color:#fff4dd}
.np :focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.np button:focus-visible{box-shadow:none}
.np-header{display:flex;justify-content:space-between;gap:1rem;max-width:1500px;margin:auto;padding:1.2rem 3vw;color:var(--muted);font-size:.8rem}
.np-setup{max-width:1500px;margin:auto;padding:1.2rem 3vw 4rem}
.np-welcome{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2rem;margin-bottom:2rem}
.np-lede{max-width:700px;color:var(--muted);font-size:1.05rem}
.np-kicker{text-transform:uppercase;letter-spacing:.17em;font-size:.68rem;color:var(--gold)}
.np-cover{width:min(35vw,420px);max-height:250px;object-fit:cover;border-radius:48% 48% 8px 8px;border:1px solid var(--line)}
.np-maker-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:1.5rem;align-items:start}
.np-maker>section{margin-bottom:1.6rem}
.np-card-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.45rem}
.np-patron-row{margin-bottom:.8rem}
.np-choice{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.35rem;padding:.65rem .4rem!important;min-width:0}
.np-choice strong{font-size:.85rem;overflow-wrap:anywhere}
.np-choice .np-gloss{font-size:.72rem;color:var(--muted)}
.np-choice[aria-checked=true]{border-color:var(--gold);background:#3d3550;transform:translateY(-2px)}
.np-choice-details{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.np-choice-details span{display:block}
.np .np-choice>.np-picture{width:56px;height:56px;margin:0}
.np #origins .np-choice>.np-picture{width:72px;height:72px}
.np-choice-strip{display:grid;grid-template-columns:minmax(0,1fr);margin-top:.65rem;padding:.7rem .85rem;border:1px solid var(--line);border-radius:7px;background:var(--panel);font:700 .8rem/1.45 var(--hud-font)}
.np-choice-strip>*{grid-area:1/1;min-width:0}
.np-choice-sizing{visibility:hidden;pointer-events:none}
.np-choice-description>strong{display:block;margin-bottom:.3rem;color:var(--gold)}
.np-choice-line{display:grid;grid-template-columns:5.5rem minmax(0,1fr);gap:.5rem;margin-top:.2rem}
.np-choice-line small{font:inherit;font-size:.7rem;color:var(--muted)}
@media(max-width:599px){
.np-maker .np-card-row{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:5px 4px;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
.np-maker .np-choice{flex:0 0 104px;scroll-snap-align:start}
}
.np-picture{display:inline-flex;position:relative;align-items:center;justify-content:center;flex-shrink:0;width:54px;height:54px;background:var(--disc,#5b5476);border-radius:50%;color:#fff5dc;font:700 1.3rem var(--hud-font);overflow:hidden}
.np-picture-art{position:absolute;inset:0;background-repeat:no-repeat;background-position:0 50%}
.np-picture.has-art{background:transparent}
.np-picture.has-art>.np-initial{visibility:hidden}
.np-panel{padding:1.3rem;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.np-keeper{position:sticky;top:1rem}
.np-learnable{max-height:310px;overflow:auto;padding-right:.5rem;margin-bottom:1rem;overscroll-behavior:contain}
.np-trait-copy{border-bottom:1px solid #41476b;padding:.65rem 0;font-size:.85rem}
.np-trait-copy strong,.np-trait-copy small{display:block}
.np-trait-copy small{color:var(--gold)}
.np-trait-copy p{margin:.3rem 0 0;color:var(--muted)}
.np-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.8rem}
.np-keeper .np-actions{flex-direction:column}
.np-keeper .player-name-entry{margin-top:1rem}
/* One start panel: a leading plank, then optional company. */
.np-night-entry{display:grid;gap:12px;margin-top:12px;font-family:var(--hud-font)}
.np-night-start,#room-entry,#company,#join-fields{display:grid;gap:8px;min-width:0}
.np .np-night-entry p,.np .np-night-entry h3{margin:0}
.np-night-extras,.np-company-actions{display:flex;flex-wrap:wrap;gap:8px}
.np-friend-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.np #friends-title{color:var(--muted);font-size:13px;font-weight:700}
#setup :is(.np-night-entry,.np-ready) button{min-height:48px;min-width:0;padding:8px;font:800 14px/16px var(--hud-font);border:2px solid #b68a56;border-radius:4px;background:#eed5a4;color:var(--plum);box-shadow:none}
.np.has-ui-button #setup :is(.np-night-entry,.np-ready) button{border:8px solid transparent;border-image:var(--ui-button) 24% 10% fill / 8px / 0 stretch;background:transparent;border-radius:0;padding:8px}
#setup :is(.np-night-entry,.np-ready) button:hover{filter:brightness(1.08)}
#setup .np-ready #begin{width:100%;min-height:64px;font-size:22px;line-height:24px}
#begin-caption{font-size:12px;color:var(--muted);text-align:center}
#setup .np-night-extras button{font-size:12px;padding:8px 16px}
#setup .np-night-extras{display:grid;grid-template-columns:minmax(0,1fr)}
#setup :is(.np-night-entry,.np-ready) #surprise{width:100%;font-size:12px;background:#f4e4c2;border-color:#cbb388}
.np.has-ui-button #setup :is(.np-night-entry,.np-ready) #surprise{background:transparent;filter:brightness(1.22) saturate(.65)}
.np.has-ui-button #setup :is(.np-night-entry,.np-ready) #surprise:hover{filter:brightness(1.3) saturate(.65)}
.np-room-field{display:grid;gap:8px;min-width:0}
.np #room-entry label{font:700 11px/1.4 var(--hud-font);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.np #room-entry input{display:block;width:100%;height:44px;min-width:0;margin:0;padding:8px;font:700 16px/1.4 var(--hud-font);background:var(--cream);border:2px solid var(--plum);border-radius:4px;color:var(--plum);color-scheme:light}
.np #room-entry #code{text-transform:uppercase;letter-spacing:.2em}
.np #room-entry input:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.np-join-actions{display:grid;gap:8px}
.np #setup .np-night-entry button.np-text-action{justify-self:start;min-height:48px;padding:8px;border:0;border-image:none;border-radius:0;background:none;color:var(--gold);font-weight:700;text-decoration:underline;text-underline-offset:3px}
#night-small-print,#night-small-print .player-name__hint{color:var(--muted);font:700 12px/1.5 var(--hud-font)}
@media(max-width:599px){.np-friend-choices{grid-template-columns:1fr}}
.np-bottom-panels{display:grid;grid-template-columns:1.4fr 1fr;gap:1.5rem;margin-top:1rem}
.np-bottom-panels p,.np-how{font-size:.85rem;color:var(--muted)}
.np-how{padding-left:1.2rem}
.np-how li{margin-bottom:.65rem}
.np-table-scroll{overflow:auto}
.np table{border-collapse:collapse;width:100%;font-size:.78rem}
.np th,.np td{padding:.45rem;text-align:left;border-bottom:1px solid var(--line)}
.np th{color:var(--gold)}
.np-votive td{text-align:center;border:3px solid var(--panel);background:#39334a;color:var(--gold);font-size:1rem;min-width:45px}
.np-votive td.has-dawn{background:#775037;color:#fff4d9}
.np-votive th{font-weight:500;font-size:.7rem}
.np-notice{padding:.8rem;border:1px solid var(--gold);border-radius:6px;background:#302c47}
.np-status{min-height:1.5em;color:var(--gold);font-size:.85rem}
.np-status:empty{min-height:0;margin:0}
html.np-playing,html.np-playing body{overflow:hidden;overscroll-behavior:none}
html.np-playing .np-header,html.np-playing .np-setup{display:none}
.np-stage{position:fixed;inset:0;height:100dvh;background:var(--night);overflow:hidden}
.np-stage canvas{width:100%;height:100%;display:block;touch-action:none;outline-offset:-4px!important}
.np-empty{color:#c4bbd1;font-size:.65rem}
.np-stick{position:absolute;width:120px;height:120px;border:1px solid #f6ecd74d;border-radius:50%;background:#f6ecd708;pointer-events:none;transform:translate(-50%,-50%)}
.np-stick i{position:absolute;width:22px;height:22px;left:49px;top:49px;border:1px solid #f6ecd77a;border-radius:50%;background:#f6ecd714}
.np-dialog::backdrop,.np .results-dialog::backdrop{background:#080d22cf}
.np-offer-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin:1rem 0}
.np-offer-card{display:flex;align-items:flex-start;flex-direction:column;gap:.6rem;text-align:left;padding:1rem!important}
.np-offer-card strong{font:700 1.3rem var(--hud-font);color:var(--gold)}
.np-offer-card small{color:var(--muted)}
.np-offer-card p{font-size:.88rem}
.np-offer-card .np-source{color:var(--gold);font-size:.7rem}
.np-build-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.4rem 0}
.np-build-grid>section{background:#151c3b;padding:1rem;border-radius:5px}
.np-build-grid p{font-size:.85rem}
.np-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;font-size:.85rem;margin:1rem 0}
.np-stat{display:flex;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--line);padding:.4rem}
.np-build-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;padding:0;list-style:none}
.np-build-list li{border:1px solid var(--line);padding:.75rem;border-radius:5px;font-size:.85rem}
.np-build-list strong{display:block;color:var(--gold)}
.np-source-share{display:flex;gap:.5rem;align-items:center}
.np-source-share progress{width:70px;height:7px;accent-color:var(--gold)}
.np #build-sheet h3{margin-top:1.5rem}
.np .results-reopen{position:absolute;left:50%;top:45%;transform:translateX(-50%)}
@media(max-width:1150px){
.np-maker-layout{grid-template-columns:minmax(0,1fr) 270px}
.np-card-row{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
.np-maker-layout,.np-bottom-panels{grid-template-columns:1fr}
.np-keeper{position:static}
.np-welcome{grid-template-columns:1fr;gap:.5rem}
.np-cover{width:100%;max-height:220px;object-position:center}
.np-header span{display:none}
.np-learnable{max-height:240px}
.np-offer-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.np-build-grid{grid-template-columns:1fr}
.np-stats{grid-template-columns:repeat(2,1fr)}
.np-build-list{grid-template-columns:1fr}
}
@media(max-width:480px){
.np-offer-cards{grid-template-columns:1fr}
.np-offer-card{gap:.35rem}
.np-choice{padding:.5rem .3rem!important}
.np-panel{padding:1rem}
.np-card-row{gap:.35rem}
}
.np-chip{display:inline-block;align-self:start;white-space:nowrap;font:700 .66rem/1.4 var(--hud-font);padding:2px 5px;border:1px solid currentColor;border-radius:5px;color:var(--tone,var(--cream));background:#141a3a}
.np-tone-home{--tone:#edac94}
.np-tone-class{--tone:#bcb5fa}
.np-tone-patron{--tone:#f3cd81}
.np-tone-shrine{--tone:#8abdf1}
.np-tone-common{--tone:#f6ecd7}
.np-tone-rare{--tone:#8bdfd2}
.np-tone-relic{--tone:#f3cd81}
.np button.np-offer-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto 1fr;align-content:start;align-items:start;gap:.65rem;min-width:0}
.np-offer-side{grid-column:1;grid-row:1;display:flex;align-items:center;min-height:54px}
.np-offer-meta{grid-column:2;grid-row:1;display:flex;justify-content:flex-end}
.np-offer-heading{grid-column:1/-1;grid-row:2;display:flex;flex-direction:column;min-width:0;gap:.2rem}
.np-offer-heading strong{overflow-wrap:anywhere}
.np-offer-copy{grid-column:1/-1;grid-row:3;display:flex;flex-direction:column;gap:.35rem;min-width:0;font-size:.88rem;line-height:1.4}
.np-offer-copy .np-blurb{font-size:.8rem;color:var(--muted)}
.np-offer-notes{font-size:.72rem}
.np #sound-2{border-top:1px solid var(--line);border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-left:1px solid var(--line);box-shadow:none}
.np-almanac{margin-bottom:1.6rem}
.np-almanac>summary{font:700 1.6rem/1.2 var(--hud-font);color:var(--cream)}
.np-almanac>summary small{font:700 .75rem var(--hud-font);color:var(--gold);margin-right:.5rem}
.np-almanac summary{cursor:pointer;padding:6px 0}
.np-almanac-section{border-top:1px solid var(--line);margin-top:.6rem;padding:.4rem 0}
.np-almanac-section>summary{color:var(--gold);font-weight:700}
.np-almanac-section .np-almanac-section{margin-left:.7rem}
.np-almanac-entry{display:flex;gap:.75rem;padding:.65rem 0;border-top:1px solid #41476b;font-size:.85rem}
.np-almanac-entry>div{min-width:0}
.np-almanac-entry strong{margin-right:.5rem}
.np-almanac-entry p{margin:.3rem 0}
.np-almanac-entry em{display:block;color:var(--muted)}
.np-almanac-entry .np-picture{width:40px;height:40px}
@media(max-width:599px){
.np #offer-dialog .np-dialog-body>.np-kicker{font-size:9px;line-height:1.2;margin-bottom:2px}
.np #offer-title{font-size:1.2rem;margin-bottom:3px}
.np #offer-note{font-size:12px;line-height:1.2;margin-bottom:3px}
.np #offer-cards{display:grid;grid-template-columns:1fr;gap:5px;margin:3px 0;flex-shrink:0}
.np #offer-cards .np-offer-card{grid-template-columns:38px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:2px 5px;padding:4px!important;line-height:1.2}
.np #offer-cards .np-offer-side{grid-column:1;grid-row:1;min-height:20px;justify-content:center}
.np #offer-cards .np-picture{width:20px;height:20px;font-size:14px}
.np #offer-cards .np-offer-heading{grid-column:2;grid-row:1;flex-direction:row;align-items:center;gap:5px;white-space:nowrap}
.np #offer-cards .np-offer-heading strong{font:700 12px/1.2 var(--hud-font);min-width:0;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.np #offer-cards .np-trigger{font-size:10px;min-width:0;overflow:hidden;text-overflow:ellipsis}
.np #offer-cards .np-offer-meta{grid-column:3;grid-row:1;align-self:center}
.np #offer-cards .np-chip{font-size:9px;padding:1px 3px}
.np #offer-cards .np-offer-side .np-chip{font-size:8px}
.np #offer-cards .np-offer-copy{grid-column:1/-1;grid-row:2;font-size:13px;line-height:1.2;gap:2px}
.np #offer-cards .np-blurb{font-size:12px;line-height:1.15}
.np #offer-cards .np-offer-notes{font-size:11px;line-height:1.1}
.np #offer-tools{position:sticky;bottom:0;margin-top:auto;padding-top:5px;background:var(--panel);display:flex;flex-wrap:nowrap;gap:4px;flex-shrink:0}
.np #offer-tools button{font-size:11px;line-height:1.2;padding:4px;min-height:36px;min-width:0}
.np #skip{flex:1}
.np #offer-status{font-size:12px;margin:3px 0 0}
}
.np-tone-calling{--tone:var(--gold)}
.np-theme-chips,.np-need-chips{display:flex;flex-wrap:wrap;gap:3px;align-items:center}
.np-theme-chip,.np-need-chip{display:inline-block;border:1px solid var(--line);border-radius:4px;padding:1px 4px;color:var(--muted);font:700 .66rem/1.35 var(--hud-font)}
.np-need-chip{font-size:.72rem;background:#141a3a}
.np-need-chip.is-met{border-color:#a49e72;color:#e7dbab}
.np-need-chip.is-met::before{content:'\2713';margin-right:4px}
.np-opening{color:var(--gold);font-size:.75rem;line-height:1.3}
.np-theme-bars{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:.7rem}
.np-theme-bar{border:1px solid var(--line);border-radius:4px;padding:3px 7px;background:linear-gradient(to right,#655340 var(--points),#141a3a var(--points));font-size:.7rem;line-height:1.3}
.np #keeper-themes p{font-size:.8rem;color:var(--muted)}
.np-calling-row{border:1px solid var(--line);border-radius:6px;padding:.7rem;margin:.5rem 0;font-size:.85rem}
.np-calling-heading{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.np-calling-row strong,.np-calling-state{color:var(--gold)}
.np-calling-state{font-size:.75rem}
.np-calling-row .np-gloss{color:var(--muted);margin:.15rem 0 .4rem}
.np-calling-row details{margin-top:.4rem}
.np-calling-row summary{cursor:pointer;padding:5px 0}
.np-calling-row details p{margin:.35rem 0 0}
.np-calling-row>.np-need-chips{margin-bottom:.4rem}
.np-became{color:var(--gold);font:700 1.25rem/1.35 var(--hud-font)}
.np #offer-dialog.np-calling-offer #offer-title{color:var(--gold);font:700 2rem/1.15 var(--hud-font)}
.np #offer-dialog.np-calling-offer #offer-cards{grid-template-columns:repeat(3,minmax(0,1fr));min-height:0;flex:0 1 auto;overflow:auto;overscroll-behavior:contain;padding:4px;scroll-padding:4px}
.np #offer-dialog.np-calling-offer .np-offer-card{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;align-content:start;border-color:#bba474;background:#242640}
.np #offer-dialog.np-calling-offer .np-offer-side,.np #offer-dialog.np-calling-offer .np-offer-meta{display:none}
.np #offer-dialog.np-calling-offer .np-offer-heading{grid-column:1;grid-row:1;white-space:normal;flex-direction:column;align-items:flex-start}
.np #offer-dialog.np-calling-offer .np-offer-heading strong{overflow:visible;color:var(--gold);font-size:1.4rem}
.np #offer-dialog.np-calling-offer .np-gloss{color:var(--muted);font-size:.8rem}
.np #offer-dialog.np-calling-offer .np-offer-copy{grid-column:1;grid-row:2}
.np #offer-dialog.np-calling-offer #offer-tools{flex-shrink:0;margin-top:auto;padding-top:8px;background:var(--panel)}
.np #offer-dialog.np-calling-offer #offer-tools button{border-color:#bba474}
.np #offer-dialog.np-calling-offer .np-dialog-body>p,.np #offer-dialog.np-calling-offer .np-dialog-body>h2{flex-shrink:0}
@media(max-width:599px){
.np #offer-dialog.np-calling-offer #offer-title{font-size:1.55rem}
.np #offer-dialog.np-calling-offer #offer-cards{grid-template-columns:1fr;gap:5px;margin:2px 0}
.np #offer-dialog.np-calling-offer .np-offer-card{gap:4px;padding:6px!important}
.np #offer-dialog.np-calling-offer .np-offer-heading{gap:1px}
.np #offer-dialog.np-calling-offer .np-offer-heading strong{font:700 14px/1.2 var(--hud-font)}
.np #offer-dialog.np-calling-offer .np-gloss{font-size:11px;line-height:1.2}
.np #offer-dialog.np-calling-offer .np-offer-copy{font-size:12px;line-height:1.25;gap:4px}
.np #offer-cards .np-theme-chip{font-size:9px}
.np #offer-cards .np-need-chip{font-size:10px}
.np #offer-cards .np-opening{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
.np *,.np *::before,.np *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
.np-room-bar{ position:relative; z-index:12; display:flex; gap:1rem; align-items:center; padding:.4rem 1rem; background:#141a30; }
.np-playing .np-room-bar{ position:fixed; bottom:0; left:0; max-width:70%; font-size:.8rem; }
#invite-link{ overflow-wrap:anywhere; font-size:.8rem; }
.np-roster-row{ display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; margin:.5rem 0; }
.np-roster-row .np-picture{ width:36px; height:36px; }
.np-watching #prayer,.np-watching #traits,.np-watching #buffs,.np-watching #xp,.np-watching #hp,.np-fallen #prayer{ display:none; }
.np-tone-bond{ --tone:#9edbbc; color:#9edbbc; border-color:#5c937b; }
.np-tone-resonance{ --tone:#e8b4f5; color:#e8b4f5; border-color:#ac76b8; }
.np-dim{ opacity:.6; }
.np-result-keeper{ padding:.7rem; border:1px solid #53617c; margin:.5rem 0; }
.np-result-keeper.is-you{ border-color:#ead49e; background:#2c2941; }
.np-room-bar button,#room-entry button,#company button,#pause-leave{ border:1px solid #788398; box-shadow:none; }
@media (max-width:600px){
.np-playing .np-room-bar{ max-width:65%; font-size:10px; }
}
@media (prefers-reduced-motion:reduce){
.np-tone-resonance{ animation:none; transition:none; }
}
.np-playing .np-room-bar{ max-width:calc(100% - 160px); }
.np-room-bar:has(#connection:empty):has(#leave-room[hidden]){ display:none; }
.np-room .room-chat--floating{ pointer-events:none; filter:none; }
.np-room .room-chat__toggle,.np-room .room-chat__panel{ pointer-events:auto; }
.np [data-frame]{background-image:var(--frame,none);background-size:100% 100%;background-repeat:no-repeat}
.np [data-frame="ui-bar"]{--frame:var(--ui-bar)}
.np [data-frame="ui-plaque"]{--frame:var(--ui-plaque);aspect-ratio:var(--ui-plaque-ratio,1)}
.np [data-frame="ui-tile"]{--frame:var(--ui-tile);aspect-ratio:var(--ui-tile-ratio,1)}
.np [data-frame="ui-chip"]{--frame:var(--ui-chip);aspect-ratio:var(--ui-chip-ratio,1)}
.np [data-frame="ui-ring"]{--frame:var(--ui-ring);aspect-ratio:var(--ui-ring-ratio,1)}
.np [data-frame="ui-banner"]{--frame:var(--ui-banner);aspect-ratio:var(--ui-banner-ratio,3)}
.np.has-ui-plaque [data-frame="ui-plaque"],.np.has-ui-tile [data-frame="ui-tile"],.np.has-ui-chip [data-frame="ui-chip"],.np.has-ui-ring [data-frame="ui-ring"],.np.has-ui-banner [data-frame="ui-banner"],.np.has-ui-bar [data-frame="ui-bar"]{border-color:transparent;background-color:transparent;border-radius:0}
.np.has-ui-chip [data-frame="ui-chip"],.np.has-ui-plaque [data-frame="ui-plaque"],.np.has-ui-banner [data-frame="ui-banner"]{color:#302238}
.np button .np-picture,.np .room-chat__toggle .np-picture{width:24px;height:24px;vertical-align:middle;margin-right:4px;font-size:12px}
.np button .np-label{vertical-align:middle}
.np .results-dialog .results-body{background:transparent}
.np .results-dialog .results-actions{bottom:0;background:var(--panel)}
.np .np-offer-side .np-picture{width:76px;height:76px;margin:0}
.np .np-offer-meta{flex-wrap:wrap;gap:4px;max-width:120px}
.np #offer-dialog.np-calling-offer .np-offer-card{grid-template-columns:76px minmax(0,1fr);grid-template-rows:auto auto}
.np #offer-dialog.np-calling-offer .np-offer-side{display:flex;grid-column:1;grid-row:1}
.np #offer-dialog.np-calling-offer .np-offer-heading{grid-column:2;grid-row:1}
.np #offer-dialog.np-calling-offer .np-offer-copy{grid-column:1/-1;grid-row:2}
.np-trait-copy>.np-picture,.np-calling-row>.np-picture{float:left;width:36px;height:36px;margin:0 8px 5px 0}
.np-calling-heading>.np-picture{width:36px;height:36px}
.np-trait-copy,.np-calling-row{display:flow-root}
.np-devotions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.np-devotion{min-width:0;border:1px solid var(--line);border-radius:5px;padding:10px;background:#151c3b;font-size:13px}
.np-devotion>.np-picture{width:32px;height:32px;float:left;margin:0 8px 4px 0}
.np-devotion strong{color:var(--gold)}
.np-devotion p{margin:.5rem 0 0}
.np-devotion small{font-size:12px;color:var(--muted)}
.np-devotion-next{color:var(--gold)}
.np-devotion-bar{position:relative;clear:both;height:12px;margin:8px 2px;background:linear-gradient(to right,#a7834d var(--points),#10162e var(--points));border:1px solid var(--line)}
.np-devotion-bar i{position:absolute;top:0;bottom:0;width:2px;background:var(--cream);transform:translateX(-2px)}
.np-empty[data-frame="ui-plaque"]{opacity:.4}
.np-empty .np-picture{opacity:.3}
.np-playing .np-room-bar{left:max(12px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));max-width:calc(100% - 110px);padding:0 4px;font-size:12px;gap:4px}
.np-playing .np-room-bar button{font-size:12px;min-height:36px}
.np [data-frame]:focus-visible{outline:3px solid var(--gold);outline-offset:1px;box-shadow:none}

@media (max-width:699px){
.np-devotions{grid-template-columns:1fr}
}
@media(max-width:599px){
.np #offer-dialog .np-dialog-body>.np-kicker,.np #offer-cards .np-trigger,.np #offer-cards .np-chip,.np #offer-cards .np-offer-notes,.np #offer-cards .np-theme-chip,.np #offer-cards .np-need-chip,.np #offer-cards .np-opening{font-size:12px}
.np #offer-cards{gap:4px;min-height:0;flex:1 1 auto;overflow:auto;scroll-padding:3px;padding:2px;grid-auto-rows:minmax(0,1fr)}
.np #offer-cards .np-offer-card{grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 5px;padding:5px!important}
.np #offer-cards .np-offer-side{grid-column:1;grid-row:1/3;align-self:start}
.np #offer-cards .np-picture{width:40px;height:40px;margin:0}
.np #offer-cards .np-offer-heading{grid-column:2;white-space:normal;flex-wrap:wrap;gap:2px 5px}
.np #offer-cards .np-offer-heading strong{overflow:visible;font-size:12px}
.np #offer-cards .np-offer-meta{display:none}
.np #offer-cards .np-offer-copy{grid-column:2;grid-row:2;font-size:12px;line-height:1.2;gap:2px}
.np #offer-cards .np-blurb,.np #offer-cards .np-theme-chips,.np #offer-cards .np-trigger{display:none}
.np #offer-tools{position:static;margin-top:4px;gap:3px;padding:0;background:transparent}
.np #offer-tools button{font-size:12px;line-height:1.2;padding:3px;min-height:40px;border-width:6px;border-image-width:6px;white-space:normal}
.np #offer-tools .np-picture{width:18px;height:18px;margin:0 2px 0 0}
.np #offer-countdown{font-size:12px;line-height:1.2;margin:2px 0}
.np #offer-dialog.np-calling-offer .np-offer-card{grid-template-columns:42px minmax(0,1fr);gap:3px}
.np #offer-dialog.np-calling-offer .np-offer-side{grid-column:1;grid-row:1/3}
.np #offer-dialog.np-calling-offer .np-offer-heading,.np #offer-dialog.np-calling-offer .np-offer-copy{grid-column:2}
.np #offer-dialog.np-calling-offer .np-gloss{font-size:12px}
.np #offer-dialog.np-calling-offer #offer-title{font-size:20px}
.np #offer-dialog.np-calling-offer #offer-tools{padding-top:0;background:transparent}
}
@media(max-width:599px){
.np #offer-cards .np-offer-card{min-height:0;overflow:hidden}
.np #offer-cards .np-offer-copy{min-height:0;overflow:auto;scrollbar-width:thin}
.np #offer-cards .np-offer-rule{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex-shrink:0}
.np #offer-cards .np-opening{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex-shrink:0}
.np #offer-dialog.np-calling-offer #offer-cards{flex:1 1 auto;grid-auto-rows:minmax(0,1fr)}
.np #offer-dialog.np-calling-offer .np-offer-copy{overflow:auto}
.np #offer-dialog.np-calling-offer .np-offer-rule{-webkit-line-clamp:unset}
}
.np .np-chip,.np .np-theme-chip,.np .np-need-chip,.np .np-offer-card .np-source{font-size:12px}
.np .np-dialog .np-kicker{font-size:12px}
.np.has-ui-button #offer-dialog button.np-offer-card{border:1px solid transparent;border-image:var(--ui-button) 24% 10% fill / 9px / 0 stretch;background:transparent;color:#291b2e;box-shadow:none}
.np.has-ui-button #offer-dialog .np-offer-card strong,.np.has-ui-button #offer-dialog .np-offer-card small,.np.has-ui-button #offer-dialog .np-offer-card .np-opening,.np.has-ui-button #offer-dialog .np-offer-card .np-gloss,.np.has-ui-button #offer-dialog .np-offer-card .np-blurb{color:#291b2e}
.np.has-ui-button #offer-dialog .np-offer-card p{color:#291b2e}
.np.has-ui-button #offer-dialog .np-offer-card .np-theme-chip{color:#291b2e;border-color:#70503d}
.np.has-ui-button #offer-dialog .np-offer-card .np-need-chip{color:var(--cream)}
.np.has-ui-button #offer-dialog button.np-offer-card:hover{filter:brightness(1.08)}
@media(max-width:599px){
.np.has-ui-button #offer-dialog button.np-offer-card{border-image-width:5px}
}
.np.has-ui-button #room-entry button,.np.has-ui-button #company button{border-color:transparent;box-shadow:none}
.np-performance-controls{ display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; align-items: center; }
.np-performance-controls select{ color: #fff5db; background: #202740; padding: 6px; border: 1px solid #69708d; border-radius: 6px; }
.np .np-effect-preview{width:38px;height:38px;border-radius:0;background:transparent}
.np-effect-preview:not(.has-art){border:2px solid #bca7d8;border-radius:50%;opacity:.55}
.np-effect-preview>.np-initial{display:none}
.np-effect-preview>.np-picture-art{overflow:hidden}
.np-picture-strip{position:absolute;inset:0 auto 0 0;background-repeat:no-repeat;background-position:0 50%;transform:translateX(var(--sheet-end))}
.np-synergy-row:is(:hover,:focus-within) .np-effect-preview.has-art .np-picture-strip{animation:np-synergy-sheet .72s steps(1,end) 1;will-change:transform}
@keyframes np-synergy-sheet{
  0%{transform:translateX(0)}
  25%{transform:translateX(calc(var(--sheet-end) / 3))}
  50%{transform:translateX(calc(var(--sheet-end) * 2 / 3))}
  75%,100%{transform:translateX(var(--sheet-end))}
}
.np-synergy-row:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.np-calling-heading{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.np-calling-heading>.np-picture{width:38px;height:38px}
.np-offer-side{position:relative;justify-content:space-between;width:100%;gap:4px}
.np .np-calling-card{position:relative}
.np .np-offer-effect{position:absolute;top:8px;right:8px;width:44px;height:44px;margin:0;flex:none;opacity:.8;pointer-events:none}
.np-calling-card .np-offer-heading,.np-calling-card .np-offer-meta{padding-right:44px}
.np-offer-effect.has-art .np-picture-strip{animation:np-synergy-sheet 2.4s steps(1,end) infinite;will-change:transform}
.np-need-chip.is-met::before{content:'';display:inline-block;width:5px;height:9px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin:0 7px 1px 2px}
.np-need-chip:not(.is-met)::before{content:'';display:inline-block;width:8px;height:8px;border:1px solid currentColor;margin-right:6px}
@media(max-width:599px){
.np #offer-cards .np-offer-side{flex-direction:column}
.np #offer-cards .np-offer-effect{width:34px;height:34px;margin:0}
}
@media(prefers-reduced-motion:reduce){
.np-synergy-row:is(:hover,:focus-within) .np-effect-preview.has-art .np-picture-strip,.np-offer-effect.has-art .np-picture-strip{animation:none;transform:translateX(var(--sheet-end))}
}
.np-catch-up{ position: fixed; z-index: 12; top: 25%; left: 50%; transform: translateX(-50%); padding: .6rem 1rem; background: #141a3a; color: #eae3ce; border: 1px solid #77718f; pointer-events: none; }
.np-network{ white-space: pre-line; font-size: .85rem; color: var(--muted, #bbb6cf); }
.np-road-cards{display:flex;gap:18px;overflow-x:auto;padding:6px 4px 18px;margin-bottom:1rem;overscroll-behavior-x:contain;background:linear-gradient(var(--line),var(--line)) 0 55%/100% 3px no-repeat}
.np .np-road-card{flex:0 0 220px;padding:0 0 10px;overflow:hidden;text-align:left;border:1px solid var(--line);box-shadow:none;white-space:normal}
.np-road-card[aria-checked=true]{border-color:var(--gold);background:#3d3550}
.np-road-card.is-locked .np-map-picture{filter:brightness(.45)}
.np-road-card>small{display:block;font-size:.75rem;margin:8px 10px 0}
.np-place-face{display:flex;flex-direction:column;gap:5px;min-width:0}
.np-place-face>.np-gloss{font-size:.8rem;color:var(--muted)}
.np .np-road-card .np-map-picture{display:flex;width:100%;height:auto;aspect-ratio:3/2;margin:0;border-radius:0;font:700 14px var(--hud-font);background:var(--panel)}
.np-place-face>:not(.np-map-picture){margin-left:10px;margin-right:10px}
.np .np-road-card .np-map-picture .np-picture-art{background-size:100% 100%;background-repeat:no-repeat}
.np-map-picture .np-initial{padding:8px;text-align:center}
.np-tier,.np-stamps{display:flex;gap:8px;align-items:center;min-height:24px}
.np-tier i{display:block;width:7px;height:11px;border:1px solid var(--gold);border-radius:2px;background:#f3cd8133}
.np .np-stamp{width:22px;height:22px;opacity:.25;border-radius:0;background:none;overflow:visible}
.np .np-stamp.is-earned{opacity:1}
.np-stamp:not(.has-art)::before{content:'';display:block;width:13px;height:13px;border:2px solid var(--gold);border-radius:50%}
.np-stamp-dawn:not(.has-art)::before{background:var(--gold);outline:1px dashed var(--gold);outline-offset:3px}
.np-stamp-lit:not(.has-art)::before{border-radius:3px;width:10px;height:15px;background:linear-gradient(90deg,transparent 40%,var(--gold) 40% 60%,transparent 60%)}
.np-place-details h4{color:var(--gold);margin:1rem 0 .4rem}
.np-place-details p{font-size:.85rem}
.np-place-patron{display:flex;align-items:center;gap:8px}
.np-place-patron .np-picture{width:34px;height:34px}
.np-programme{padding-left:1.4rem;font-size:.85rem}
.np-programme li{margin:.4rem 0}
.np-programme .np-dim{opacity:.45}

@media(max-width:699px){
.np .np-road-card{flex:0 0 160px;scroll-margin:6px}
.np-place-details{overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){
.np-road-cards{scroll-behavior:auto}
}
.np-maker>section{min-width:0}
.np-road-cards{max-width:100%}
#road-details{min-width:0;max-width:100%;overflow-wrap:anywhere}
.np-maker-layout>*{min-width:0}
.np .np-road-card .np-map-picture .np-picture-art{background-size:cover!important;background-position:center}
/* Play furniture: one safe-area grid, paper messages, wooden controls and outlined figures. */
.np{font-weight:700}
.np :is(h1,h2,h3,h4,button,.np-chip,.np-theme-chip,.np-need-chip){font-family:var(--hud-font);font-weight:800}
.np-hud{--bottom-lift:0px;position:absolute;inset:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));pointer-events:none;font:700 13px/1.3 var(--hud-font);font-variant-numeric:tabular-nums}
.np-hud button,.np-hud [tabindex]{pointer-events:auto}
.np-hud .np-picture{font:800 12px/1 var(--hud-font)}
.np-hud :is(.np-counters,.np-hp #hp-text,.np-buff>span:last-child,.np-boss-name,.np-prayer small),.np-performance,.np-party-row{color:var(--cream);font-weight:800;paint-order:stroke fill;-webkit-text-stroke:3px var(--plum);text-shadow:none}
.np-hud [data-frame]{aspect-ratio:auto;background-image:none}
.np-meter{position:relative;height:14px;border:1px solid #86634c;border-radius:4px;background:#302238;overflow:hidden}
.np-meter>i{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--gold)}
.np-xp{position:absolute;inset:0 0 auto;height:16px;border:3px solid #86634c;overflow:visible;background:#302238}
.np.has-ui-xp .np-xp{border-color:transparent;border-image:var(--ui-xp) 28% 5% fill / 4px / 0 stretch;background:none}
.np-xp-channel{position:absolute;inset:1px 4px;overflow:hidden;border-radius:2px;background:#302238}
.np-xp-channel>i{position:absolute;inset:0 auto 0 0;width:0;border-radius:2px;max-width:100%;background:linear-gradient(#fff1b2 0 2px,#eeb74f 2px,#c88935)}
#level{position:absolute;left:0;top:-6px;width:44px;height:44px;display:grid;place-items:center;z-index:2;color:var(--plum);font-size:15px;font-weight:800}
#level>.np-picture{position:absolute;inset:0;width:44px;height:44px;background:#f3cd81}
#level>.np-picture.has-art{background:none}
#level .np-initial{display:none}
#level>#level-number{position:absolute;inset:0;display:grid;place-items:center;z-index:3;color:var(--plum);font:800 15px/1 var(--hud-font);visibility:visible;opacity:1}
.np-hp{position:absolute;left:0;top:40px;width:300px;height:40px;display:grid;place-items:center;overflow:visible;border:4px solid #86634c;background:#302238}
.np.has-ui-bar .np-hp{border-color:transparent;border-image:var(--ui-bar) 25% 9% fill / 10px 24px / 0 stretch;background:none}
.np-hp-channel{position:absolute;inset:8px 18px;overflow:hidden;border-radius:2px;background:#302238}
.np-hp-channel i{position:absolute;inset:0 auto 0 0;background:#c75159}
.np-hp-channel .np-ward{left:auto;right:0;background:repeating-linear-gradient(125deg,#b4e6ebbb 0 4px,#a7dfe940 4px 8px)}
.np-hp #hp-text{position:relative;font-size:13px;z-index:1}
.np-hp>.np-picture{position:absolute;left:-4px;width:24px;height:24px}
.np-low-health .np-hp-channel{animation:np-hp-pulse 2.1s ease-in-out infinite}
@keyframes np-hp-pulse{50%{opacity:.7}}
.np-buffs{position:absolute;top:88px;left:0;width:300px;display:flex;gap:8px;overflow:visible}
.np-buff{position:relative;flex:none;width:32px;height:32px;display:grid;place-items:center}
.np-buff .np-picture{width:28px;height:28px}
.np-buff>span:last-child{position:absolute;right:0;bottom:0;font-size:13px}
.np-clock-stack{position:absolute;top:32px;left:50%;transform:translateX(-50%);width:220px;display:flex;flex-direction:column;align-items:center;gap:8px}
.np-upper-notes{display:contents}
#programme{position:absolute;top:92px;left:50%;transform:translateX(-50%);width:220px;display:flex;flex-direction:column;gap:8px}
.np-hud [data-frame="ui-tag"],.np-host-wait,.np-fallen-note{border:3px solid #b68a56;border-radius:3px;background:#eed5a4;color:var(--plum);padding:3px 8px;font-size:13px;line-height:1.3}
.np-hud [data-frame="ui-tag"]{--tag-left-slice:36px;padding-left:calc(var(--tag-left-slice) + 6px)}
.np.has-ui-tag .np-hud [data-frame="ui-tag"]{border-color:transparent;border-image:var(--ui-tag) 22% 8% 22% 22% fill / 6px 12px 6px var(--tag-left-slice) / 0 stretch;background:none}
.np-programme-tag{display:flex;align-items:center;gap:8px;min-width:0;min-height:32px}
.np-programme-tag>.np-picture{width:20px;height:20px}
.np-countdown{flex:none;font-variant-numeric:tabular-nums}
.np-programme-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np-programme-tag.is-soon{animation:np-tag-pulse 1.6s ease-in-out infinite}
@keyframes np-tag-pulse{50%{opacity:.85;transform:translateY(-1px)}}
.np-hud-top{position:absolute;top:40px;right:0;display:grid;grid-template-columns:auto auto;gap:8px 16px;align-items:center}
.np-controls{display:grid;grid-template-columns:repeat(3,40px);gap:8px}
/* Visual order reads inward from the edge; DOM order retains Sound, Pause, Map. */
#pause{grid-column:3;grid-row:1}#sound{grid-column:2;grid-row:1}#minimap-toggle{grid-column:1;grid-row:1}
.np .np-hud .np-medallion,.np .np-hud .np-trait-more{display:grid;place-items:center;width:40px;height:40px;min-height:0;padding:0;border:4px solid #987347;border-radius:50%;background:#d3aa6c;color:var(--plum);box-shadow:none}
.np.has-ui-slot .np-hud :is(.np-medallion,.np-trait-more,.np-trait-badge){border-color:transparent;border-image:var(--ui-slot) 25% fill / 8px / 0 stretch;background:none}
.np .np-hud .np-medallion .np-picture{width:26px;height:26px;margin:0}
.np .np-hud .np-medallion[aria-pressed=true]{filter:brightness(.86);transform:translateY(1px)}
.np .np-hud .np-medallion:hover{filter:brightness(1.12)}
.np-counters{display:flex;align-items:center;justify-content:flex-end;gap:16px;font-size:15px}
.np-counters>span{display:flex;align-items:center;gap:4px;white-space:nowrap}
.np-counters .np-picture{width:24px;height:24px;-webkit-text-stroke:0}
#lantern-count{grid-column:1/-1;justify-self:end;display:flex;gap:2px;height:22px}
#lantern-count>.np-picture{width:22px;height:22px;background:#69596e;color:#f6ecd7;opacity:1;filter:drop-shadow(1px 0 1px var(--plum)) drop-shadow(-1px 0 1px var(--plum)) drop-shadow(0 1px 1px var(--plum))}
#lantern-count>.np-picture[data-art="icon-lantern-lit"]{background:#e3b659;color:var(--plum);filter:drop-shadow(0 0 3px #f3cd81aa)}
#lantern-count>.np-picture.has-art{background:none}
#lantern-count.is-all{filter:drop-shadow(0 0 5px #f3cd8199)}
/* The minimap is a small paper map in a slim dark-wood frame with a thin brass line inside (no lacquered art frame). */
.np-minimap{--map-width:148px;position:absolute;top:112px;right:0;padding:2px;border-top:4px solid #5a3f2c;border-right:4px solid #4a3324;border-bottom:4px solid #3f2b1f;border-left:4px solid #5a3f2c;border-radius:9px;background:#c9a466;box-shadow:inset 0 0 0 1px #2b1e17}
.np.has-ui-mapframe .np-minimap{border-image:none}
.np-stage .np-minimap canvas{border-radius:6px}
.np-stage .np-minimap canvas{display:block;width:var(--map-width);height:var(--map-height,auto);aspect-ratio:var(--map-ratio,1.5);max-height:124px;background:#302238;pointer-events:none}
/* The programme occupies 72px below the clock. Announcements follow it in flow. */
.np-announcements{position:absolute;top:112px;left:50%;transform:translateX(-50%);width:min(560px,calc(100% - 464px));display:flex;flex-direction:column;align-items:center;gap:8px}


/* Map lines and synergies are told at the foot of the screen, above the strip of traits; the top middle is only the clock and a lord. */
.np-callouts{position:absolute;left:50%;bottom:calc(96px + var(--bottom-lift));transform:translateX(-50%);width:min(560px,calc(100% - 520px));min-width:280px;display:flex;flex-direction:column-reverse;align-items:center;gap:8px}
.np-hud .np-synergy-banner{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:6px solid #ad804c;border-radius:2px;background:#eed5a4;color:var(--plum);padding:8px 16px;font-size:13px;text-align:center}
.np.has-ui-banner .np-hud .np-synergy-banner{border-color:transparent;border-image:var(--ui-banner) 15% 12% fill / 6px 18px / 0 stretch;background:none}
.np-synergy-banner>.np-picture{width:40px;height:40px}
.np-synergy-banner strong,.np-synergy-banner>span>span{display:block}
.np-synergy-banner strong{font-size:18px;font-weight:800}
.np-boss{width:min(420px,100%);text-align:center}
#boss-name{color:var(--cream);paint-order:stroke fill;-webkit-text-stroke:3px var(--plum);font-weight:800}
.np-boss .np-meter{margin-top:8px;height:14px}
.np-boss .np-meter>i{background:#d96751}
.np-left-notes{position:absolute;top:128px;left:0;bottom:144px;width:240px;display:flex;flex-direction:column;gap:8px;overflow:visible}
.np-toasts{display:flex;flex-direction:column;gap:8px}
.np-hud .np-toast{margin:0;max-width:100%;overflow-wrap:anywhere;display:block}
.np-toasts{min-width:0;max-width:100%}
.np-party{font-size:13px}
.np-party-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:2px 8px;margin-bottom:8px}
.np-party-row>.np-picture{grid-row:1/3;width:24px;height:24px;-webkit-text-stroke:0}
.np-party-row>span:not(.np-picture){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np-party-row progress{grid-column:2;width:100%;height:5px;accent-color:var(--gold)}
.np-party-row small{grid-column:3;grid-row:1/3;align-self:center;font-size:11px}
.np-fallen-note{position:absolute;left:50%;top:32%;transform:translateX(-50%);text-align:center}
.np-inventory{position:absolute;left:0;bottom:var(--bottom-lift);width:344px;max-width:100%;display:flex;flex-direction:column;gap:8px}
.np-slots{display:flex;flex-wrap:nowrap;gap:8px}
.np-slot{position:relative;display:grid;place-items:center;flex:none;width:56px;height:64px;border:2px solid #967348;border-radius:6px;background:#b89460}
.np-slot>.np-picture{position:absolute;top:12%;left:10%;width:80%;height:auto;aspect-ratio:1}
.np-pips{display:flex;gap:2px;justify-content:center}
.np-slot>.np-pips{position:absolute;bottom:8%;left:10%;right:10%}
.np-pips i{width:4px;height:4px;border-radius:50%;background:var(--gold)}
.np-gear .np-slot{width:36px;height:36px}
.np.has-ui-plaque .np-hud [data-frame="ui-plaque"],.np.has-ui-tile .np-hud [data-frame="ui-tile"]{background-image:var(--frame);background-size:100% 100%;background-repeat:no-repeat}
.np-slot.np-empty .np-picture{opacity:1}
.np-gear .np-slot>.np-picture{top:13%;left:13%;width:74%}
.np-empty{opacity:.4}
.np-bottom-notes{position:absolute;left:50%;bottom:calc(8px + var(--bottom-lift));transform:translateX(-50%);width:min(640px,52vw);display:flex;flex-direction:column;align-items:center;gap:16px}
.np-hud .np-play-status{max-width:100%;margin:0;text-align:center}
.np-play-status:empty{display:none}
.np-trait-strip{width:100%;display:flex;flex-wrap:nowrap;justify-content:center;gap:8px}
.np-trait-group{display:contents}
.np-hud .np-trait-badge,.np .np-hud .np-trait-more{position:relative;display:grid;place-items:center;width:34px;height:34px;min-width:34px;min-height:34px;flex:none;padding:0;border:4px solid #987347;border-radius:50%;background:#c9a16c;color:var(--plum);opacity:1}
.np-hud .np-trait-badge>.np-picture{width:26px;height:26px;margin:0}
.np-trait-badge.proc{opacity:1;animation:np-trait-pop .18s ease-out}
.np-trait-badge:focus-visible{opacity:1}
@keyframes np-trait-pop{50%{transform:scale(1.12)}}
.np-prayer{position:absolute;right:0;bottom:var(--bottom-lift);width:112px;display:flex;flex-direction:column;align-items:center;text-align:center}
.np .np-prayer :is(.np-bell,.np-mantra){position:relative;display:block;width:112px;height:112px;min-height:0;aspect-ratio:1;padding:0;border:1px solid var(--gold);border-radius:50%;background:#241e34;box-shadow:none;isolation:isolate}
.np.has-ui-ring .np-prayer :is(.np-bell,.np-mantra){background:none;border-color:transparent}
.np.has-ui-ring .np-prayer :is(.np-bell,.np-mantra)::after{content:'';position:absolute;inset:0;background:var(--ui-ring) center/100% 100% no-repeat;z-index:2;pointer-events:none}
.np .np-prayer :is(.np-bell,.np-mantra)>.np-picture{position:absolute;inset:10% 10% 20%;width:80%;height:70%;margin:0;border-radius:50%;background:#241e34;z-index:0}
.np-sweep{position:absolute;inset:10% 10% 20%;border-radius:50%;z-index:1;background:conic-gradient(#151224d9 var(--sweep,0deg),transparent 0);pointer-events:none}
.np-prayer-name{position:relative;margin-top:-5px;z-index:3;display:block;width:100%;padding:4px 8px;border:4px solid #ad804c;background:#eed5a4;color:var(--plum);font-size:13px}
.np.has-ui-banner .np-prayer-name{border-color:transparent;border-image:var(--ui-banner) 15% 12% fill / 4px 10px / 0 stretch;background:none}
.np-prayer small{font-size:13px}
.np-performance{width:100%;max-height:96px;overflow:visible;white-space:pre-line;font:700 11px/1.3 var(--hud-font);font-variant-numeric:tabular-nums;text-align:center}
.np-host-wait{position:absolute;top:28%;left:50%;transform:translateX(-50%);z-index:9;pointer-events:none}
.np-room .np-hud{--bottom-lift:64px}
.np-room .np-left-notes{bottom:208px}
.np-watching #prayer,.np-watching #traits,.np-watching #buffs,.np-watching .np-inventory,.np-watching #xp,.np-watching #hp,.np-watching #coins,.np-fallen #prayer{display:none}
@media(max-width:1100px){
  .np-callouts{bottom:calc(150px + var(--bottom-lift));width:min(520px,calc(100% - 300px))}
  .np-counters{gap:8px}
  .np-hud-top{column-gap:8px}
  .np-bottom-notes{bottom:calc(112px + var(--bottom-lift))}
  .np-left-notes{width:208px}
}
@media(max-width:899px) and (min-width:600px){
  .np-hp,.np-buffs{width:208px}
  .np-clock-stack{left:44%;width:200px}
  .np-counters{grid-column:1/-1;grid-row:2}
  .np-controls{grid-column:2;grid-row:1;justify-self:end}
  #lantern-count{grid-row:3}
  .np-minimap{top:144px}
  .np-announcements{width:calc(100% - 432px)}
}
@media(max-width:599px){
  .np-hud{--bottom-lift:0px}
  .np-hp{top:32px;width:100%;height:32px}
  .np-hp-channel{inset:5px 18px}
  .np-buffs{top:64px;width:100%;height:16px;gap:4px;overflow:visible}
  .np-buff{width:24px;height:16px}.np-buff .np-picture{width:16px;height:16px}.np-buff>span:last-child{font-size:11px}
  .np-clock-stack{top:80px;left:0;transform:none;width:min(220px,calc(100% - 144px));align-items:flex-start}
  .np-upper-notes{position:absolute;top:152px;left:0;width:calc(100% - 144px);display:flex;flex-direction:column;gap:8px;overflow:visible}
  #programme{position:static;transform:none;width:100%;flex:none}
  #programme>.np-programme-tag:nth-child(n+2){display:none}
  .np-programme-tag{gap:4px}
  .np-hud-top{top:80px;left:0;right:0;grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .np-controls{grid-column:2;grid-row:1;justify-self:end}
  .np-counters{grid-column:1;grid-row:2;justify-content:flex-start;gap:8px;height:24px}
  .np-counters .np-picture{width:20px;height:20px}
  #lantern-count{grid-column:2;grid-row:2;align-self:center;flex-wrap:nowrap;height:18px}
  .np-minimap{--map-width:112px;top:160px;border-width:3px}
  .np-stage .np-minimap canvas{max-height:max(32px,min(96px,calc(33dvh - 184px)))}
  .np-bottom-notes{bottom:136px;width:100%;gap:16px;overflow:visible}
  .np-bottom-notes>*{flex:none}
  .np-trait-strip{flex-wrap:nowrap;max-height:34px}

  .np-inventory{left:0;bottom:0;width:296px;gap:8px}
  .np-slot{width:44px;height:50px}.np-gear .np-slot{width:30px;height:30px}
  #lantern-count>.np-picture{width:18px;height:18px}
  .np-prayer{width:80px;bottom:38px}.np .np-prayer :is(.np-bell,.np-mantra){width:80px;height:80px}
  .np-prayer-name{font-size:11px;padding:2px 4px}
  .np-left-notes,.np-room .np-left-notes{position:static;width:100%;max-height:none;overflow:visible;gap:4px;flex:none}
  .np-toasts{gap:4px}.np-party{font-size:11px}.np-party-row{grid-template-columns:16px minmax(0,1fr);gap:2px 4px}.np-party-row>.np-picture{width:16px;height:16px}.np-party-row small{grid-column:2;grid-row:auto}
  .np-callouts{bottom:190px;width:100%;min-width:0}
  .np-announcements,.np-hud:has(#programme:not([hidden])) .np-announcements,.np-hud:has(#programme:not([hidden])>:nth-child(2)) .np-announcements{position:static;transform:none;width:100%;gap:4px;flex:none}
  .np-hud .np-synergy-banner{font-size:12px;padding:4px 8px;overflow:visible}
  .np-synergy-banner>.np-picture{width:24px;height:24px}.np-synergy-banner strong{font-size:13px}
  .np-boss{width:100%}.np-boss .np-meter{height:8px;margin-top:4px}
  .np-performance{max-height:48px;font-size:10px}
  .np-hud .np-play-status{font-size:12px}
}
@media(max-width:359px){
  .np-counters{font-size:12px;gap:4px}.np-counters>span{gap:2px}.np-counters .np-picture{width:16px;height:16px}
}
/* Scroll bodies stay physically inside the panel rails, including at narrow widths. */
.np .np-dialog,.np .results-dialog,.np #offer-dialog.np-calling-offer[open]:not(.np-offer-tray){--rail:clamp(32px,8dvh,64px);width:min(1060px,calc(100% - 24px));max-height:calc(100dvh - 24px);height:fit-content;min-height:0;inset:0;margin:auto;padding:0;border:solid #806044;border-width:var(--rail) clamp(16px,4vw,48px);border-radius:8px;background:var(--panel);background-image:none;color:var(--cream);box-shadow:none;overflow:hidden;overscroll-behavior:contain}
.np.has-ui-panel .np-dialog,.np.has-ui-panel .results-dialog,.np.has-ui-panel #offer-dialog.np-calling-offer[open]:not(.np-offer-tray){border-color:transparent;border-image:var(--ui-panel) 12% 8% fill / var(--rail) clamp(16px,4vw,48px) / 0 stretch}
.np-dialog-body{max-height:calc(100dvh - 24px - 2 * var(--rail));min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px;scroll-padding:12px}
.np .results-dialog[open]{display:flex;flex-direction:column;max-width:760px}
.np .results-dialog .results-body{min-height:0;overflow:auto;padding:12px;background:transparent}
.np .results-dialog .results-actions{position:static;flex:none;padding:8px 12px;background:transparent}
.np .results-dialog :is(h2,p,table,button){font-family:var(--hud-font);font-weight:700}
.np .results-dialog>.results-inspect{align-self:flex-end;flex:none;margin:8px 12px}
.np.has-ui-button button:not(.np-choice):not(.np-offer-card):not(.np-bell):not(.np-road-card):not(.np-medallion):not(.np-trait-more){border:10px solid transparent;border-image:var(--ui-button) 24% 10% fill / 10px / 0 stretch;background:transparent;color:#291b2e;box-shadow:none;padding:.35rem .65rem;font-weight:800;text-shadow:none}
@media(max-width:599px){
  .np .np-dialog-body{padding:8px}
  .np #offer-dialog .np-dialog-body{display:flex;flex-direction:column}
  .np #offer-dialog #offer-cards{flex:none;overflow:visible;grid-auto-rows:auto}
  .np #offer-dialog #offer-cards .np-offer-card{overflow:visible;min-height:100px}
  .np #offer-dialog #offer-tools{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.np *, .np *::before,.np *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* The level is read against the blossom, whose middle is dark: cream figures with the HUD outline, not plum on plum. */
#level>#level-number{color:var(--cream);font:800 17px/1 var(--hud-font);-webkit-text-stroke:3.5px var(--plum);paint-order:stroke fill}

/* Kinds and words share their colours with the single terms table. */
.np .np-kind-band{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:5px 8px;background:var(--kind-color);color:var(--plum);font:800 11px/1.35 var(--hud-font);letter-spacing:.08em;text-transform:uppercase;text-align:left;border-radius:3px;min-width:0}
.np-kind-state{margin-left:auto;text-align:right;letter-spacing:.03em}
.np-relic-band{outline:1px solid var(--gold);outline-offset:-1px}
.np-term{text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:var(--term-color,var(--cream));text-underline-offset:3px}
.np-theme-lead{font:700 10px/1.3 var(--hud-font);opacity:.8}
.np-term-name{display:inline-flex;align-items:baseline;gap:6px;font-weight:800}
.np-term-name>i{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%}
.np-definitions{margin:6px 0;font:400 13px/1.45 var(--hud-font)}
.np-definitions dt{margin-top:8px}.np-definitions dd{margin:2px 0 0}
.np-term-more{display:block;margin:4px 0 0 12px;font-size:11px;line-height:1.4}
.np-words-strip{margin:8px 0;font:400 13px/1.45 var(--hud-font)}
.np-words-strip>summary{cursor:pointer;font-weight:800}
.np-words-strip .np-definitions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 24px}
.np-theme-note{font:400 12px/1.4 var(--hud-font);color:var(--muted);margin:8px 0}
#carry-kinds .np-kind-band{display:inline-flex;margin-right:6px}
#road-glossary h4{margin:16px 0 4px}#road-glossary section>p{color:var(--muted);font-size:13px}
.np-trait-source{display:block;color:var(--muted);font-size:11px}
.np-almanac-entry[data-thing]{flex-wrap:wrap}.np-almanac-entry>.np-kind-band{flex-basis:100%}
.np .np-word-note{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:max-content;max-width:min(320px,calc(100vw - 16px));max-height:calc(100dvh - 16px);padding:12px;border:1px solid #987855;border-radius:6px;background:#f2dfb7;color:var(--plum);font:400 13px/1.4 var(--hud-font);box-shadow:0 3px 12px #20142255;z-index:10000;pointer-events:none;overflow:hidden;text-shadow:none}
.np-word-note[hidden]{display:none}
.np-word-note>div>strong,.np-word-note>div>small{display:block;margin-top:5px}
.np .np-word-note p{margin:6px 0;color:var(--plum);font:inherit}
.np-word-note .np-kind-band{margin-bottom:8px}
.np-word-note .np-theme-chip{color:var(--plum);border-color:#987855}
.np-hud :is([data-term],[data-thing],[data-kind],[data-note]){pointer-events:auto}
/* The band owns the first row at every card size; the dialog body owns scrolling. */
.np #offer-dialog :is(#offer-cards,#swap-cards) .np-offer-card{display:flex;flex-direction:column;align-items:stretch;gap:8px;overflow:visible;min-width:0}
.np #offer-dialog .np-offer-card>.np-kind-band{align-self:stretch;color:var(--plum);margin:-4px -4px 0}
.np #offer-dialog .np-offer-heading{display:flex;flex-direction:column;align-items:flex-start;white-space:normal;padding-right:0}
.np #offer-dialog .np-offer-heading strong{overflow:visible;text-overflow:clip}
.np #offer-dialog .np-offer-copy{overflow:visible;min-height:0}
.np #offer-dialog .np-offer-rule{display:block;-webkit-line-clamp:unset;overflow:visible}
.np #offer-dialog .np-offer-effect{top:42px}
.np #offer-dialog :is(#offer-cards,#swap-cards){flex:none;overflow:visible;grid-auto-rows:auto}
@media(max-width:599px){
  .np-words-strip .np-definitions{grid-template-columns:1fr}
  .np #offer-dialog :is(#offer-cards,#swap-cards) .np-offer-card{gap:5px}
  .np #offer-dialog .np-offer-side{min-height:0;align-items:flex-start}
}

/* The build sheet keeps its header and tab planks between the panel rails. */
#pause-dialog .np-dialog-body{display:flex;flex-direction:column;overflow:hidden;padding:12px;max-height:calc(100dvh - 24px - 2 * var(--rail))}
.np-pause-header{display:grid;grid-template-columns:1fr auto;gap:4px 16px;align-items:center;flex:none}
.np-pause-header .np-kicker{grid-column:1;margin:0}.np-pause-header h2{margin:0}
.np-pause-header #unpause{grid-column:2;grid-row:1/3}
.np-pause-tabs{display:flex;flex:none;gap:6px;overflow-x:auto;padding:10px 2px;max-width:100%}
.np-pause-tabs>[role=tab]{flex:none;white-space:nowrap}
.np .np-pause-tabs>[aria-selected=true]{filter:brightness(1.2);outline:2px solid var(--gold);outline-offset:-2px}
.np-pause-panels{min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:8px;padding:4px 2px}
#pause-status{flex:none;margin:4px 0}#pause-status:empty{display:none}
.np-build-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.np-keeper-card{padding:10px;border:1px solid var(--line);border-radius:5px;min-width:0}
.np-keeper-card>.np-picture{float:left;width:40px;height:40px;margin:0 8px 4px 0}
.np-keeper-card h3{font-size:15px;margin:2px 0 8px}.np-keeper-card p{font-size:12px;margin:6px 0;clear:both}
.np-definition-note{font-size:12px;color:var(--muted);margin:6px 0 12px}
.np-landmarks>p>strong{display:block}
.np-landmark{position:absolute;top:122px;left:0;max-width:240px;box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:2px 6px;border:1px solid #b68a56;border-radius:3px;background:#eed5a4;color:var(--plum);font:700 12px/1.3 var(--hud-font)}
.np-landmark[hidden]{display:none}
.np-landmark>span:first-child{color:#8b600d;flex:none}
.np-landmark>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np-landmark:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media(min-width:600px){.np-hud:has(.np-landmark:not([hidden])) .np-left-notes{top:150px}}
@media(max-width:599px){.np-landmark{top:82px;left:auto;right:0;max-width:136px;font-size:11px}}
.np-build-section{margin:18px 0}.np-build-section>h4{margin:14px 0 6px}
.np-build-weapons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.np-build-thing{display:flex;align-items:flex-start;gap:10px;padding:10px;border:1px solid var(--line);border-radius:5px;margin:6px 0;min-width:0}
.np-build-thing>.np-picture{width:40px;height:40px;flex:none}
.np-build-copy{flex:1;min-width:0}.np-build-copy p{margin:6px 0;font-size:13px}
.np-build-copy>.np-kind-band{margin-bottom:6px}.np-build-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.np-build-title .np-pips{flex:none}.np-build-copy>small{display:block;margin-top:4px;color:var(--muted)}
.np-programme-next{color:var(--gold);font-size:11px}.np-programme .is-next{color:var(--cream)}
.np-performance-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:16px 0}
.np-performance-controls label{display:flex;align-items:center;gap:8px}
.np #show-performance{appearance:auto;flex:none;width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--gold);color-scheme:dark}
/* Shared centre lane: clock, lord, then passing banners. */
.np-announcements{top:92px;width:min(520px,var(--middle-width,calc(100% - 464px)));left:var(--middle-left,50%)}
.np-clock-stack{left:var(--middle-left,50%)}
.np-boss{width:100%;text-align:center}
#boss-name{font:800 18px/1.3 var(--hud-font);color:var(--cream);-webkit-text-stroke:3px var(--plum);paint-order:stroke fill}
.np-boss #boss-meter{position:relative;height:34px;margin-top:4px;border:4px solid #86634c;overflow:visible;background:#302238}
.np.has-ui-bar #boss-meter{border-color:transparent;border-image:var(--ui-bar) 25% 9% fill / 10px 24px / 0 stretch;background:none}
.np-boss-channel{position:absolute;height:14px;top:6px;left:18px;right:18px;overflow:hidden;border-radius:2px;background:#302238}
#boss-fill{position:absolute;inset:0 auto 0 0;background:#8f5bd0;box-shadow:inset 0 2px #bc91ed}
#boss-meter>.np-picture{position:absolute;left:-6px;top:1px;width:24px;height:24px;z-index:1}
.np-hud .np-trait-badge,.np .np-hud .np-trait-more{opacity:1;filter:drop-shadow(1px 0 1px var(--plum)) drop-shadow(-1px 0 1px var(--plum)) drop-shadow(0 1px 1px var(--plum))}
.np .np-hud .np-trait-more{color:var(--cream);-webkit-text-stroke:3px var(--plum);paint-order:stroke fill}
.np-trait-strip{gap:4px}.np-bottom-notes{width:min(640px,100%)}
.np .np-prayer :is(.np-bell,.np-mantra){pointer-events:auto}
.np-buff-more{align-self:center;color:var(--cream);-webkit-text-stroke:3px var(--plum);paint-order:stroke fill}
.np-buffs{gap:4px;width:320px}
@media(min-width:600px){
  #programme{top:var(--programme-top,280px);left:auto;right:0;transform:none;width:220px;align-items:flex-end;text-align:right}
  #programme>.np-programme-tag{max-width:100%;justify-content:flex-end}
  .np-announcements{top:92px}
}
@media(min-width:900px){
  .np #offer-dialog{width:fit-content;max-width:calc(100% - 24px)}
  .np #offer-dialog :is(#offer-cards,#swap-cards),.np #offer-dialog.np-calling-offer #offer-cards{grid-template-columns:repeat(var(--offer-count,4),minmax(220px,320px));justify-content:center}
}
@media(min-width:600px) and (max-width:899px){
  .np-hud .np-trait-badge,.np .np-hud .np-trait-more{width:30px;height:30px;min-width:30px;min-height:30px}
}
@media(max-width:599px){
  #pause-dialog .np-dialog-body{padding:8px}
  .np-build-grid,.np-build-weapons,#pause-dialog .np-stats,.np-words-strip .np-definitions{grid-template-columns:1fr}
  .np-pause-tabs{gap:4px}.np-pause-tabs>[role=tab]{font-size:12px}
  .np-buffs{width:100%}.np-buff-more{font-size:11px}
  .np-clock-stack{left:0}
  .np-upper-notes{top:calc(152px + var(--lord-space,0px))}
  .np-minimap{top:calc(160px + var(--lord-space,0px))}
  .np-announcements{position:absolute;left:0;top:152px;transform:none;width:100%;gap:4px}
  .np-announcements .np-synergy-banner{width:calc(100% - 144px);align-self:flex-start}
  .np-hud:has(.np-announcements .np-synergy-banner:not([hidden])) .np-upper-notes{top:calc(152px + var(--lord-space,0px) + var(--banner-space,0px))}
  .np-boss #boss-meter{height:28px}.np-boss-channel{height:10px;top:5px}
  .np .np-hud .np-trait-more{display:grid}
  .np #offer-dialog :is(#offer-cards,#swap-cards){grid-template-columns:1fr}
  .np #offer-dialog :is(#offer-cards,#swap-cards) .np-offer-card{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:6px 10px}
  .np #offer-dialog .np-offer-card>.np-kind-band{grid-column:1/-1}
  .np #offer-dialog .np-offer-side,.np #offer-dialog.np-calling-offer .np-offer-side{grid-column:1;grid-row:2;display:block}
  .np #offer-dialog .np-offer-side>.np-picture{width:40px;height:40px;margin:0}
  .np #offer-dialog .np-offer-heading,.np #offer-dialog.np-calling-offer .np-offer-heading{grid-column:2;grid-row:2;align-self:center}
  .np #offer-dialog .np-offer-copy,.np #offer-dialog.np-calling-offer .np-offer-copy{grid-column:1/-1;grid-row:3}
  .np #offer-dialog .np-trigger{display:block}
  .np #offer-dialog .np-theme-chips{display:flex;flex-wrap:wrap}
}
/* The sky meter hangs where the clock was: a wooden sky window (one canvas draws the sky, the sun or moon, the weather
   and the frame) over a pale strip that says the time of day and the weather in words. Its sizes match skymeter.js. */
.np-clock-stack{top:16px}
.np-sky{display:flex;flex-direction:column;align-items:center;width:176px}
.np .np-hud .np-sky{pointer-events:auto}
.np-sky>canvas{display:block;width:176px;height:85px}
.np-sky-word{box-sizing:border-box;width:151px;margin-top:-1px;padding:2px 6px 3px;border:2px solid #4a1e1f;border-top:0;border-radius:0 0 6px 6px;background:#f2d29b;color:var(--plum);font:800 12px/1.15 var(--hud-font);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:600px){.np-announcements{top:126px}}
@media(max-width:599px){
  .np-clock-stack{top:80px}
  /* A phone has no room under the window (the counters are there): the words hang beside its sill. */
  .np-sky{flex-direction:row;align-items:flex-end;width:auto}
  .np-sky>canvas{width:104px;height:50px}
  .np-sky-word{width:auto;max-width:88px;margin:0 0 1px -3px;padding:2px 6px 3px;border-top:2px solid #4a1e1f;border-radius:0 6px 6px 0;font-size:10px;white-space:normal;text-align:left}
}

/* Isolate play furniture from the canvas; leave room for existing outlines and pops. */
.np-hud{contain:layout paint;transform:translateZ(0);overflow-clip-margin:32px}
.np-hud :is(.np-hud-top,.np-clock-stack,.np-minimap,.np-toasts,.np-inventory,.np-prayer){contain:layout paint;overflow-clip-margin:12px}
.np-low-health .np-hp-channel,.np-programme-tag.is-soon,.np-trait-badge.proc{will-change:transform,opacity}

/* Comparisons use the same rules and pictures as the worn inventory. */
.np-offer-comparison{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px 6px;font-size:12px;line-height:1.35;text-align:left}
.np-offer-comparison>span{flex:1;min-width:0}
.np-offer-comparison small,.np-offer-comparison strong{display:block}
.np #offer-dialog .np-offer-comparison strong{font:700 12px/1.35 var(--hud-font);color:inherit}
.np #offer-dialog .np-offer-comparison>.np-picture,.np .np-word-note .np-offer-comparison>.np-picture{width:24px;height:24px;flex:0 0 24px;margin:0}
.np-offer-comparison:has(.np-offer-before){flex-direction:column}
.np #offer-dialog .np-offer-comparison small{color:var(--muted)}
.np.has-ui-button #offer-dialog .np-offer-comparison small,.np-word-note .np-offer-comparison small{color:#796759}
.np-offer-change{font-weight:800}
#offer-timer{position:relative;height:4px;margin:0 30px 8px 0;background:#715b4540;color:var(--gold)}
#offer-time-fill{position:absolute;inset:0;background:currentColor;transform-origin:left center}
#offer-countdown{position:absolute;left:100%;top:-6px;margin-left:5px;font:700 11px/1.3 var(--hud-font);white-space:nowrap;color:inherit}
#offer-timer.is-urgent{color:var(--red)}
.np #offer-dialog #offer-company-note{font-size:11px;line-height:1.3;margin:4px 0;color:inherit}

/* A gift reads at a glance: a big picture, the name, one rule. Numbers and words live in the hover note. */
@media(min-width:600px) and (min-height:640px){
  .np #offer-dialog:not(.np-offer-tray) #offer-cards .np-offer-side{grid-column:1/-1;justify-content:center;min-height:96px}
  .np #offer-dialog:not(.np-offer-tray) #offer-cards .np-offer-side .np-picture{width:96px;height:96px;font-size:40px}
  .np #offer-dialog:not(.np-offer-tray) #offer-cards .np-offer-heading{align-items:center;text-align:center}
  .np #offer-dialog:not(.np-offer-tray) #offer-cards .np-offer-rule{font-size:1rem;line-height:1.4;text-align:center}
  .np #offer-dialog:not(.np-offer-tray) #offer-cards .np-offer-comparison{justify-content:center}
  .np #offer-dialog:not(.np-offer-tray) #offer-cards .np-theme-chips{justify-content:center;margin-top:auto}
}

/* The start: your keeper stands in front of the parade, ready, with Begin beside them. Choosing is further down. */
.np-welcome{grid-template-columns:minmax(0,1fr) minmax(0,520px)}
.np-ready{margin-top:1.25rem;max-width:440px;display:grid;gap:10px;font-family:var(--hud-font)}
.np .np-ready p{margin:0}
.np-hero-name{font:800 1.05rem/1.3 var(--hud-font);color:var(--gold)}
#setup .np-ready .np-night-extras{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.np-change{color:var(--gold);font-weight:700;text-underline-offset:3px}
.np-hero-stage{position:relative;margin:0 0 24px;justify-self:end}
.np-hero-stage .np-cover{display:block;width:min(40vw,520px);max-height:300px}
.np-hero-portrait{position:absolute;left:-56px;bottom:-24px;height:min(270px,22vw);width:auto;filter:drop-shadow(0 8px 10px #0009)}
@media(max-width:900px){
  .np-welcome{grid-template-columns:1fr}
  .np-hero-stage{justify-self:stretch;order:-1}
  .np-hero-stage .np-cover{width:100%;max-height:220px}
  .np-hero-portrait{left:8px;bottom:-16px;height:min(200px,44vw)}
  .np-ready{max-width:none}
}

/* The end of a night: a picture, four numbers, what you became, what you carried. The lists fold away below. */
.np-night-card{display:grid;gap:12px;margin:0 0 12px;font-family:var(--hud-font)}
.np-night-art{display:block;width:100%;max-height:260px;object-fit:contain}
.np-night-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.np-night-tile{display:grid;justify-items:center;gap:2px;padding:8px;border:3px solid #b68a56;border-radius:4px;background:#eed5a4;color:var(--plum)}
.np-night-tile strong{font:900 1.5rem/1.1 var(--hud-font)}
.np-night-tile small{font-size:12px;font-weight:700}
.np-night-words{text-align:center}
.np .np-night-words h3{margin:0 0 4px;color:var(--gold)}
.np .np-night-words p{margin:2px 0}
.np-night-stamp{color:var(--muted);font-size:13px}
.np-night-carried{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.np-night-thing{display:grid;place-items:center;width:44px;height:44px;border:2px solid #987347;border-radius:50%;background:#c9a16c}
.np-night-thing .np-picture{width:32px;height:32px;margin:0}
.np-night-everything>summary{cursor:pointer;color:var(--gold);font-weight:700;padding:6px 0}

/* A gift that replaces something says so plainly: a boxed "you give up" with the old thing's picture, name and rule. */
.np #offer-dialog .np-offer-comparison.is-swap{flex-direction:row;align-items:center;gap:8px;margin-top:4px;padding:6px 8px;border:2px dashed #8a5a3c;border-radius:6px;background:#00000014;text-align:left}
.np #offer-dialog .np-offer-comparison.is-swap>.np-picture{width:36px;height:36px;flex:0 0 36px;opacity:.85;filter:grayscale(.35)}
.np #offer-dialog .np-offer-comparison.is-swap .np-swap-label{font:800 10px/1.2 var(--hud-font);letter-spacing:.06em;text-transform:uppercase;color:#a0412f}
.np #offer-dialog .np-offer-comparison.is-swap strong{font:800 13px/1.3 var(--hud-font);text-decoration:line-through;text-decoration-color:#a0412f99}
.np.has-ui-button #offer-dialog .np-offer-comparison.is-swap .np-swap-rule{color:#4a3a33}
.np #offer-dialog.np-offer-tray .np-offer-comparison.is-swap{display:flex;padding:3px 6px;margin-top:2px}
.np #offer-dialog.np-offer-tray .np-offer-comparison.is-swap .np-swap-rule{display:none}
.np #offer-dialog.np-offer-tray .np-offer-comparison.is-swap>.np-picture{width:24px;height:24px;flex-basis:24px}

/* A keeper's own HUD (keepers/<id>/view.js) lives in this box, above the strip of traits at the foot of the screen. */
.np-keeper-hud{display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}
/* (#keeper-hud is the first child of .np-callouts, a column that grows upwards: map lines and banners always sit above it.) */
.np-keeper-hud button,.np-keeper-hud [tabindex]{pointer-events:auto}

/* The keeper picker: the roster of keepers (starters first; later keepers as shadows behind paper until they are met), then
   the patron row. */
.np-roster{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.6rem;padding:5px 4px}
.np .np-keeper-choice{justify-content:flex-start;gap:.3rem;padding:.75rem .55rem .7rem!important}
.np .np-keeper-choice>.np-picture{width:112px;height:112px}
.np .np-keeper-choice strong{font-size:.95rem}
.np .np-keeper-choice .np-gloss{font-size:.74rem;line-height:1.3}
.np .np-keeper-choice.is-locked{background:repeating-linear-gradient(90deg,#efe3c41a 0 1px,transparent 1px 38px),repeating-linear-gradient(0deg,#efe3c41a 0 1px,transparent 1px 38px),#2a2440;border-style:dashed;cursor:help}
.np .np-keeper-choice.is-locked>.np-picture{background:transparent;border:2px dashed #f3c76a55;color:#f3c76a99}
.np .np-keeper-choice.is-locked>.np-picture.has-art{border:0}
.np .np-keeper-choice.is-locked .np-picture-art{filter:brightness(0) drop-shadow(0 0 6px #f3c76a66);opacity:.72}
.np .np-keeper-choice.is-locked strong{color:var(--muted)}
.np .np-keeper-choice.is-locked .np-gloss{color:var(--ink,#f3ead7)}
.np-unlock-count{font:700 .7rem/1 var(--hud-font);color:var(--gold)}
.np-patron-kind{font:700 .62rem/1 var(--hud-font);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.np-maker .np-patron-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible}
.np-maker .np-patron-row .np-choice{flex:none}
.np-votive td{text-align:center}
.np-votive td span{display:block;font-weight:800}
.np-votive td small{display:block;font-size:.66rem;color:var(--muted)}
.np-votive td.has-dawn small{color:var(--gold)}
@media (max-width:560px){
  .np-roster{grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}
  .np .np-keeper-choice{padding:.5rem .3rem!important}
  .np .np-keeper-choice>.np-picture{width:76px;height:76px}
  .np .np-keeper-choice strong{font-size:.8rem}
  .np .np-keeper-choice .np-gloss{font-size:.66rem}
  .np-maker .np-patron-row{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* With a keeper's own HUD showing, the night's map lines and synergy banners sit above it rather than under it. */

/* A gift's buttons take no pointer for a moment after they appear (armOffer); the cards are drawn a little dim, then come up. */
.np #offer-dialog .np-offer-card{transition:filter .25s ease-out,opacity .25s ease-out}
.np #offer-dialog.is-arming button{pointer-events:none}
.np #offer-dialog.is-arming .np-offer-card{filter:saturate(.75) brightness(.9);opacity:.85}

/* Company choices are opaque paper at the measured foot of the field. */
.np{--seat-0:#d9ed96;--seat-1:#7fd6e8;--seat-2:#f59ac4;--seat-3:#f6b25e}
.np-sr-only,.np #offer-dialog.np-offer-tray #offer-sent{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.np-seat-dot{display:inline-block;width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:var(--seat-color);align-self:center}
.np-party-row{border-left:3px solid var(--seat-color);padding-left:6px;grid-template-columns:24px minmax(0,1fr) auto}
.np-party-row>.np-picture{outline:2px solid var(--seat-color);outline-offset:1px;box-shadow:none}
.np-party-row small.is-choosing{color:var(--gold)}
.np-roster-tag{font-size:11px;border:1px solid var(--line);border-radius:4px;padding:0 4px;color:var(--gold)}
#tray-spacer{width:1px;flex:none;pointer-events:none}
.np.np-tray-open #traits{visibility:hidden}
.np.np-tray-open #play-status{position:absolute;bottom:var(--tray-status-bottom);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);margin:0}
.np #offer-dialog.np-offer-tray{--rail:0px;--red:#a93826;position:fixed;inset:auto auto var(--tray-bottom,140px) var(--tray-center,50%);transform:translateX(-50%);margin:0;width:max-content;max-width:var(--tray-width,calc(100% - 24px));max-height:calc(100dvh - var(--tray-bottom,140px) - 12px);height:auto;border:0;border-image:none;border-radius:6px;padding:10px 8px 8px;background:#f2dfb7;color:#3a2440;overflow:visible;z-index:20;box-shadow:none;animation:np-tray-enter 160ms ease-out both}
.np #offer-dialog.np-offer-tray::backdrop{background:transparent}
.np #offer-dialog.np-offer-tray .np-dialog-body{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:8px;row-gap:6px;align-items:center;max-height:inherit;overflow:visible;padding:0 48px 0 0;min-width:0}
.np #offer-dialog.np-offer-tray .np-dialog-body>*{grid-column:1/-1;min-width:0}
.np #offer-dialog.np-offer-tray :where(#offer-kicker,#offer-note,#offer-words,#swap-words,#offer-pause,.np-trigger,.np-gloss,.np-theme-chips,.np-opening,.np-blurb,.np-offer-notes,.np-offer-comparison,.np-offer-effect,.np-swap-slot){display:none}
.np #offer-dialog.np-offer-tray #offer-title{grid-column:1;grid-row:1;font:800 14px/1.3 var(--hud-font);color:#3a2440;margin:0;max-width:260px}
.np #offer-dialog.np-offer-tray #offer-subtitle{grid-column:2;grid-row:1;font:700 12px/1.3 var(--hud-font);color:#665644;margin:0}
.np #offer-dialog.np-offer-tray #offer-company-note{font:inherit;color:inherit;margin:0}
.np #offer-dialog.np-offer-tray #offer-tools{grid-column:3;grid-row:1;display:flex;gap:5px;margin:0;padding:0;background:transparent;flex-wrap:nowrap}
.np #offer-dialog.np-offer-tray #offer-tools button,.np #offer-dialog.np-offer-tray #swap-back{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:28px;padding:2px 6px;font:800 12px/1.3 var(--hud-font);color:#3a2440;background:#fbf3e2;border-image:none;border-top:1px solid #b98a52;border-right:1px solid #b98a52;border-bottom:1px solid #b98a52;border-left:1px solid #b98a52;box-shadow:none;white-space:nowrap;border-radius:4px}
.np #offer-dialog.np-offer-tray #offer-pause{display:none}
.np #offer-dialog.np-offer-tray #offer-status:empty{display:none}
.np #offer-dialog.np-offer-tray #offer-timer{position:absolute;inset:0 0 auto;height:4px;margin:0;border-radius:6px 6px 0 0;background:#715b4540;color:var(--gold);overflow:visible}
.np #offer-dialog.np-offer-tray #offer-time-fill{border-radius:inherit}
.np #offer-dialog.np-offer-tray #offer-countdown{position:absolute;inset:9px 8px auto auto;margin:0;padding:4px 6px;background:#fbf3e2;border-radius:12px;font:800 13px/1.3 var(--hud-font);color:#3a2440}
.np #offer-dialog.np-offer-tray #offer-timer.is-urgent,.np #offer-dialog.np-offer-tray #offer-timer.is-urgent #offer-countdown{color:var(--red)}
.np #offer-dialog.np-offer-tray #offer-timer.is-urgent #offer-countdown{animation:np-countdown-urgent 200ms ease-out}
.np #offer-dialog.np-offer-tray :is(#offer-cards,#swap-cards){display:grid;grid-template-columns:repeat(var(--offer-count,4),minmax(168px,220px));justify-content:center;gap:6px;margin:0 -48px 0 0;padding:3px;overflow:visible;grid-auto-rows:auto;touch-action:pan-y}
.np #offer-dialog.np-offer-tray #swap-step{margin-right:-48px;min-width:0}
.np #offer-dialog.np-offer-tray #swap-cards{margin:0}
.np #offer-dialog.np-offer-tray #swap-step>h3,.np #offer-dialog.np-offer-tray #swap-step>p{display:none}
.np #offer-dialog.np-offer-tray :is(#offer-cards,#swap-cards) .np-offer-card{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-rows:auto auto 1fr;align-content:start;align-items:start;gap:3px 6px;width:auto;max-width:none;min-height:0;padding:8px!important;font:400 13px/1.3 var(--hud-font);background:#fbf3e2;color:#3a2440;border-image:none;border-top:2px solid #d9c39a;border-right:2px solid #d9c39a;border-bottom:2px solid #d9c39a;border-left:2px solid #d9c39a;border-radius:6px;box-shadow:none;overflow:visible;filter:none}
.np #offer-dialog.np-offer-tray .np-offer-card::before{content:'';position:absolute;left:0;right:0;top:-2px;height:3px;background:var(--kind-color);border-radius:5px 5px 0 0}
.np #offer-dialog.np-offer-tray :is(#offer-cards,#swap-cards) .np-offer-card:hover{border-color:#b98a52;filter:none}
.np #offer-dialog.np-offer-tray :is(#offer-cards,#swap-cards) .np-offer-card:focus-visible{outline:3px solid var(--gold);outline-offset:2px;box-shadow:none}
.np #offer-dialog.np-offer-tray .np-offer-card>.np-kind-band{grid-column:2;grid-row:2;align-self:start;margin:0;padding:0;background:none;font:700 11px/1.3 var(--hud-font);letter-spacing:0;color:color-mix(in srgb,var(--kind-color) 45%,#302238);text-transform:none;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0}
.np #offer-dialog.np-offer-tray .np-kind-state{color:inherit;margin-left:0;text-align:left;letter-spacing:0}
.np #offer-dialog.np-offer-tray .np-offer-side{position:relative;grid-column:1;grid-row:1/3;display:block;min-height:0;align-self:start}
.np #offer-dialog.np-offer-tray .np-offer-side>.np-picture{width:36px;height:36px;margin:0}
.np #offer-dialog.np-offer-tray .np-offer-heading,.np #offer-dialog.np-offer-tray .np-offer-card>strong{grid-column:2;grid-row:1;display:block;white-space:normal;align-self:center;padding:0}
.np #offer-dialog.np-offer-tray .np-offer-heading strong,.np #offer-dialog.np-offer-tray .np-offer-card>strong{font:800 15px/1.25 var(--hud-font);color:#3a2440;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:2.5em}
.np #offer-dialog.np-offer-tray .np-offer-copy,.np #offer-dialog.np-offer-tray .np-offer-card>.np-offer-rule{grid-column:1/-1;grid-row:3;display:block;font:400 13px/1.3 var(--hud-font);overflow:visible}
.np #offer-dialog.np-offer-tray .np-offer-card .np-offer-rule{display:block;max-height:5.2em;overflow:hidden;margin:3px 0 0;font:400 13px/1.3 var(--hud-font);color:#3a2440}
.np #offer-dialog.np-offer-tray .np-offer-rule .np-term{color:inherit}
.np-keycap{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 22px;border-radius:4px;background:#3a2440;color:#fbf3e2;font:800 13px/1 var(--hud-font);vertical-align:middle}
.np #offer-dialog.np-offer-tray .np-offer-side>.np-keycap{position:absolute;left:-4px;top:-4px}
.np #offer-dialog.np-offer-tray.is-arming .np-offer-card{opacity:1;filter:none}
.np #offer-dialog.np-offer-tray.is-arming .np-keycap{opacity:.45}
.np-at-zero{position:absolute;top:3px;right:5px;font:700 10px/1.2 var(--hud-font);color:#665644}
.np #offer-dialog.np-offer-tray .is-default .np-offer-heading{padding-right:24px}
.np #offer-dialog.np-offer-tray.is-urgent #offer-cards .np-offer-card.is-default,.np #offer-dialog.np-offer-tray.is-urgent #swap-cards .np-offer-card.is-default{border-top:2px solid var(--red);border-right:2px solid var(--red);border-bottom:2px solid var(--red);border-left:2px solid var(--red);box-shadow:none}
.np #offer-dialog.np-offer-tray.is-urgent .is-default::before{background:var(--red)}
.np #offer-dialog.np-offer-tray.is-urgent .np-at-zero{color:var(--red)}
.np #offer-dialog.np-offer-tray .np-offer-comparison.is-swap{display:flex;flex-wrap:nowrap;gap:4px;padding:4px 0 0;margin:5px 0 0;background:none;border:0;border-top:1px dashed #b98a52;border-radius:0;align-items:center}
.np #offer-dialog.np-offer-tray .np-offer-comparison.is-swap>.np-picture{width:20px;height:20px;flex:0 0 20px}
.np #offer-dialog.np-offer-tray .np-offer-comparison.is-swap>span:not(.np-picture){display:flex;flex-wrap:wrap;align-items:center;gap:0 4px;min-width:0;white-space:normal;overflow:visible}
.np #offer-dialog.np-offer-tray .np-offer-comparison.is-swap .np-swap-label{font:800 10px/1.2 var(--hud-font);color:#a0412f;letter-spacing:0;text-transform:none;flex:none}
.np #offer-dialog.np-offer-tray .np-offer-comparison.is-swap strong{font:800 11px/1.2 var(--hud-font);color:#3a2440;text-decoration:line-through;white-space:normal;overflow:visible;overflow-wrap:anywhere;min-width:0}
.np #offer-dialog.np-offer-tray .np-offer-comparison.is-swap .np-swap-rule{display:none}
.np #offer-dialog.np-offer-tray .np-offer-comparison.needs-swap{display:block;margin-top:5px;font:700 11px/1.3 var(--hud-font);color:#665644}
.np #offer-dialog.np-offer-tray.is-picking .np-offer-card,.np #offer-dialog.np-offer-tray.is-picking #offer-tools button{opacity:.45}
.np #offer-dialog.np-offer-tray.is-picking #offer-cards .np-offer-card.is-picked,.np #offer-dialog.np-offer-tray.is-picking #swap-cards .np-offer-card.is-picked{opacity:1;border-top:3px solid var(--gold);border-right:3px solid var(--gold);border-bottom:3px solid var(--gold);border-left:3px solid var(--gold);padding:7px!important;box-shadow:none}
.np #offer-dialog.np-offer-tray.is-leaving{pointer-events:none;animation:np-tray-leave 140ms ease-in both}
.np #offer-dialog.np-offer-tray.is-leaving *{pointer-events:none}
.np #offer-dialog.np-offer-tray.np-company-calling{background:#1f2547;color:#f6ecd7;border-image:none;border-top:2px solid #e7b24a;border-right:2px solid #e7b24a;border-bottom:2px solid #e7b24a;border-left:2px solid #e7b24a;box-shadow:none}
.np #offer-dialog.np-offer-tray.np-company-calling #offer-title{color:#e7b24a;font:800 15px/1.3 var(--hud-font)}
.np #offer-dialog.np-offer-tray.np-company-calling #offer-subtitle{color:#c1bed0}
.np #offer-dialog.np-offer-tray.np-company-calling #offer-cards{grid-template-columns:repeat(var(--offer-count,3),minmax(240px,320px))}
.np #offer-dialog.np-offer-tray.np-company-calling #offer-cards .np-offer-card{grid-template-columns:56px minmax(0,1fr)}
.np #offer-dialog.np-offer-tray.np-company-calling .np-offer-side>.np-picture{width:56px;height:56px}
.np #offer-dialog.np-offer-tray.np-company-calling .np-offer-heading strong{font-size:16px}
.np #offer-dialog.np-offer-tray.np-company-calling .np-gloss{display:block;font:italic 700 12px/1.3 var(--hud-font);color:#665644}
.np #offer-dialog.np-offer-tray.np-company-calling .np-offer-rule{max-height:6.5em}
.np #offer-dialog.np-offer-tray.np-company-calling .np-need-chip{font-size:11px}
.np #offer-dialog.np-offer-tray.np-company-calling #offer-cards .np-offer-card{background:#292f50;color:#f6ecd7;border-color:#9b8151}
.np #offer-dialog.np-offer-tray.np-company-calling .np-offer-heading strong,.np #offer-dialog.np-offer-tray.np-company-calling .np-offer-rule{color:#f6ecd7}
.np #offer-dialog.np-offer-tray.np-company-calling .np-gloss{color:#c1bed0}
.np #offer-dialog.np-offer-tray.np-company-calling .np-offer-card>.np-kind-band{color:#e7b24a}
.np #offer-dialog.np-offer-tray .np-offer-card.is-picked::before{background:var(--gold)}
/* Below the minimum row width, let text wrap instead of extending beyond the viewport. */
.np #offer-dialog.np-offer-tray.is-narrow :is(#offer-cards,#swap-cards){grid-template-columns:repeat(var(--offer-count,4),minmax(0,1fr))}
.np #offer-dialog.np-offer-tray.is-narrow .np-dialog-body{grid-template-columns:1fr auto}
.np #offer-dialog.np-offer-tray.is-narrow #offer-title{grid-column:1;grid-row:1}
.np #offer-dialog.np-offer-tray.is-narrow #offer-subtitle{grid-column:1;grid-row:2}
.np #offer-dialog.np-offer-tray.is-narrow #offer-tools{grid-column:2;grid-row:1/3;flex-wrap:wrap}
@keyframes np-tray-enter{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes np-tray-leave{from{opacity:1;transform:translate(-50%,0)}to{opacity:0;transform:translate(-50%,10px)}}
@keyframes np-countdown-urgent{50%{transform:scale(1.15)}}
@media(max-width:599px){
  .np-party-row{grid-template-columns:16px minmax(0,1fr)}
  .np-party-row>.np-picture{width:16px;height:16px}
  .np #offer-dialog.np-offer-tray{width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:min(300px,calc(100dvh - var(--tray-bottom,140px) - 12px));overflow:hidden;overscroll-behavior:contain;padding:10px 5px 5px}
  .np #offer-dialog.np-offer-tray .np-dialog-body{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 36px minmax(0,1fr);padding:0;gap:4px;max-height:min(285px,calc(100dvh - var(--tray-bottom,140px) - 27px));min-height:0}
  .np #offer-dialog.np-offer-tray #offer-title{grid-column:1;grid-row:1;margin:0;max-width:130px;align-self:start}
  .np #offer-dialog.np-offer-tray #offer-subtitle{grid-column:2;grid-row:1;padding-right:42px;font-size:11px}
  .np #offer-dialog.np-offer-tray #offer-company-note{display:block}
  .np #offer-dialog.np-offer-tray #offer-tools{grid-column:1/-1;grid-row:2;flex-wrap:nowrap;min-height:36px}
  .np #offer-dialog.np-offer-tray #offer-tools button,.np #offer-dialog.np-offer-tray #swap-back{min-height:36px}
  .np #offer-dialog.np-offer-tray :is(#offer-cards,#swap-cards){grid-column:1/-1;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);margin:0;gap:4px;min-height:0;overflow:hidden;align-self:stretch}
  .np #offer-dialog.np-offer-tray #swap-step{grid-row:3;margin:0;min-height:0;display:grid}
  .np #offer-dialog.np-offer-tray #swap-cards{grid-row:1}
  .np #offer-dialog.np-offer-tray :is(#offer-cards,#swap-cards) .np-offer-card{grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);padding:4px!important;gap:2px 4px;min-height:0}
  .np #offer-dialog.np-offer-tray .np-offer-side{grid-row:1}
  .np #offer-dialog.np-offer-tray .np-offer-side>.np-picture{width:28px;height:28px}
  .np #offer-dialog.np-offer-tray .np-offer-heading strong,.np #offer-dialog.np-offer-tray .np-offer-card>strong{font-size:14px}
  .np #offer-dialog.np-offer-tray .np-offer-card>.np-kind-band{grid-column:1/-1}
  .np #offer-dialog.np-offer-tray .np-offer-copy{display:flex;flex-direction:column;min-height:0;height:100%;gap:0;overflow:hidden}
  .np #offer-dialog.np-offer-tray .np-offer-card .np-offer-rule{font-size:12px;line-height:1.3;max-height:3.9em;min-height:0;flex:0 1 auto;margin:0}
  .np #offer-dialog.np-offer-tray .np-offer-comparison.is-swap{flex:none;padding-top:2px;margin-top:2px;gap:3px}
  .np #offer-dialog.np-offer-tray .np-offer-comparison.needs-swap{flex:none;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .np #offer-dialog.np-offer-tray.is-picking #offer-cards .np-offer-card.is-picked,.np #offer-dialog.np-offer-tray.is-picking #swap-cards .np-offer-card.is-picked{padding:3px!important}
  .np #offer-dialog.np-offer-tray.np-peddler-offer #offer-cards{grid-auto-rows:auto;overflow-y:auto}
  .np #offer-dialog.np-offer-tray.np-company-calling{max-height:min(280px,calc(100dvh - var(--tray-bottom,140px) - 12px))}
  .np #offer-dialog.np-offer-tray.np-company-calling .np-dialog-body{max-height:min(261px,calc(100dvh - var(--tray-bottom,140px) - 31px))}
  .np #offer-dialog.np-offer-tray.np-company-calling #offer-cards{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:80%;grid-template-rows:minmax(0,1fr);justify-content:start;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:3px;touch-action:pan-x}
  .np #offer-dialog.np-offer-tray.np-company-calling #offer-cards .np-offer-card{grid-template-columns:28px minmax(0,1fr);scroll-snap-align:start}
  .np #offer-dialog.np-offer-tray.np-company-calling .np-offer-side>.np-picture{width:28px;height:28px}
  .np #offer-dialog.np-offer-tray.np-company-calling .np-offer-heading strong{font-size:14px}
  .np #offer-dialog.np-offer-tray.np-company-calling .np-offer-card .np-offer-rule{max-height:6.5em}
}
@media(pointer:coarse){
  .np #offer-dialog.np-offer-tray .np-keycap{width:18px;height:18px;flex-basis:18px}
  .np #offer-dialog.np-offer-tray #offer-tools button,.np #offer-dialog.np-offer-tray #swap-back{min-height:36px}
}
@media(prefers-reduced-motion:reduce){
  .np #offer-dialog.np-offer-tray,.np #offer-dialog.np-offer-tray.is-leaving,.np #offer-dialog.np-offer-tray #offer-timer.is-urgent #offer-countdown{animation:none}
  .np #offer-dialog.np-offer-tray .np-offer-card{transition:none}
}
