/* Puissance 4 (Connect Four) — plateau family (design/Jeu - Puissance 4). A 7×6 rack
   cut into a wooden board on the warm leather surface, the same in light and dark.
   Amber discs (you) versus pewter (the computer) drop into carved holes. A side
   panel names the camps. Scoped under .p4-root. */

.p4-root { display: flex; flex-direction: column; align-items: stretch; inline-size: 100%; color: var(--color-text); --cell: 58px; --p4gap: 12px; }

.p4-surface {
  inline-size: 100%; box-sizing: border-box;
  background: #43302b; border-block: 1px solid #2c1f1b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: var(--space-6) 0; color: #f4ece5;
}
.p4-inner { max-inline-size: 1000px; margin-inline: auto; padding-inline: var(--space-4); box-sizing: border-box; display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: center; }

.p4-planche {
  flex: 0 1 auto; padding: 22px; border-radius: 4px; box-sizing: border-box;
  background: linear-gradient(152deg, #7b5638 0%, #603f2e 40%, #4c3427 78%, #5d3f2d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -2px 6px rgba(0, 0, 0, 0.4), 0 22px 44px rgba(0, 0, 0, 0.40);
}
.p4-board { display: grid; gap: var(--p4gap); }
.p4-cell { inline-size: var(--cell); block-size: var(--cell); display: grid; place-items: center; }
.p4-cell.playable { cursor: pointer; }

.p4-disc { inline-size: 100%; block-size: 100%; border-radius: 50%; }
/* Empty holes: a dark recess carved into the wood. */
.p4-disc.empty { background: radial-gradient(circle at 50% 42%, #17100b, #2a1d13 70%); box-shadow: inset 0 5px 9px rgba(0, 0, 0, 0.6), inset 0 -2px 0 rgba(255, 255, 255, 0.06); }
.p4-cell.hint .p4-disc.empty, .p4-board:not(.locked) .p4-cell.playable:hover .p4-disc.empty { box-shadow: inset 0 5px 9px rgba(0, 0, 0, 0.6), inset 0 0 0 3px var(--color-accent-400); }
.p4-disc.human { background: radial-gradient(circle at 34% 26%, #ffe6a8 0%, #dda63f 44%, #8f6318 100%); box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.45), inset 0 -3px 5px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.4); }
.p4-disc.ai { background: radial-gradient(circle at 34% 26%, #8d9298 0%, #5c6167 46%, #2e3236 100%); box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.35), inset 0 -3px 5px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.4); }
.p4-disc.win { outline: 3px solid var(--color-accent-400); outline-offset: -3px; }

@media (prefers-reduced-motion: no-preference) { .p4-disc.human, .p4-disc.ai { animation: p4-drop 0.18s ease-out; } }
@keyframes p4-drop { from { transform: translateY(-40%); opacity: 0.5; } to { transform: none; opacity: 1; } }

/* Side panel: turn note + the two camps. */
.p4-side { flex: 0 1 218px; min-inline-size: 200px; display: flex; flex-direction: column; gap: var(--space-4); color: #f4ece5; }
.p4-turn { border-inline-start: 2px solid var(--color-accent-400); padding-inline-start: var(--space-3); font-size: 15px; min-block-size: 1.4em; }
.p4-turn.over { font-family: var(--font-heading); font-weight: 600; color: var(--color-accent-300); }
.p4-side-k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244, 236, 229, 0.78); padding-block-end: 6px; border-block-end: 1px solid rgba(244, 236, 229, 0.2); margin-block-end: var(--space-2); }
.p4-camp { display: flex; align-items: center; gap: 10px; min-block-size: 30px; }
.p4-pastille { inline-size: 18px; block-size: 18px; border-radius: 50%; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.4); }
.p4-pastille.human { background: radial-gradient(circle at 34% 26%, #ffe6a8, #dda63f 60%, #8f6318); }
.p4-pastille.ai { background: radial-gradient(circle at 34% 26%, #8d9298, #5c6167 60%, #2e3236); }
.p4-camp-n { font-family: var(--font-heading); font-weight: 600; font-size: 15px; }

.p4-hint { text-align: center; font-size: 12px; color: var(--color-neutral-600); max-inline-size: 560px; margin-inline: auto; padding-block-start: var(--space-3); }
.lz-variants.p4-inline-chips { margin: 0; }
