:root {
  --font-scale: 1;
}

/* Base */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  margin: 8px;
  background: #ffffff;
  color: #000;
  user-select: none;
  font-size: calc(18px * var(--font-scale));
}

h1 {
  font-size: 18px;
  text-align: center;
  margin: 6px 0 6px;
}

/* Font size control */

.font-size-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 24px;
}

.font-size-control button {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #e5e5e5;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.font-size-control button:hover {
  background-color: #dcdcdc;
}

/* Columns */

.columns {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

.suit-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 2px;
  border-radius: 6px;
}

.suit-column.active {
  background-color: #e6f2ff;
}

/* Suit symbols */

.suit-symbol {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 6px;
}

.suit-symbol.heart,
.suit-symbol.diamond {
  color: #c40000;
}

/* Cards */

.card {
  font-size: calc(32px * var(--font-scale));
  padding: 3px 6px;
  margin: 1px 0;
  border-radius: 4px;
  cursor: pointer;
}

.card:hover {
  background-color: #f2f2f2;
}

.card.selected {
  background-color: #000;
  color: #fff;
}

/* Suit counter */

.suit-counter {
  margin-top: 15px;
  width: 36px;
  height: 36px;
  background-color: #e5e5e5;
  font-weight: bold;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Controls */

.controls {
  margin-top: 10px;
  text-align:center;
}

.controls button {
  padding: 6px 12px;
  margin:10px;
  font-size: calc(18px * var(--font-scale));
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  cursor: pointer;
}

.controls button:hover {
  background-color: #eaeaea;
}

/* Keyboard hint */

.keyboard-hint {
  margin-top: 8px;
  font-size: 11px;
  text-align: center;
  color: #555;
}
