/* Ledger — everything unique to this one page.
   Shared behaviour lives up the chain: base -> site -> family.
   Order: DESKTOP, then MOBILE, then MOBILE-LANDSCAPE. */
.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px 60px; }
.aka { color: var(--mut); margin: 0 0 6px; font-style: italic; }
.sub { color: var(--mut); max-width: 64ch; }
.empty { color: var(--mut); padding: 22px; text-align: center; }

.summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.stat { flex: 1 1 auto; min-width: 120px; padding: 12px 14px; border-radius: 12px;
        background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-family: 'Pirata One', Georgia, serif; font-size: 26px; color: var(--gold); }
.stat span { font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .05em; }
.stat .pos { color: var(--good, #6fbf4a); } .stat .neg { color: var(--crim, #c8283c); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; align-items: center; }
.filters select, .filters input { padding: 7px 10px; border-radius: 9px; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line); font: 13px 'Segoe UI', system-ui, sans-serif; }
.filters .clear { color: var(--mut); background: transparent; border: 0; cursor: pointer; font-size: 13px; }

/* A DAY of play, and what it came to — the heading that turns a run of rows into a session. */
.dhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap;
         margin: 18px 0 6px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.dhead .d { font-family: 'Pirata One', Georgia, serif; color: var(--gold, #e0b34c); font-size: 16px; }
.dhead .t { color: var(--mut); font-size: 12px; font-variant-numeric: tabular-nums; }

/* One game, shaped like the app's: what happened on the left, how it ended and what it cost in the middle,
   the time on the right — and underneath, the two things you can do with it. */
.grow { padding: 8px 6px 7px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.gline { display: flex; align-items: baseline; gap: 10px; }
.gline .opp { flex: 1 1 auto; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gline .opp .op { color: var(--mut); font-size: 12px; }
.gline .mid { flex: 0 0 auto; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.gline .when { flex: 0 0 auto; color: var(--mut); font-size: 12.5px; min-width: 68px; text-align: right; }
.gact { display: flex; align-items: center; gap: 8px; padding-top: 5px; }
.gact a.den-watch { margin-left: auto; }
/* ⏰ — this game ended on the clock. Crimson when it was YOUR clock. */
.fate { font-size: 13px; color: var(--mut); cursor: help; }
.fate.mine { color: var(--crim, #c8283c); }
.plat { display: inline-block; padding: 1px 7px; border-radius: 20px; font-size: 11px; border: 1px solid var(--line); color: var(--mut); }
.plat.li { color: #7cc4ff; border-color: #37506b; } .plat.cc { color: #86c46a; border-color: #3f5c38; }
.res { font-weight: 700; font-size: 12px; }
.res.win { color: var(--good, #6fbf4a); } .res.loss { color: var(--crim, #c8283c); } .res.draw { color: var(--mut); }
.delta { text-align: right; font-variant-numeric: tabular-nums; }
.delta.pos { color: var(--good, #6fbf4a); } .delta.neg { color: var(--crim, #c8283c); } .delta.zero { color: var(--mut); }

.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 20px 0 0; }
.pager button { padding: 7px 14px; border-radius: 9px; cursor: pointer; color: var(--ink);
    background: var(--btn, #241d33); border: 1px solid var(--line); }
.pager button[disabled] { opacity: .4; cursor: default; }
.pager .pg { color: var(--mut); font-size: 13px; }
@media (max-width: 560px){ .gline .opp .op { display: none; } .gline .when { min-width: 0; } }

/* The pill is a real link now — the ledger is one of only two places allowed to open the platform. */
a.plat { text-decoration: none; }
a.plat:hover { border-color: var(--gold, #e0b34c); filter: brightness(1.15); }
/* ...and the row's arrow opens the game on site instead. */
a.den-watch { color: var(--gold, #e0b34c); font-size: 12px; text-decoration: none; }
a.den-watch:hover { color: var(--gold, #e0b34c); text-decoration: underline; }
