/* "Created with…" strip (credits.js fills it) and the Licences & credits page.
   The strip takes the page's own text colour (currentColor), so it fits dark pages, light pages and MySpell themes.
   Logos are monochrome SVGs used as masks, tinted with currentColor like the wordmarks. */

.mw { color: inherit; font-family: var(--sans, system-ui, sans-serif); }
.mw-in {
  max-width: var(--wrap, 1200px); margin: 0 auto; padding: 26px 24px 22px;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 28px;
}
.mw-h, .mw-gt {
  margin: 0; font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; opacity: .55;
}
.mw-h { flex: 0 0 auto; padding-top: 2px; opacity: .75; }
.mw-groups { flex: 1 1 520px; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.mw-g { display: flex; flex-direction: column; gap: 8px; }
.mw-gt { font-size: 10px; }
.mw-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.mw-row li { display: flex; }

.mw-item {
  position: relative; display: inline-flex; align-items: center; height: 22px;
  color: inherit; text-decoration: none; opacity: .6; transition: opacity .2s;
}
.mw-item:hover, .mw-item:focus-visible { opacity: 1; }
.mw-item:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; border-radius: 3px; }
.mw-word { font-size: 13px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }

.mw-glyph { display: block; height: 22px; background: currentColor; -webkit-mask: var(--mw-mask) center / contain no-repeat; mask: var(--mw-mask) center / contain no-repeat; }
.mw-godot { width: 64px; --mw-mask: url("art/credits/godot.svg"); }
.mw-blender { width: 82px; --mw-mask: url("art/credits/blender.svg"); }

/* name · licence on hover or focus */
.mw-item::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  padding: 5px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none;
  font: 500 11px/1.3 var(--sans, system-ui, sans-serif); letter-spacing: 0; text-transform: none;
  background: #1d1819; color: #efe6da; border: 1px solid rgba(239, 230, 218, .18);
  opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s; z-index: 5;
}
.mw-item:hover::after, .mw-item:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.mw-more {
  flex: 0 0 auto; margin-left: auto; padding-top: 2px; color: inherit; opacity: .6; font-size: 12px;
  text-underline-offset: 3px;
}
.mw-more:hover { opacity: 1; }

@media (max-width: 640px) {
  .mw-in { padding: 22px 16px 18px; gap: 12px; }
  .mw-h { flex-basis: 100%; }
  .mw-more { margin-left: 0; }
  .mw-item::after { white-space: normal; width: max-content; max-width: 220px; }
}

/* ---- credits.html ---- */
.cr-page { --cr-card: rgba(255, 255, 255, .025); }
@media (prefers-color-scheme: light) {
  .cr-page {
    --bg: #f6f1ea; --bg-2: #efe8de; --bg-3: #e7ded2;
    --line: rgba(40, 30, 25, .12); --line-2: rgba(40, 30, 25, .2);
    --ink: #1f1a17; --ink-2: #4e443d; --ink-3: #75695f;
    --cr-card: rgba(0, 0, 0, .025);
  }
  .cr-page .nav.scrolled { background: rgba(246, 241, 234, .8); }
  .cr-page .brand, .cr-page .nav-links a { color: var(--ink-2); }
}
.cr-main { max-width: 980px; margin: 0 auto; padding: 120px 24px 40px; }
.cr-main h1 { font: 400 clamp(40px, 7vw, 68px)/1 var(--serif); margin: 0 0 14px; }
.cr-lede { color: var(--ink-2); max-width: 640px; margin: 0 0 36px; }
.cr-main h2 { font: 400 30px/1.1 var(--serif); margin: 44px 0 12px; }
.cr-main a { color: inherit; text-underline-offset: 3px; }
.cr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cr-table th, .cr-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.cr-table th { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cr-table td:first-child { font-weight: 600; white-space: nowrap; }
.cr-table td { color: var(--ink-2); }
.cr-table td:first-child { color: var(--ink); }
.cr-note { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--cr-card); color: var(--ink-2); font-size: 14px; margin: 12px 0; }
.cr-note pre { white-space: pre-wrap; font: 12px/1.5 var(--mono); margin: 8px 0 0; color: var(--ink-2); }
.cr-note strong { color: var(--ink); }
@media (max-width: 640px) {
  .cr-main { padding: 96px 16px 32px; }
  .cr-table thead { display: none; }
  .cr-table, .cr-table tbody, .cr-table tr, .cr-table td { display: block; width: 100%; }
  .cr-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cr-table td { border: 0; padding: 2px 0; }
}
