/* Novos jogos GameMix */

.game-card[data-game="snake"] { --card: #51cf66; }

.game-figure-snake {
  padding: 12px 8px;
}

.snake-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1;
}

.game-card[data-game="sequencia"] { --card: #ff922b; }
.game-card[data-game="ordenar"] { --card: #66d9e8; }

.game-figure-order {
  padding: 10px 6px;
}

.order-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.order-nums {
  font-size: clamp(0.82rem, 3.6vw, 1rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.order-arrow {
  font-size: clamp(1.35rem, 6vw, 1.65rem);
  line-height: 1;
  color: var(--ink);
  filter: drop-shadow(1px 2px 0 rgb(43 42 74 / 12%));
}

.game-card[data-game="sombras"] { --card: #868e96; }
.game-card[data-game="semaforo"] { --card: #37b24d; }

/* Sequência */
.seq-board {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.seq-pad {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 14px;
  width: min(100%, 240px);
}

.seq-btn {
  aspect-ratio: 1;
  border-radius: 22px;
  border: 4px solid var(--ink);
  background: var(--paper);
  font-size: clamp(2rem, 10vw, 2.6rem);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.seq-btn.is-lit {
  transform: scale(1.06);
  box-shadow: 0 0 0 4px var(--marker), var(--shadow);
}

/* Ordenar */
.order-board {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.order-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.order-chip {
  min-width: 64px;
  min-height: 64px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 4px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 1.6rem;
  box-shadow: var(--shadow);
}

.order-chip.is-picked {
  opacity: 0.45;
  transform: scale(0.96);
}

/* Sombras */
.shadow-board {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.shadow-hero {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius);
  border: 4px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.shadow-silhouette {
  display: block;
  filter: brightness(0);
  opacity: 0.92;
}

.shadow-silhouette svg {
  width: min(72vw, 140px);
  height: auto;
}

.shadow-choices {
  display: grid;
  gap: 10px;
  width: 100%;
}

.shadow-choices.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shadow-choices.cols-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shadow-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 20px;
  border: 4px solid var(--ink);
  background: var(--paper);
  font-size: 0.85rem;
  box-shadow: 0 4px 0 rgb(43 42 74 / 15%);
}

.shadow-art svg {
  width: 56px;
  height: 56px;
}

/* Semáforo */
.light-board {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.light-disc {
  width: min(72vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 5px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 0;
}

.light-glow {
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: #ff6b6b;
  transition: background 0.15s ease;
}

.light-glow[data-state="yellow"] {
  background: #ffe14a;
}

.light-glow[data-state="green"] {
  background: #51cf66;
}

.light-hint {
  margin: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Snake */
.snake-board {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.snake-canvas {
  width: min(92vw, 320px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  touch-action: none;
}

.snake-controls {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.snake-controls-row {
  display: flex;
  gap: 10px;
}

.snake-dir {
  min-width: 56px;
  min-height: 56px;
  border-radius: 16px;
  border: 4px solid var(--ink);
  background: var(--marker);
  font-size: 1.25rem;
  box-shadow: 0 4px 0 var(--ink);
}
