

.tssd-glyphsud {
  max-width: 760px;
  margin-inline: auto;
  /* Pt.4 — one base size for the whole page; intro no longer larger than the rest. */
  font-size: 1rem;
  line-height: 1.6;
}
.tssd-glyphsud__intro,
.tssd-glyphsud__hint,
.tssd-glyphsud__where {
  font-size: 1em;      /* identical to the surrounding body text */
  line-height: 1.6;
  margin: 0 0 0.9em;
}
.tssd-glyphsud__hint { opacity: 0.9; }
.tssd-glyphsud__h {
  margin: 1.6em 0 0.6em;
  font-size: 1.25em;
  line-height: 1.3;
}

/* Accent colour per variant (chips + CTA). */
.tssd-glyphsud {
  --tssd-glyph-accent: #8a6d00;

  --tssd-glyph-accent-bg: var(--sd-highlight);
  --tssd-glyph-chip-bg: var(--sd-surface-2);
  --tssd-glyph-chip-border: var(--sd-line);
}
.tssd-glyphsud--letter {
  --tssd-glyph-accent: #1d5f8a;
  --tssd-glyph-accent-bg: #d8ecfb;
  --tssd-glyph-chip-bg: #f0f8ff;
  --tssd-glyph-chip-border: #cfe2f2;
}

/* Legend: digit → glyph chips. */
.tssd-glyphsud__legend {
  list-style: none;
  margin: 0.4em 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}
.tssd-glyphsud__legend-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tssd-glyph-chip-bg);
  border: 1px solid var(--tssd-glyph-chip-border);
  border-radius: var(--sd-radius);
  padding: 8px 10px;
}
.tssd-glyphsud__glyph { font-size: 1.5em; line-height: 1; color: #1a1a1a; }
.tssd-glyphsud__num {
  font-weight: 700;
  color: var(--tssd-glyph-accent);
  background: var(--tssd-glyph-accent-bg);
  border-radius: var(--sd-radius);
  min-width: 1.6em;
  text-align: center;
}

.tssd-glyphsud__boardwrap {
  max-width: 380px;               /* a little smaller than the 540px play board */
  margin: 0.6em auto 0.4em;       /* Pt.2 — centered */
}
.tssd-glyphsud__board {
  display: grid;
  grid-template-rows: repeat(9, 1fr);
  aspect-ratio: 1 / 1;            /* square board → square cells */
  width: 100%;
  background: #ffffff;
  border: 2.5px solid #111;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.tssd-glyphsud__brow {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
}
.tssd-glyphsud__board .tssd-glyphsud__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;            /* true squares → proportional grid */
  border: 1px solid #b9b9b9;
  /* glyph scales with the cell (viewport-relative), capped for large screens. */
  font-size: clamp(0.95rem, 4vw, 1.45rem);
  line-height: 1;
  color: #111;
}
/* Thick 3×3 block separators (nth-child, exactly like the play board). */
.tssd-glyphsud__board:not(.tssd-glyphsud__board--n16) .tssd-glyphsud__brow .tssd-glyphsud__cell:nth-child(3n) { border-right: 2.5px solid #111; }
.tssd-glyphsud__board:not(.tssd-glyphsud__board--n16) .tssd-glyphsud__brow:nth-child(3n) .tssd-glyphsud__cell { border-bottom: 2.5px solid #111; }

.tssd-glyphsud__boardwrap--n16 { max-width: 520px; }
.tssd-glyphsud__board--n16 { grid-template-rows: repeat(16, 1fr); }
.tssd-glyphsud__board--n16 .tssd-glyphsud__brow { grid-template-columns: repeat(16, 1fr); }
.tssd-glyphsud__board--n16 .tssd-glyphsud__cell { font-size: clamp(0.6rem, 2.3vw, 0.95rem); }
.tssd-glyphsud__board--n16 .tssd-glyphsud__brow .tssd-glyphsud__cell:nth-child(4n) { border-right: 2.5px solid #111; }
.tssd-glyphsud__board--n16 .tssd-glyphsud__brow:nth-child(4n) .tssd-glyphsud__cell { border-bottom: 2.5px solid #111; }

/* Wo finde ich — CTA button reuses the theme's core button style (Pt.4), so no
   bespoke button CSS here; only spacing + centering of the button row. */
.tssd-glyphsud__cta { margin: 1em 0 0.2em; justify-content: center; }

:root[data-theme="dark"] .tssd-glyphsud__legend-item { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); }
:root[data-theme="dark"] .tssd-glyphsud__glyph { color: #f4f4f4; }
:root[data-theme="light"] .tssd-glyphsud__legend-item { background: var(--tssd-glyph-chip-bg); border-color: var(--tssd-glyph-chip-border); }
