/* CarkedIt Online — Hand Component */

.hand {
  position: sticky;
  bottom: 0;
  background: var(--color-hand-bg);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -4px 6px var(--color-shadow-sm), 0 -2px 4px var(--color-shadow-sm);
  padding: 12px;
  z-index: 10;
}

.hand--empty {
  position: sticky;
  bottom: 0;
  height: 48px;
}

.hand__fan {
  position: relative;
  height: 197.5px;
  overflow: visible;
}

.hand__card {
  position: absolute;
  top: 6px;
  width: 135px;
  height: 197.5px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 15px var(--color-shadow-sm), 0 4px 6px var(--color-shadow-sm);
}

.hand__card .card {
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

.hand__card:hover .card {
  border-color: var(--color-primary);
}

/* Dimmed hand — used during pitching / judging */
.hand--dimmed {
  opacity: 0.5;
  pointer-events: none;
}

/* Living Dead container in hand area */
.hand--living-dead-container {
  padding: 12px;
}

/* Living Dead message box */
.living-dead-message {
  background: var(--color-living-dead-msg-bg);
  border: 2px solid var(--color-living-dead-msg-border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.living-dead-message__text {
  color: var(--color-living-dead-msg-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* Selected card in fan — protrudes ~35% of card height above the rest */
.hand__card--selected {
  top: -63px;
  transition: top 0.15s ease;
}

/* Inspect overlay — full screen card preview */
.hand__inspect-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay-dim);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hand__inspect-card-wrapper {
  width: min(85vw, 400px);
  transform: rotate(-3deg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hand__inspect-card-wrapper .card {
  border-radius: 14px;
  box-shadow: 0 10px 15px var(--color-shadow-sm), 0 4px 6px var(--color-shadow-sm);
}

.hand__submit-btn {
  width: 100%;
}

/* Navigation arrows in the inspect overlay — float over the card */
.hand__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-nav-btn-bg);
  color: var(--color-white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease;
  z-index: 1;
}

.hand__nav-btn--prev {
  left: 16px;
}

.hand__nav-btn--next {
  right: 16px;
}

.hand__nav-btn:hover {
  background: var(--color-nav-btn-hover-bg);
}

/* Footer area — sits inside .hand below the fan */
.hand__footer {
  padding-top: 12px;
  margin-top: 12px;
}

.hand__footer .btn {
  width: 100%;
}

.hand__footer-row {
  display: flex;
  gap: 8px;
}

.hand__footer-row .btn {
  flex: 1;
}

/* Arrow colour matches deck accent */
.hand__inspect-overlay--live .hand__nav-btn { color: var(--color-live); }
.hand__inspect-overlay--bye  .hand__nav-btn { color: var(--color-bye); }
.hand__inspect-overlay--die  .hand__nav-btn { color: var(--color-die); }
