Play liveChoose your opponent
Join
340 lines · 30.5 KB Raw Permalink History
1/* 无名杀's identity table (its mobile layout over the woodden theme: layout/mobile, layout/newlayout/global.css,
2 theme/woodden/style.css, theme/style/hp/official.css), drawn for this viewer's markup. Pictures and fonts come from
3 the art pack (art/art.css); this file is the layout. The canvas is 720 px high; sizes are 无名杀's at that height. */
4
5:root {
6 --card-w: 104px;
7 --card-h: 120px;
8 --seat-w: 148px;
9 --seat-h: 178px;
10 --me-h: 140px;
11 --ui: 'PingFang SC', 'STHeiti', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
12 --brush: 'nm-xinwei', 'STXinwei', 'KaiTi', serif;
13 --grass: 'nm-huangcao', 'nm-xinwei', 'STXingkai', serif;
14 --text-edge: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000;
15}
16html, body { margin: 0; height: 100%; overflow: hidden; background: #434b55; color: #fff; font-family: var(--ui); }
17#root, .nm-root { height: 100%; }
18.shoal-wait { color: #e8e2d0; font: 18px/1.5 var(--ui); padding: 40px; text-align: center; text-shadow: var(--text-edge); }
19.nm-root { position: relative; user-select: none; -webkit-user-select: none; }
20.nm-scaler { position: absolute; inset: 0; overflow: hidden; background: #434b55; }
21.nm-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
22.nm-arena { position: absolute; inset: 0; overflow: hidden; text-shadow: var(--text-edge); }
23.nm-arena button { font-family: var(--ui); }
24
25/* ── top bar: the replay's buttons at the left, round and pile in the middle, the log's at the right ── */
26.nm-topbar { position: absolute; left: 0; right: 0; top: 0; height: 40px; z-index: 30; pointer-events: none; }
27.nm-topbar > * { pointer-events: auto; }
28.nm-round, .nm-pile { position: absolute; top: 9px; font: 15px/20px var(--brush); letter-spacing: .5px; white-space: nowrap; }
29.nm-pile { left: calc(50% - 4px); transform: translateX(-100%); }
30.nm-pile b, .nm-round b { font-weight: normal; margin: 0 2px; }
31.nm-round { left: calc(50% + 4px); }
32.nm-discards { margin-right: 10px; }
33.nm-turn-of { margin-left: 8px; color: #ffe9a3; }
34.nm-phase { margin-left: 4px; color: #ffe9a3; }
35.nm-top-slot { position: absolute; left: 10px; top: 10px; display: flex; gap: 8px; align-items: flex-start; }
36.nm-replay, .nm-moves { display: flex; gap: 8px; align-items: center; }
37.nm-top-side { position: absolute; right: 66px; top: 10px; display: flex; gap: 8px; }
38.nm-mini, .nm-replay select, .nm-log-toggle, .nm-moves-list button {
39 height: 27px; min-width: 32px; padding: 0 8px; border: 0; border-radius: 4px; cursor: pointer; color: rgba(77, 60, 51, .8);
40 font: 15px/27px var(--ui); text-shadow: none; background-size: auto; background-position: center; box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(0, 0, 0, .45) 0 3px 10px;
41}
42.nm-mini:hover:not(:disabled), .nm-log-toggle:hover { filter: brightness(1.08); }
43.nm-mini:disabled { opacity: .55; cursor: default; }
44.nm-mini.on, .nm-mini.play { color: #631515; }
45.nm-replay select { padding: 0 4px; appearance: none; -webkit-appearance: none; text-align: center; }
46.nm-replay input[type=range] { width: 120px; accent-color: #9b7a4c; }
47.nm-step { font: 13px var(--brush); min-width: 64px; text-align: center; }
48.nm-moves { position: relative; }
49.nm-moves-list { position: absolute; top: 34px; left: 0; display: flex; flex-direction: column; gap: 5px; max-height: 420px; overflow: auto; padding: 6px; border-radius: 6px; background: rgba(0, 0, 0, .35); }
50.nm-moves-list button { height: auto; line-height: 1.35; padding: 4px 8px; text-align: left; white-space: nowrap; }
51
52/* ── a seat: the portrait card ── */
53.nm-seat { position: absolute; width: var(--seat-w); height: var(--seat-h); transform: translate(-50%, -50%) scale(var(--seat-scale, 1)); z-index: 4; }
54.nm-player { position: absolute; inset: 0; border-radius: 8px; background-size: cover; box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(0, 0, 0, .45) 0 3px 10px; transition: box-shadow .3s, transform .3s, filter .3s; }
55.nm-avatar { position: absolute; inset: 3px; border-radius: 6px; background: rgba(0, 0, 0, .25) center 18% / cover no-repeat; overflow: hidden; }
56.nm-avatar-none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 26px var(--brush); writing-mode: vertical-rl; opacity: .85; }
57.nm-frame { position: absolute; inset: 3px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 0 8px rgba(0, 0, 0, .35); pointer-events: none; }
58.nm-player.wei .nm-avatar-none { color: #9fc5ff; }
59.nm-player.shu .nm-avatar-none { color: #ffb08a; }
60.nm-player.wu .nm-avatar-none { color: #b2f0a0; }
61.nm-player.qun .nm-avatar-none { color: #e6e0cf; }
62
63/* the name in 新魏, vertical, in the faction's colour as 无名杀 tints it; the faction mark above it */
64.nm-name { position: absolute; left: 7px; top: 30px; font: 19px/19px var(--brush); writing-mode: vertical-rl; white-space: nowrap; letter-spacing: 1px; z-index: 3;
65 text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 4px #000; }
66.nm-name.long { font-size: 16px; line-height: 16px; letter-spacing: 0; }
67.nm-faction { position: absolute; left: 6px; top: 7px; width: 20px; height: 20px; font: 17px/20px var(--brush); text-align: center; z-index: 3; text-shadow: 0 0 2px #000, 0 0 3px #000; }
68.wei .nm-faction, .nm-faction.wei { color: #7ab6ff; }
69.shu .nm-faction, .nm-faction.shu { color: #ff8e62; }
70.wu .nm-faction, .nm-faction.wu { color: #8fe36f; }
71.qun .nm-faction, .nm-faction.qun { color: #e7d9a7; }
72.shen .nm-faction, .nm-faction.shen { color: #ffd84a; }
73.wei .nm-name { color: #e8f1ff; }
74.shu .nm-name { color: #fff0e8; }
75.wu .nm-name { color: #f0ffe8; }
76
77/* HP: a column of 勾玉 at the bottom right; past five, one 勾玉 and the count */
78.nm-hp { position: absolute; right: 6px; bottom: 8px; display: flex; flex-direction: column-reverse; gap: 2px; z-index: 3; }
79.nm-jade { display: block; width: 15px; height: 15px; background: center / 100% 100% no-repeat; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .7)); }
80.nm-jade.lost { filter: grayscale(1) brightness(.7); }
81.nm-hp.text { flex-direction: row; align-items: center; gap: 2px; font: 17px var(--brush); }
82.nm-hp.text.mid span { color: #ffe86b; }
83.nm-hp.text.low span { color: #ff6b5b; }
84
85/* hand count: 无名杀's little card at the bottom right corner (newlayout .player .count) */
86.nm-count { position: absolute; right: -14px; bottom: -14px; width: 28px; height: 28px; background: center / cover no-repeat; z-index: 5;
87 font: bold 17px/28px var(--brush); text-align: center; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
88
89/* identity: 主 in red, the rest 猜 (unknown) in blue, in 黄草 with a glow, at the top right corner */
90.nm-identity { position: absolute; right: -8px; top: -7px; width: 24px; height: 26px; z-index: 6; font: 21px/26px var(--grass); text-align: center; color: #fff;
91 text-shadow: 0 0 3px #1f6fe0, 0 0 6px #1f6fe0, 0 0 2px #000; }
92.nm-identity.zhu { text-shadow: 0 0 3px #e0241f, 0 0 7px #e0241f, 0 0 2px #000; }
93.nm-identity.zhong { text-shadow: 0 0 3px #e0b21f, 0 0 7px #e0b21f, 0 0 2px #000; }
94.nm-identity.fan { text-shadow: 0 0 3px #3ac53a, 0 0 7px #3ac53a, 0 0 2px #000; }
95.nm-identity.nei { text-shadow: 0 0 3px #9a3ae0, 0 0 7px #9a3ae0, 0 0 2px #000; }
96.nm-identity.unknown { font-size: 0; }
97.nm-identity.unknown::before { content: '猜'; font-size: 21px; }
98.nm-identity.inline { position: static; display: inline-block; width: 22px; height: 22px; font-size: 18px; line-height: 22px; margin-right: 4px; }
99.nm-identity.inline.unknown::before { font-size: 18px; }
100
101/* equipment: text rows on dark strips across the portrait, suit and rank first; +/- after a horse */
102.nm-equips { position: absolute; left: 3px; right: 24px; bottom: 8px; display: flex; flex-direction: column; gap: 2px; z-index: 4; pointer-events: auto; }
103.nm-equip { display: flex; gap: 3px; align-items: center; height: 22px; padding: 0 5px; font: 14px/22px var(--ui); white-space: nowrap; overflow: hidden;
104 background: linear-gradient(to right, rgba(0, 0, 0, .3), transparent), linear-gradient(135deg, rgba(0, 0, 0, .5), transparent 80%, transparent); }
105.nm-equip .nm-equip-info { order: -1; font-family: 'nm-suits', var(--ui); font-size: 13px; color: #fff; }
106.nm-equip .nm-equip-info.red { color: #ff8a80; }
107.nm-equip .nm-equip-slot { display: none; }
108
109/* judgement area: the tricks' little cards just outside the right edge (newlayout .player .judges) */
110.nm-judges { position: absolute; right: -30px; top: 26px; display: flex; flex-direction: column; gap: 4px; z-index: 5; }
111.nm-judge { position: relative; width: 24px; height: 24px; border-radius: 4px; background-size: cover; box-shadow: rgba(0, 0, 0, .3) 0 0 0 1px, rgba(0, 0, 0, .45) 0 2px 5px; }
112.nm-judge > i { position: absolute; inset: 0; background: center / 130% no-repeat; border-radius: 4px; }
113.nm-judge > b { position: absolute; right: -2px; bottom: -4px; font: normal 13px var(--grass); color: #fff; text-shadow: 0 0 2px #000, 0 0 3px #000; }
114
115/* the turn: 无名杀's warm glow round the current seat, and the phase on a small tag */
116.nm-player.current { box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(255, 203, 0, .95) 0 0 5px 2px, rgba(255, 160, 0, .7) 0 0 16px 4px; }
117.nm-phase-mark { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); padding: 0 8px; height: 20px; border-radius: 10px; z-index: 6;
118 font: 13px/20px var(--brush); background: linear-gradient(#b8892f, #7d5916); box-shadow: 0 1px 3px rgba(0, 0, 0, .6); white-space: nowrap; }
119
120/* targets: selectable seats glow blue, chosen ones red, the rest dim */
121.nm-seat.pick { cursor: pointer; }
122.nm-player.selectable { box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(10, 120, 255, 1) 0 0 5px 2px, rgba(10, 120, 255, .8) 0 0 14px 4px; }
123.nm-player.selected { box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(255, 0, 0, 1) 0 0 5px 2px, rgba(255, 0, 0, .75) 0 0 14px 4px; transform: scale(1.04); }
124.nm-player.unselectable { filter: brightness(.55); }
125.nm-distance { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 0 6px; border-radius: 9px; background: rgba(0, 0, 0, .55); font: 12px/18px var(--ui); z-index: 4; }
126
127/* 横置: the iron chain across the middle; 翻面: the card turned dark with 翻面 on it */
128.nm-chain { position: absolute; left: -2px; right: -2px; top: calc(50% - 6px); height: 12px; z-index: 5; pointer-events: none;
129 background: repeating-linear-gradient(90deg, #9aa3ad 0 9px, transparent 9px 12px, #6d757e 12px 17px, transparent 17px 20px); border-radius: 3px;
130 box-shadow: 0 1px 3px rgba(0, 0, 0, .7); animation: nm-chain .4s ease-out; }
131@keyframes nm-chain { from { transform: translateX(-30px); opacity: 0; } }
132.nm-flipped { position: absolute; inset: 3px; border-radius: 6px; background: rgba(0, 0, 0, .72); z-index: 4; display: flex; align-items: center; justify-content: center;
133 font: 40px var(--brush); writing-mode: vertical-rl; color: rgba(255, 255, 255, .85); }
134
135/* 横置 as 无名杀 lays it: the seat's card turned on its side, the chain across it (newlayout .player.linked) */
136.nm-seat .nm-player.chained { transform: rotate(-90deg); }
137.nm-seat .nm-player.chained.selected { transform: rotate(-90deg) scale(1.04); }
138.nm-seat .nm-player.chained .nm-judges { transform: rotate(90deg) translateX(10px); }
139
140/* dying: a red pulse; dead: grey, tilted, the identity written across in 黄草 */
141.nm-player.dying .nm-avatar { animation: nm-dying 1s ease-in-out infinite alternate; }
142@keyframes nm-dying { to { filter: sepia(.6) saturate(3) hue-rotate(-30deg) brightness(.8); } }
143.nm-dying { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font: 30px var(--grass); color: #ff3b2f; z-index: 6; text-shadow: 0 0 3px #000, 0 0 8px #600; }
144.nm-player.dead { transform: rotate(-8deg); filter: grayscale(1) brightness(.85); box-shadow: rgba(0, 0, 0, .3) 0 0 0 1px, rgba(0, 0, 0, .3) 0 3px 8px; }
145.nm-player.dead .nm-hp, .nm-player.dead .nm-count, .nm-player.dead .nm-equips, .nm-player.dead .nm-judges, .nm-player.dead .nm-identity { display: none; }
146.nm-dead { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 22px var(--brush); color: rgba(255, 255, 255, .8); text-shadow: 0 0 3px #000; }
147.nm-dead b { font: normal 54px/60px var(--grass); color: rgba(30, 30, 30, .85); text-shadow: 0 0 2px #fff, 0 0 6px rgba(255, 255, 255, .8); letter-spacing: 4px; }
148
149/* damage: the seat shakes and flashes red, the amount rises in 黄草; healing flashes green */
150.nm-player.damaged { animation: nm-shake .45s; }
151.nm-player.damaged .nm-avatar::after { content: ''; position: absolute; inset: 0; background: rgba(255, 0, 0, .55); animation: nm-flash .6s forwards; }
152.nm-player.healed .nm-avatar::after { content: ''; position: absolute; inset: 0; background: rgba(60, 255, 90, .4); animation: nm-flash .8s forwards; }
153@keyframes nm-shake { 15%, 55% { transform: translateX(-6px); } 35%, 75% { transform: translateX(6px); } }
154@keyframes nm-flash { to { opacity: 0; } }
155.nm-hpfloat { position: absolute; left: 50%; top: 40%; z-index: 8; transform: translate(-50%, -50%); font: 72px var(--grass); pointer-events: none; animation: nm-rise 1.3s ease-out forwards; }
156.nm-hpfloat.damage { color: #fff; text-shadow: #000 0 0 1px, #e83535 0 0 2px, #e83535 0 0 5px, #e83535 0 0 10px, #e83535 0 0 10px, #e83535 0 0 20px, #e83535 0 0 20px; }
157.nm-hpfloat.heal { color: #fff; text-shadow: #000 0 0 1px, #397b04 0 0 2px, #397b04 0 0 5px, #397b04 0 0 10px, #397b04 0 0 10px, #397b04 0 0 20px, #397b04 0 0 20px; }
158@keyframes nm-rise { 0% { opacity: 0; transform: translate(-50%, -20%) scale(1.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -110%); } }
159
160.nm-seat-label { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font: 12px/16px var(--ui); color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
161.nm-timer { position: absolute; left: 6px; right: 6px; bottom: -8px; height: 4px; border-radius: 2px; background: rgba(0, 0, 0, .4); overflow: hidden; z-index: 7; }
162.nm-timer-fill { height: 100%; background: linear-gradient(90deg, #ffb31a, #ffe066); box-shadow: 0 0 4px #ffcc33; }
163
164/* ── a card: wood face, art, the name boxed and vertical at the top left, suit and rank at the top right ── */
165.nm-card { position: relative; width: var(--card-w); height: var(--card-h); border-radius: 4px; background-size: cover; color: #3b2a1c; text-shadow: none; overflow: hidden;
166 box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(0, 0, 0, .45) 0 3px 10px; font-family: var(--brush); }
167.nm-card-fill { position: absolute !important; inset: 0; width: auto; height: auto; }
168.nm-card-art { position: absolute; left: 0; right: 0; top: 8px; height: 110px; background: center / cover no-repeat; }
169.nm-card-big { position: absolute; inset: 22px 6px 6px; display: flex; align-items: center; justify-content: center; font: 38px var(--brush); color: rgba(59, 42, 28, .75); }
170.nm-card-name { position: absolute; left: 6px; top: 7px; padding: 2px 0; width: 19px; border: 1px solid rgba(59, 42, 28, .85); border-radius: 4px; background: rgba(233, 222, 200, .55);
171 font: 16px/17px var(--brush); writing-mode: vertical-rl; text-align: center; white-space: nowrap; z-index: 2; }
172.nm-card-name.long { font-size: 14px; line-height: 17px; }
173.nm-card-info { position: absolute; right: 7px; top: 5px; font: 17px/20px var(--brush); z-index: 2; white-space: nowrap; color: #2b2017; }
174.nm-card-info .nm-suit, .nm-equip-info, .nm-suit { font-family: 'nm-suits', var(--ui); }
175.nm-card-info .nm-suit { margin-right: 2px; font-size: 15px; }
176.nm-card-info.red { color: #b0211a; }
177.nm-card.fire .nm-card-name { color: #c62a12; border-color: #c62a12; }
178.nm-card.thunder .nm-card-name { color: #1e4fb4; border-color: #1e4fb4; }
179.nm-card.fire .nm-card-art { filter: sepia(.3) saturate(1.6) hue-rotate(-15deg); }
180.nm-card.thunder .nm-card-art { filter: hue-rotate(180deg) saturate(.9); }
181.nm-card.back { background-size: cover; }
182.nm-card.back > * { display: none; }
183
184/* ── the middle: what was just played, flown in from its seat ── */
185.nm-center { position: absolute; left: 0; right: 0; top: 296px; height: 150px; z-index: 6; pointer-events: none; }
186.nm-played-row { display: flex; justify-content: center; gap: 6px; }
187.nm-played { position: relative; display: flex; flex-direction: column; align-items: center; animation: nm-fade 4.2s forwards; }
188.nm-played.shown { animation: none; }
189.nm-played .nm-card { box-shadow: rgba(0, 0, 0, .25) 0 0 0 1px, rgba(0, 0, 0, .5) 0 4px 12px; }
190.nm-played-caption { margin-top: 3px; max-width: 150px; font: 13px/16px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
191@keyframes nm-fade { 0%, 82% { opacity: 1; } 100% { opacity: 0; } }
192.nm-discard { position: absolute; left: 50%; top: 0; width: 1px; height: 1px; }
193.nm-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 28; pointer-events: none; overflow: visible; }
194.nm-line line { stroke: rgba(255, 255, 255, .92); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .8)); stroke-dashoffset: var(--len); animation: nm-draw .35s ease-out forwards, nm-fade 1.4s forwards; }
195.nm-line.sha line { stroke: rgba(255, 236, 214, .95); filter: drop-shadow(0 0 3px rgba(255, 60, 30, .9)); }
196.nm-line circle { fill: rgba(255, 255, 255, .85); opacity: 0; animation: nm-hit 1.2s .3s forwards; }
197.nm-line.sha circle { fill: rgba(255, 80, 50, .9); }
198@keyframes nm-draw { to { stroke-dashoffset: 0; } }
199@keyframes nm-hit { 0% { opacity: 0; r: 2; } 20% { opacity: 1; r: 9; } 100% { opacity: 0; r: 14; } }
200
201/* a basic card's name on its user (cardeffect): 黄草, gold, swelling and fading */
202.nm-cardeffect { position: absolute; z-index: 29; transform: translate(-50%, -50%); font: 84px/1 var(--grass); color: #ffe27a; pointer-events: none; white-space: nowrap;
203 text-shadow: 0 0 2px #3a2400, 0 0 3px #3a2400, 0 0 12px rgba(255, 180, 0, .9); animation: nm-effect 1.1s ease-out forwards; }
204.nm-cardeffect.sha { color: #fff0d0; text-shadow: 0 0 2px #400, 0 0 3px #400, 0 0 14px rgba(255, 40, 0, .95); }
205@keyframes nm-effect { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }
206
207/* a card flying between the deck, seats and the middle */
208.nm-fly { position: fixed; width: 0; height: 0; z-index: 9998; pointer-events: none; animation-name: nm-fly; animation-timing-function: cubic-bezier(.25, .7, .3, 1); animation-fill-mode: forwards; }
209.nm-fly > .nm-card { position: absolute; left: calc(var(--card-w) * -.5 + (var(--i) - (var(--n) - 1) / 2) * 28px); top: calc(var(--card-h) * -.5); transform: scale(var(--s)); }
210@keyframes nm-fly { 0% { opacity: 0; transform: translate(0, 0) scale(.7); } 15% { opacity: 1; transform: translate(0, 0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.9); } }
211
212/* ── prompts and the 确定 / 取消 / 结束回合 buttons above your hand ── */
213.nm-dock { position: absolute; left: 0; right: 0; bottom: calc(var(--me-h) + 8px); z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
214.nm-dock > * { pointer-events: auto; }
215.nm-tip, .nm-promptDesc { font: 20px/26px var(--ui); text-align: center; max-width: 760px; }
216.nm-tip b { font-weight: normal; color: #ffe08a; }
217.nm-promptBoxAwaiting, .nm-promptBox { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 900px; }
218.nm-promptTitle, .nm-promptDescInline, .nm-autoSkipToggle, .nm-slashCountBadge { display: none !important; }
219.nm-promptDesc span { opacity: .9; }
220.nm-waitingHint { font: 16px var(--ui); opacity: .8; }
221.nm-promptActions, .nm-promptActionsWrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: 900px; }
222.nm-promptDescFull { width: 100%; text-align: center; font: 14px var(--ui); opacity: .85; }
223.nm-control { display: flex; gap: 10px; justify-content: center; align-items: center; min-height: 30px; }
224.nm-btn, .nm-promptBtn, .nm-promptBtnPrimary, .nm-promptBtnDisabled, .nm-chooseOptionCard {
225 height: 30px; min-width: 54px; padding: 0 9px; border: 0; border-radius: 4px; cursor: pointer; background-size: auto; background-position: center; color: rgba(77, 60, 51, .8); text-shadow: none;
226 font: 19px/30px var(--ui); box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(0, 0, 0, .45) 0 3px 10px; white-space: nowrap; transition: filter .15s, opacity .15s; }
227.nm-btn:hover:not(:disabled), .nm-promptBtn:hover, .nm-promptBtnPrimary:hover, .nm-chooseOptionCard:hover { filter: brightness(1.08); }
228.nm-btn.ok, .nm-promptBtnPrimary { color: rgba(77, 60, 51, .95); }
229.nm-btn:disabled, .nm-promptBtnDisabled { opacity: .5; cursor: default; }
230.nm-btn.end { position: absolute; left: 174px; }
231.nm-chooseOptionCard { height: auto; padding: 6px 10px; display: flex; flex-direction: column; line-height: 1.3; border: 0 !important; background-color: transparent !important; }
232.nm-chooseOptionCardName { font: 18px var(--brush); }
233.nm-chooseOptionCardSkills { font-size: 12px; }
234.nm-pickHandRow { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
235.nm-pickHandCard { position: relative; width: 62px; height: 72px; border: 0; border-radius: 4px; padding: 0; cursor: pointer; background-size: cover; box-shadow: rgba(0, 0, 0, .3) 0 0 0 1px, rgba(0, 0, 0, .5) 0 3px 8px; }
236.nm-pickHandCard > *:not(.nm-pickHandIndex) { opacity: 0; }
237.nm-pickHandIndex { position: absolute; right: 3px; bottom: 2px; font: 14px var(--brush); color: #fff; text-shadow: var(--text-edge); }
238.nm-pickedByTag { margin-left: 6px; font-size: 12px; opacity: .8; }
239
240/* ── your strip: portrait at the left, the hand, your equipment at the right ── */
241.nm-me { position: absolute; left: 0; right: 0; bottom: 0; height: var(--me-h); background-size: 100% 100%; z-index: 10;
242 box-shadow: rgba(0, 0, 0, .25) 0 -1px 0, rgba(0, 0, 0, .3) 0 -2px 10px; }
243.nm-me .nm-player.mine { left: 0; top: 0; bottom: 0; right: auto; width: 120px; border-radius: 0; box-shadow: none; background: none; }
244.nm-me .nm-player.mine .nm-avatar { inset: 0; border-radius: 0; }
245.nm-me .nm-player.mine .nm-frame { inset: 0; border-radius: 0; box-shadow: inset -1px 0 0 rgba(0, 0, 0, .3); }
246.nm-me .nm-player.mine .nm-count { right: auto; left: 4px; bottom: 6px; transform: rotate(-8deg); }
247.nm-me .nm-player.mine .nm-identity { right: -10px; top: -9px; }
248.nm-me .nm-player.mine .nm-judges { right: auto; left: 4px; top: -28px; flex-direction: row; }
249.nm-me .nm-player.mine .nm-phase-mark { top: -24px; }
250.nm-me .nm-player.mine.current { box-shadow: rgba(255, 203, 0, .95) 0 0 4px 2px; z-index: 2; }
251.nm-me .nm-player.mine.dead { transform: none; }
252.nm-me.spectating .nm-player.mine { filter: none; }
253.nm-me-label { position: absolute; left: 0; width: 120px; bottom: -1px; display: none; }
254
255.nm-myequips { position: absolute; right: 0; top: 0; bottom: 0; width: 120px; display: flex; flex-direction: column; box-shadow: -1px 0 0 rgba(0, 0, 0, .25), -2px 0 8px rgba(0, 0, 0, .15); }
256.nm-myequip { flex: 1; display: flex; align-items: center; gap: 5px; padding: 0 6px; background-size: cover; color: rgba(77, 60, 51, .9); text-shadow: none; font: 15px var(--ui);
257 border-bottom: 1px solid rgba(77, 60, 51, .3); white-space: nowrap; overflow: hidden; }
258.nm-myequip .nm-equip-slot { width: 18px; font: 12px var(--brush); color: rgba(77, 60, 51, .55); }
259.nm-myequip.empty .nm-equip-slot { color: rgba(77, 60, 51, .3); }
260.nm-myequip .nm-equip-info { order: -1; font-size: 14px; color: rgba(77, 60, 51, .9); }
261.nm-myequip .nm-equip-info.red { color: #b0211a; }
262.nm-myequip.usable, .nm-myequip.candidate { cursor: pointer; box-shadow: inset 0 0 0 2px rgba(10, 120, 255, .8); }
263.nm-myequip.picked { box-shadow: inset 0 0 0 2px rgba(255, 0, 0, .8); }
264
265.nm-skills { position: absolute; right: 128px; bottom: calc(var(--me-h) + 8px); display: flex; flex-direction: row-reverse; gap: 8px; z-index: 21; }
266.nm-skill { height: 30px; padding: 0 10px; border: 0; border-radius: 4px; cursor: pointer; font: 19px/30px var(--brush); color: rgba(77, 60, 51, .9); text-shadow: none;
267 background-size: auto; background-position: center; box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(0, 0, 0, .45) 0 3px 10px; }
268.nm-skill.on { color: #6b1a0c; box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(255, 196, 0, .9) 0 0 6px 1px, rgba(0, 0, 0, .45) 0 3px 10px; }
269.nm-skill:disabled { opacity: .5; cursor: default; }
270.nm-skill.passive { display: none; }
271
272.nm-hand { position: absolute; left: 128px; right: 128px; top: 10px; bottom: 0; }
273.nm-hand > .nm-timer { left: 0; right: auto; width: 280px; top: -6px; bottom: auto; }
274.nm-handColumn { position: absolute; inset: 0; }
275.nm-handHeader, .nm-handTitle, .nm-phaseStrip, .nm-phaseStripBadge, .nm-debugHint, .nm-distHint { display: none; }
276.nm-handList { position: absolute; inset: 0; display: flex; align-items: flex-start; padding-left: 6px; }
277.nm-handList > div { flex: 0 1 112px; min-width: 20px; position: relative; }
278.nm-handList > div:last-of-type { flex: 0 0 auto; }
279.nm-handCard { position: relative; width: var(--card-w); height: var(--card-h); border-radius: 4px; cursor: default; transition: transform .2s, opacity .2s, filter .2s; --fan-angle: 0deg !important;
280 box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(0, 0, 0, .45) 0 3px 10px; }
281.nm-handCard:hover:hover { transform: translateY(-6px) !important; box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(0, 0, 0, .5) 0 6px 14px !important; filter: none !important; }
282.nm-handCardPlayable, .nm-handCardRespondable, .nm-handCardDiscardable, .nm-handCardTransform, .nm-handCardDistributeCandidate { cursor: pointer; }
283.nm-handCardDisabled, .nm-handCardTransformDisabled { opacity: 1; }
284.nm-arena:not(.readonly) .nm-handCardDisabled .nm-card::after, .nm-handCardTransformDisabled .nm-card::after { content: ''; position: absolute; inset: 0; background: rgba(240, 236, 228, .52); }
285.nm-handCard.nm-handCardSelected, .nm-handCard.nm-handCardRespondSelected, .nm-handCard.nm-discardCardSelected, .nm-handCard.nm-handCardDistributeSelected,
286.nm-handCard.nm-handCardSelected:hover:hover, .nm-handCard.nm-handCardRespondSelected:hover:hover, .nm-handCard.nm-discardCardSelected:hover:hover, .nm-handCard.nm-handCardDistributeSelected:hover:hover { transform: translateY(-20px) !important;
287 box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(255, 0, 0, 1) 0 0 4px 2px, rgba(255, 0, 0, .6) 0 0 12px 3px !important; }
288.nm-handCardDistributeAllocated { opacity: .6; }
289.nm-handCardTimeoutFallback { box-shadow: rgba(255, 170, 0, .9) 0 0 5px 2px !important; }
290.nm-handCardMeta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 2px 0; background: rgba(0, 0, 0, .55); text-align: center; color: #fff; text-shadow: var(--text-edge); }
291.nm-handCardMeta .nm-cardName { font: 16px var(--brush); }
292.nm-cardOrigin { font-size: 11px; opacity: .85; }
293.nm-backs { position: absolute; inset: 0; display: flex; padding-left: 6px; }
294.nm-backs > .nm-card { flex: 0 0 auto; margin-right: -40px; }
295.nm-emptyHand { padding: 46px 20px; font: 15px var(--ui); color: rgba(77, 60, 51, .6); text-shadow: none; white-space: nowrap; }
296.nm-distExternalWrap { position: absolute; left: 0; bottom: calc(100% + 60px); display: flex; flex-direction: column; gap: 6px; }
297.nm-distExternalLabel { font: 15px var(--ui); }
298.nm-distExternalList { display: flex; gap: 6px; }
299.nm-distExternalCard { position: relative; width: 64px; height: 80px; border-radius: 4px; padding: 6px; background: rgba(233, 222, 200, .9); color: #3b2a1c; text-shadow: none; cursor: pointer; font: 15px var(--brush); }
300.nm-handCardDistributeCandidate { box-shadow: rgba(10, 120, 255, .9) 0 0 4px 2px !important; }
301
302/* ── the log, at the right under the top bar ── */
303.nm-log { position: absolute; right: 10px; top: 10px; width: 236px; z-index: 25; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
304.nm-log-lines { width: 100%; max-height: 220px; overflow-y: auto; padding: 2px 4px; box-sizing: border-box; font: 13px/18px var(--ui); text-align: left;
305 scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
306.nm-log.open .nm-log-lines { border-radius: 6px; background: rgba(30, 36, 44, .55); padding: 4px 8px; }
307.nm-log-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
308.nm-log-line .who { color: #8ec5ff; }
309.nm-log-line .card { color: #ffe45c; }
310
311/* ── dialogs: choosing a general, the result ── */
312.nm-dialog-mask { position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .15); }
313.nm-dialog { max-width: 1040px; box-sizing: border-box; padding: 14px 18px 16px; border-radius: 6px; background: rgba(40, 46, 56, .72); box-shadow: rgba(0, 0, 0, .3) 0 0 0 1px, rgba(0, 0, 0, .45) 0 3px 16px;
314 display: flex; flex-direction: column; align-items: center; gap: 12px; }
315.nm-dialog-title { font: 21px var(--ui); }
316.nm-dialog-wait { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 50; font: 20px var(--ui); }
317.nm-choose-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; }
318.nm-choose { position: relative; width: 104px; height: 130px; padding: 0; border: 0; border-radius: 8px; cursor: pointer; background-size: cover; color: #fff; text-shadow: var(--text-edge);
319 box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(0, 0, 0, .45) 0 3px 10px; transition: transform .15s, box-shadow .15s; }
320.nm-choose:hover { transform: translateY(-3px); }
321.nm-choose.selected { box-shadow: rgba(0, 0, 0, .2) 0 0 0 1px, rgba(255, 0, 0, 1) 0 0 5px 2px, rgba(255, 0, 0, .7) 0 0 14px 4px; }
322.nm-choose .nm-faction { left: auto; right: 6px; }
323.nm-choose .nm-name { top: 8px; }
324.nm-choose .nm-hp { bottom: 28px; }
325.nm-choose .nm-jade { width: 13px; height: 13px; }
326.nm-choose-skills { position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 2px 0; border-radius: 0 0 6px 6px; background: rgba(0, 0, 0, .55); font: 13px/17px var(--brush); display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
327.nm-dialog .nm-timer { position: relative; left: 0; right: 0; bottom: 0; width: 100%; }
328.nm-control.in-dialog { margin-top: 2px; }
329.nm-dialog.result { min-width: 560px; }
330.nm-result-title { font: 44px var(--grass); letter-spacing: 6px; color: #ffe9a3; text-shadow: 0 0 3px #000, 0 0 12px #c08000; }
331.nm-dialog.result.lose .nm-result-title { color: #d9d9d9; text-shadow: 0 0 3px #000, 0 0 12px #444; }
332table.nm-result { border-collapse: collapse; font: 15px var(--ui); }
333.nm-result td { padding: 4px 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); white-space: nowrap; }
334.nm-result tr.won td { color: #ffe9a3; }
335.nm-result tr.dead td { opacity: .7; }
336.nm-result-name { font: 19px var(--brush); }
337.nm-result-face { display: block; width: 34px; height: 34px; border-radius: 4px; background: #333 center 18% / cover; }
338
339/* the upstream's tooltips (skill and card descriptions) as 无名杀's: dark, small */
340[role='tooltip'] { font-family: var(--ui) !important; }