* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #111;
  min-height: 100vh;
  color: #d4d4d4;
}

.container {
  max-width: 100%;
  min-height: 100vh;
  padding: 16px;
  background: #111;
}

h1 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #e5e5e5;
  margin-bottom: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Player count */
.player-selector {
  margin-bottom: 16px;
}

.player-selector h3 {
  color: #888;
  margin-bottom: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.player-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.player-btn {
  padding: 8px 4px;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.1s ease;
  font-weight: 600;
  font-size: 0.7rem;
  color: #777;
  text-align: center;
  line-height: 1.3;
}

.player-btn:active {
  transform: scale(0.97);
}

.player-btn.active {
  border-color: #2d5a27;
  background: #1a2e17;
  color: #6abf5e;
}

/* Position selector */
h3 {
  color: #888;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.position-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.position-btn {
  padding: 10px 12px;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.1s ease;
  text-align: left;
}

.position-btn:active {
  transform: scale(0.98);
}

.position-btn.active {
  border-color: #2d5a27;
  background: #1a2e17;
}

.position-name {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1px;
  color: #ccc;
}

.position-btn.active .position-name {
  color: #6abf5e;
}

.position-desc {
  font-size: 0.7rem;
  color: #555;
  font-weight: 500;
}

/* Legend */
.legend {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #888;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Explanation box */
.explanation-box {
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  padding: 12px 0;
  margin-bottom: 16px;
}

.explanation-box h4 {
  color: #888;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.explanation-box p {
  color: #666;
  font-size: 0.75rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.explanation-box p:last-child {
  margin-bottom: 0;
}

/* Hand sections */
.hand-section {
  background: #1a1a1a;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid transparent;
}

.hand-section.premium {
  border-left-color: #c43030;
  background: #1a1a1a;
}

.hand-section.raise {
  border-left-color: #c47a20;
  background: #1a1a1a;
}

.hand-section.call {
  border-left-color: #a69520;
  background: #1a1a1a;
}

.hand-section.fold {
  border-left-color: #333;
  background: #151515;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-title {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.section-count {
  color: #555;
  font-size: 0.7rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.7rem;
  color: #555;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Hand chips */
.hands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hand-chip {
  padding: 4px 8px;
  border-radius: 3px;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.72rem;
  color: white;
  letter-spacing: 0.01em;
}

.hand-chip.premium {
  background: #9b2c2c;
}

.hand-chip.raise {
  background: #8a5a1e;
}

.hand-chip.call {
  background: #6b6314;
}

.hand-chip.fold {
  background: #252525;
  color: #555;
}

/* Info & tip boxes */
.info-box {
  border-top: 1px solid #222;
  padding: 14px 0;
  margin-top: 16px;
}

.info-box h4 {
  color: #888;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.info-box p {
  color: #666;
  font-size: 0.75rem;
  line-height: 1.6;
  margin-bottom: 4px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.tip-box {
  background: #1a2e17;
  border-left: 3px solid #2d5a27;
  border-radius: 4px;
  padding: 12px;
  margin-top: 12px;
}

.tip-box h4 {
  color: #6abf5e;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tip-box p {
  color: #999;
  font-size: 0.75rem;
  line-height: 1.6;
}

/* Tablet */
@media (min-width: 640px) {
  .container {
    padding: 24px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 640px;
    min-height: auto;
    border: 1px solid #222;
  }

  h1 {
    font-size: 1.6rem;
  }

  .player-buttons {
    gap: 8px;
  }

  .player-btn {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .position-selector {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    max-width: 900px;
    padding: 32px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .player-btn {
    padding: 12px 8px;
    font-size: 0.85rem;
  }

  .player-btn:hover {
    border-color: #2d5a27;
    color: #6abf5e;
  }

  .position-selector {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
  }

  .position-btn {
    padding: 12px;
  }

  .position-btn:hover {
    border-color: #2d5a27;
  }

  .hand-section {
    padding: 14px;
  }

  .hands-grid {
    gap: 5px;
  }

  .hand-chip {
    padding: 5px 10px;
    font-size: 0.82rem;
  }
}
