|
| 1 | +:root { |
| 2 | + color-scheme: light; |
| 3 | + --bg: #f7f4ec; |
| 4 | + --surface: #fffdfa; |
| 5 | + --ink: #211f1a; |
| 6 | + --muted: #6f695e; |
| 7 | + --line: #d9d0c1; |
| 8 | + --red: #c9503d; |
| 9 | + --blue: #2f6f9f; |
| 10 | + --gold: #d4a72c; |
| 11 | +} |
| 12 | + |
| 13 | +* { |
| 14 | + box-sizing: border-box; |
| 15 | +} |
| 16 | + |
| 17 | +body { |
| 18 | + margin: 0; |
| 19 | + background: |
| 20 | + radial-gradient(circle at 1px 1px, rgba(33, 31, 26, 0.05) 1px, transparent 0) 0 0 / 24px 24px, |
| 21 | + var(--bg); |
| 22 | + color: var(--ink); |
| 23 | + font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; |
| 24 | +} |
| 25 | + |
| 26 | +.app { |
| 27 | + width: min(1180px, calc(100vw - 32px)); |
| 28 | + margin: 0 auto; |
| 29 | + padding: 28px 0 36px; |
| 30 | +} |
| 31 | + |
| 32 | +header { |
| 33 | + display: flex; |
| 34 | + align-items: end; |
| 35 | + justify-content: space-between; |
| 36 | + gap: 18px; |
| 37 | + margin-bottom: 18px; |
| 38 | +} |
| 39 | + |
| 40 | +h1 { |
| 41 | + margin: 0; |
| 42 | + font-size: clamp(2rem, 5vw, 4rem); |
| 43 | + line-height: 0.95; |
| 44 | +} |
| 45 | + |
| 46 | +.eyebrow { |
| 47 | + margin: 0 0 7px; |
| 48 | + color: var(--muted); |
| 49 | + font-size: 0.75rem; |
| 50 | + font-weight: 800; |
| 51 | + letter-spacing: 0.12em; |
| 52 | + text-transform: uppercase; |
| 53 | +} |
| 54 | + |
| 55 | +.actions, |
| 56 | +.controls { |
| 57 | + display: flex; |
| 58 | + gap: 8px; |
| 59 | + flex-wrap: wrap; |
| 60 | +} |
| 61 | + |
| 62 | +button, |
| 63 | +.file-button { |
| 64 | + min-height: 40px; |
| 65 | + padding: 0 14px; |
| 66 | + border: 1px solid var(--line); |
| 67 | + border-radius: 8px; |
| 68 | + background: var(--surface); |
| 69 | + color: var(--ink); |
| 70 | + font: inherit; |
| 71 | + font-weight: 700; |
| 72 | + cursor: pointer; |
| 73 | +} |
| 74 | + |
| 75 | +button:hover, |
| 76 | +.file-button:hover { |
| 77 | + border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); |
| 78 | +} |
| 79 | + |
| 80 | +.file-button input { |
| 81 | + position: absolute; |
| 82 | + inline-size: 1px; |
| 83 | + block-size: 1px; |
| 84 | + opacity: 0; |
| 85 | + pointer-events: none; |
| 86 | +} |
| 87 | + |
| 88 | +.workspace { |
| 89 | + display: grid; |
| 90 | + grid-template-columns: minmax(0, 1fr) 310px; |
| 91 | + gap: 18px; |
| 92 | + align-items: start; |
| 93 | +} |
| 94 | + |
| 95 | +.board-wrap, |
| 96 | +.panel { |
| 97 | + border: 1px solid var(--line); |
| 98 | + border-radius: 8px; |
| 99 | + background: color-mix(in srgb, var(--surface) 94%, transparent); |
| 100 | + box-shadow: 0 18px 40px -32px rgba(33, 31, 26, 0.45); |
| 101 | +} |
| 102 | + |
| 103 | +.board-wrap { |
| 104 | + aspect-ratio: 1 / 1; |
| 105 | + min-height: 360px; |
| 106 | + padding: 14px; |
| 107 | +} |
| 108 | + |
| 109 | +#board { |
| 110 | + display: block; |
| 111 | + width: 100%; |
| 112 | + height: 100%; |
| 113 | +} |
| 114 | + |
| 115 | +.panel { |
| 116 | + display: grid; |
| 117 | + gap: 16px; |
| 118 | + padding: 16px; |
| 119 | +} |
| 120 | + |
| 121 | +.meta { |
| 122 | + display: grid; |
| 123 | + gap: 10px; |
| 124 | + margin: 0; |
| 125 | +} |
| 126 | + |
| 127 | +.meta div { |
| 128 | + padding-bottom: 10px; |
| 129 | + border-bottom: 1px solid var(--line); |
| 130 | +} |
| 131 | + |
| 132 | +dt { |
| 133 | + color: var(--muted); |
| 134 | + font-size: 0.72rem; |
| 135 | + font-weight: 800; |
| 136 | + letter-spacing: 0.08em; |
| 137 | + text-transform: uppercase; |
| 138 | +} |
| 139 | + |
| 140 | +dd { |
| 141 | + margin: 3px 0 0; |
| 142 | + font-weight: 700; |
| 143 | +} |
| 144 | + |
| 145 | +.slider-label { |
| 146 | + display: flex; |
| 147 | + justify-content: space-between; |
| 148 | + color: var(--muted); |
| 149 | + font-size: 0.85rem; |
| 150 | + font-weight: 700; |
| 151 | +} |
| 152 | + |
| 153 | +input[type="range"] { |
| 154 | + width: 100%; |
| 155 | + accent-color: var(--ink); |
| 156 | +} |
| 157 | + |
| 158 | +.move-card { |
| 159 | + min-height: 86px; |
| 160 | + padding: 12px; |
| 161 | + border: 1px solid var(--line); |
| 162 | + border-radius: 8px; |
| 163 | + background: #fff8ea; |
| 164 | +} |
| 165 | + |
| 166 | +.move-card p:last-child { |
| 167 | + margin: 0; |
| 168 | + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; |
| 169 | + font-size: 0.95rem; |
| 170 | + line-height: 1.35; |
| 171 | +} |
| 172 | + |
| 173 | +.hole { |
| 174 | + fill: #ece2d2; |
| 175 | + stroke: #c8bcaa; |
| 176 | + stroke-width: 0.7; |
| 177 | +} |
| 178 | + |
| 179 | +.piece-0 { |
| 180 | + fill: var(--red); |
| 181 | + stroke: #7f2d23; |
| 182 | + stroke-width: 1.1; |
| 183 | +} |
| 184 | + |
| 185 | +.piece-1 { |
| 186 | + fill: var(--blue); |
| 187 | + stroke: #1e425c; |
| 188 | + stroke-width: 1.1; |
| 189 | +} |
| 190 | + |
| 191 | +.last-from { |
| 192 | + fill: color-mix(in srgb, var(--gold) 28%, #ece2d2); |
| 193 | +} |
| 194 | + |
| 195 | +.last-to { |
| 196 | + stroke: var(--gold); |
| 197 | + stroke-width: 2.4; |
| 198 | +} |
| 199 | + |
| 200 | +.move-path { |
| 201 | + fill: none; |
| 202 | + stroke: var(--gold); |
| 203 | + stroke-width: 2.2; |
| 204 | + stroke-linecap: round; |
| 205 | + stroke-linejoin: round; |
| 206 | +} |
| 207 | + |
| 208 | +@media (max-width: 820px) { |
| 209 | + .app { |
| 210 | + width: min(100vw - 20px, 680px); |
| 211 | + padding-top: 18px; |
| 212 | + } |
| 213 | + |
| 214 | + header, |
| 215 | + .workspace { |
| 216 | + grid-template-columns: 1fr; |
| 217 | + } |
| 218 | + |
| 219 | + header { |
| 220 | + align-items: start; |
| 221 | + } |
| 222 | + |
| 223 | + .board-wrap { |
| 224 | + min-height: 300px; |
| 225 | + } |
| 226 | +} |
0 commit comments