/* Same brass-and-olive game-menu palette as the local app. Dark only, like the game. */
:root {
  color-scheme: dark;
  --bg: #090a06; --panel: #15160f; --well: #0b0c08;
  --frame: #6e5e30; --frame-lo: #2a2412; --line: #2e2f22; --line-hi: #44452f;
  --text: #e6e2ce; --muted: #9b977f; --gold: #e9c75c; --yellow: #ffe04d;
  --teal: #17626c; --teal-hi: #40b5c0; --red-hi: #c64a3a;
  --font: Tahoma, Verdana, "Segoe UI", sans-serif; --mono: Consolas, ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; padding: 12px 16px; color: var(--text); background: radial-gradient(ellipse at top, #1b1c12, var(--bg) 70%) fixed, var(--bg); font: 13px/1.4 var(--font); }
main { max-width: 760px; margin: auto; padding: 0 12px 10px; border: 2px solid var(--frame); border-radius: 6px; background: linear-gradient(#202219, #1a1c14 120px); box-shadow: 0 0 0 1px var(--frame-lo), 0 10px 34px #000c; }
header { display: grid; justify-items: center; gap: 6px; }
.title-plate { padding: 2px 24px; border: 1px solid #1d180a; border-top: 0; border-radius: 0 0 6px 6px; background: linear-gradient(#a98f4b, #6f5c2b 48%, #4a3d1b 52%, #5e4e25); color: #fff4cf; font: bold 11px var(--font); letter-spacing: .12em; text-shadow: 0 1px 2px #000; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; width: 100%; padding-bottom: 6px; border-bottom: 1px solid #a6a14a; }
h1 { margin: 0; color: var(--gold); font-size: 15px; }
.updated { flex: 1; color: var(--muted); font: 11px var(--mono); }
.switch { display: inline-flex; }
.switch.sources { flex-wrap: wrap; justify-content: center; max-width: 100%; margin-bottom: 2px; }
.switch button { border-color: var(--line-hi); background: var(--well); color: var(--muted); font-weight: normal; }
.switch button + button { border-left: 0; }
.switch button[aria-pressed="true"] { border-color: var(--teal-hi); background: linear-gradient(#22808b, var(--teal) 50%, #0f4a52); color: #fff; font-weight: bold; }
button { padding: 2px 10px; border: 1px solid var(--teal-hi); border-radius: 2px; background: linear-gradient(#22808b, var(--teal) 50%, #0f4a52); color: #fff; font: bold 11px var(--font); cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 1px solid var(--yellow); outline-offset: 1px; }
.message { margin: 8px 0 0; padding: 6px 8px; border: 1px solid #7a2a20; background: #2a0e0b; color: #f3b39f; }
.empty { padding: 24px 10px; color: var(--muted); text-align: center; }

.day { margin-top: 10px; border: 1px solid var(--line-hi); border-radius: 3px; background: var(--panel); }
.day-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; padding: 6px 8px 0; }
h2 { flex: 1 0 auto; margin: 0; color: var(--gold); font-size: 13px; }
.day-total { color: var(--yellow); font: 11px var(--mono); }
.sessions { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0; padding: 1px 8px 5px; border-bottom: 1px solid var(--line); color: var(--muted); font: 10px/1.6 var(--mono); }
.sessions .label { color: #6f6c58; }
.session { white-space: nowrap; }
.session .pc { margin-right: 5px; color: var(--gold); }
.badge { margin-left: 5px; padding: 0 5px; border: 1px solid #5a5b42; border-radius: 999px; color: var(--muted); font: 9px/14px var(--mono); vertical-align: 1px; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #ff3b30; vertical-align: 0; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .35; box-shadow: 0 0 0 0 #ff3b3000; } 50% { opacity: 1; box-shadow: 0 0 6px 2px #ff3b3088; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; box-shadow: 0 0 5px 1px #ff3b3088; } }
.badge[data-state="interrupted"], .badge[data-state="stale"] { border-color: var(--red-hi); color: #f3b39f; }
.badge[data-state="test"], .group.test .badge { border-color: #8a7a3a; color: var(--gold); }

.group + .group { border-top: 1px solid var(--line); }
.group summary { display: flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 8px; cursor: pointer; list-style: none; }
.group summary::-webkit-details-marker { display: none; }
.group summary::before { content: '▸'; width: 10px; color: var(--muted); font-size: 11px; }
.group[open] summary::before { content: '▾'; color: var(--gold); }
.group summary:hover { background: #1d1e15; }
.group .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group .count { color: var(--yellow); font: bold 13px var(--mono); }
.group.test .name, .unknown { color: var(--muted); font-style: italic; }
/* One line per drop: aligned time column, a name that never wraps, and the image link on the right. */
.drops { padding: 0 0 4px; background: var(--well); }
.drop { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 28px; padding: 0 8px 0 24px; color: var(--text); font-size: 12px; text-decoration: none; }
.drop + .drop { border-top: 1px solid #1a1b13; }
.drop:hover { background: #15160f; }
.drop time { color: var(--yellow); font: 11px var(--mono); }
.drop .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop .open { padding: 0 7px; border: 1px solid var(--line-hi); border-radius: 2px; color: var(--teal-hi); font-size: 11px; line-height: 18px; }
.drop:hover .open { border-color: var(--teal-hi); }
.totals { margin: 2px 8px 0 24px; padding: 3px 0 1px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 16px; }
.totals-label { color: var(--gold); font-weight: bold; }
.total-count { display: inline-block; width: 50px; color: var(--yellow); font-family: var(--mono); }

footer { margin-top: 10px; color: var(--muted); font-size: 10px; text-align: center; }
@media (max-width: 580px) {
  body { padding: 8px; }
  main { padding: 0 6px 8px; }
  .updated { flex-basis: 100%; order: 3; }
  .drop { padding-left: 14px; }
  .totals { margin-left: 14px; }
}
