clank-together/src/server/web/style.css
Saty 787c5a3ca6 Agent stats for their owners, a daily reset, Account in the navigation
- /api/me/quality (td_quality for agents, the Account page for people):
  level and why, submitted, merged, sent back by peers, what broke by kind,
  the latest sent-back functions with reviewer reasons, the day before.
- A limited or paused owner may reset once per 24 hours: only work after
  the reset counts, so the same bad work limits the account again. Not for
  accounts a maintainer paused.
- Account is a navigation item (with a dot while the agents are limited)
  instead of the user name badge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 05:41:11 +02:00

749 lines
34 KiB
CSS

/* Clank Together: machine-shop theme. Riveted steel plates, hazard trim, gears. */
:root {
--bg: #121417;
--bg-dots: rgba(255, 255, 255, 0.035);
--bar-hi: #2c3137;
--bar-lo: #1b1e22;
--plate-hi: #262a30;
--plate-lo: #1e2126;
--plate-edge: #343a42;
--rivet: #59616b;
--rivet-hi: #8a939e;
--well: #121418;
--fg: #e4e6e9;
--muted: #9aa1aa;
--line: #343a42;
--accent: #f5b301;
--accent-ink: #f5b301;
--accent-text-on: #15130d;
--steel: #8d96a1;
--danger: #ff6b5e;
--ok: #6fd28a;
--warn: #f5b301;
--code-bg: #15181c;
--font-display: Bahnschrift, "DIN Alternate", "DIN Condensed", Oswald, "Arial Narrow", system-ui, sans-serif;
--font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: light) {
:root {
--bg: #e6e8eb;
--bg-dots: rgba(0, 0, 0, 0.05);
--bar-hi: #3a4048;
--bar-lo: #262a30;
--plate-hi: #fbfbfc;
--plate-lo: #eef0f2;
--plate-edge: #c9ced4;
--rivet: #b7bdc4;
--rivet-hi: #e9ecef;
--well: #ffffff;
--fg: #1b1e22;
--muted: #5d6570;
--line: #d3d8dd;
--accent-ink: #9a6b00;
--danger: #c0352b;
--ok: #1f8a43;
--warn: #9a6b00;
--code-bg: #f3f4f6;
}
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
margin: 0;
color: var(--fg);
font: 15px/1.55 var(--font-body);
background-color: var(--bg);
background-image: radial-gradient(circle at 1px 1px, var(--bg-dots) 1px, transparent 0);
background-size: 14px 14px;
min-height: 100vh;
display: flex;
flex-direction: column;
}
code, pre, .mono { font-family: var(--font-mono); font-size: 0.92em; }
a { color: var(--accent-ink); }
/* --- top bar */
.topbar {
background: linear-gradient(180deg, var(--bar-hi), var(--bar-lo));
color: #eef0f2;
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.topbar-inner {
max-width: 1440px;
margin: 0 auto;
padding: 10px 16px;
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.wordmark {
font-family: var(--font-display);
font-stretch: condensed;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
font-size: 24px;
line-height: 1;
}
.wordmark .w2 { color: var(--accent); margin-left: 0.35em; }
.gears { width: 56px; height: 40px; overflow: visible; }
.gear { transform-box: fill-box; transform-origin: center; }
.gear .teeth { fill: none; stroke-width: 5; }
.gear-a .teeth { stroke: var(--accent); stroke-dasharray: 3.9 3.954; }
.gear-a .body { fill: var(--accent); }
.gear-b .teeth { stroke: var(--steel); stroke-dasharray: 3.9 3.954; }
.gear-b .body { fill: var(--steel); }
.gear .hole { fill: var(--bar-lo); }
.gear-a { animation: spin 18s linear infinite; }
.gear-b { animation: spin-back 12s linear infinite; }
.brand:hover .gear-a { animation-duration: 3s; }
.brand:hover .gear-b { animation-duration: 2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-back { from { transform: rotate(22.5deg); } to { transform: rotate(-337.5deg); } }
.hazard {
height: 8px;
background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, #15130d 12px 24px);
}
.hazard.thin { height: 5px; }
.toplink {
margin-left: auto;
color: #eef0f2;
font: 600 14px var(--font-display);
font-stretch: condensed;
text-transform: uppercase;
letter-spacing: 0.1em;
text-decoration: none;
padding: 6px 10px;
border-bottom: 2px solid transparent;
}
.toplink:hover { border-bottom-color: var(--accent); }
nav { display: flex; gap: 10px; align-items: center; }
.badge {
font-family: var(--font-mono);
font-size: 13px;
padding: 3px 8px;
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 3px;
background: rgba(0, 0, 0, 0.25);
}
/* --- layout */
main { width: 100%; max-width: 1440px; margin: 0 auto; padding: 8px 16px 48px; flex: 1; }
section { margin-top: 20px; }
.hero { margin: 28px 0 8px; }
.kicker {
margin: 0 0 6px;
font-family: var(--font-mono);
font-size: 13px;
color: var(--accent-ink);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.hero h1 {
margin: 0;
font-family: var(--font-display);
font-stretch: condensed;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.03em;
font-size: clamp(30px, 6vw, 52px);
line-height: 1.02;
}
.lede { max-width: 62ch; color: var(--muted); font-size: 16px; }
/* Riveted steel plate: rivets are radial gradients in the four corners. */
.plate {
position: relative;
padding: 22px 26px;
border: 1px solid var(--plate-edge);
border-radius: 4px;
background:
radial-gradient(circle at 11px 11px, var(--rivet-hi) 0 1px, var(--rivet) 1.6px 3px, transparent 3.6px),
radial-gradient(circle at calc(100% - 11px) 11px, var(--rivet-hi) 0 1px, var(--rivet) 1.6px 3px, transparent 3.6px),
radial-gradient(circle at 11px calc(100% - 11px), var(--rivet-hi) 0 1px, var(--rivet) 1.6px 3px, transparent 3.6px),
radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), var(--rivet-hi) 0 1px, var(--rivet) 1.6px 3px, transparent 3.6px),
linear-gradient(180deg, var(--plate-hi), var(--plate-lo));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 0 rgba(0, 0, 0, 0.25);
}
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cols .plate { display: flex; flex-direction: column; gap: 10px; }
h2, h3 {
font-family: var(--font-display);
font-stretch: condensed;
text-transform: uppercase;
letter-spacing: 0.1em;
}
h2 {
margin: 0 0 14px;
font-size: 19px;
font-weight: 700;
display: flex;
align-items: center;
gap: 10px;
}
h2::before { content: ""; width: 6px; height: 18px; background: var(--accent); border-radius: 1px; flex: none; }
h3 { margin: 22px 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.muted { color: var(--muted); }
.hint { font: 12px var(--font-mono); color: var(--muted); text-transform: none; letter-spacing: 0; }
.msg { min-height: 1.4em; margin: 6px 0 0; white-space: pre-wrap; color: var(--accent-ink); }
.warn { color: var(--warn); }
/* --- progress gauge */
.gauge { display: grid; grid-template-columns: auto 1fr; gap: 18px 24px; align-items: center; }
.readout {
font-family: var(--font-mono);
font-variant-numeric: tabular-nums;
font-size: 34px;
line-height: 1;
padding: 12px 16px;
background: #0b0c0e;
color: var(--accent);
border: 1px solid #000;
border-radius: 3px;
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
text-shadow: 0 0 8px rgba(245, 179, 1, 0.45);
}
.meter {
height: 22px;
background: var(--well);
border: 1px solid var(--plate-edge);
border-radius: 3px;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
overflow: hidden;
}
.meter .fill {
height: 100%;
width: 0;
min-width: 2px;
background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, #d99a00 10px 20px);
background-size: 28.28px 28.28px;
animation: belt 1.6s linear infinite;
transition: width 0.8s ease-out;
}
@keyframes belt { to { background-position: 28.28px 0; } }
.gauge-caption { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; margin-top: 8px; }
/* --- steps */
/* "Join the crew" is a collapsible plate; the summary looks like the other plate headings. */
details.steps-plate > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; }
details.steps-plate > summary::-webkit-details-marker { display: none; }
details.steps-plate > summary h2 { margin: 0; }
details.steps-plate > summary::after {
content: "";
margin-left: auto;
width: 9px;
height: 9px;
border-right: 2px solid var(--accent);
border-bottom: 2px solid var(--accent);
transform: rotate(45deg);
transition: transform 0.15s;
}
details.steps-plate[open] > summary::after { transform: rotate(-135deg); }
details.steps-plate[open] > summary { margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px dashed var(--line); }
.steps li:first-child { border-top: none; padding-top: 0; }
.steps li > div { min-width: 0; flex: 1; }
.steps p { margin: 2px 0 6px; color: var(--muted); font-size: 14px; }
.steps code.cmd {
display: block;
margin: 4px 0;
padding: 6px 10px;
background: var(--code-bg);
border: 1px solid var(--line);
border-radius: 3px;
font-size: 13px;
overflow-x: auto;
white-space: nowrap;
}
.bolt {
flex: none;
width: 30px;
height: 30px;
display: grid;
place-items: center;
font: 700 15px var(--font-display);
color: var(--accent-text-on);
background: radial-gradient(circle at 35% 30%, #ffe08a, var(--accent) 55%, #b98500);
clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}
/* --- controls */
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
input, textarea, select {
font: 15px var(--font-body);
color: var(--fg);
background: var(--well);
border: 1px solid var(--plate-edge);
border-radius: 3px;
padding: 8px 10px;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
select { padding: 4px 6px; font-size: 14px; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 1px;
}
textarea { width: 100%; font-family: var(--font-body); }
button {
font: 600 14px var(--font-display);
font-stretch: condensed;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--fg);
background: linear-gradient(180deg, var(--plate-hi), var(--plate-lo));
border: 1px solid var(--plate-edge);
border-radius: 3px;
padding: 8px 14px;
cursor: pointer;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 0 rgba(0, 0, 0, 0.35);
transition: transform 0.05s, box-shadow 0.05s, filter 0.1s;
}
button:hover { filter: brightness(1.12); }
button:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 rgba(0, 0, 0, 0.35); }
button:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
button.primary { color: var(--accent-text-on); background: linear-gradient(180deg, #ffc93a, var(--accent)); border-color: #b98500; }
button.danger { color: #fff; background: linear-gradient(180deg, #e2554a, #b8352c); border-color: #8f251e; }
button.ghost { color: #eef0f2; background: transparent; border-color: rgba(255, 255, 255, 0.25); box-shadow: none; }
.cols .plate button { align-self: flex-start; }
form.inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
form.inline input { flex: 1 1 200px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.secret {
margin: 10px 0;
padding: 10px 14px;
border: 3px solid transparent;
border-radius: 4px;
background:
linear-gradient(var(--well), var(--well)) padding-box,
repeating-linear-gradient(-45deg, var(--accent) 0 8px, #15130d 8px 16px) border-box;
}
.secret p { margin: 0 0 6px; }
.secret code { display: block; word-break: break-all; font-size: 14px; color: var(--accent-ink); }
/* --- tables and code */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 14px; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
th {
font: 600 12px var(--font-display);
font-stretch: condensed;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--muted);
border-bottom: 1px solid var(--plate-edge);
}
td button + button { margin-left: 6px; }
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.status { font: 12px var(--font-mono); padding: 2px 6px; border-radius: 3px; border: 1px solid var(--line); }
.status.active, .status.exact { color: var(--ok); border-color: currentColor; }
.status.pending { color: var(--warn); border-color: currentColor; }
.status.revoked { color: var(--danger); border-color: currentColor; }
pre { white-space: pre-wrap; word-break: break-word; }
pre.code, pre.notes {
background: var(--code-bg);
border: 1px solid var(--line);
border-radius: 3px;
padding: 12px;
overflow-x: auto;
font: 13px/1.45 var(--font-mono);
}
pre.code { white-space: pre; }
details { margin: 6px 0; }
summary { cursor: pointer; font-family: var(--font-mono); font-size: 14px; }
footer { color: var(--muted); font-size: 13px; }
footer p { max-width: 1440px; margin: 0 auto; padding: 14px 16px 24px; }
footer code { word-break: break-all; }
@media (max-width: 560px) {
.plate { padding: 18px 16px; }
.gauge { grid-template-columns: 1fr; }
.wordmark { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
.gear-a, .gear-b, .meter .fill { animation: none; }
.meter .fill { transition: none; }
}
.batch-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 4px; }
.batch-head button { margin-left: auto; }
/* Current target: a stamped steel label under the headline. */
.target {
display: inline-flex;
flex-wrap: wrap;
align-items: center;
gap: 6px 14px;
margin: 16px 0 4px;
padding: 10px 16px;
border: 1px solid var(--plate-edge);
border-left: 6px solid var(--accent);
border-radius: 3px;
background: linear-gradient(180deg, var(--plate-hi), var(--plate-lo));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 0 rgba(0, 0, 0, 0.25);
}
.target-label {
font: 600 12px var(--font-display);
font-stretch: condensed;
text-transform: uppercase;
letter-spacing: 0.14em;
color: var(--muted);
}
.target-name {
font: 700 20px var(--font-display);
font-stretch: condensed;
letter-spacing: 0.03em;
}
.target-meta { font: 12px var(--font-mono); color: var(--muted); }
/* --- getting started guide */
.cta {
display: inline-block;
margin-top: 6px;
padding: 9px 16px;
font: 700 15px var(--font-display);
letter-spacing: 0.05em;
text-transform: uppercase;
text-decoration: none;
color: var(--accent-text-on);
background: linear-gradient(180deg, #ffd25c, var(--accent));
border: 1px solid #b98500;
border-radius: 3px;
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}
.cta:hover { filter: brightness(1.06); }
.explainer { margin-bottom: 14px; padding: 12px 14px; background: var(--well); border: 1px solid var(--line); border-radius: 3px; }
.explainer p { margin: 0 0 8px; font-size: 15px; }
.explainer p:last-child { margin-bottom: 0; color: var(--muted); }
.cmd-row { display: flex; gap: 6px; align-items: stretch; margin: 4px 0; }
.cmd-row code.cmd { flex: 1; min-width: 0; margin: 0; }
.cmd-row button.copy { flex: none; padding: 4px 10px; font-size: 12px; }
code.cmd.prompt { white-space: normal; line-height: 1.45; }
.faq dt { margin-top: 12px; font-weight: 700; }
.faq dd { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
/* --- claimed work in the crew table */
details.claimed { margin: 0; }
details.claimed summary { font: inherit; }
details.claimed ul { margin: 4px 0; padding-left: 18px; font: 12px var(--font-mono); color: var(--muted); }
/* --- attempt page: side by side comparison */
.compare { margin: 14px 0; }
.compare-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); }
.compare-tabs .tab { border-radius: 3px 3px 0 0; opacity: 0.75; }
.compare-tabs .tab.active { opacity: 1; background: var(--accent); color: var(--accent-text-on); }
.panes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pane { min-width: 0; display: flex; flex-direction: column; }
.pane-title { font: 600 12px var(--font-mono); color: var(--muted); margin-bottom: 4px; }
.pane pre.code { flex: 1; margin: 0; max-height: 70vh; overflow: auto; font-size: 12px; line-height: 1.45; }
.asm-diff { margin-top: 10px; }
.asm-body { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 3px; background: var(--code-bg); }
.asm-row { display: grid; grid-template-columns: 1fr 1fr; font: 12px/1.55 var(--font-mono); }
.asm-row > div { padding: 0 8px; white-space: pre; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.asm-row > div + div { border-left: 1px solid var(--line); }
.asm-head { position: sticky; top: 0; font-weight: 700; color: var(--muted); background: var(--code-bg); border-bottom: 1px solid var(--line); }
.asm-off { color: var(--muted); margin-right: 8px; }
.asm-row.differs { background: color-mix(in srgb, var(--danger) 24%, transparent); }
.asm-row.gap { background: color-mix(in srgb, var(--warn) 18%, transparent); }
.asm-row.operands > div { color: color-mix(in srgb, var(--fg) 80%, var(--warn)); }
.asm-label > div { color: var(--accent-ink); font-weight: 700; }
details.fold { margin: 6px 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px; }
details.fold > summary { font: 600 14px var(--font-body); }
details.fold[open] > summary { margin-bottom: 6px; }
@media (max-width: 800px) {
.panes, .asm-row { grid-template-columns: 1fr; }
.asm-row > div + div { border-left: none; }
}
/* --- public crew views */
.live-dot { display: inline-block; width: 9px; height: 9px; margin-left: 8px; border-radius: 50%; background: var(--ok); vertical-align: middle; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
#active-body td div { font-family: var(--font-mono); font-size: 13px; }
/* --- info marks with a tooltip (hover, keyboard focus or tap) */
.info {
position: relative;
display: inline-grid;
place-items: center;
width: 15px;
height: 15px;
border-radius: 50%;
border: 1px solid var(--muted);
color: var(--muted);
font: italic 700 10px/1 Georgia, serif;
cursor: help;
vertical-align: 1px;
}
.info:hover, .info:focus { color: var(--accent); border-color: var(--accent); outline: none; }
.info::after {
content: attr(data-tip);
position: absolute;
left: -6px;
bottom: calc(100% + 6px);
width: max-content;
max-width: min(280px, 80vw);
padding: 6px 9px;
border: 1px solid var(--line);
border-radius: 3px;
background: var(--bg);
color: var(--fg);
font: 13px/1.4 var(--font-body);
font-style: normal;
text-align: left;
white-space: normal;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
opacity: 0;
pointer-events: none;
transition: opacity 0.12s;
z-index: 10;
}
.info:hover::after, .info:focus::after { opacity: 1; }
/* --- progress: both measures */
.gauge-counts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 2px 0; font: 14px var(--font-mono); }
/* --- progress bars: done = byte-identical (stripes) + peer-confirmed (solid) */
.progress-bars { display: flex; flex-direction: column; gap: 16px; }
.pbar { display: grid; grid-template-columns: 9.5em 1fr; gap: 6px 18px; align-items: center; }
.pbar .readout { font-size: 26px; text-align: right; }
.pbar-body { min-width: 0; }
.pbar-label { font: 600 14px var(--font-body); margin-bottom: 5px; }
.pbar-detail { font: 12px var(--font-mono); color: var(--muted); margin-top: 4px; }
.meter { display: flex; }
.meter .fill.confirmed { background: #3b8fd4; animation: none; min-width: 0; border-left: 1px solid rgba(0, 0, 0, 0.35); }
.meter .fill.identical { min-width: 0; }
.pbar-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.swatch::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.swatch.identical::before { background: repeating-linear-gradient(-45deg, var(--accent) 0 4px, #d99a00 4px 8px); }
.swatch.confirmed::before { background: #3b8fd4; }
@media (max-width: 600px) { .pbar { grid-template-columns: 1fr; } .pbar .readout { text-align: left; } }
.merge-rate { font-size: 14px; }
.merge-rate-n { font: 700 18px var(--font-mono); color: var(--accent-ink); }
/* ===================================================================== */
/* Views, navigation, home grid, map, feed, review, arcade, admin */
/* ===================================================================== */
:root {
--st-d: #f5b301; /* byte-identical */
--st-c: #3b8fd4; /* peer-confirmed */
--st-s: #5b6470; /* needs no decompilation */
--st-f: #b46cf0; /* on its way to main */
--st-l: #3fbf8f; /* claimed */
--st-b: #e2554a; /* sent back */
--st-o: #2a2f36; /* open */
}
@media (prefers-color-scheme: light) { :root { --st-o: #d9dde2; --st-s: #9aa1aa; } }
.view { animation: view-in 0.25s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
/* Top bar: brand, navigation, the user's box. */
.mainnav { display: flex; flex-wrap: wrap; gap: 2px; margin-right: auto; margin-left: 18px; }
.mainnav a, .ghost-link {
color: #eef0f2;
font: 600 14px var(--font-display);
font-stretch: condensed;
text-transform: uppercase;
letter-spacing: 0.1em;
text-decoration: none;
padding: 6px 10px;
border-bottom: 2px solid transparent;
}
.mainnav a:hover, .ghost-link:hover { border-bottom-color: var(--steel); }
.mainnav a.active { border-bottom-color: var(--accent); color: var(--accent); }
.userbox { display: flex; gap: 10px; align-items: center; }
.userbox .badge { color: #eef0f2; text-decoration: none; }
.credits-badge {
display: inline-flex; align-items: center; gap: 6px;
font: 700 14px var(--font-mono); color: var(--accent); text-decoration: none;
padding: 3px 9px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(245, 179, 1, 0.35);
}
.credits-badge.bump { animation: bump 0.6s ease-out; }
@keyframes bump { 30% { transform: scale(1.25); box-shadow: 0 0 14px rgba(245, 179, 1, 0.7); } }
.coin { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9a8, var(--accent) 55%, #a87400); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3); }
/* Home */
.hero.wide { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-tile { padding: 14px 16px; border: 1px solid var(--plate-edge); border-radius: 4px; background: linear-gradient(180deg, var(--plate-hi), var(--plate-lo)); }
.stat-tile .n { font: 700 30px/1.1 var(--font-mono); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.stat-tile .l { font: 600 12px var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.stat-tile.tick .n { animation: tick 0.7s ease-out; }
@keyframes tick { 40% { color: var(--ok); text-shadow: 0 0 10px var(--ok); } }
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-grid > .plate { margin-top: 20px; }
.span-2 { grid-column: span 2; }
.plate-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.plate-head h2 { margin: 0; }
details.fold-plate > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; }
details.fold-plate > summary::-webkit-details-marker { display: none; }
details.fold-plate > summary h2 { margin: 0; }
details.fold-plate[open] > summary { margin-bottom: 12px; }
@media (max-width: 1000px) {
.hero.wide { grid-template-columns: 1fr; }
.home-grid { grid-template-columns: 1fr; }
.span-2 { grid-column: auto; }
}
/* Live feed */
.feed-plate { display: flex; flex-direction: column; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.feed li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; padding: 6px 8px; border-radius: 3px; background: var(--well); border: 1px solid var(--line); font-size: 13px; }
.feed li.new { animation: slide-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes slide-in { from { opacity: 0; transform: translateX(30px) scale(0.96); } }
.feed .ico { font-size: 16px; line-height: 1.2; text-align: center; }
.feed .when { font: 11px var(--font-mono); color: var(--muted); white-space: nowrap; }
.feed .who { font-weight: 700; }
.feed li.merged { border-color: color-mix(in srgb, var(--st-d) 55%, var(--line)); }
.feed li.game_win { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--well)); }
/* Map: one square per function */
.map-wrap { position: relative; margin-top: 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--well); overflow: hidden; }
#map-canvas { display: block; width: 100%; image-rendering: pixelated; cursor: crosshair; }
.map-tip { position: absolute; pointer-events: none; z-index: 5; padding: 6px 9px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); font: 12px/1.4 var(--font-mono); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); max-width: 360px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; }
.map-legend .sw::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; background: var(--c); }
.map-legend .n { font-family: var(--font-mono); color: var(--muted); margin-left: 4px; }
.map-tools input { min-width: 260px; }
.map-detail { margin-top: 10px; padding: 10px 12px; background: var(--well); border: 1px solid var(--line); border-radius: 3px; font: 13px var(--font-mono); }
/* Small tab strips */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 10px; }
.tabs .tab { border-radius: 3px 3px 0 0; opacity: 0.75; }
.tabs .tab.active { opacity: 1; background: var(--accent); color: var(--accent-text-on); }
.tabs.small .tab { padding: 5px 10px; font-size: 12px; }
/* Toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; pointer-events: none; }
.toast { pointer-events: auto; max-width: 360px; padding: 10px 14px; border-radius: 4px; border: 1px solid var(--plate-edge); border-left: 5px solid var(--accent); background: linear-gradient(180deg, var(--plate-hi), var(--plate-lo)); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); animation: toast-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
.toast.out { animation: toast-out 0.3s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(0.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }
/* Confetti gears (merges, wins) */
.spark { position: fixed; z-index: 60; pointer-events: none; font-size: 18px; animation: spark 1.2s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
/* Review */
.review-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.review-layout > .plate { margin-top: 20px; }
.review-queue { position: sticky; top: 12px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; gap: 8px; }
.review-queue input[type=search] { width: 100%; }
.queue-list { overflow-y: auto; flex: 1; min-height: 120px; display: flex; flex-direction: column; gap: 10px; }
.qgroup { border: 1px solid var(--line); border-radius: 3px; background: var(--well); }
.qgroup > header { display: flex; justify-content: space-between; gap: 6px; padding: 6px 9px; font: 600 12px var(--font-mono); color: var(--muted); border-bottom: 1px dashed var(--line); }
.qitem { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; text-align: left; padding: 7px 9px; border: none; border-radius: 0; background: transparent; box-shadow: none; text-transform: none; letter-spacing: 0; font: 13px var(--font-body); color: var(--fg); }
.qitem + .qitem { border-top: 1px dashed var(--line); }
.qitem:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); filter: none; }
.qitem.active { background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: inset 4px 0 0 var(--accent); }
.qitem:active { transform: none; }
.qitem .qname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); }
.qitem .qsub { grid-column: 1 / -1; font: 11px var(--font-mono); color: var(--muted); }
.pips { display: inline-flex; gap: 2px; align-items: center; }
.pip { width: 8px; height: 8px; border-radius: 50%; background: var(--st-o); border: 1px solid var(--line); }
.pip.same { background: var(--ok); border-color: var(--ok); }
.pip.diff { background: var(--danger); border-color: var(--danger); }
.keys kbd { font: 11px var(--font-mono); padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; background: var(--well); }
.review-main { min-height: 60vh; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .big { font: 700 22px var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; }
.attempt-head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: flex-start; }
.attempt-head h2 { margin-bottom: 4px; }
.verdict-meter { display: grid; grid-template-columns: auto auto; gap: 4px 10px; align-items: center; font: 12px var(--font-mono); padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--well); }
.verdict-meter .pip { width: 12px; height: 12px; }
.decision { margin-top: 18px; padding-top: 6px; border-top: 2px solid var(--line); }
@media (max-width: 1000px) { .review-layout { grid-template-columns: 1fr; } .review-queue { position: static; max-height: 50vh; } }
/* Arcade */
.arcade-head { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: center; }
.arcade-head > .hint { grid-column: 1 / -1; margin: 0; }
.wallet { display: flex; gap: 14px; align-items: center; }
.wallet-coin { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff0bf, var(--accent) 50%, #9b6c00); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.3), 0 0 18px rgba(245, 179, 1, 0.35); animation: coin-wobble 4s ease-in-out infinite; }
@keyframes coin-wobble { 50% { transform: rotateY(40deg); } }
.wallet-label { font: 600 12px var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.wallet-n { font: 700 40px/1 var(--font-mono); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.earn { display: flex; flex-wrap: wrap; gap: 8px; }
.earn .chip { font: 12px var(--font-mono); padding: 4px 9px; border-radius: 12px; border: 1px solid var(--line); background: var(--well); }
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.games > .plate { margin-top: 20px; }
.game { display: flex; flex-direction: column; gap: 8px; }
.game .hint { margin: 0; }
.bet-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: auto; }
.bet-row label { flex-direction: row; align-items: center; gap: 6px; }
.bet { width: 90px; }
.game-msg { font-weight: 700; }
.game-msg.win { color: var(--ok); }
.game-msg.lose { color: var(--danger); }
.coin-stage, .dice-stage { display: grid; place-items: center; height: 130px; perspective: 600px; }
.big-coin { position: relative; width: 96px; height: 96px; transform-style: preserve-3d; transition: transform 1.2s cubic-bezier(0.3, 1.4, 0.4, 1); }
.big-coin .face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; font: 700 38px var(--font-display); color: #5a3e00; background: radial-gradient(circle at 35% 30%, #fff0bf, var(--accent) 55%, #9b6c00); backface-visibility: hidden; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25); }
.big-coin .tails { transform: rotateY(180deg); }
.die { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 14px; font: 700 34px var(--font-mono); background: linear-gradient(160deg, #fdfdfd, #cfd4da); color: #1b1e22; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.15), 0 6px 14px rgba(0, 0, 0, 0.4); }
.die.rolling { animation: shake 0.12s linear infinite; }
@keyframes shake { 25% { transform: rotate(-8deg) translate(-2px, 1px); } 75% { transform: rotate(8deg) translate(2px, -1px); } }
.slider { flex-direction: column; }
.slider input { width: 100%; padding: 0; }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 110px; }
.reel { display: grid; place-items: center; font-size: 46px; border-radius: 6px; background: var(--well); border: 2px solid var(--plate-edge); box-shadow: inset 0 6px 10px rgba(0, 0, 0, 0.4); overflow: hidden; }
.reel.spinning { animation: reel 0.09s linear infinite; }
@keyframes reel { 0% { transform: translateY(-14px); filter: blur(2px); } 100% { transform: translateY(14px); filter: blur(2px); } }
.reels.win .reel { border-color: var(--accent); box-shadow: 0 0 16px rgba(245, 179, 1, 0.6); }
.paytable { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 12px var(--font-mono); color: var(--muted); }
@media (max-width: 1000px) { .games { grid-template-columns: 1fr; } .arcade-head { grid-template-columns: 1fr; } }
/* Admin */
.role-chip { font: 11px var(--font-mono); padding: 1px 6px; border-radius: 3px; border: 1px solid var(--line); }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.row-actions button { padding: 4px 8px; font-size: 12px; }
.account-summary { display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: reduce) {
.view, .feed li.new, .toast, .wallet-coin, .reel.spinning, .die.rolling, .credits-badge.bump, .stat-tile.tick .n, .spark { animation: none; }
.big-coin { transition: none; }
}
/* Progress: the pace */
.rates { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.rate { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rate-n { font: 700 26px/1 var(--font-mono); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.rate-u { font: 600 13px var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; }
.rate-avg { font: 12px var(--font-mono); }
/* Account in the navigation: a dot while the agents are limited or paused */
.nav-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--warn); vertical-align: 2px; box-shadow: 0 0 6px var(--warn); }
.quality-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.my-quality .fold p { margin: 4px 0; }