Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
80 lines (70 loc) · 4.58 KB
/
Copy pathstyle.css
File metadata and controls
80 lines (70 loc) · 4.58 KB
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
:root {
--bg: #111418;
--panel: #1a1f25;
--text: #f2f2f2;
--muted: #9aa4ae;
--accent: #f8c83c;
--good: #5ee27a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
.split { display: flex; height: 100vh; height: 100dvh; }
.panel { flex: 1 1 50%; min-width: 0; min-height: 0; position: relative;
display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cam-panel { background: var(--panel); padding: 16px; gap: 12px; }
.game-panel { background: #000; }
.cam-wrap { position: relative; width: 100%; max-height: calc(100% - 60px); aspect-ratio: 4 / 3;
border-radius: 12px; overflow: hidden; background: #000; }
.cam-wrap video, .cam-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%;
object-fit: cover; transform: scaleX(-1); }
.status { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 8px;
background: rgba(0,0,0,.6); font-size: 14px; }
.status.ok { color: var(--good); }
.flap-flash { position: absolute; top: 40%; left: 0; right: 0; text-align: center; font-size: 56px;
font-weight: 900; color: var(--accent); text-shadow: 0 4px 0 #000; opacity: 0;
transform: scale(.8); transition: opacity .25s, transform .25s; pointer-events: none; }
.flap-flash.show { opacity: 1; transform: scale(1); transition: none; }
.meter { position: absolute; right: 12px; top: 12px; bottom: 12px; width: 14px; border-radius: 7px;
background: rgba(255,255,255,.15); overflow: hidden; }
#meter-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--accent); }
#meter-mark { position: absolute; left: 0; right: 0; height: 2px; background: #fff; top: 50%; }
.controls { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: center;
font-size: 14px; color: var(--muted); }
.controls label { display: flex; gap: 8px; align-items: center; }
.start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
justify-content: center; gap: 8px; padding: 24px; text-align: center; background: rgba(17,20,24,.94); }
.start img { image-rendering: pixelated; }
.start h1 { margin: 4px 0; font-size: 40px; color: var(--accent); }
.start p { margin: 0; max-width: 360px; color: var(--muted); }
.start button { margin-top: 12px; font: inherit; font-weight: 700; font-size: 18px; padding: 12px 22px;
border: 0; border-radius: 10px; background: var(--accent); color: #222; cursor: pointer; }
.start button:disabled { opacity: .6; cursor: wait; }
.start.hidden { display: none; }
.error { color: #ff7b7b !important; min-height: 1.2em; }
#game { height: 100%; max-width: 100%; aspect-ratio: 288 / 512; object-fit: contain;
image-rendering: pixelated; image-rendering: crisp-edges; cursor: pointer; touch-action: manipulation; }
@media (max-aspect-ratio: 1/1) {
.split { flex-direction: column; }
.cam-panel { padding: 8px; gap: 6px; }
.controls .hint { display: none; }
}
.start input { margin-top: 10px; font: inherit; font-size: 18px; padding: 10px 14px; width: 240px; text-align: center;
border: 2px solid #333; border-radius: 10px; background: #0d1014; color: var(--text); }
.board { margin-top: 14px; width: 260px; max-height: 40%; overflow: auto; }
.board h2 { margin: 0 0 6px; font-size: 16px; color: var(--accent); }
.board ol { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; gap: 4px; }
.board li { counter-increment: r; display: flex; gap: 8px; justify-content: space-between; padding: 5px 10px;
border-radius: 8px; background: rgba(255,255,255,.06); font-size: 14px; color: var(--text); text-align: left; }
.board li::before { content: counter(r) "."; color: var(--muted); min-width: 1.5em; }
.board li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li.empty { justify-content: center; color: var(--muted); }
.board li.empty::before { content: none; }
.board li b { color: var(--accent); }
.linkbtn { font: inherit; font-size: 13px; background: none; border: 0; color: var(--muted);
text-decoration: underline; cursor: pointer; padding: 4px; }
.start .linkbtn { margin-top: 6px; font-weight: 400; font-size: 13px; background: none; color: var(--muted); padding: 4px; }
.tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.start .tab { margin: 0; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
background: rgba(255,255,255,.08); color: var(--muted); }
.start .tab.active { background: var(--accent); color: #222; }