:root {
  --shadow: 0 4px 20px rgba(2, 6, 23, 0.1);
  --panel: #ffffff;
  --card-front: #f8f9fc;
  --card-back: #1e2937;
  --accent: #ffcc33;
  --muted: #64748b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(180deg, #0f172a, #1e2937);
  color: #0b0b0d;
  min-height: 100vh;
  padding: 15px;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Panels */
.panel {
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f3 100%);
  color: #0b0b0d;
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
}

.top-panel {
  align-items: flex-start;
  border-radius: 12px 12px 8px 8px;
}

.bottom-panel {
  align-items: flex-end;
  border-radius: 8px 8px 12px 12px;
  flex-direction: row;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}

/* Avatar */
.avatar {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  border: 4px solid rgba(0,0,0,.06);
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cards */
.cards {
  display: flex;
  gap: 10px;
  align-items: center;
}

.card {
  width: 70px;
  height: 100px;
  border-radius: 8px;
  background: var(--card-front);
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(2,6,23,.15);
  border: 1px solid rgba(0,0,0,.06);
}

.card.back {
  background: linear-gradient(135deg, var(--card-back), #0f1720);
  color: #fff;
  background-size: 200% 200%;
}

.card .rank { font-size: 18px; }
.card .suit { font-size: 22px; opacity: .9; }

/* Controls */
.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  background: var(--accent);
  color: #111;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  min-width: 70px;
  box-shadow: 0 6px 12px rgba(255,204,51,.18);
}

.btn.secondary {
  background: #e6e7ea;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.money {
  background: rgba(0,0,0,.06);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: #111;
}

/* Betting */
.betting {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px;
}

/* Stats */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stat {
  background: rgba(255,255,255,.06);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  min-width: 110px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 720px) {
  .avatar { width: 72px; height: 72px; }
  .card { width: 56px; height: 82px; }
  .panel { padding: 10px; }
  .name { font-size: 14px; }
  .stat { min-width: 92px; }
  .cards { gap: 8px; }
}