/* Drop Four — four in a row, versus the computer or a friend by link. */

.game-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.head-btns { display: flex; gap: 6px; }

.df-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: var(--space-3) 0; }
.df-modes .btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--text);
  font-weight: 700;
}

.df-status { text-align: center; margin: 0 0 var(--space-3); font-weight: 700; min-height: 1.4em; }
.df-status.warn { color: var(--warn); font-weight: 400; font-size: 0.9rem; }

.stage-wrap { position: relative; width: min(94vw, 440px); margin: 0 auto var(--space-3); }

.df-board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.df-cell {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  /* An empty slot reads as a hole punched in the board, so a column is legible
     as a column even when it is completely empty. */
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 140ms var(--ease), box-shadow 140ms var(--ease);
}
.df-cell:disabled { cursor: default; }
.df-cell:hover:not(:disabled):not(.p1):not(.p2) { background: color-mix(in srgb, var(--accent) 26%, rgba(0, 0, 0, 0.42)); }

.df-disc { display: block; width: 100%; height: 100%; border-radius: 50%; }
.df-cell.p1 { background: #dc2626; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.4); }
.df-cell.p2 { background: #facc15; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4); }
.df-cell.win { outline: 3px solid var(--text); outline-offset: -3px; }

.overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: var(--space-4);
  background: rgba(6, 7, 12, 0.86);
  backdrop-filter: blur(5px);
  border-radius: var(--radius);
}
.over-kicker { letter-spacing: 0.28em; font-size: 0.72rem; font-weight: 800; color: var(--accent-text); }
.over-score { font-size: 3.4rem; line-height: 1; }
.over-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.df-actions { display: grid; gap: 8px; margin-bottom: var(--space-3); }
