Server: GM token frames gain the additive, GM-only seen_by:[player ids], computed from each player's existing sight (PlayerVision.visibleTo) with no extra polygon pass. Leakcheck BannedAlways bans seen_by; a seenBy fault build is caught as exactly WALLDATA. proto stays 2 (6.2 additive). Client: new cast slice parses character/character_gone/encountered frames and seen_by; gmcast panel adds character create/rename/assign/remove, reveal to one/all, encountered forget (grey entries only) and the who-sees-it list (0/100 in M4). Mounted beside the #74 admin panel. Docs: DESIGN 5.9/6.1/6.2/7.4 record the round-1 shape and the no-bump call. Gates: devbox run test, client-test, e2e green; bench recorded.
427 lines
6.6 KiB
CSS
427 lines
6.6 KiB
CSS
html,
|
|
body {
|
|
margin: 0;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
background: #000;
|
|
color: #eee;
|
|
font: 14px/1.4 system-ui, sans-serif;
|
|
}
|
|
|
|
#app {
|
|
position: fixed;
|
|
inset: 0;
|
|
}
|
|
|
|
[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
#stage {
|
|
position: absolute;
|
|
inset: 0;
|
|
}
|
|
|
|
#stage canvas {
|
|
display: block;
|
|
}
|
|
|
|
#boot,
|
|
#signin,
|
|
#name,
|
|
#fatal {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
#signin form,
|
|
#name form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
width: min(360px, 90vw);
|
|
}
|
|
|
|
#key,
|
|
#name-input {
|
|
font: inherit;
|
|
padding: 10px 12px;
|
|
border-radius: 6px;
|
|
border: 1px solid #555;
|
|
background: #111;
|
|
color: inherit;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
#name-input {
|
|
letter-spacing: normal;
|
|
text-transform: none;
|
|
}
|
|
|
|
#signin button,
|
|
#name button,
|
|
#fatal button {
|
|
font: inherit;
|
|
padding: 10px 12px;
|
|
border-radius: 6px;
|
|
border: 1px solid #777;
|
|
background: #222;
|
|
color: inherit;
|
|
}
|
|
|
|
#signin-error,
|
|
#name-error {
|
|
color: #ff8a8a;
|
|
}
|
|
|
|
#hud {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: baseline;
|
|
padding: 6px 12px;
|
|
background: rgb(0 0 0 / 65%);
|
|
pointer-events: none;
|
|
font: 12px/1.4 ui-monospace, monospace;
|
|
}
|
|
|
|
#roster {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
#roster li {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
#roster-state {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Story 7: connected / reconnecting / offline. The dot carries the state at a glance; the text is
|
|
the accessible label. */
|
|
#badge {
|
|
margin-left: auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
#badge::before {
|
|
content: '';
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
|
|
#badge[data-state='connected'] {
|
|
color: #7ee787;
|
|
}
|
|
|
|
#badge[data-state='reconnecting'] {
|
|
color: #e3b341;
|
|
}
|
|
|
|
#badge[data-state='offline'] {
|
|
color: #ff7b72;
|
|
}
|
|
|
|
/* GM panels (T11, #74): a right-hand column over the canvas. The root is hidden for players and
|
|
for every phase outside the table; secrets live only inside it. */
|
|
#panels {
|
|
position: absolute;
|
|
top: 40px;
|
|
right: 8px;
|
|
bottom: 8px;
|
|
width: min(330px, 44vw);
|
|
overflow: auto;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#gm-panels {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
background: rgb(10 10 12 / 88%);
|
|
border: 1px solid #333;
|
|
pointer-events: auto;
|
|
font: 12px/1.4 ui-monospace, monospace;
|
|
}
|
|
|
|
#gm-panels h2,
|
|
#gm-panels h3,
|
|
#gm-panels h4 {
|
|
margin: 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
#gm-panels h2 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
#gm-panels h3 {
|
|
font-size: 12px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
#gm-roster-list,
|
|
#gm-token-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
margin: 6px 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
#gm-roster-list li,
|
|
#gm-token-list li {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
background: rgb(255 255 255 / 4%);
|
|
}
|
|
|
|
#gm-token-list li[data-selected='true'] {
|
|
outline: 1px solid #7ee787;
|
|
}
|
|
|
|
#gm-roster-state {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.gm-key {
|
|
flex-basis: 100%;
|
|
color: #e3b341;
|
|
word-break: break-all;
|
|
}
|
|
|
|
#gm-panels button {
|
|
font: inherit;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
border: 1px solid #666;
|
|
background: #222;
|
|
color: inherit;
|
|
}
|
|
|
|
#gm-panels input,
|
|
#gm-panels select {
|
|
font: inherit;
|
|
padding: 3px 5px;
|
|
border-radius: 4px;
|
|
border: 1px solid #555;
|
|
background: #111;
|
|
color: inherit;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#gm-panels input[type='checkbox'] {
|
|
width: auto;
|
|
}
|
|
|
|
#gm-token-create,
|
|
#gm-token-editor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
margin: 6px 0;
|
|
}
|
|
|
|
#gm-token-create label,
|
|
#gm-token-editor label {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
#gm-key-status,
|
|
#gm-token-error {
|
|
margin: 4px 0 0;
|
|
word-break: break-word;
|
|
color: #e3b341;
|
|
}
|
|
|
|
#gm-token-error {
|
|
color: #ff8a8a;
|
|
}
|
|
|
|
#gm-token-meta {
|
|
flex-basis: 100%;
|
|
opacity: 0.7;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Lists panel (T8, #71): story 31's own characters and story 32's encountered list. Overlaid on the
|
|
canvas inside the shared `#panels` column; the pointers stay with the canvas (DESIGN 7.2). */
|
|
#lists {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 8px 10px;
|
|
border: 1px solid #333;
|
|
border-radius: 6px;
|
|
background: rgb(0 0 0 / 55%);
|
|
font: 12px/1.4 ui-monospace, monospace;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#lists .panel-title {
|
|
margin: 0 0 2px;
|
|
font: 600 11px/1.2 system-ui, sans-serif;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
#lists ul {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
margin: 0 0 6px;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
#lists li {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
#lists .entry-values {
|
|
font-size: 11px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
#lists .entry-state {
|
|
font-size: 10px;
|
|
opacity: 0.45;
|
|
}
|
|
|
|
#lists .empty {
|
|
margin: 0 0 6px;
|
|
opacity: 0.45;
|
|
}
|
|
|
|
/* Story 32: met before, whereabouts unknown. */
|
|
#lists li.grey,
|
|
#lists li[data-grey='true'] {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
#lists li.grey .entry-name {
|
|
color: #8f8f8f;
|
|
}
|
|
|
|
/* GM cast panels (T12, #75): characters, reveals, encountered and who-sees-it, below the #74
|
|
panel in the same right-hand column. Same secret rules: hidden and cleared unless GM + live. */
|
|
#gm-cast {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
background: rgb(10 10 12 / 88%);
|
|
border: 1px solid #333;
|
|
pointer-events: auto;
|
|
font: 12px/1.4 ui-monospace, monospace;
|
|
}
|
|
|
|
#gm-cast h3,
|
|
#gm-cast h4 {
|
|
margin: 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
#gm-cast h3 {
|
|
font-size: 12px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
#gm-cast ul {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
margin: 6px 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
#gm-cast li {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
background: rgb(255 255 255 / 4%);
|
|
}
|
|
|
|
#gm-cast button {
|
|
font: inherit;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
border: 1px solid #666;
|
|
background: #222;
|
|
color: inherit;
|
|
}
|
|
|
|
#gm-cast input,
|
|
#gm-cast select {
|
|
font: inherit;
|
|
padding: 3px 5px;
|
|
border-radius: 4px;
|
|
border: 1px solid #555;
|
|
background: #111;
|
|
color: inherit;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#gm-character-create,
|
|
#gm-cast form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
margin: 6px 0;
|
|
}
|
|
|
|
#gm-cast label {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
#gm-character-status,
|
|
#gm-encountered-status,
|
|
#gm-seen-hint {
|
|
margin: 4px 0 0;
|
|
word-break: break-word;
|
|
color: #e3b341;
|
|
}
|
|
|
|
#gm-seen-hint {
|
|
opacity: 0.7;
|
|
}
|