[x-cloak] {
  display: none !important;
}

/* Pin Deck */
.pin-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 0 auto;
}

.pin-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background: white;
  color: black;
  transition: all 0.1s;
  cursor: pointer;
}

.pin-btn.selected {
  background-color: #ef4444;
  border-color: #ef4444;
  color: white;
}

/* Desktop Score Table */
.score-table th,
.score-table td {
  border: 1px solid #4b5563;
  padding: 2px;
  text-align: center;
  min-width: 32px;
  font-size: 11px;
}

.active-player {
  border: 2px solid #eab308;
  background-color: #374151;
}

.clickable-frame:hover {
  background-color: #4b5563;
  cursor: pointer;
}

/* === MOBILE GRID STYLES (< 768px) === */

.mobile-player-card {
  border: 1px solid #4b5563;
  margin-bottom: 8px;
  background-color: #1f2937;
}

.active-mobile-player {
  border: 2px solid #eab308;
  background-color: #374151;
}

.mobile-frames-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr); /* 10 Frames + 1 Total */
  border-top: 1px solid #4b5563;
}

.mobile-cell {
  border-right: 1px solid #4b5563;
  border-bottom: 1px solid #4b5563;
  text-align: center;
  font-size: 10px; /* Small font to fit 360px */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 35px; /* Fixed height for consistency */
  overflow: hidden;
}

.mobile-cell.header {
  background-color: #374151;
  color: #9ca3af;
  height: 20px;
  font-size: 9px;
  border-bottom: 1px solid #6b7280;
}

.mobile-cell:last-child {
  border-right: none;
}

/* Keypad Grid */
.keypad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.key-btn {
  height: 60px;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  transition: transform 0.05s;
}

.key-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}
