:where(.og-kegillion) :where(*:not(svg, svg *)) { all: revert; }
/* Kegillion tutorial (site/js/tutorial.js). Every class starts with kg-tut-; the practice period reuses the game's
   own classes (chalkboard, timer, notebook, slip, stamp, grade). The dimming stays inside .kg-tut. */
.og-kegillion .kg-tut {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 10px 8px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  /* room for a sticky site header when the tutorial scrolls into view */
  scroll-margin-top: 72px;
}
.og-kegillion .kg-tut [hidden] {
  display: none !important;
}
.og-kegillion .kg-tut-badge {
  margin: 0 0 10px;
  font: 700 12px/1.2 var(--body, system-ui, sans-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maroon, #7b1e2e);
}
.og-kegillion .kg-tut-stage .kg-tut-board {
  min-height: 0;
}
.og-kegillion .kg-tut-clock .timer {
  margin: 14px 0 6px;
}
.og-kegillion .kg-tut-clock .tries {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-2, #4a4f66);
}
.og-kegillion .kg-tut-err {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-weight: 650;
  color: var(--maroon, #7b1e2e);
}
.og-kegillion .kg-tut-slip {
  margin-bottom: 4px;
}
.og-kegillion .kg-tut-slip .stamp {
  animation: none;
}
.og-kegillion .kg-tut-slip .slip-pts {
  margin: 0;
}
.og-kegillion .kg-tut-ladder {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.og-kegillion .kg-tut-ladder li {
  display: grid;
  grid-template-columns: 2.6em 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  font-size: 14px;
  border-radius: 4px;
}
.og-kegillion .kg-tut-ladder .grade {
  font-size: 13px;
}
.og-kegillion .kg-tut-ladder li.kg-tut-mine {
  background: #fbe48a;
  font-weight: 700;
}

/* spotlight: a frame around the step's target that darkens the rest of the tutorial box */
.og-kegillion .kg-tut-spot {
  position: absolute;
  z-index: 2;
  border: 3px solid var(--mustard, #e6a831);
  border-radius: 8px;
  box-shadow: 0 0 0 200vmax rgba(29, 35, 64, 0.62);
  pointer-events: none;
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.og-kegillion .kg-tut-spot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  margin-left: -10px;
  border: 10px solid transparent;
  border-top-color: var(--mustard, #e6a831);
  border-bottom: 0;
}
.og-kegillion .kg-tut-coach {
  position: relative;
  z-index: 4;
  margin-top: 22px;
  padding: 12px 14px 12px;
  background: var(--card, #fffaf0);
  border: 2px solid var(--ink, #1d2340);
  box-shadow: 5px 5px 0 var(--ink, #1d2340);
}
.og-kegillion .kg-tut-count {
  margin: 0;
  font: 700 12px/1.2 var(--body, system-ui, sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2, #4a4f66);
}
.og-kegillion .kg-tut-title {
  margin: 4px 0 4px;
  font: 22px/1.15 var(--varsity, Georgia, serif);
  color: var(--maroon, #7b1e2e);
}
.og-kegillion .kg-tut-title:focus {
  outline: none;
}
.og-kegillion .kg-tut-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}
.og-kegillion .kg-tut-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.og-kegillion .kg-tut-gap {
  flex: 1;
}
.og-kegillion .kg-tut-skip {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  font: 600 15px/1 var(--body, system-ui, sans-serif);
  color: var(--ink-2, #4a4f66);
  text-decoration: underline;
  cursor: pointer;
}
.og-kegillion .kg-tut-actions .btn {
  min-height: 44px;
}
@media (prefers-reduced-motion: reduce) {
  .og-kegillion .kg-tut-spot {
    transition: none;
  }
}
html.reduce-motion .og-kegillion .kg-tut-spot {
  transition: none;
}
