/* Extracted from pages/kana/advanced/sogana/index.html; edit the source CSS file directly. */
:root {
  --ak-accent: var(--amethyst);
  --ak-accent-light: var(--amethyst-light);
  --ak-accent-ghost: var(--amethyst-dim);
}
/* Evolution Explorer */
.sg-explorer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 640px) {
  .sg-explorer {
    grid-template-columns: repeat(2, 1fr);
  }
}
.sg-col-head {
  background: var(--ink-3);
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  border-bottom: 2px solid;
}
.sg-col-head.manyogana {
  border-color: var(--shu);
  color: var(--shu-light);
}
.sg-col-head.sogana {
  border-color: var(--gold);
  color: var(--gold-light);
}
.sg-col-head.hentaigana {
  border-color: var(--amethyst);
  color: var(--amethyst-light);
}
.sg-col-head.modern {
  border-color: var(--jade);
  color: var(--jade-light);
}
.sg-cell {
  background: var(--ink-2);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  cursor: pointer;
  transition: background var(--dur-fast);
  border-bottom: 1px solid var(--border);
}
.sg-cell:hover {
  background: var(--ink-3);
}
.sg-cell.active-row {
  background: var(--amethyst-dim);
}
.sg-cell-glyph {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--text-soft);
}
.sg-cell.manyogana .sg-cell-glyph {
  color: var(--shu-light);
}
.sg-cell.sogana .sg-cell-glyph {
  color: var(--gold-light);
  font-style: italic;
}
.sg-cell.hentaigana .sg-cell-glyph {
  color: var(--amethyst-light);
}
.sg-cell.modern .sg-cell-glyph {
  color: var(--jade-light);
}
.sg-cell-sound {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-ghost);
}
/* Morph Slider */
.sg-morph-wrap {
  background: var(--ink-2);
  border: 1px solid var(--amethyst-dim);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.sg-morph-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin: var(--space-3) 0;
}
.sg-morph-char {
  font-family: var(--font-display);
  font-size: clamp(48px, 12vw, 96px);
  line-height: 1;
  text-align: center;
  transition:
    opacity 0.3s,
    color 0.3s,
    transform 0.3s;
}
.sg-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--shu-dim),
    var(--gold-dim),
    var(--amethyst-dim),
    var(--jade-dim)
  );
  border-radius: var(--radius-full);
  outline: none;
}
.sg-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amethyst-light);
  border: 3px solid var(--ink-1);
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--amethyst-ghost);
}
.sg-stage-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-ghost);
  margin-top: 4px;
}
.sg-morph-info {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  min-height: 40px;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
}
/* Sound filter */
.sg-sound-filter {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.sg-sf-btn {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.sg-sf-btn:hover {
  border-color: var(--amethyst);
  color: var(--amethyst-light);
}
.sg-sf-btn.active {
  background: var(--amethyst-dim);
  border-color: var(--amethyst);
  color: var(--amethyst-light);
  font-weight: 600;
}
/* Detail box */
.sg-detail-box {
  background: var(--ink-2);
  border: 1px solid var(--amethyst-dim);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: none;
}
.sg-detail-box.visible {
  display: block;
}
/* Quiz: ordering */
.sg-quiz-stages {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: var(--space-3) 0;
}
.sg-quiz-stage-card {
  width: 100px;
  padding: var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--ink-3);
  text-align: center;
  cursor: grab;
  transition: all var(--dur-fast);
}
.sg-quiz-stage-card.dragging {
  opacity: 0.5;
}
.sg-quiz-stage-card:hover {
  border-color: var(--amethyst);
}
.sg-quiz-stage-card.placed {
  border-color: var(--jade);
  background: var(--jade-ghost);
}
.sg-quiz-stage-card.wrong-place {
  border-color: var(--shu);
  background: var(--shu-ghost);
}
.sg-drop-zone {
  width: 100px;
  height: 90px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-ghost);
  transition: all var(--dur-fast);
}
.sg-drop-zone.dragover {
  border-color: var(--amethyst);
  background: var(--amethyst-dim);
}
.sg-drop-zone.filled {
  border-style: solid;
}
