Spaces:
Sleeping
Sleeping
File size: 4,394 Bytes
62a142e 871ff87 62a142e 871ff87 62a142e 871ff87 b8cd5c3 083fb75 b8cd5c3 083fb75 b8cd5c3 000a5ee | 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 | :root,
:root[data-theme="dark"] {
--bg: #111;
--fg: #eee;
--muted: #888;
--accent: #4aa3ff;
--card: #1c1c1c;
--border: #2a2a2a;
}
:root[data-theme="light"] {
--bg: #f6f6f7;
--fg: #1a1a1c;
--muted: #666;
--accent: #1e6fe0;
--card: #ffffff;
--border: #dcdee0;
}
html { color-scheme: light dark; }
* { box-sizing: border-box; }
body {
margin: 0;
padding: 0;
background: var(--bg);
color: var(--fg);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
line-height: 1.4;
}
main {
max-width: 900px;
margin: 0 auto;
padding: 16px;
}
header {
display: flex;
align-items: baseline;
justify-content: space-between;
border-bottom: 1px solid var(--border);
padding-bottom: 8px;
}
header h1 { font-size: 1.2rem; margin: 0; }
#progress { color: var(--muted); font-size: 0.9rem; }
#theme-toggle {
background: transparent;
border: 1px solid var(--border);
color: var(--fg);
width: 32px;
height: 32px;
border-radius: 50%;
cursor: pointer;
font-size: 16px;
line-height: 1;
margin-left: 12px;
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.15s;
}
#theme-toggle:hover { background: var(--card); }
header > .right {
display: flex;
align-items: center;
}
#instructions p {
color: var(--muted);
font-size: 0.9rem;
margin: 12px 0;
}
figure {
margin: 0;
text-align: center;
}
#stimulus {
max-width: 100%;
max-height: 60vh;
border-radius: 8px;
border: 1px solid var(--border);
}
#base-prompt {
color: var(--fg);
font-size: 1.05rem;
margin: 12px auto 0;
font-style: italic;
padding: 8px 14px;
background: var(--card);
border: 1px solid var(--border);
border-radius: 6px;
display: block;
width: fit-content;
max-width: 90%;
text-align: center;
}
#options {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
margin: 16px 0;
}
@media (max-width: 600px) {
#options { grid-template-columns: 1fr; }
}
.option {
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px;
background: var(--card);
border: 2px solid var(--border);
border-radius: 8px;
cursor: pointer;
position: relative;
}
.option:has(input:checked) {
border-color: var(--accent);
}
.option input[type=radio] {
position: absolute;
opacity: 0;
pointer-events: none;
}
.badge {
display: inline-block;
width: 24px;
height: 24px;
line-height: 24px;
text-align: center;
border-radius: 12px;
background: var(--border);
font-weight: bold;
color: var(--fg);
font-size: 0.8rem;
}
.profile { list-style: none; margin: 0; padding: 0; }
.profile li { font-size: 0.9rem; padding: 2px 0; }
.axis { color: var(--muted); text-transform: capitalize; }
.value { color: var(--fg); }
footer {
display: flex;
align-items: center;
gap: 16px;
margin-top: 16px;
}
button#submit {
background: var(--accent);
color: #fff;
border: 0;
padding: 10px 20px;
border-radius: 6px;
font-size: 1rem;
cursor: pointer;
}
button#submit:disabled {
background: var(--border);
color: var(--muted);
cursor: not-allowed;
}
#error { color: #e66; font-size: 0.9rem; }
.done { text-align: center; font-size: 1.1rem; color: var(--fg); margin: 24px 0 12px; line-height: 1.5; }
.done.fail { color: #d33; }
:root[data-theme="light"] .done.fail { color: #c1272d; }
#card button {
display: block;
margin: 12px auto 0;
background: transparent;
color: var(--accent);
border: 1px solid var(--accent);
padding: 8px 16px;
border-radius: 6px;
font-size: 0.95rem;
cursor: pointer;
}
#card button:hover { background: var(--card); }
#email-form {
display: flex;
gap: 8px;
justify-content: center;
margin: 12px auto;
max-width: 420px;
}
#email-form input[type=email] {
flex: 1;
padding: 8px 12px;
font-size: 1rem;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--card);
color: var(--fg);
}
#email-form button {
background: var(--accent);
color: #fff;
border: 0;
padding: 8px 16px;
margin: 0;
}
.announcement {
margin: 28px auto 0;
padding: 12px 16px;
max-width: 520px;
font-size: 0.85rem;
color: var(--muted);
text-align: center;
border-top: 1px dashed var(--border);
line-height: 1.5;
}
.muted-info {
text-align: center;
color: var(--muted);
font-size: 0.9rem;
margin: 8px auto;
}
|