/* Game history — restrained table styling with flat controls. */
.game-history-panel { overflow:hidden; border:1px solid #3b2c24; border-radius:14px; background:#171210; box-shadow:0 12px 28px rgba(0,0,0,.12); }
.game-history-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding:22px 22px 16px; border-bottom:1px solid #34251e; }
.game-history-panel-kicker { color:#b28b6d; font-size:10px; font-weight:800; letter-spacing:.13em; }
.game-history-summary h2 { display:flex; align-items:center; gap:9px; margin:6px 0 0; color:#f2e4d8; font-size:17px; font-weight:650; }
.game-history-summary h2 strong { display:inline-flex; min-width:28px; justify-content:center; padding:3px 8px; border:1px solid #47352a; border-radius:6px; color:#e1bd9b; font-size:12px; font-weight:750; }
.game-history-actions { display:flex; align-items:flex-end; gap:9px; }
.game-history-filter { display:grid; gap:5px; color:#a99586; font-size:11px; }
.game-history-filter select { min-width:128px; min-height:38px; padding:0 30px 0 10px; border:1px solid #4b382b; border-radius:7px; background:#211916; color:#f1e2d6; font:inherit; font-size:12px; }
.game-history-refresh,.game-history-page-button { display:inline-flex; min-height:38px; align-items:center; justify-content:center; gap:7px; padding:0 12px; border:1px solid #58402f; border-radius:7px; background:#2a1f18; color:#e7c5a4; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.game-history-refresh:hover:not(:disabled),.game-history-page-button:hover:not(:disabled) { background:#36271e; border-color:#886143; }
.game-history-refresh:focus-visible,.game-history-page-button:focus-visible,.game-history-filter select:focus-visible { outline:2px solid #c9966b; outline-offset:2px; }
.game-history-refresh:disabled,.game-history-page-button:disabled { cursor:default; opacity:.42; }
.game-history-refresh>span:first-child { font-size:17px; line-height:1; }
.game-history-state { display:flex; min-height:154px; align-items:center; justify-content:center; gap:10px; padding:28px; color:#b9a79a; font-size:13px; text-align:center; }
.game-history-state[data-kind="error"] { color:#dfa49b; }
.game-history-state[data-kind="empty"] { flex-direction:column; gap:6px; }
.game-history-state strong { display:block; color:#ecdbcc; font-size:14px; }
.game-history-state p { max-width:360px; margin:0; color:#a99586; font-size:12px; line-height:1.55; }
.game-history-spinner { width:15px; height:15px; border:2px solid #594031; border-top-color:#d0a17a; border-radius:50%; animation:gameHistorySpin .8s linear infinite; }
@keyframes gameHistorySpin { to { transform:rotate(360deg); } }
.game-history-table-wrap { overflow-x:auto; }
.game-history-table { width:100%; border-collapse:collapse; text-align:left; font-variant-numeric:tabular-nums; }
.game-history-table th { padding:12px 16px; border-bottom:1px solid #3a2a22; background:#1b1512; color:#a99687; font-size:10px; font-weight:750; letter-spacing:.065em; text-transform:uppercase; white-space:nowrap; }
.game-history-table td { padding:15px 16px; border-bottom:1px solid #2d211b; color:#dfcfc2; font-size:12px; white-space:nowrap; }
.game-history-table tbody tr:last-child td { border-bottom:0; }
.game-history-table tbody tr:hover { background:#201815; }
.game-history-game { display:grid; gap:4px; }
.game-history-game strong { color:#f3e4d8; font-size:12px; font-weight:750; }
.game-history-game small { color:#9d8878; font-size:10px; }
.game-history-money { color:#d8c7b9; }
.game-history-money.is-positive { color:#91c8a2; }
.game-history-multiplier { display:inline-flex; align-items:center; min-width:43px; justify-content:center; padding:4px 6px; border:1px solid #47352a; border-radius:5px; color:#e3c2a0; font-size:11px; font-weight:750; }
.game-history-result { display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border:1px solid #49382e; border-radius:6px; color:#c7b4a5; font-size:10px; font-weight:750; }
.game-history-result::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; }
.game-history-result[data-outcome="win"] { border-color:#315340; background:#1b2a20; color:#9bd3a8; }
.game-history-result[data-outcome="loss"] { border-color:#53312d; background:#2a1b19; color:#dda49a; }
.game-history-result[data-outcome="push"] { border-color:#55452f; background:#282219; color:#d4bd8d; }
.game-history-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:58px; padding:10px 22px; border-top:1px solid #34251e; color:#9d8a7b; font-size:11px; }
.game-history-pagination { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.game-history-pagination[hidden] { display:none !important; }
.game-history-page-button { width:38px; min-width:38px; padding:0; border-radius:8px; }
.game-history-page-button svg { display:block; width:17px; height:17px; }
.game-history-page-status { min-width:104px; color:#c6b3a3; text-align:center; font-size:11px; font-weight:650; font-variant-numeric:tabular-nums; }
.game-history-loaded-count { min-width:0; line-height:1.45; }
@media (max-width:850px) {
  .game-history-toolbar { align-items:stretch; flex-direction:column; gap:15px; }
  .game-history-actions { justify-content:space-between; }
  .game-history-filter { flex:1; }
  .game-history-filter select { width:100%; }
  .game-history-table { min-width:760px; }
}
@media (max-width:560px) {
  .game-history-toolbar { padding:17px 14px 13px; }
  .game-history-actions { align-items:flex-end; gap:7px; }
  .game-history-refresh { padding:0 10px; }
  .game-history-table { min-width:740px; }
  .game-history-table th,.game-history-table td { padding:13px 12px; }
  .game-history-footer { flex-wrap:wrap; align-items:center; gap:10px; padding:10px 14px; }
  .game-history-loaded-count { flex:1 1 100%; }
  .game-history-pagination { margin-left:auto; }
  .game-history-pagination { gap:6px; }
  .game-history-page-button { width:36px; min-width:36px; min-height:36px; }
  .game-history-page-status { min-width:90px; font-size:10px; }
}
@media (prefers-reduced-motion: reduce) { .game-history-spinner { animation:none; } }

/* Mines round details: compact, readable and safe to wrap on narrow screens. */
.game-history-game .game-history-mine-cells { color: #b7c5d4; font-size: 10px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }



.game-history-retry { display:inline-flex; min-height:38px; align-items:center; justify-content:center; margin-top:4px; padding:0 16px; border:1px solid #806043; border-radius:8px; background:#2a211a; color:#ead1b8; font:inherit; font-size:12px; font-weight:800; cursor:pointer; }
.game-history-retry:hover { background:#3a2b20; border-color:#b1845e; }
.game-history-retry:focus-visible { outline:2px solid #c9966b; outline-offset:2px; }
