/* /timer, in the dashboard's clothes: the same tokens as .v2 (app/v2.css), dark only, hairline
   borders, PAPO lime for the one thing that matters, mono numerals. */
:root {
  --bg: #0e1012; --surface: #16181c; --surface-2: #1c1f24; --line: #24272d; --line-soft: #1d2025;
  --ink: #e9ecef; --ink-2: #9aa1ab; --ink-3: #6b727c;
  --brand: #b6f200; --brand-ink: #0e1012; --brand-dim: #7d9e2b;
  --good: #19c37d; --warn: #ffb020; --danger: #ff5a47;
  --r-lg: 18px; --r-md: 14px; --r-sm: 10px;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.tm { max-width: 1120px; margin: 0 auto; padding: 18px 20px 48px; }

/* top bar */
.tm-top { display: flex; align-items: center; gap: 10px; padding: 4px 0 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tm-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.tm-brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; }
.tm-brand b { display: block; font-size: 13.5px; font-weight: 750; letter-spacing: -.01em; line-height: 1.15; }
.tm-brand span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--ink-3); margin-top: 2px; }
.tm-sp { flex: 1; }
.tm-chip, .tm-net { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.tm-net i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.tm-net span { font-family: var(--mono); color: var(--ink-3); }
.tm-chip.wallet { color: var(--brand); border-color: #3a4a12; }

.tm-wwrap { position: relative; }
.tm-wallet { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: 600 12.5px var(--sans); cursor: pointer; }
.tm-wallet .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.tm-wallet.on .dot { background: var(--brand); }
.tm-wallet:hover { border-color: #353a42; }
.tm-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 220px; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.tm-menu .head { padding: 8px 10px 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.tm-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink);
  font: 500 13px var(--sans); cursor: pointer; }
.tm-menu button:hover { background: var(--surface-2); }
.tm-menu button.out { color: var(--danger); }

.tm-alert { margin-top: 14px; padding: 12px 14px; border: 1px solid #4a3a12; background: #1d1a10; color: var(--warn); border-radius: var(--r-md); font-size: 13px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tm-alert button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--warn); background: none; color: var(--warn); font: 600 12px var(--sans); cursor: pointer; }

/* grid */
.tm-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-top: 18px; }
.tm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; min-width: 0; }
.tm-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--ink-3); }

/* the clock */
.tm-clock { display: flex; flex-direction: column; gap: 8px; }
.tm-prize { font-size: 15px; font-weight: 700; color: var(--brand); font-family: var(--mono); letter-spacing: .02em; margin-top: 2px; }
.tm-time { font-family: var(--mono); font-weight: 600; font-size: clamp(72px, 12vw, 132px); line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; margin: 10px 0 2px; color: var(--ink); }
.tm-time.hot { color: var(--brand); }
.tm-time.idle { color: var(--ink-3); }
.tm-state { font-size: 14px; color: var(--ink-2); min-height: 20px; }
.tm-state b { color: var(--ink); font-weight: 650; }
.tm-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 14px 0 6px; }
.tm-bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .25s linear; }
.tm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.tm-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: 650 13.5px var(--sans); text-decoration: none; }
.tm-btn:hover { border-color: #353a42; }
.tm-btn.go { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tm-btn.go:hover { filter: brightness(1.06); }

/* the last buyer */
.tm-lead { display: grid; grid-template-columns: 132px 1fr; gap: 16px; margin-top: 14px; align-items: start; }
.tm-art { position: relative; aspect-ratio: 1; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.tm-art img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.tm-art span { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 999px; background: rgba(14,16,18,.82); font-family: var(--mono); font-size: 11px; color: var(--ink); }
.tm-addr { font-family: var(--mono); font-size: 18px; font-weight: 600; word-break: break-all; }
.tm-addr a { text-decoration: none; border-bottom: 1px solid var(--line); }
.tm-you { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 11.5px; font-weight: 700; }
.tm-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: 13px; }
.tm-kv dt { color: var(--ink-3); }
.tm-kv dd { margin: 0; font-family: var(--mono); color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-kv a { text-decoration: none; color: var(--ink-2); }
.tm-kv a:hover { color: var(--ink); }

/* rules and feed */
.tm-rules ol { margin: 14px 0 0; padding: 0 0 0 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.tm-rules ol b { color: var(--ink); font-weight: 650; }
.tm-fine { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.tm-feed ul { list-style: none; margin: 12px 0 0; padding: 0; }
.tm-feed li { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.tm-feed li:last-child { border-bottom: 0; }
.tm-feed .t { font-family: var(--mono); color: var(--ink-3); font-size: 12px; }
.tm-feed .w { font-family: var(--mono); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-feed .p { font-family: var(--mono); color: var(--ink-2); }
.tm-feed li.lead .w { color: var(--brand); }
.tm-feed li.win { background: rgba(182,242,0,.06); border-radius: var(--r-sm); padding-left: 8px; padding-right: 8px; }
.tm-feed li.win .w { color: var(--brand); }
.tm-feed .tm-empty { display: block; color: var(--ink-3); border: 0; }

/* the shared wallet picker (from /arc/wallet.js), in these colours */
body .arcw { background: rgba(8,9,11,.82); }
body .arcw-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0,0,0,.55); color: var(--ink); font-family: var(--sans); }
body .arcw-box h3 { font-family: var(--sans); font-size: 16px; text-transform: none; letter-spacing: 0; }
body .arcw-box p { color: var(--ink-2); }
body .arcw-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); font-family: var(--sans); }
body .arcw-item:hover { border-color: var(--brand); }
body .arcw-item span { color: var(--brand); font-family: var(--mono); }
body .arcw-close { background: var(--surface-2); color: var(--ink); border-radius: 999px; box-shadow: none; font-family: var(--sans); text-transform: none; }

@media (max-width: 860px) {
  .tm-body { grid-template-columns: 1fr; }
  .tm-net { display: none; }
}
@media (max-width: 520px) {
  .tm { padding: 14px 14px 40px; }
  .tm-chip { display: none; }
  .tm-lead { grid-template-columns: 96px 1fr; }
  .tm-addr { font-size: 15px; }
  .tm-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .tm-bar i { transition: none; } }
