/* Extracted from pages/kana/advanced/historical-usage/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);
}
/* Pattern cards */
.hu-pattern-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--ink-2);
  padding: var(--space-3);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hu-pattern-card:hover,
.hu-pattern-card.active {
  border-color: var(--amethyst);
  background: linear-gradient(135deg, var(--ink-2), var(--amethyst-dim));
  transform: translateY(-2px);
}
.hu-pattern-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hu-old {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
}
.hu-arrow {
  color: var(--text-ghost);
  font-size: 16px;
}
.hu-new {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--jade-light);
}
.hu-meaning {
  font-size: 12px;
  color: var(--text-faint);
}
.hu-category-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  background: var(--amethyst-dim);
  color: var(--amethyst-light);
  border-radius: var(--radius-full);
  padding: 1px 7px;
  align-self: flex-start;
}

/* Classic text renderer */
.hu-classic-text {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 2;
  color: var(--text);
  letter-spacing: 0.05em;
}
.hu-classic-text .highlight {
  background: var(--amethyst-dim);
  color: var(--amethyst-light);
  border-radius: 2px;
  padding: 0 2px;
}
.hu-modern-text {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 2;
  color: var(--jade-light);
  letter-spacing: 0.05em;
}

/* Rule patterns */
.hu-rule-box {
  background: var(--amethyst-dim);
  border: 1px solid var(--amethyst);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.hu-rule-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--amethyst-light);
  margin-bottom: 6px;
}
.hu-rule-examples {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: 8px;
}
.hu-rule-ex {
  background: var(--ink-3);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
}
.hu-rule-ex .o {
  color: var(--gold-light);
}
.hu-rule-ex .n {
  color: var(--jade-light);
}

/* Quiz match game */
.hu-match-game {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.hu-match-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hu-match-label {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-ghost);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.hu-match-item {
  padding: 10px var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--ink-3);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  text-align: center;
  transition: all var(--dur-fast) var(--ease);
}
.hu-match-item:hover {
  border-color: var(--amethyst);
  color: var(--amethyst-light);
}
.hu-match-item.selected {
  background: var(--amethyst-dim);
  border-color: var(--amethyst);
  color: var(--amethyst-light);
}
.hu-match-item.matched {
  background: var(--jade-dim);
  border-color: var(--jade);
  color: var(--jade-light);
  pointer-events: none;
}
.hu-match-item.wrong {
  background: var(--shu-dim);
  border-color: var(--shu);
  color: var(--shu-light);
}
