.tool-page { padding: 120px 0 80px; min-height: 100vh; }
.tool-header { margin-bottom: 48px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 13px; font-family: var(--font-head);
  margin-bottom: 24px; transition: color var(--transition);
}
.back-link:hover { color: var(--cyan); }
.tool-title { font-family: var(--font-head); font-size: clamp(28px, 5vw, 44px); font-weight: 700; margin: 12px 0 16px; }
.tool-desc { color: var(--text-muted); font-size: 16px; max-width: 1200px; }

.keno-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
@media (max-width: 800px) { .keno-layout { grid-template-columns: 1fr; } }

.calc-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.calc-card h3 {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 20px;
}

/* Keno board */
.keno-board {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
@media (max-width: 500px) {
  .keno-board { grid-template-columns: repeat(8, 1fr); gap: 4px; }
}

.keno-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-3); color: var(--text-muted);
  transition: all 0.25s ease; cursor: default;
}
.keno-cell.drawn {
  background: radial-gradient(circle at 35% 35%, #FF2E63, #8b0028);
  border-color: var(--pink); color: #fff;
  box-shadow: 0 0 14px rgba(255,46,99,0.5);
}

@keyframes kenoPopIn {
  0%   { transform: scale(0.4); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.keno-cell.pop { animation: kenoPopIn 0.35s ease forwards; }

/* Controls */
.pick-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pick-row label { font-size: 13px; color: var(--text-muted); }
.pick-slider { -webkit-appearance: none; appearance: none; width: 160px; height: 4px; border-radius: 2px; background: var(--bg-3); outline: none; }
.pick-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--pink); cursor: pointer;
  box-shadow: 0 0 8px rgba(255,46,99,0.6);
}
.pick-value { font-family: 'Press Start 2P', monospace; font-size: 14px; color: var(--pink); min-width: 30px; }

/* Stats panel */
.stat-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.stat-item:last-child { border-bottom: none; padding-bottom: 0; }
.stat-item__label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.stat-item__val { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--cyan); }

.drawn-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
  min-height: 40px;
}
.drawn-pill {
  background: rgba(255,46,99,0.15); border: 1px solid rgba(255,46,99,0.4);
  color: var(--pink); font-family: 'Press Start 2P', monospace; font-size: 11px;
  padding: 6px 10px; border-radius: 4px;
}

/* Align helpline cards in the keno guide section */
.keno-guide .helpline-card {
  display: flex;
  flex-direction: column;
  min-height: 160px;
}
.keno-guide .helpline-card a {
  margin-top: auto;
  padding-top: 12px;
}

/* Article section below tool */
.keno-guide {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
  padding-bottom: 80px;
}

.article-body h4 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 32px 0 12px;
}

