/* Grundlayout */
html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: #222;
  color: #f5f5f5;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header.app-header {
  background: #111;
  padding: 1rem;
  border-bottom: 2px solid #444;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

header .brand .logo {
  background: #0f0f0f;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  color: #00ffc6;
  font-size: 1.25rem;
}

.wallet {
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wallet #balance {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* Main container */
main.container {
  flex: 1;
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Controls */
.controls {
  background: #2a2a2a;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 1rem;
}

.control-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip, .primary, .success, button {
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: #333;
  color: #f5f5f5;
  transition: background 0.2s ease;
}

.chip:hover, .primary:hover, .success:hover {
  background: #444;
}

.primary {
  background: #007bff;
}
.primary:hover {
  background: #0066cc;
}

.success {
  background: #28a745;
}
.success:hover {
  background: #218838;
}

input[type="number"], select {
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #555;
  background: #1e1e1e;
  color: #f5f5f5;
}

.statline {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

/* Board Wrapper */
.board-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Footer */
footer.app-footer {
  background: #111;
  padding: 0.75rem;
  border-top: 2px solid #444;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
}
