/* Combina 10 — the play column only. The frame lives in `_shared/chrome.css`. */

.jl-combina-10 {
  --jl-bg: #0e1116;
  --jl-fg: #e9eef5;
  --jl-line: #232c36;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--jl-bg);
  color: var(--jl-fg);
  overflow: hidden;
  touch-action: manipulation;
}

.jl-combina-10 *,
.jl-combina-10 *::before,
.jl-combina-10 *::after { box-sizing: border-box; margin: 0; padding: 0; }

.jl-c10-col {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ---- HUD --------------------------------------------------------------- */
.jl-c10-hud {
  flex: 0 0 auto;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
}

.jl-c10-stat { display: flex; align-items: baseline; gap: 5px; }

.jl-c10-lab {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .62;
}

.jl-c10-val {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.jl-c10-notice {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  color: #fbbf24;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jl-c10-add {
  margin-left: auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--jl-line);
  border-radius: 8px;
  background: #1a222c;
  color: var(--jl-fg);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.jl-c10-add:disabled { opacity: .45; cursor: default; }
.jl-c10-add:active:not(:disabled) { transform: scale(.96); }
.jl-c10-add:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- the board --------------------------------------------------------- */
.jl-c10-mid {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.jl-c10-board {
  position: relative;
  /* Without this a drag scrolls the page and the selection is lost. */
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.jl-c10-cell {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--tile-font, 16px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0b0e12;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 100ms linear, box-shadow 100ms linear;
}

/* The digits carry a colour band so a run is easy to scan, but the NUMBER is the signal —
   colour is never the only cue (SH-81). */
.jl-c10-v1, .jl-c10-v2, .jl-c10-v3 { background: #7dd3fc; }
.jl-c10-v4, .jl-c10-v5, .jl-c10-v6 { background: #fde68a; }
.jl-c10-v7, .jl-c10-v8, .jl-c10-v9 { background: #fca5a5; }

.jl-c10-hole { background: transparent; cursor: default; }

/* M11-M13: the selection outline, and the valid state. */
.jl-c10-cell.jl-c10-sel {
  filter: brightness(1.18);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}

.jl-c10-cell.jl-c10-ok {
  filter: brightness(1.35);
  box-shadow: inset 0 0 0 3px #22c55e, 0 0 10px rgba(34, 197, 94, .55);
}

/* M11/M14: the running total, positioned near the selection's start and out of the thumb's way. */
.jl-c10-pill {
  position: absolute;
  z-index: 6;
  min-width: 54px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.jl-c10-pill[hidden] { display: none; }
/* M12: over the target — show the real total so the player learns from it. */
.jl-c10-pill-over { background: #b91c1c; }
/* M13: exactly 10. */
.jl-c10-pill-ok { background: #15803d; }

.jl-c10-bonus {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: #FFD54F;
  color: #06222a;
  font-size: 16px;
  font-weight: 800;
  z-index: 7;
  pointer-events: none;
  white-space: nowrap;
}

.jl-c10-bonus[hidden] { display: none; }

/* ---- the veil --------------------------------------------------------- */
.jl-c10-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #0e1116;
  z-index: 8;
}

.jl-c10-veil[hidden] { display: none; }

.jl-c10-box { width: 100%; max-width: 340px; text-align: center; }

.jl-c10-box h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}

.jl-c10-sub {
  font-size: 15px;
  line-height: 1.5;
  opacity: .88;
  margin-bottom: 18px;
}

.jl-c10-rec {
  font-size: 15px;
  font-weight: 800;
  color: #FFD54F;
  margin: -8px 0 18px;
}

.jl-c10-go {
  display: inline-block;
  min-width: 150px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: #2b6cb0;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.jl-c10-go:active { transform: scale(.97); }
.jl-c10-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- small screens (SH-21: 320px) ------------------------------------- */
@media (max-width: 359px) {
  .jl-c10-hud { gap: 7px; padding: 0 6px; height: 36px; }
  .jl-c10-lab { font-size: 9px; }
  .jl-c10-val { font-size: 14px; }
  .jl-c10-add { min-height: 28px; padding: 0 8px; font-size: 11px; }
  .jl-c10-mid { padding: 3px; }
}

/* ---- reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .jl-c10-cell { transition: none; }
  .jl-c10-go:active { transform: none; }
  .jl-c10-add:active:not(:disabled) { transform: none; }
}
