.hot-tool .sdk {
  --line: #2b3a55;
  --thin: #c4cddc;
  --accent: #315bcf;
  --sel: #c9d8ff;
  --peer: #eef2fb;
  --same: #dbe5ff;
  --wrong: #d1293d;
  max-width: 520px;
  margin: 1.25rem auto 2.25rem;
}

.hot-tool .sdk-top,
.hot-tool .sdk-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.6rem;
}

.hot-tool .sdk-sub { font-size: 0.92rem; color: #4b5a72; }
.hot-tool .sdk-level-label { font-weight: 700; }

.hot-tool #sdk-level {
  font: inherit;
  padding: 0.45rem 0.6rem;
  border: 1px solid #aab6c8;
  border-radius: 8px;
  background: #fff;
  color: inherit;
}

.hot-tool .sdk-stat { white-space: nowrap; }
.hot-tool .sdk-stat strong { font-variant-numeric: tabular-nums; }
.hot-tool .sdk-k { color: #5f6e86; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.04em; }
.hot-tool .sdk-top .sdk-stat { margin-left: auto; font-size: 1.05rem; }
.hot-tool .sdk-check { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; cursor: pointer; }

.hot-tool .sdk-btn {
  border: 1px solid #c8d1e0;
  border-radius: 9px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 650;
  line-height: 1.1;
  background: #fff;
  color: #1d2b45;
  cursor: pointer;
  transition: background 120ms, transform 80ms;
}

.hot-tool .sdk-btn:hover { background: #f0f4fb; }
.hot-tool .sdk-btn:active { transform: scale(0.96); }
.hot-tool .sdk-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.hot-tool .sdk-primary:hover { background: #2549ad; }
.hot-tool .sdk-icon { padding: 0.55rem 0.7rem; font-size: 0.8rem; }
.hot-tool .sdk-btn.sdk-on { background: #e4ebff; border-color: var(--accent); color: var(--accent); }

.hot-tool .sdk-btn:focus-visible,
.hot-tool .sdk-num:focus-visible,
.hot-tool #sdk-level:focus-visible,
.hot-tool .sdk-grid:focus-visible {
  outline: 3px solid #efb34c;
  outline-offset: 2px;
}

.hot-tool .sdk-wrap { position: relative; }

.hot-tool .sdk-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  aspect-ratio: 1 / 1;
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  container-type: inline-size;
  touch-action: manipulation;
}

.hot-tool .sdk-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--thin);
  border-bottom: 1px solid var(--thin);
  font-size: 1.4rem;
  font-size: 6.4cqw;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  transition: background 90ms;
}

.hot-tool .sdk-cell:nth-child(9n) { border-right: 0; }
.hot-tool .sdk-cell:nth-child(n + 73) { border-bottom: 0; }
.hot-tool .sdk-cell.sdk-br { border-right: 2px solid var(--line); }
.hot-tool .sdk-cell.sdk-bb { border-bottom: 2px solid var(--line); }
.hot-tool .sdk-cell.sdk-given { color: #142441; font-weight: 750; }
.hot-tool .sdk-cell.sdk-peer { background: var(--peer); }
.hot-tool .sdk-cell.sdk-same { background: var(--same); }
.hot-tool .sdk-cell.sdk-sel { background: var(--sel); }
.hot-tool .sdk-cell.sdk-wrong { color: var(--wrong); background: #fde7ea; }
.hot-tool .sdk-cell.sdk-wrong.sdk-sel { background: #f9cdd3; }

.hot-tool .sdk-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  padding: 2px;
  font-size: 0.6rem;
  font-size: 2.3cqw;
  font-weight: 600;
  line-height: 1;
  color: #5f6e86;
}

.hot-tool .sdk-notes span { display: flex; align-items: center; justify-content: center; }
.hot-tool .sdk-notes .sdk-hl { color: #fff; background: var(--accent); border-radius: 3px; }

.hot-tool .sdk-grid.sdk-paused .sdk-cell { color: transparent; background: #f1f4f9; }
.hot-tool .sdk-grid.sdk-paused .sdk-notes { visibility: hidden; }
.hot-tool .sdk-grid.sdk-busy { opacity: 0.5; }
.hot-tool .sdk-grid.sdk-win .sdk-cell { animation: sdk-wave 700ms ease; }

@keyframes sdk-wave {
  0% { background: #fff; }
  40% { background: #d7f5dc; }
  100% { background: #fff; }
}

.hot-tool .sdk-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
  border-radius: 10px;
  background: rgba(247, 249, 253, 0.9);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: sdk-fade 220ms ease;
}

.hot-tool .sdk-overlay[hidden] { display: none; }

@keyframes sdk-fade { from { opacity: 0; } to { opacity: 1; } }

.hot-tool .sdk-ov-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 0.35rem; color: #142441; }
.hot-tool .sdk-ov-text { margin: 0 0 1rem; max-width: 24rem; }

.hot-tool .sdk-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin: 0.75rem 0 0.5rem;
}

.hot-tool .sdk-tools .sdk-btn { padding: 0.6rem 0.3rem; font-size: 0.92rem; }

.hot-tool .sdk-pad {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.3rem;
}

.hot-tool .sdk-num {
  position: relative;
  border: 1px solid #c8d1e0;
  border-radius: 9px;
  padding: 0.55rem 0 0.75rem;
  font: inherit;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  transition: background 120ms, transform 80ms;
}

.hot-tool .sdk-num:hover { background: #eef3ff; }
.hot-tool .sdk-num:active { transform: scale(0.94); }
.hot-tool .sdk-num.sdk-hl { background: #e4ebff; border-color: var(--accent); }
.hot-tool .sdk-num.sdk-done { color: #b7c0cf; background: #f5f7fa; }

.hot-tool .sdk-left {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: #7a879b;
}

.hot-tool .sdk-hint-text { margin: 0.75rem 0 0; font-size: 0.85rem; color: #5f6e86; text-align: center; }

.hot-tool .sdk-hint-text kbd {
  padding: 0 0.3rem;
  border: 1px solid #c8d1e0;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 0.85em;
}

.hot-tool .sdk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hot-tool .sdk-table { width: 100%; border-collapse: collapse; margin: 0.75rem 0 1.25rem; font-size: 0.95rem; }
.hot-tool .sdk-table th,
.hot-tool .sdk-table td { padding: 0.4rem 0.6rem; border-bottom: 1px solid #dfe5ef; text-align: left; }
.hot-tool .sdk-table thead th { background: #f1f4fa; }

@media (max-width: 420px) {
  .hot-tool .sdk-num { font-size: 1.2rem; padding: 0.5rem 0 0.7rem; border-radius: 7px; }
  .hot-tool .sdk-pad { gap: 0.2rem; }
  .hot-tool .sdk-tools .sdk-btn { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hot-tool .sdk-overlay, .hot-tool .sdk-grid.sdk-win .sdk-cell { animation: none; }
}
