@layer app {
/* ============================================================
   Hand area
   ============================================================ */
.play-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.play-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.hand-section {
  border-top: 1px solid var(--status-brd);
  background: var(--hand-bg);
  padding: 10px 12px 14px;
  flex-shrink: 0;
}

.hand-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 9px;
  font-family: var(--font-body);
  color: var(--label-col);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hand-label-sub {
  font-size: 9px;
  color: var(--orange);
  letter-spacing: 1px;
  font-weight: 600;
}

.hand {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hand-cell {
  flex: 1;
  min-width: 0;
  max-width: var(--cell-size);
  height: var(--cell-size);
  background: var(--hand-bg2);
  border: 1px solid var(--hand-brd);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s, border-color 0.12s, opacity 0.12s;
  overflow: hidden;
  touch-action: manipulation;
  /* Reset button defaults when used as <button> */
  font: inherit;
  color: inherit;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.hand-cell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.06);
  pointer-events: none;
  z-index: 2;
}

.hand-cell .cell-letter {
  font-size: 28px;
}

.hand-cell .cell-value {
  font-size: var(--cell-sub-font);
}

.hand-cell:active {
  transform: scale(0.94);
}

.hand-cell.selected {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 4px 10px var(--orange-glow);
}

.hand-cell.used {
  opacity: 0.35;
  cursor: pointer;
}

.hand-cell.hand-dragging {
  opacity: 0.9;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 9999;
  pointer-events: none;
}

.hand-drag-placeholder {
  background: var(--cell-empty-bg);
  border: 2px dashed var(--cell-brd);
  border-radius: var(--radius);
  opacity: 0.5;
}

.swap-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

}
