/* Keno tools (Extractor Pro 5 + 4 Card Extractor) — match Fast Tracker Teams vibe */

html.keno-tools-mode,
html.keno-tools-mode body {
  background:
    radial-gradient(circle at 14% 0%, rgba(44,130,220,0.35), transparent 34%),
    radial-gradient(circle at 92% 100%, rgba(80,220,130,0.13), transparent 32%),
    #050b14;
}

html.keno-tools-mode main {
  background: transparent !important;
  min-height: calc(100vh - var(--site-header-height, 72px));
}

html.keno-tools-mode .ud-footer {
  display: none;
}

.kt-page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 2rem;
  color: #f5f9ff;
  font-family: Arial, Helvetica, sans-serif;
}

.kt-shell {
  background: linear-gradient(180deg, #111d2f 0%, #0b1423 48%, #070d17 100%);
  border-radius: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  min-height: calc(100vh - var(--site-header-height, 72px) - 2rem);
}

.kt-top {
  padding: 12px 14px;
  background: linear-gradient(180deg, #263b55, #142438);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.kt-title {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-weight: 1000;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kt-sub {
  padding: 10px 14px 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  line-height: 1.35;
}

.kt-card {
  margin: 12px 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(4,10,19,0.45);
  border: 1px solid rgba(255,255,255,0.075);
}

.kt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 12px 14px 0;
}

.kt-btn {
  background: #ffd743;
  color: #111;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  cursor: pointer;
}

.kt-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #f5f9ff;
  border: 1px solid rgba(255,255,255,0.11);
}

.kt-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  width: min(520px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 0 14px;
}

.kt-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.9);
  aspect-ratio: 1;
  cursor: pointer;
  user-select: none;
  font-weight: 900;
  font-size: clamp(0.65rem, 2.8vw, 0.92rem);
}

.kt-cell.kt-selected {
  background: rgba(141,255,191,0.15);
  border-color: rgba(141,255,191,0.35);
  color: #8dffbf;
}

/* Legacy selectors used by older tool JS (4CardExtractor.js, etc.) */
.grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; width: min(520px, calc(100% - 28px)); margin: 12px auto 0; }
.cell { display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.9); aspect-ratio: 1; cursor: pointer; user-select: none; font-weight: 900; font-size: clamp(0.65rem, 2.8vw, 0.92rem); }
.cell.selected { background: rgba(141,255,191,0.15); border-color: rgba(141,255,191,0.35); color: #8dffbf; }
.board-container { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.board { padding: 12px; border-radius: 16px; background: rgba(4,10,19,0.45); border: 1px solid rgba(255,255,255,0.075); }
.label { font-weight: 1000; color: #ffd743; margin: 6px 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }

.kt-results {
  padding: 10px 14px 14px;
  font-size: 0.95rem;
  text-align: left;
}

.kt-board {
  margin: 12px 0;
}

.kt-board-label {
  font-weight: 1000;
  color: #ffd743;
  margin: 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.kt-board .kt-grid {
  width: 100%;
  padding: 0;
}

