File size: 8,841 Bytes
4f3f5e7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #14171a;
  --ink-soft: #565d66;
  --line: #e2e0db;
  --accent: #b4482a;
  --gate: #1c7a6e;
  --truth: #b4482a;
  --ghost: #6f7de0;
  --goal: #c99a1f;
  --shadow: 0 1px 2px rgba(20,23,26,.06), 0 8px 24px rgba(20,23,26,.05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161a;
    --surface: #1c1f25;
    --ink: #eceef1;
    --ink-soft: #a2abb6;
    --line: #2c313a;
    --accent: #e8825f;
    --gate: #4fc7b6;
    --truth: #e8825f;
    --ghost: #9aa5f5;
    --goal: #e6c357;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: color-mix(in srgb, var(--ink) 7%, transparent); padding: .1em .35em; border-radius: 4px; }
.masthead { max-width: 66rem; margin: 0 auto; padding: 2.5rem 1.25rem 1rem; }
.masthead-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.eyebrow { margin: 0; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }
.header-actions { display: flex; gap: .4rem; align-items: center; }
.chip { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
h1 { margin: .6rem 0 .75rem; font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.12; letter-spacing: -.02em; }
.standfirst { margin: 0; max-width: 46rem; font-size: 1.05rem; color: var(--ink-soft); }
.loading { margin: 1rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.progress { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: .6rem; }
.progress .bar { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.tasks { max-width: 66rem; margin: 0 auto; padding: 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tasks button { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); padding: .5rem 1rem; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.tasks button:hover { border-color: var(--accent); color: var(--ink); }
.tasks button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tasks button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main { max-width: 66rem; margin: 0 auto; padding: 1.25rem; }
.stage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 960px) { .stage { grid-template-columns: minmax(0, 1fr); } }
.canvas-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .75rem; box-shadow: var(--shadow); position: relative; }
.canvas-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; font-size: .78rem; color: var(--ink-soft); }
.toolbar-label { font-variant-numeric: tabular-nums; }
.toolbar-actions { display: flex; gap: .3rem; }
.toolbar-actions button { border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft); border-radius: 6px; padding: .25rem .5rem; font-size: .75rem; cursor: pointer; }
.toolbar-actions button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
canvas { display: block; width: 100%; height: auto; border-radius: 8px; touch-action: none; cursor: crosshair; background: var(--bg); }
.inspector { position: absolute; top: 3rem; right: 1rem; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; font-size: .75rem; line-height: 1.4; backdrop-filter: blur(6px); max-width: 14rem; pointer-events: none; }
.canvas-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .6rem .25rem 0; font-size: .78rem; color: var(--ink-soft); }
.canvas-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend-hint { margin-left: auto; font-size: .72rem; opacity: .8; }
.swatch { width: .7rem; height: .7rem; border-radius: 3px; display: inline-block; }
.swatch.pusher { background: var(--ink); border-radius: 50%; }
.swatch.gate-on { background: var(--gate); }
.swatch.truth { background: transparent; border: 2px solid var(--truth); }
.swatch.ghost { background: transparent; border: 2px dashed var(--ghost); }
.swatch.goal { background: var(--goal); border-radius: 50%; }
.overlay { position: absolute; inset: 2.4rem .75rem auto .75rem; background: color-mix(in srgb, var(--ink) 78%, transparent); color: white; text-align: center; padding: .4rem; border-radius: 8px; font-size: .85rem; }
.panel { display: grid; gap: 1.1rem; }
.task-copy { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: .9rem 1rem; font-size: .92rem; }
.task-copy h2 { margin: 0 0 .35rem; font-size: 1rem; }
.task-copy p { margin: 0; color: var(--ink-soft); }
.controls { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; display: grid; gap: .9rem; }
.control-group h3 { margin: 0 0 .5rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .88rem; }
.row label { color: var(--ink-soft); display: inline-flex; align-items: center; gap: .35rem; }
.row input[type="range"] { flex: 1 1 8rem; accent-color: var(--accent); }
.row output { font-variant-numeric: tabular-nums; min-width: 4.5rem; }
.checks { gap: 1rem; }
.controls button, select { appearance: none; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 8px; padding: .45rem .9rem; font: inherit; font-size: .88rem; cursor: pointer; }
.controls button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.controls button:hover { border-color: var(--accent); }
.controls button:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint { margin: 0; font-size: .8rem; color: var(--ink-soft); }
.scoreboard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem 1.1rem; }
.scoreboard-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .4rem; }
.scoreboard h2 { margin: 0; font-size: 1rem; }
.frames { font-size: .78rem; font-weight: 400; color: var(--ink-soft); }
.scorenote { margin: 0 0 .8rem; font-size: .78rem; color: var(--ink-soft); }
.score-actions { display: flex; gap: .4rem; margin-bottom: .6rem; }
.small { padding: .25rem .5rem !important; font-size: .75rem !important; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { text-align: right; padding: .3rem .4rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; font-variant-numeric: normal; }
thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
tr.model td { background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 600; }
tr.zero-param td:nth-child(2) { color: var(--gate); font-weight: 600; }
td .rule-name { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; }
.shortcuts { font-size: .78rem; color: var(--ink-soft); }
.shortcuts summary { cursor: pointer; }
.shortcuts ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.explainer { margin-top: 3rem; }
.explainer h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.cards article { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.cards h3 { margin: 0 0 .4rem; font-size: .95rem; }
.cards p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.footer-note { margin: 2rem 0 4rem; font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1rem; }
.warn { margin: 0; font-size: .8rem; color: var(--ink); background: color-mix(in srgb, var(--goal) 18%, transparent); border-left: 3px solid var(--goal); border-radius: 6px; padding: .5rem .7rem; }