File size: 23,162 Bytes
78c0f6e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
/* ============================================================
   GAME CHROME — Brad Did Something  ·  DAYLIGHT re-skin
   Paper panels, dark-ink pixel frames, ink text. Matches the
   new warmlight Design System. World pixels live on canvas +
   DOM sprites inside #stage (640x480, scaled).
   ============================================================ */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg-app);
  font-family: var(--font-display, "Press Start 2P", monospace);
  color: var(--text-body); overflow: hidden; height: 100%;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }

#viewport { display: flex; flex-direction: column; height: 100vh;
  height: 100dvh; }  /* dvh: avoids the mobile address-bar clip/scroll */

/* ---- wordmark ---- */
#wordmark {
  display: flex; gap: 16px; align-items: baseline; padding: 8px 16px;
  background: var(--surface-card); border-bottom: 3px solid var(--border-bright);
}
.wm-main {
  font-size: 14px; color: var(--text-heading);
  text-shadow: 2px 2px 0 var(--bds-amber);
}
.wm-sub { font-size: 8px; color: var(--text-muted); }

/* ---- HUD ---- */
#hud {
  display: flex; gap: 16px; align-items: center; padding: 8px 16px;
  background: var(--surface-card);
  border-bottom: 3px solid var(--border-bright); position: relative;
}
.hud-row { display: flex; align-items: baseline; gap: 8px; }
#rev-number { font-size: 16px; color: var(--bds-success); transition: color .3s; }
#rev-number.warn { color: var(--bds-kevin); }
#rev-number.crit { color: var(--bds-brad); }
#rev-target { font-size: 8px; color: var(--text-muted); }
#rev-bar {
  width: 320px; height: 12px; margin: 6px 0; background: var(--bg-well);
  border: 2px solid var(--border-bright); position: relative;
}
#rev-fill {
  height: 100%; width: 0%; background: var(--bds-success);
  transition: width .6s steps(12);
}
#rev-fill.warn { background: var(--bds-kevin); }
#rev-fill.crit { background: var(--bds-brad); }
#boss-title { font-size: 8px; color: var(--bds-janet); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 340px;
  transition: opacity .25s; }
#hud-right { margin-left: auto; display: flex; gap: 16px; font-size: 8px;
  align-items: center; }
#crisis-counter { color: var(--text-muted); }
#pocket { color: var(--bds-success); }
#hr-badge {
  color: var(--bds-neon-magenta); border: 2px solid var(--bds-neon-magenta);
  padding: 4px 6px; animation: hrpulse 1s steps(2) infinite;
}
@keyframes hrpulse { 50% { background: var(--bds-janet-soft); } }
#hud-banner {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  background: var(--surface-card); border: 3px solid var(--bds-amber);
  color: var(--bds-amber); font-size: 8px; padding: 8px 12px; z-index: 40;
  white-space: nowrap; box-shadow: 4px 4px 0 var(--bds-void);
}
#hud-banner.gold { border-color: var(--bds-kevin); color: var(--bds-amber); }
#hud-banner.red { border-color: var(--bds-brad); color: var(--bds-white);
  background: var(--bds-brad); }

/* ---- stage layout ---- */
#frame { flex: 1; display: flex; min-height: 0; }
#stage-wrap { flex: 1; display: flex; align-items: center;
  justify-content: center; background: var(--bg-app); min-width: 0; }
#stage {
  width: 640px; height: 480px; position: relative; flex: none;
  transform-origin: center center; background: var(--bds-navy-900);
  border: 4px solid var(--border-bright); image-rendering: pixelated;
  box-shadow: 0 6px 0 rgba(36,31,23,.25);
  overflow: hidden;   /* keep wipe/flash/overlays inside the screen */
}
#floor { position: absolute; inset: 0; image-rendering: pixelated; }
#world, #fx { position: absolute; inset: 0; pointer-events: none; }
#world { z-index: 5; } #fx { z-index: 20; }

/* in-world bits */
.prompt-box {
  position: absolute; transform: translateX(-50%); background: var(--bds-void);
  border: 2px solid var(--bds-white); color: var(--bds-white); font-size: 6px;
  padding: 3px 5px; z-index: 30; white-space: nowrap; letter-spacing: 1px;
}
.prompt-box.gold { border-color: var(--bds-kevin); color: var(--bds-kevin);
  box-shadow: 0 0 8px rgba(207,154,42,.7); }
.bubble {
  position: absolute; transform: translateX(-50%); z-index: 28;
  width: 18px; height: 18px; background: var(--bds-white);
  border: 2px solid var(--bds-brad); color: var(--bds-brad);
  font-size: 9px; line-height: 14px; text-align: center;
  box-shadow: 2px 2px 0 var(--bds-void);
  animation: bpop .35s var(--ease-pop, ease-out), bfloat 1s steps(2) infinite 0.4s;
}
.bubble.amber { border-color: var(--bds-amber); color: var(--bds-amber); }
.bubble.heart { border-color: var(--bds-neon-magenta); color: var(--bds-neon-magenta); }
@keyframes bpop { 0% { transform: translateX(-50%) scale(0); }
  70% { transform: translateX(-50%) scale(1.3); }
  100% { transform: translateX(-50%) scale(1); } }
@keyframes bfloat { 50% { margin-top: -3px; } }

.say-bubble {
  position: absolute; transform: translateX(-50%); z-index: 32;
  max-width: 150px; background: var(--bds-white);
  border: 2px solid var(--border-bright); color: var(--text-body);
  font-size: 6px; line-height: 1.9; padding: 5px 7px; text-align: left;
  box-shadow: 3px 3px 0 var(--bds-void);
  animation: saypop .25s var(--ease-pop, ease-out);
}
.say-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -6px;
  margin-left: -3px; border: 3px solid transparent;
  border-top-color: var(--border-bright);
}
.say-bubble.fading { opacity: 0; transition: opacity .5s steps(4); }
@keyframes saypop { 0% { transform: translateX(-50%) scale(.4); } }

.newspaper {
  position: absolute; width: 34px; height: 24px; background: #efe9d8;
  border: 2px solid var(--bds-void); z-index: 12; font-size: 4px;
  color: #3a3326; padding: 2px; overflow: hidden; line-height: 1.4;
}
.newspaper.falling { animation: npfall 1.2s steps(8) forwards; }
@keyframes npfall {
  0% { transform: translateY(-300px) rotate(0); }
  100% { transform: translateY(0) rotate(720deg); } }
.newspaper.floor { opacity: .45; }
.envelope {
  position: absolute; width: 22px; height: 14px; background: #f2ecda;
  border: 2px solid var(--bds-void); z-index: 12;
  box-shadow: 0 0 8px rgba(63,154,63,.8);
  animation: envslide .8s steps(8); }
.envelope::after { content:""; position:absolute; left:0; top:0;
  border-left:9px solid transparent; border-right:9px solid transparent;
  border-top:7px solid #d8d0b8; }
@keyframes envslide { 0% { transform: translateX(300px); } }

.float-text {
  position: absolute; font-size: 10px; z-index: 60; pointer-events: none;
  text-shadow: 2px 2px 0 var(--bds-void); white-space: nowrap;
  animation: floatup 1.6s steps(8) forwards;
}
.float-text.down { animation: floatdown 1.6s steps(8) forwards; }
@keyframes floatup { 0% { opacity:1; } 100% { transform: translateY(-46px); opacity:0; } }
@keyframes floatdown { 0% { opacity:1; } 100% { transform: translateY(46px); opacity:0; } }

.pixel-part { position: absolute; z-index: 55; pointer-events: none; }

/* ---- overlays inside stage ---- */
#dim { position: absolute; inset: 0; background: rgba(36,31,23,.45); z-index: 35;
  transition: opacity .25s; }
#flash { position: absolute; inset: 0; background: var(--bds-brad); opacity: 0;
  z-index: 70; pointer-events: none; }
#flash.on { animation: redflash .5s steps(4) forwards; }
@keyframes redflash { 0% { opacity: .3; } 100% { opacity: 0; } }
#edge-pulse { position: absolute; inset: 0; z-index: 68; pointer-events: none;
  opacity: 0; box-shadow: inset 0 0 36px 12px rgba(210,89,58,.5); }
#edge-pulse.on { animation: edgep 1s steps(4) infinite; }
@keyframes edgep { 50% { opacity: 1; } }
#wipe { position: absolute; inset: 0; background: var(--bds-void); z-index: 90;
  transform: translateX(-100%); pointer-events: none; }
#wipe.go { animation: wipeacross .7s steps(10) forwards; }
@keyframes wipeacross { 0% { transform: translateX(-100%); }
  45%,55% { transform: translateX(0); } 100% { transform: translateX(100%); } }
#stamp {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%) rotate(-8deg);
  font-size: 32px; color: var(--bds-white); z-index: 80;
  background: var(--bds-neon-magenta);
  border: 6px solid var(--bds-void); padding: 12px 20px;
  box-shadow: 6px 6px 0 var(--bds-void);
  animation: stampin .9s steps(3) forwards;
}
@keyframes stampin { 0% { transform: translate(-50%,-50%) scale(3) rotate(-8deg);
    opacity: 0; } 30% { opacity: 1; } 80% { opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1) rotate(-8deg); opacity: 0; } }

/* ---- paper trail ---- */
#papertrail {
  width: 230px; padding: 8px; background: var(--surface-card);
  border-left: 3px solid var(--border-bright);
  display: flex; flex-direction: column; min-height: 0;
}
.pt-head { font-size: 8px; color: var(--text-muted); letter-spacing: 2px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border); }
#pt-entries { overflow-y: auto; flex: 1; scrollbar-width: thin; }
.pt-empty { font-size: 7px; color: var(--text-disabled); padding: 8px 0; }
.pt-entry { font-size: 7px; line-height: 1.9; padding: 6px 0;
  border-bottom: 1px solid var(--border);
  animation: ptslide .3s steps(4); }
@keyframes ptslide { 0% { transform: translateX(40px); opacity: 0; } }
.pt-entry .pt-npc { letter-spacing: 1px; }
.pt-entry .pt-delta.up { color: var(--bds-success); }
.pt-entry .pt-delta.down { color: var(--bds-brad); }
.pt-entry .pt-text { color: var(--text-muted); }

/* ---- dialogue box ---- */
#dialogue {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(720px, 96vw); max-height: 62vh; overflow-y: auto;
  background: var(--surface-card);
  border: 4px solid var(--npc-color, var(--border-bright));
  box-shadow: 8px 8px 0 var(--bds-void);
  z-index: 200; padding: 14px;
  animation: dlgup .3s steps(6);
}
@keyframes dlgup { 0% { transform: translate(-50%, 105%); } }
#dialogue.closing { animation: dlgdown .25s steps(5) forwards; }
@keyframes dlgdown { 100% { transform: translate(-50%, 105%); } }
#dialogue.gold { border-color: var(--bds-kevin); }
#dialogue.tone-warm { border-color: var(--bds-success); }
#dialogue.tone-neutral { border-color: var(--bds-ink-3); }
#dialogue.tone-concerned { border-color: var(--bds-kevin); }
#dialogue.tone-alarmed { border-color: var(--bds-brad); }

/* ---- comic-panel crisis overlay (FLUX-generated; no overlay when no image) ---- */
#comic {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(36, 31, 23, .72);
  cursor: pointer; opacity: 0; transition: opacity .18s ease;
}
#comic.comic-in { opacity: 1; }
#comic.hidden { display: none; }
.comic-frame {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  max-width: min(880px, 94vw); max-height: 90vh;
  background: var(--bds-white); padding: 10px;
  border: 6px solid var(--bds-void);
  box-shadow: 10px 10px 0 var(--bds-void);
  transform: scale(.95) rotate(-.5deg);
  transition: transform .22s cubic-bezier(.2, 1.3, .5, 1);
}
#comic.comic-in .comic-frame { transform: scale(1) rotate(0); }
.comic-caption {
  font-size: 11px; line-height: 1.7; color: var(--bds-void);
  background: var(--bds-amber); border: 3px solid var(--bds-void);
  padding: 8px 10px; text-align: center; letter-spacing: .5px;
}
.comic-img {
  display: block; max-width: 100%; max-height: 74vh;
  border: 2px solid var(--bds-void);
}
.comic-hint {
  position: absolute; right: 12px; bottom: 12px;
  font-size: 8px; letter-spacing: 1px; color: var(--bds-white);
  background: var(--bds-void); padding: 4px 7px; opacity: .85;
}

.dlg-head { display: flex; gap: 10px; align-items: center; padding-bottom: 10px;
  border-bottom: 2px solid var(--border); margin-bottom: 10px; }
.dlg-name { font-size: 11px; color: var(--npc-color, var(--text-heading)); }
.dlg-title { font-size: 7px; color: var(--text-muted); display: block;
  margin-top: 5px; }
.dlg-sprite { width: 72px; height: 66px; position: relative; flex: none; }
.dlg-headline { font-size: 8px; color: var(--bds-amber); margin-bottom: 8px;
  letter-spacing: 1px; }
.dlg-body { font-size: 9px; line-height: 2; color: var(--text-body);
  margin-bottom: 12px; }
.dlg-urgency { font-size: 8px; color: var(--bds-neon-magenta); margin: 8px 0;
  text-align: center; }

.dlg-options { display: flex; gap: 10px; margin-bottom: 10px; }
.dlg-option {
  flex: 1; background: var(--surface-hover); padding: 10px; text-align: left;
  border: 2px solid var(--bds-brad); color: var(--text-body);
  font-size: 8px; line-height: 1.9; box-shadow: 3px 3px 0 var(--bds-void);
}
.dlg-option.b { border-color: var(--bds-kevin); }
.dlg-option .opt-label { display: block; color: var(--bds-brad); font-size: 7px;
  letter-spacing: 1px; margin-bottom: 6px; }
.dlg-option.b .opt-label { color: var(--bds-amber); }
.dlg-option:hover { background: var(--bds-white); }
.dlg-option:active { transform: translate(3px,3px); box-shadow: none; }

.dlg-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.btn-quick {
  background: var(--surface-hover); border: 2px solid var(--border-bright);
  color: var(--text-heading); font-size: 7px; padding: 8px 10px;
  box-shadow: 3px 3px 0 var(--bds-void);
}
.btn-quick:active { transform: translate(3px,3px); box-shadow: none; }
.btn-quick.danger { border-color: var(--bds-brad); color: var(--bds-brad); }

.dlg-inputrow { display: flex; gap: 8px; }
.dlg-input {
  flex: 1; background: var(--bds-white); border: 2px solid var(--border-bright);
  color: var(--text-body); font-family: inherit; font-size: 8px;
  padding: 10px; outline: none;
}
.dlg-input::placeholder { color: var(--text-disabled); }
.dlg-input:focus { border-color: var(--bds-neon-cyan);
  box-shadow: 0 0 8px rgba(31,127,174,.4); }
.btn-send {
  background: var(--bds-neon-magenta); border: 2px solid var(--bds-void);
  color: var(--bds-white); font-size: 8px; padding: 10px 14px;
  box-shadow: 3px 3px 0 var(--bds-void);
}
.btn-send:active { transform: translate(3px,3px); box-shadow: none; }

.dlg-thinking { font-size: 9px; color: var(--text-muted); padding: 18px 0;
  text-align: center; }
.dlg-thinking .dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; }
  50% { content: ".."; } 75% { content: "..."; } }

.dlg-after-you { border: 2px solid var(--border); padding: 8px;
  font-size: 7px; color: var(--text-muted); margin-bottom: 8px;
  background: var(--surface-hover); }
.dlg-after-react { border-left: 4px solid var(--npc-color, var(--border-bright));
  padding: 8px; font-size: 9px; line-height: 2; margin-bottom: 8px;
  color: var(--text-body); }
.dlg-after-conseq { border-left: 4px solid var(--bds-success); padding: 8px;
  font-size: 8px; line-height: 1.9; color: var(--text-body);
  margin-bottom: 10px; }
.dlg-after-conseq.down { border-left-color: var(--bds-brad); }
.btn-next {
  width: 100%; background: var(--bds-neon-magenta); border: 2px solid var(--bds-void);
  color: var(--bds-white); font-size: 10px; padding: 14px;
  box-shadow: 4px 4px 0 var(--bds-void);
}
.btn-next:active { transform: translate(4px,4px); box-shadow: none; }

.round-dots { font-size: 10px; color: var(--bds-amber); letter-spacing: 4px; }
.board-badge { font-size: 7px; color: var(--bds-brad);
  border: 2px solid var(--bds-brad); padding: 4px 6px; margin-left: auto; }
.wrong-slide {
  background: var(--bds-janet-soft); border: 4px solid var(--bds-neon-magenta);
  padding: 12px; text-align: center; margin-bottom: 10px; color: #5a3a50;
  font-size: 8px;
}
.wrong-slide .ws-photo { width: 90px; height: 64px; background: #d8d0e2;
  margin: 6px auto; border: 2px solid #9a90b0; position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: visible; }
.wrong-slide .ws-title { font-size: 10px; color: var(--bds-neon-magenta);
  font-style: italic; }

/* ---- gift panel ---- */
#gift-panel {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);
  background: var(--surface-card);
  border: 4px solid var(--npc-color, var(--border-bright));
  box-shadow: 8px 8px 0 var(--bds-void); z-index: 210; padding: 14px;
  width: 320px;
}
.gift-head { font-size: 9px; color: var(--npc-color, var(--text-heading));
  margin-bottom: 10px; }
.gift-balance { font-size: 7px; color: var(--bds-success); margin-bottom: 10px; }
.gift-row {
  display: flex; justify-content: space-between; width: 100%;
  background: var(--surface-hover); border: 2px solid var(--border-bright);
  color: var(--text-body); font-size: 8px; padding: 10px; margin-bottom: 8px;
  box-shadow: 2px 2px 0 var(--bds-void);
}
.gift-row:hover:not(:disabled) { border-color: var(--bds-success);
  background: var(--bds-white); }
.gift-row:disabled { color: var(--text-disabled); border-color: var(--border);
  box-shadow: none; cursor: not-allowed; }
.gift-cancel { font-size: 7px; color: var(--text-muted); background: none;
  border: none; width: 100%; padding: 6px; }

/* ---- boardroom ---- */
#boardroom { position: absolute; inset: 0; z-index: 15;
  background: var(--bds-purple-900); }

/* ---- title screen ---- */
#title-screen {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  /* soft vignette focuses the card and lifts it off the flat field */
  background: radial-gradient(ellipse at center,
    var(--bds-purple-800) 0%, var(--bds-navy-800) 100%);
}
.ts-card {
  text-align: center; max-width: 560px; padding: 32px 44px;
  background: var(--surface-card); border: 4px solid var(--border-bright);
  box-shadow: 10px 10px 0 var(--bds-void);
}
.ts-logo {
  font-size: 38px; color: var(--text-heading); line-height: 1.4;
  text-shadow: 4px 4px 0 var(--bds-amber);
  animation: ts-logo 2.8s ease-in-out infinite;
}
@keyframes ts-logo {
  0%, 100% { transform: translateY(0);
    text-shadow: 4px 4px 0 var(--bds-amber); }
  50% { transform: translateY(-3px);
    text-shadow: 4px 4px 0 var(--bds-amber), 0 0 16px rgba(185,133,42,.55); }
}
.ts-sub { display: block; font-size: 9px; color: var(--bds-neon-cyan);
  margin: 14px 0 18px; letter-spacing: 3px;
  text-shadow: 1px 1px 0 rgba(36,31,23,.25); }
.ts-premise { font-size: 8px; line-height: 2.2; color: var(--text-body);
  margin-bottom: 22px; }
.btn-cta {
  background: var(--bds-neon-magenta); color: var(--bds-white);
  border: 3px solid var(--bds-void);
  font-size: 12px; padding: 16px 28px; box-shadow: 5px 5px 0 var(--bds-void);
}
.btn-cta:active { transform: translate(5px,5px); box-shadow: none; }
#btn-start { animation: ts-cta 1.9s ease-in-out infinite; }
@keyframes ts-cta {
  0%, 100% { box-shadow: 5px 5px 0 var(--bds-void); }
  50% { box-shadow: 5px 5px 0 var(--bds-void), 0 0 18px rgba(192,57,143,.6); }
}
.ts-keys { margin-top: 18px; font-size: 7px; color: var(--text-body);
  line-height: 1.8; }
#ts-cast { display: flex; justify-content: center; gap: 14px;
  margin-bottom: 22px; align-items: flex-end; }
/* the team idles in place, gently, staggered so it reads as a busy office */
#ts-cast .cast-slot { text-align: center; animation: ts-bob 2.4s ease-in-out infinite; }
#ts-cast .cast-slot:nth-child(2) { animation-delay: .35s; }
#ts-cast .cast-slot:nth-child(3) { animation-delay: .7s; }
#ts-cast .cast-slot:nth-child(4) { animation-delay: 1.05s; }
#ts-cast .cast-slot:nth-child(5) { animation-delay: 1.4s; }
@keyframes ts-bob { 0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); } }
/* ink shadow keeps even the muted gold/blue names legible on cream */
#ts-cast .cast-name { font-size: 6px; margin-top: 6px; letter-spacing: 1px;
  text-shadow: 1px 1px 0 var(--bds-void); }

/* ---- review screen ---- */
#review-screen {
  position: fixed; inset: 0; background: var(--bg-app); z-index: 290;
  display: flex; align-items: center; justify-content: center;
}
.rv-card {
  width: min(680px, 94vw); max-height: 92vh; overflow-y: auto;
  border: 6px solid var(--rv-color, var(--border-bright)); padding: 22px;
  background: var(--surface-card);
  box-shadow: 8px 8px 0 var(--bds-void);
}
.rv-head { font-size: 14px; color: var(--text-heading); margin-bottom: 16px;
  letter-spacing: 2px; }
.rv-revenue { font-size: 28px; color: var(--rv-color, var(--text-heading));
  margin-bottom: 6px; }
.rv-gap { font-size: 8px; color: var(--text-muted); margin-bottom: 14px; }
.rv-line { font-size: 8px; line-height: 2.2; color: var(--text-body); }
.rv-title { color: var(--bds-janet); }
.rv-section { margin: 14px 0; border-top: 2px solid var(--border);
  padding-top: 12px; }
.rv-sec-head { font-size: 8px; color: var(--text-muted); letter-spacing: 2px;
  margin-bottom: 8px; }
.rv-verdict { font-size: 9px; line-height: 2.1; color: var(--bds-amber); }

/* ---- ambient light wash (replaces CRT — daylight DS, no scanlines) ---- */
#crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(255,248,226,.10) 0%, transparent 55%);
}

/* ---- reduced motion + mobile ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important;
    transition-duration: .01s !important; }
}
@media (max-width: 760px) {
  #papertrail { display: none; }
  #rev-bar { width: 140px; }
  #hud { flex-wrap: wrap; gap: 8px 12px; padding: 6px 10px; }
  #hud-right { gap: 10px; }
  #wordmark { padding: 6px 10px; gap: 10px; }
  .wm-main { font-size: 11px; }
  .dlg-options { flex-direction: column; }
  #dialogue { width: 96vw; max-height: 56vh; padding: 11px; }
  .ts-card, .rv-card { max-width: 94vw; max-height: 88vh; overflow-y: auto; }
  .comic-caption { font-size: 9px; }
}

/* ---- touch controls (created by touch.js only on touch devices) ---- */
#tc-stick, #tc-buttons {
  position: fixed; bottom: 20px; z-index: 150;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
#tc-stick {
  left: 20px; width: 122px; height: 122px; border-radius: 50%;
  background: rgba(36, 31, 23, .20); border: 3px solid rgba(36, 31, 23, .45);
  display: flex; align-items: center; justify-content: center;
}
.tc-thumb {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bds-amber); border: 3px solid var(--bds-void);
  box-shadow: 0 3px 0 rgba(36, 31, 23, .4);
}
#tc-buttons { right: 20px; display: flex; gap: 14px; align-items: center; }
.tc-btn {
  font-family: var(--font-display, "Press Start 2P", monospace);
  border: 3px solid var(--bds-void); color: var(--bds-void); padding: 0;
  box-shadow: 0 4px 0 rgba(36, 31, 23, .4);
}
.tc-btn.down { transform: translateY(3px); box-shadow: 0 1px 0 rgba(36, 31, 23, .4); }
.tc-action {
  width: 88px; height: 88px; border-radius: 50%; font-size: 13px;
  background: var(--bds-success, #3fae62); color: var(--bds-white, #fff);
}
.tc-gift {
  width: 62px; height: 62px; border-radius: 50%; font-size: 9px;
  background: var(--bds-amber);
}
/* hide the controls whenever a menu / dialogue / comic owns the screen */
:is(#title-screen, #review-screen, #dialogue, #comic, #gift-panel):not(.hidden) ~ #tc-stick,
:is(#title-screen, #review-screen, #dialogue, #comic, #gift-panel):not(.hidden) ~ #tc-buttons {
  display: none;
}