/* Tango — board-specific styles (chrome comes from /games/puzzle.css) */
.tg-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  width: min(92vw, 420px);
  aspect-ratio: 1 / 1;
  background: var(--border-bright);
  border: 3px solid var(--border-bright);
  border-radius: 12px;
  overflow: hidden;
  gap: 2px;
  box-shadow: 0 0 36px rgba(184, 255, 64, 0.12);
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tg-cell {
  background: var(--board-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(24px, 8vw, 40px);
  line-height: 1;
  cursor: pointer;
  transition: background 0.1s;
}
.tg-cell.given { background: #0E1A0D; cursor: default; box-shadow: inset 0 0 0 2px rgba(184,255,64,0.12); }
.tg-cell.empty:hover { background: #12200F; }
.tg-cell.bad { background: rgba(255, 90, 74, 0.20); box-shadow: inset 0 0 0 2px rgba(255,90,74,0.6); }
.tg-cell.solved-flash { animation: tgFlash 0.5s ease-out; }
@keyframes tgFlash { 0% { background: rgba(184,255,64,0.5); } 100% { } }

/* clue signs between cells */
.tg-sign {
  position: absolute;
  width: clamp(16px, 4.4vw, 22px);
  height: clamp(16px, 4.4vw, 22px);
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-bright);
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 800; font-size: clamp(11px, 3vw, 15px);
  z-index: 2; pointer-events: none;
}
.tg-sign.eq { color: var(--acid); }
.tg-sign.xx { color: var(--orange); }
.tg-sign.bad { border-color: #FF5A4A; background: rgba(255,90,74,0.25); color: #fff; }

/* inline sign chips used in the How-to text */
.tg-inline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border-bright);
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 12px;
  vertical-align: middle;
}
.tg-inline.eq { color: var(--acid); }
.tg-inline.xx { color: var(--orange); }
