/* SOL JACK — game.css
   Vegas noir: deep felt green, brass gold, black-coffee shadows, art deco geometry.
*/

:root {
  --bg-deep: #0a0a0d;
  --bg-stage: #0d0e10;
  --felt-1: #0d3324;
  --felt-2: #154a35;
  --felt-3: #1a5a3f;
  --gold-1: #f8d77a;
  --gold-2: #d2a13a;
  --gold-3: #8a6212;
  --gold-line: #b88a2e;
  --cream: #f0e6d0;
  --ink: #08090b;
  --red: #c2185b;
  --red-card: #b71c1c;
  --line: rgba(184, 138, 46, 0.32);
  --line-strong: rgba(184, 138, 46, 0.55);
  --text: #ece5d4;
  --text-dim: #9a937f;
  --danger: #ef4d4d;
  --shadow-deep: 0 24px 60px -16px rgba(0,0,0,0.7), 0 4px 18px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-deep); color: var(--text); font-family: 'Inter Tight', sans-serif; min-height: 100vh; }
body {
  background:
    radial-gradient(ellipse at top, #1a1612 0%, #0a0a0d 60%) no-repeat,
    repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 4px);
}

a { color: var(--gold-1); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.hidden { display: none !important; }

.atrium { max-width: 1280px; margin: 0 auto; padding: 18px 20px 60px; }

/* === Top bar === */
.top-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(180deg, #15110a 0%, #0d0a07 100%);
  position: relative;
}
.top-bar::before, .top-bar::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--gold-line);
  top: -1px;
}
.top-bar::before { left: -1px; border-right: none; border-bottom: none; }
.top-bar::after { right: -1px; border-left: none; border-bottom: none; }

.logo-wrap { display: flex; align-items: center; gap: 14px; }
.logo-text .title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 700; letter-spacing: 0.18em;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.logo-text .subtitle {
  font-size: 10px; letter-spacing: 0.42em; color: var(--text-dim); margin-top: 4px;
}
.wallet-area { display: flex; align-items: center; gap: 14px; }
.wallet-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); letter-spacing: 0.1em; }
.wallet-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #5a4a2a; box-shadow: 0 0 8px rgba(184,138,46,0.4); }
.wallet-status .dot-live { background: var(--gold-1); box-shadow: 0 0 12px var(--gold-1); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }

/* === Buttons === */
.btn-gold {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; letter-spacing: 0.24em;
  padding: 10px 22px;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 50%, var(--gold-3) 100%);
  color: #18120a;
  text-transform: uppercase;
  font-size: 13px;
  border: 1px solid var(--gold-line);
  box-shadow: 0 2px 0 rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 100ms ease, filter 200ms ease, box-shadow 200ms ease;
}
.btn-gold:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 5px 18px rgba(184,138,46,0.4), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-gold:active:not(:disabled) { transform: translateY(0); filter: brightness(0.95); }
.btn-gold:disabled { opacity: 0.42; cursor: not-allowed; filter: grayscale(0.4); }

.btn-ghost {
  font-family: 'Inter Tight', sans-serif; font-weight: 500; letter-spacing: 0.2em;
  padding: 9px 18px; font-size: 11px; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--gold-1); background: transparent;
  transition: background 150ms ease;
}
.btn-ghost:hover { background: rgba(184,138,46,0.08); }

/* === Stage === */
.stage { margin-top: 28px; }

/* === Lobby === */
.lobby {
  display: grid; grid-template-columns: minmax(0,2fr) minmax(280px, 1fr); gap: 24px;
}
.lobby-card, .rules-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(20,16,10,0.7) 0%, rgba(13,10,7,0.9) 100%);
  padding: 32px 32px 36px;
  position: relative;
}
.lobby-card::before, .lobby-card::after, .rules-card::before, .rules-card::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--gold-line);
}
.lobby-card::before { left: 8px; top: 8px; border-right: none; border-bottom: none; }
.lobby-card::after { right: 8px; bottom: 8px; border-left: none; border-top: none; }
.rules-card::before { left: 8px; top: 8px; border-right: none; border-bottom: none; }
.rules-card::after { right: 8px; bottom: 8px; border-left: none; border-top: none; }

.lobby-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-1); margin-bottom: 26px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.lobby-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 14px; margin-bottom: 18px; }
.lobby-row label { font-size: 11px; letter-spacing: 0.3em; color: var(--text-dim); text-transform: uppercase; }

.select, .bet-stepper input {
  background: rgba(8,8,10,0.85);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color 150ms ease;
}
.select:focus, .bet-stepper input:focus { border-color: var(--gold-1); }

.mode-toggle { display: inline-flex; border: 1px solid var(--line-strong); }
.mode-btn {
  padding: 10px 22px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border-right: 1px solid var(--line);
}
.mode-btn:last-child { border-right: none; }
.mode-btn.active {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
  color: #18120a;
}
.mode-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.bet-stepper { display: flex; gap: 8px; }
.bet-stepper input { flex: 1; text-align: right; }
.step-btn {
  width: 44px; border: 1px solid var(--line-strong); color: var(--gold-1);
  font-size: 18px; font-weight: 600;
  background: rgba(20,16,10,0.6);
}
.step-btn:hover { background: rgba(184,138,46,0.12); }

.lobby-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim);
  padding: 14px 0; border-top: 1px solid var(--line); margin-top: 8px; line-height: 1.7;
}

.btn-deal { width: 100%; padding: 16px; font-size: 16px; letter-spacing: 0.4em; margin-top: 6px; }

.error-text { color: var(--danger); font-size: 12px; margin-top: 12px; min-height: 16px; }

.rules-card h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 14px; letter-spacing: 0.3em;
  color: var(--gold-1); text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 12px; margin-top: 16px;
}
.rules-card h3:first-of-type { margin-top: 0; }
.rules-card ul { list-style: none; }
.rules-card li {
  font-size: 12px; color: var(--text); padding: 5px 0; border-bottom: 1px dashed rgba(184,138,46,0.12);
  display: flex; justify-content: space-between;
}
.rules-card li .val { color: var(--gold-1); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.rules-card .fine { font-size: 11px; color: var(--text-dim); line-height: 1.6; }

/* === Table === */
.table { margin-top: 14px; }
.felt {
  position: relative;
  min-height: 460px;
  border-radius: 50% / 18%;
  background:
    radial-gradient(ellipse at center, var(--felt-3) 0%, var(--felt-2) 50%, var(--felt-1) 85%, #051f15 100%);
  border: 8px solid #2a1b0c;
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(184,138,46,0.4),
    0 30px 80px -20px rgba(0,0,0,0.8);
  padding: 60px 60px 80px;
  overflow: hidden;
}
.felt::before {
  content: ''; position: absolute; inset: 18px;
  border: 1px solid rgba(184,138,46,0.32);
  border-radius: 50% / 18%;
  pointer-events: none;
}
.felt-arc {
  position: absolute; left: 50%; top: 64px; transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.5em; font-size: 13px; color: var(--gold-1);
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(248,215,122,0.4);
}
.felt-arc::before, .felt-arc::after {
  content: '◆'; color: var(--gold-1); margin: 0 12px; font-size: 9px;
}
.felt-inscription {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.32em; font-size: 11px; color: rgba(248,215,122,0.55);
  text-transform: uppercase;
  white-space: nowrap;
}

.dealer-row, .player-row { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 18px 0; min-height: 130px; }
.dealer-row { margin-top: 30px; }
.player-row { margin-top: 80px; }

.dealer-label, .player-label {
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold-1);
  display: flex; gap: 16px; align-items: baseline;
}
.dealer-label .total, .player-label .total, .hand-total {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: rgba(0,0,0,0.4);
  padding: 2px 10px;
  border: 1px solid var(--line);
  letter-spacing: 0.1em;
  color: var(--cream);
}
.wallet-mini { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-dim); letter-spacing: 0; }

.card-row, .hands-area { display: flex; gap: 14px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.hands-area { gap: 32px; }

.hand-block {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.hand-block.active {
  border-color: var(--gold-1);
  box-shadow: 0 0 30px rgba(248,215,122,0.18);
}
.hand-block .hand-meta {
  display: flex; gap: 10px; font-size: 10px; letter-spacing: 0.2em; color: var(--text-dim); text-transform: uppercase;
}
.hand-block .hand-meta .bet { color: var(--gold-1); font-family: 'JetBrains Mono', monospace; }

.message-banner {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-1);
  text-shadow: 0 0 30px rgba(0,0,0,0.9), 0 0 50px rgba(248,215,122,0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
  text-align: center;
  white-space: nowrap;
}
.message-banner.show { opacity: 1; }
.message-banner.win { color: var(--gold-1); }
.message-banner.loss { color: #d68080; }
.message-banner.push { color: var(--cream); }
.message-banner.bj { color: #f9d76b; font-size: 48px; }

/* === Card === */
.card {
  width: 86px; height: 124px;
  background: linear-gradient(180deg, #fdfaf2 0%, #f0e6d0 100%);
  border: 1px solid rgba(0,0,0,0.5);
  border-radius: 7px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  animation: dealIn 380ms cubic-bezier(.2,.7,.3,1) backwards;
}
@keyframes dealIn {
  from { transform: translateY(-200px) rotate(-12deg) scale(0.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.card.hidden-card {
  background:
    repeating-linear-gradient(45deg, #5a1320 0 6px, #791824 6px 12px),
    #5a1320;
  border: 1px solid #2a0810;
}
.card.hidden-card::after {
  content: ''; position: absolute; inset: 6px;
  border: 1px solid rgba(248,215,122,0.5);
  border-radius: 3px;
}
.card.red { color: var(--red-card); }
.card.black { color: var(--ink); }

/* Corner indices — top-left + bottom-right (rotated). Tight column of rank + suit. */
.card .corner {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  line-height: 1;
}
.card .corner.tl { top: 5px; left: 6px; }
.card .corner.br { bottom: 5px; right: 6px; transform: rotate(180deg); transform-origin: center; }

/* Letters (A, J, Q, K) keep Cormorant Garamond — display serif with a typographic flourish. */
.card .corner .rank.letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
}
/* Digits (2-10) use Inter Tight with tabular-nums — uniform width, no descenders, perfect alignment. */
.card .corner .rank.digit {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.02em;
}
.card .corner .suit {
  font-size: 12px;
  font-family: serif;
  line-height: 1;
}

/* Face center: Ace, J, Q, K */
.card .face-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.card .ace-glyph {
  font-size: 44px;
  font-family: serif;
  line-height: 1;
}
.card .face-monogram { display: flex; flex-direction: column; align-items: center; gap: 0; }
.card .face-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 0.95;
}
.card .face-suit {
  font-family: serif;
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}
/* Ornamental frame around face card — well clear of the corner indices */
.card .face-frame {
  position: absolute;
  inset: 24px 18px;
  border: 1px solid currentColor;
  border-radius: 4px;
  opacity: 0.32;
  pointer-events: none;
}

/* Pip area for number cards (2-10) */
.card .pip-area {
  position: absolute;
  inset: 22px 14px;
}
.card .pip {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: serif;
  font-size: 16px;
  line-height: 1;
}
.card .pip.flip {
  transform: translate(-50%, -50%) rotate(180deg);
}

/* === Action bar === */
.action-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  margin-top: 24px; padding: 18px 24px;
  border: 1px solid var(--line); background: rgba(13,10,7,0.8);
}
.action-info { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-dim); }
.action-info:last-child { justify-content: flex-end; }
.action-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.action-btn {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 12px 18px; font-size: 13px;
  border: 1px solid var(--gold-line);
  color: var(--gold-1);
  background: linear-gradient(180deg, rgba(40,30,15,0.6) 0%, rgba(20,15,8,0.8) 100%);
  transition: all 150ms ease;
}
.action-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: #18120a;
}
.action-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.action-btn.danger { color: #d68080; border-color: rgba(214,128,128,0.5); }
.action-btn.danger:hover:not(:disabled) { background: linear-gradient(180deg, #d68080, #8c3a3a); color: white; }

.seed-row { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-dim); }
.seed-row a { cursor: pointer; }

/* === History === */
.history-section { margin-top: 36px; }
.history-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.history-header h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 16px; letter-spacing: 0.4em;
  color: var(--gold-1); text-transform: uppercase;
}
.history-list { display: flex; flex-direction: column; gap: 1px; margin-top: 12px; }
.history-row {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 1fr 1fr 1.5fr 1.3fr auto;
  gap: 14px; align-items: center;
  padding: 10px 14px;
  background: rgba(20,16,10,0.4);
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--text);
}
.history-row .col-time { color: var(--text-dim); }
.history-row .col-outcome { letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.history-row .col-outcome.win { color: var(--gold-1); }
.history-row .col-outcome.loss { color: #c47a7a; }
.history-row .col-outcome.push { color: var(--cream); }
.history-row .col-outcome.blackjack { color: #f9d76b; }
.history-row .col-outcome.surrender { color: var(--text-dim); }
.history-row .col-outcome.bust { color: #c47a7a; }
.history-row a.tx { color: var(--gold-1); }
.history-row button.verify-link { color: var(--gold-1); border: 1px solid var(--line); padding: 4px 10px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-family: inherit; }

/* === Footer === */
.bottom-bar { display: flex; justify-content: center; gap: 12px; margin-top: 50px; font-size: 11px; color: var(--text-dim); letter-spacing: 0.18em; text-transform: uppercase; }
.footer-link:hover { color: var(--gold-1); }
.sep { color: var(--gold-line); }

/* === Modals === */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  animation: fadeIn 200ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-inner {
  background: linear-gradient(180deg, #15110a 0%, #0d0a07 100%);
  border: 1px solid var(--gold-line);
  padding: 36px 40px;
  max-width: 520px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-deep);
}
.modal-inner.wide { max-width: 760px; }
.modal-inner h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-1); margin-bottom: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.modal-inner p { color: var(--text); line-height: 1.6; margin-bottom: 18px; }
.modal-buttons { display: flex; gap: 12px; justify-content: flex-end; }

.verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.verify-grid > div { display: flex; flex-direction: column; gap: 4px; }
.verify-grid label { font-size: 10px; letter-spacing: 0.3em; color: var(--text-dim); text-transform: uppercase; }
.verify-grid pre { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--cream); background: rgba(0,0,0,0.5); padding: 8px 10px; border: 1px solid var(--line); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.verify-result { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 12px; background: rgba(0,0,0,0.5); border: 1px solid var(--line); min-height: 60px; margin: 16px 0; color: var(--cream); white-space: pre-wrap; }

/* === Responsive === */
@media (max-width: 900px) {
  .lobby { grid-template-columns: 1fr; }
  .felt { padding: 40px 18px 60px; min-height: 380px; }
  .felt-arc { font-size: 11px; top: 30px; }
  .felt-inscription { font-size: 9px; bottom: 14px; }
  .card { width: 64px; height: 92px; }
  .card .corner .rank { font-size: 14px; }
  .card .center-suit { font-size: 28px; }
  .hands-area { gap: 16px; }
  .action-bar { grid-template-columns: 1fr; gap: 12px; }
  .action-info { justify-content: center !important; }
  .verify-grid { grid-template-columns: 1fr; }
  .history-row { grid-template-columns: 1fr 1fr; font-size: 10px; }
}

/* === Table grid: felt on the left, live-info panel on the right (desktop) === */
.table-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1100px) {
  .table-grid { grid-template-columns: 1fr; }
}

.live-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,16,10,0.85) 0%, rgba(13,10,7,0.92) 100%);
  padding: 20px 22px;
  position: relative;
  min-height: 380px;
}
.live-panel::before, .live-panel::after {
  content: ''; position: absolute; width: 9px; height: 9px;
  border: 1px solid var(--gold-line);
}
.live-panel::before { left: 6px; top: 6px; border-right: none; border-bottom: none; }
.live-panel::after { right: 6px; bottom: 6px; border-left: none; border-top: none; }

.lp-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; letter-spacing: 0.3em;
  color: var(--gold-1); text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px; margin-bottom: 12px;
}
.lp-stats { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.lp-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0; border-bottom: 1px dashed rgba(184,138,46,0.12);
}
.lp-row:last-child { border-bottom: none; }
.lp-label { color: var(--text-dim); letter-spacing: 0.18em; text-transform: uppercase; font-size: 10px; }
.lp-value { color: var(--cream); font-variant-numeric: tabular-nums; }
.lp-value.gold { color: var(--gold-1); }
.lp-value.win { color: #6fc55a; }
.lp-value.loss { color: #d68080; }
.lp-value.push { color: var(--text); }

.lp-log {
  list-style: none; padding: 0; margin: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  max-height: 240px; overflow-y: auto;
}
.lp-log li {
  padding: 5px 0;
  border-bottom: 1px dashed rgba(184,138,46,0.08);
  color: var(--text);
  display: flex; justify-content: space-between; gap: 8px;
}
.lp-log li .who { color: var(--gold-1); letter-spacing: 0.1em; min-width: 60px; }
.lp-log li .act { color: var(--text); flex: 1; }
.lp-log li .detail { color: var(--text-dim); font-size: 10px; }

.lp-result {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--gold-line);
  background: rgba(0,0,0,0.4);
}
.lp-result-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; letter-spacing: 0.2em;
  color: var(--gold-1); text-transform: uppercase;
  margin-bottom: 6px;
}
.lp-result-title.win { color: #6fc55a; }
.lp-result-title.loss { color: #d68080; }
.lp-result-title.push { color: var(--text); }
.lp-result-title.bj { color: #f9d76b; }
.lp-result-detail { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text); }
.lp-result-tx { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-dim); margin-top: 6px; word-break: break-all; }
.lp-result-tx a { color: var(--gold-1); }

/* === Outcome modal === */
.outcome-inner { text-align: center; max-width: 420px; }
.outcome-banner {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 2px 18px currentColor;
}
.outcome-banner.win  { color: #6fc55a; }
.outcome-banner.loss { color: #d68080; }
.outcome-banner.push { color: var(--cream); }
.outcome-banner.bj   { color: #f9d76b; font-size: 44px; }
.outcome-amount {
  font-family: 'Inter Tight', sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 28px; font-weight: 700;
  color: var(--gold-1);
  margin-bottom: 10px;
}
.outcome-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-dim);
  margin-bottom: 10px;
}
.outcome-tx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 16px;
  word-break: break-all;
}
.outcome-tx a { color: var(--gold-1); }

/* === Image-skin card === */
/* When a custom deck is active, .card.image-card replaces the engraved face/pip rendering
   with a full-bleed image. Transparent background lets PNGs with transparent edges blend. */
.card.image-card {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.55);
  box-shadow: 0 6px 14px rgba(0,0,0,0.55);
  padding: 0;
  overflow: hidden;
}
.card.image-card img.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}
.card.image-card.hidden-image {
  /* The deck's back image fills the card — no extra striping needed. */
  background: transparent;
  border-color: rgba(248,215,122,0.3);
}
.card.image-card-error {
  /* If the image 404s, show a subtle gold border so the missing card is visible. */
  border-color: var(--gold-1);
  background: rgba(248,215,122,0.05);
}
