File size: 4,496 Bytes
3c4c02e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: #f7f6f3;
  --surface: #ffffff;
  --text: #1d1c1a;
  --muted: #6b6862;
  --line: #e2dfd8;
  --accent: #b4462f;
  --accent-text: #ffffff;
  --frame: #ecE9e2;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151412;
    --surface: #1f1d1a;
    --text: #efece6;
    --muted: #a39f97;
    --line: #34312c;
    --accent: #e0765d;
    --accent-text: #1a0f0c;
    --frame: #26231f;
  }
}
:root[data-theme="dark"] {
  --bg: #151412; --surface: #1f1d1a; --text: #efece6; --muted: #a39f97;
  --line: #34312c; --accent: #e0765d; --accent-text: #1a0f0c; --frame: #26231f;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.55 Inter, system-ui, sans-serif; }
a { color: var(--accent); }
.page { max-width: 880px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 17px; margin: 0 0 8px; }
.tag { font: 500 12px/1 "JetBrains Mono", monospace; vertical-align: middle; padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); }
.lede { color: var(--muted); margin: 0 0 24px; max-width: 64ch; }
.panel, .result, .about, .notice { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.notice { border-color: var(--accent); }
.label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 6px; }
textarea { width: 100%; resize: vertical; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
textarea:focus, input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: 600 14px/1 Inter, system-ui, sans-serif; border-radius: 8px; padding: 10px 14px; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: default; }
.primary { background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent); }
.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.loadrow { margin-bottom: 10px; }
.loadrow .primary { width: 100%; }
.bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
#bar-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.15s; }
.status { display: flex; justify-content: space-between; gap: 12px; font: 12px/1.4 "JetBrains Mono", monospace; color: var(--muted); margin: 6px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font: 12px/1.3 Inter, system-ui, sans-serif; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); }
.chip:hover { color: var(--text); border-color: var(--muted); }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.controls .primary { margin-left: auto; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.switch input { width: 16px; height: 16px; accent-color: var(--accent); }
.seed { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.seed input { width: 120px; font: 13px "JetBrains Mono", monospace; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.result { display: grid; grid-template-columns: minmax(0, 512px) minmax(0, 1fr); gap: 16px; align-items: start; }
.frame { position: relative; aspect-ratio: 1; background: var(--frame); border-radius: 8px; overflow: hidden; }
.frame canvas { width: 100%; height: 100%; display: block; image-rendering: auto; }
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.frame.busy canvas { opacity: 0.85; }
.timings { display: grid; grid-template-columns: auto auto; gap: 4px 12px; margin: 0 0 12px; font: 12px/1.5 "JetBrains Mono", monospace; }
.timings dt { color: var(--muted); }
.timings dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.timings .big { font-size: 22px; color: var(--text); font-weight: 500; }
.ai { font-size: 12px; color: var(--muted); }
.about p { color: var(--muted); max-width: 72ch; }
.fine { font-size: 12px; }
@media (max-width: 640px) {
  .result { grid-template-columns: 1fr; }
  .controls .primary { margin-left: 0; width: 100%; }
  h1 { font-size: 24px; }
}