/* Direction: Neon Chowk — midnight violet arcade board, saffron neon, rounded playful display */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #0c0a18;
  --surface: #171231;
  --surface-2: #211a40;
  --border: #332b5e;
  --border-strong: #55545d;
  --ink: #f4eeff;
  --muted: #a99ec9;
  --accent: #ff6a2b;
  --accent-hover: #ff804b;
  --accent-ink: #0c0a18;
  --accent-text: #ffb27a;
  --accent-strong: #ffa769;
  --accent-soft: #2d1c34;
  --accent-border: #793521;
  --success: #3ddc97;
  --success-ink: #ffffff;
  --success-soft: #173834;
  --success-strong: #3ddc97;
  --warning: #ffc44d;
  --warning-ink: #ffffff;
  --warning-soft: #413324;
  --warning-strong: #ffc44d;
  --danger: #ff5c7a;
  --danger-ink: #ffffff;
  --danger-soft: #411c2e;
  --danger-strong: #ff5c7a;
  --chart-1: #ff6a2b;
  --chart-2: #d1bd2f;
  --chart-3: #239e6d;
  --chart-4: #0cc8f3;
  --chart-5: #736ef4;
  --chart-6: #fd8ad8;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --radius-card: 20px;
  --radius-btn: 999px;
  --radius-input: 14px;
  --card-pad: 1.3rem;
  --x-p1: #ffc44d;
  --x-p2: #7c6cff;
  --x-sq-light: #cdc3ec;
  --x-sq-dark: #4b3f7f;
  --x-piece-w: #fffaf3;
  --x-piece-b: #160f2c;
  --x-on-photo: #ffffff;
  --x-glow: rgba(255, 106, 43, 0.38);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --display-tracking: -0.02em;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #dddddf;
  --border-strong: #b6b6ba;
  --ink: #0c0a18;
  --muted: #6d6c74;
  --accent: #ff6a2b;
  --accent-hover: #d95a25;
  --accent-ink: #0c0a18;
  --accent-text: #b74c1f;
  --accent-strong: #a8461d;
  --accent-soft: #ffeae1;
  --accent-border: #ffbca0;
  --success: #3ddc97;
  --success-ink: #0c0a18;
  --success-soft: #e8fbf3;
  --success-strong: #227955;
  --warning: #ffc44d;
  --warning-ink: #0c0a18;
  --warning-soft: #fff8ea;
  --warning-strong: #846528;
  --danger: #ff5c7a;
  --danger-ink: #0c0a18;
  --danger-soft: #ffebef;
  --danger-strong: #b74257;
  --chart-1: #f86322;
  --chart-2: #a4941d;
  --chart-3: #179866;
  --chart-4: #0ca2c4;
  --chart-5: #6d67ee;
  --chart-6: #e45ebc;
}

/* Chowk Five — the game surfaces: board squares, tiles, the neon table glow. */

.chip-on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.chowk-grid {
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
}

.glow {
  box-shadow: 0 0 46px var(--x-glow);
}

.sq {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
  font-size: 1.85rem;
}

@media (min-width: 640px) {
  .sq {
    font-size: 2.35rem;
  }
}

.sq-sel {
  box-shadow: inset 0 0 0 3px var(--accent);
}

.piece {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, background 0.16s ease;
}

.tile:hover {
  transform: translateY(-2px);
}

@keyframes chowk-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.shake {
  animation: chowk-shake 0.3s ease;
}

@keyframes chowk-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--x-glow); }
  50% { box-shadow: 0 0 34px 2px var(--x-glow); }
}

.pulse {
  animation: chowk-pulse 1.9s ease-in-out infinite;
}

html.reduced-motion .shake,
html.reduced-motion .pulse,
html.reduced-motion .tile:hover {
  animation: none;
  transform: none;
}
