/* Hallmark · checked: 2026-11-29 · genre: playful (inferred: games, community) · scope: app
 * floor: fixed in this layer 2a, 7a, 9/67, 11, 34, F3, F16 · dismissed: 39a (board cells stay full-strength on purpose while it is not your turn)
 * structural: printed, not rebuilt (48: 103 colour literals live in styles.css; F7: one box recipe across the site)
 * kept: 12/13 links, 4/4 fields, 28/28 headings, 20/20 figures · not dropped by this layer: /reaction (the server's games list changed between captures; CSS removes no links)
 * built: the project · redesign: polish · v2.0.0 */

/* Badipot polish layer. Loaded after styles.css and fx.css; remove the <link> to undo it.
   Page rules are scoped to .page:not(.lobby-page), so the coinflip lobby renders exactly as before.
   Uses the project's own tokens; the only new values are the three title inks below. */
:root {
  --polish-title-risk: #ff6b6b;
  --polish-title-lucky: #3ddc84;
  --polish-title-allin: #ff6fd8;
  --polish-weight-body: 400;
  --polish-weight-ui: 400;
  --polish-weight-strong: 600;
}

html, body { overflow-x: clip; }
body.gate-open { overflow: clip; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }

/* 1. Type: the heads keep the display weight; everything around them steps down,
      so a page has one loud thing instead of twenty. */
.page:not(.lobby-page) { font-weight: var(--polish-weight-body); }
.page:not(.lobby-page) :is(h1, h2) { overflow-wrap: break-word; min-width: 0; text-wrap: balance; letter-spacing: -0.01em; }
.page:not(.lobby-page) .btn { font-weight: 600; }
.page:not(.lobby-page) :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.page:not(.lobby-page) .btn:active:not(:disabled) { transform: translateY(1px); }
.page:not(.lobby-page) :is(.history-type, .item-name) { font-weight: var(--polish-weight-ui); }
.page:not(.lobby-page) :is(.item-val, .profile-stat-list dd, .stat-chip b, .lb-num) { font-weight: var(--polish-weight-strong); font-variant-numeric: tabular-nums; }
.page:not(.lobby-page) .history-table th { font-weight: var(--polish-weight-ui); color: var(--color-muted); }
.static-doc h1 { letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.static-doc h2 { letter-spacing: 0; text-wrap: balance; }

/* 2. "Beta" is a quiet word next to the name, not bracketed capitals in the accent. */
.beta-tag { margin-left: var(--space-xs); font-size: 0; letter-spacing: 0; vertical-align: 0.3em; }
.beta-tag::after {
  content: "Beta"; display: inline-block; padding: 1px var(--space-xs); border-radius: var(--radius-pill);
  background: var(--color-accent-soft); color: var(--color-accent-text);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0; line-height: 1.6; vertical-align: middle;
}
.games-menu .beta-tag::after { font-size: 11px; }

/* 3. Facts read as a line of text, not a row of pills. */
.page:not(.lobby-page) .head-stats { gap: var(--space-xs) var(--space-md); }
.page:not(.lobby-page) .stat-chip { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--color-muted); font-weight: var(--polish-weight-body); }

/* 4. One box per item: the picture sits on the card instead of in a second card. */
.page:not(.lobby-page) .item-img { border: 0; background: none; }
.page:not(.lobby-page) .item-card { gap: var(--space-2xs); }
.page:not(.lobby-page) .item-action { border: 1px solid var(--color-rule); background: none; color: var(--color-ink-2); font-weight: 600; }
.page:not(.lobby-page) .item-action:hover:not(:disabled) { border-color: transparent; background: var(--color-accent); color: var(--color-accent-ink); }
.page:not(.lobby-page) .item-action:disabled { background: var(--color-paper-3); color: var(--color-muted); cursor: not-allowed; opacity: 1; }

/* 5. Empty states are a plain note in the flow, not a dashed frame; inside a card they add no second box. */
.page:not(.lobby-page) .empty-state { border: 0; border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink-2); font-weight: var(--polish-weight-body); }
.page:not(.lobby-page) .empty-state b { font-weight: 600; }
.page:not(.lobby-page) .card .empty-state { padding: var(--space-lg) 0 var(--space-sm); background: none; }

/* 6. Profile: the figures carry the weight, their labels step back. */
.page:not(.lobby-page) .profile-stat-list dt { color: var(--color-muted); font-weight: var(--polish-weight-body); }
.page:not(.lobby-page) .history-id { font-size: var(--text-xs); }

/* 7. Leaderboard and jackpot: quiet notes stay quiet. */
.page:not(.lobby-page) :is(.lb-note, .jp-fair, .match-intro) { font-weight: var(--polish-weight-body); }
.page:not(.lobby-page) .jp-clock { color: var(--color-muted); font-weight: var(--polish-weight-body); }

/* 8. Earned titles keep their colour, as solid ink instead of gradient text. */
.chat-name.title-risk_taker .chat-username, .earned-title.title-risk_taker .earned-title-name,
.chat-name.title-lucky_one .chat-username, .earned-title.title-lucky_one .earned-title-name,
.chat-name.title-all_in .chat-username, .earned-title.title-all_in .earned-title-name,
.all-in-name {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; animation: none; filter: none;
}
.chat-name.title-risk_taker .chat-username, .earned-title.title-risk_taker .earned-title-name { color: var(--polish-title-risk); }
.chat-name.title-lucky_one .chat-username, .earned-title.title-lucky_one .earned-title-name { color: var(--polish-title-lucky); }
.chat-name.title-all_in .chat-username, .earned-title.title-all_in .earned-title-name, .all-in-name { color: var(--polish-title-allin); }

/* 9. Small labels: sentence case, untracked, the body face a step smaller. */
.profile-menu-label { padding: var(--space-2xs) var(--space-xs); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0; text-transform: none; }
.bet-badge { color: var(--color-accent-ink); }
.foot-links a { white-space: nowrap; }
.page:not(.lobby-page) .link-btn { white-space: nowrap; }
.page:not(.lobby-page) .history-head { flex-wrap: wrap; row-gap: var(--space-2xs); }
.page:not(.lobby-page) .history-head .row { flex-wrap: wrap; gap: var(--space-sm); }

@media (prefers-reduced-motion: reduce) {
  .page:not(.lobby-page) .item-card, .page:not(.lobby-page) .item-card:hover { transform: none; transition: none; }
}
