/* Shared game-screen styles on top of ds-nocturne.css. */

body { min-width: 1280px; }

/* — nav avatar (same as lobby) — */
.bb-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-accent-800); color: var(--color-accent-100);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; flex: none;
}
.bb-nav-avatar { margin-left: var(--space-4); }

/* — page frame — */
.game-main { padding: 32px 64px 64px; max-width: 1200px; }
.game-header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: 24px; }
.game-header h1 { font-size: 36px; margin: 0; }
.game-header .text-muted { font-size: 14px; }
.game-header-actions { display: flex; gap: var(--space-3); align-items: center; }

/* — table surface — */
.game-table {
  background: radial-gradient(ellipse at 50% -20%, var(--color-section-glow), var(--color-section) 70%);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* — playing cards — */
.playing-card {
  width: 76px; height: 108px; flex: none;
  border-radius: 8px; position: relative;
  background: #eef0f6; color: #232532;
  box-shadow: 0 1px 2px rgba(0,0,0,.5);
  font-family: var(--font-heading);
  user-select: none;
}
.playing-card.red { color: #c0392b; }
.pc-corner {
  position: absolute; top: 6px; left: 7px;
  font-size: 15px; font-weight: 600; line-height: 1.05; text-align: center;
}
.pc-corner-b { top: auto; left: auto; bottom: 6px; right: 7px; transform: rotate(180deg); }
.pc-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
}
.playing-card.face-down {
  background:
    repeating-linear-gradient(45deg,
      color-mix(in srgb, var(--color-accent-100) 12%, transparent) 0 2px,
      transparent 2px 8px),
    linear-gradient(160deg, var(--color-accent-800), var(--color-accent-900));
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--color-accent-100) 25%, transparent), 0 1px 2px rgba(0,0,0,.5);
}
.playing-card.selected { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.playing-card.clickable { cursor: pointer; }

/* — card rows (blackjack hands) — */
.hand-row { display: flex; gap: 10px; min-height: 108px; }
.hand-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--color-accent-200); margin-bottom: 8px;
}
.hand-total {
  display: inline-flex; margin-left: 10px; padding: 1px 8px;
  border-radius: 6px; background: color-mix(in srgb, var(--color-bg) 55%, transparent);
  color: var(--color-text); font-size: 12px; letter-spacing: 0;
}

/* — game status / messages — */
.game-msg { min-height: 24px; font-size: 15px; margin: 18px 0 0; }
.game-msg.win  { color: #8fd9a8; }
.game-msg.lose { color: #e08787; }

/* — chips & bet controls — */
.chip-row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.chip {
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 2px dashed color-mix(in srgb, currentColor 55%, transparent);
  background: var(--color-surface); color: var(--color-text);
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.chip:hover { transform: translateY(-2px); }
.chip:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.chip-5   { color: #9fc4e8; }
.chip-25  { color: #8fd9a8; }
.chip-100 { color: var(--color-accent); }

.stat-pill {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-md);
  background: var(--color-surface); border: 1px solid var(--color-divider);
  font-size: 13px;
}
.stat-pill b { font-family: var(--font-heading); font-weight: 600; font-size: 16px; }

.game-actions { display: flex; gap: var(--space-3); margin-top: 22px; flex-wrap: wrap; }

/* — win overlay — */
.win-banner {
  margin-top: 22px; padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--color-accent-900);
  border: 1px solid var(--color-accent-600);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.win-banner h3 { margin: 0; font-size: 20px; }
.win-banner p { margin: 4px 0 0; font-size: 13px; color: var(--color-accent-200); }
.hidden { display: none !important; }
