:root {
  --ink: #1f2430;
  --muted: #5d6475;
  --line: #d9dde5;
  --error: #b5533c;
  --bg: #eef1f5;
  --card: #fff;
  --accent: #2f7d4f;
  --accent2: #e8f4ec;
  --f-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --f-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bg);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

h1, h2, h3, button {
  font-family: var(--f-display);
  font-weight: 600;
}

h1 {
  color: var(--accent);
}

/* The mockup's card, bar and button, which the login and password screens use. */

.screen {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(20, 30, 50, 0.07);
  overflow: hidden;
}

.bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.cube {
  width: 30px;
  height: 30px;
}

.who {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.body {
  padding: 18px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn.link {
  background: none;
  color: var(--accent);
  padding: 6px 4px;
}

.login {
  max-width: 380px;
  margin: 10vh auto 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form h1 {
  font-size: 1.3rem;
  margin: 0 0 6px;
}

.form label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.form input {
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.form input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.hint {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.error {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--error);
}

.error:empty {
  display: none;
}

/* The mockup's subject tiles, material chips and rows, which the home, subject and area screens use. */

a {
  color: var(--accent);
}

.back {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tile {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.tile:hover,
.tile:focus-visible {
  border-color: var(--subject);
  box-shadow: 0 0 0 1px var(--subject);
  outline: none;
}

.tile h3 {
  margin: 0 0 2px;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tile .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.ext .sub::after,
.ext .btn::after {
  content: ' ↗';
}

.mats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  background: #fff;
}

.sw {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.body h2 {
  margin: 0;
  font-size: 22px;
}

.crumb {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
  text-decoration: none;
}

.bring {
  color: var(--muted);
  margin: 2px 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.act {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  color: inherit;
  text-decoration: none;
}

.act:hover,
.act:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.act:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

.act .ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: #f2f4f7;
}

.act .txt {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.act .t {
  font-weight: 700;
}

.act .k {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.act .d {
  color: var(--muted);
  font-size: 14px;
}

.act .go {
  margin-left: auto;
  text-align: right;
}

.btn.small {
  display: inline-block;
  padding: 6px 12px;
  font-family: var(--f-display);
  font-size: 14px;
  white-space: nowrap;
}

/* The Import screen: the drafts, one draft's items to edit and tick, and the approval's result. */

a.btn {
  display: inline-block;
  font-family: var(--f-display);
  text-decoration: none;
}

.btn.quiet {
  background: #fff;
  color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}

.btn.danger {
  background: var(--error);
  color: #fff;
}

.place {
  color: var(--muted);
  margin: 4px 0 6px;
}

.hint.place {
  margin-bottom: 16px;
}

.draft {
  margin-top: 16px;
}

.draft .items {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.item.skip {
  opacity: 0.5;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
}

.warn {
  background: #fff4dd;
  color: #7a4a00;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}

.fields .wide {
  grid-column: 1 / -1;
}

.check .tags {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.fields textarea,
.fields input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  resize: vertical;
}

.fields textarea:focus,
.fields input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.result {
  margin: 0 0 6px;
  padding-left: 1.2em;
  font-size: 17px;
}

/* The card screen: the deck with its counts and ↶, the card, „Zeigen“ and the four grades in the Vokabeltrainer's colours. */

.deck-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.deck-head > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.deck-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.btn.undo {
  font-size: 24px;
  line-height: 1;
  padding: 2px 8px;
}

.flashcard {
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 30px 18px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--subject, var(--accent));
  border-radius: 12px;
  text-align: center;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.flashcard:focus {
  outline: none;
}

.flashcard .front {
  font-family: var(--f-display);
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 600;
}

.flashcard .reverse {
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: clamp(18px, 4.5vw, 22px);
}

.flashcard .tag {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: #e8f4ec;
}

.btn.reveal {
  width: 100%;
  min-height: 56px;
  font-size: 18px;
}

.grades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.grades button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 56px;
  padding: 8px 4px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.grades button small {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
}

.grades button:disabled {
  opacity: 0.5;
  cursor: default;
}

.grades .g1 { background: #c0392b; }
.grades .g2 { background: #a86400; }
.grades .g3 { background: var(--accent); }
.grades .g4 { background: #2e6db4; }

.done {
  padding: 28px 0 8px;
  text-align: center;
}

.done-title {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
}

.done .btn {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
}

/* The spelling trainer: the Tippen/Papier switch, the progress dots, the sentence with its gap, the marks and the hint card, as the mockup draws them. */

.start {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.seg button {
  border: 0;
  padding: 8px 18px;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  cursor: pointer;
}

.seg button.on {
  color: #fff;
  background: #273043;
}

.seg button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.sp-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dfe3ea;
}

.dots i.ok { background: #4caf6d; }
.dots i.no { background: #e06c5a; }

.sentence {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 14px;
  padding: 22px 18px 18px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--subject, var(--accent));
  border-radius: 12px;
  background: #f7f8fa;
}

.sentence:focus {
  outline: none;
}

.sentence p {
  margin: 0;
  font-size: clamp(20px, 5vw, 24px);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.gap {
  display: inline-block;
  min-width: 86px;
  margin: 0 4px;
  border-bottom: 3px solid #273043;
}

.gap.filled {
  min-width: 0;
  padding: 0 4px;
  border-bottom-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.sentence .play {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
}

.sentence .tag {
  position: absolute;
  top: 6px;
  right: 12px;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent2);
}

.typing {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.typing .type {
  flex: 1 1 220px;
  min-width: 0;
  padding: 8px 12px;
  border: 2px solid #273043;
  border-radius: 10px;
  font: 600 22px ui-monospace, 'SF Mono', Menlo, monospace;
}

.typing .type:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.box {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.compare .box {
  margin: 0;
}

.box .cap {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.word {
  font: 600 30px/1.3 ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.word .bad {
  border-radius: 4px;
  color: #b3261e;
  background: #fde1dc;
}

.word .miss {
  border-radius: 4px;
  color: #1d6b3a;
  background: #dff3e5;
  text-decoration: underline;
}

.verdict {
  font-weight: 700;
  color: #b3261e;
}

.box.right .verdict {
  color: var(--accent);
}

.from {
  font-size: 14px;
  color: var(--muted);
}

.rule {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #f1d98f;
  border-radius: 12px;
  background: #fff8e1;
}

.rule .ic {
  font-size: 24px;
}

.rule .r {
  font-weight: 800;
}

.retype {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
  font-weight: 600;
}

.retype .typing {
  flex: 1 1 280px;
}

.retyped {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.retyped .word {
  font-size: 22px;
}

.verdicts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.verdicts .btn {
  min-height: 56px;
  font-size: 17px;
}

.verdicts .no {
  background: #c0392b;
}

/* The mockup's level bar, celebrations, Tagesziel and inventory strip on the start screen. */

.lvl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lvl b {
  color: var(--ink);
}

.meter {
  flex: none;
  width: 120px;
  height: 9px;
  border-radius: 9px;
  background: #e4e7ec;
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.celebrate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent2);
  border: 1px solid #bfe0cb;
  margin-bottom: 16px;
}

.celebrate .icon {
  font-size: 26px;
}

.celebrate strong {
  font-family: var(--f-display);
  font-size: 17px;
}

.celebrate .d {
  color: var(--muted);
}

.celebrate .btn {
  margin-left: auto;
}

.pick {
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff8e1;
  border: 1px solid #f1d98f;
  margin-bottom: 16px;
}

.pick .mats {
  gap: 6px;
  margin-top: 10px;
}

.pick .hint {
  margin-top: 8px;
}

button.chip {
  font: inherit;
  font-size: 14px;
  color: inherit;
  cursor: pointer;
}

button.chip:hover,
button.chip:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  outline: none;
}

button.chip:disabled {
  opacity: 0.5;
  cursor: default;
}

.goal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.goal .meter {
  width: 180px;
}

.rewards .error {
  margin: 0 0 12px;
}

.inv {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
}

/* The „Eltern“ screen: one card per learner. */

a.btn.link[aria-current='page'] {
  color: var(--ink);
}

.week {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
}

.week-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.week h3 {
  margin: 0;
  font-size: 20px;
}

.week h4 {
  margin: 16px 0 6px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
}

.days {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
}

.daychips {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.daychips li {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: #f2f4f7;
  color: var(--muted);
}

.daychips li.on {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.tally {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 15px;
}

.tally th,
.tally td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tally th:first-child {
  text-align: left;
}

.tally th[scope='row'] {
  font-weight: 400;
}

.tally thead th {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.missed,
.mastered {
  margin: 0;
  padding-left: 22px;
}

.missed li,
.mastered li {
  margin: 3px 0;
}

.missed .n,
.mastered .n,
.missed .rule-name {
  color: var(--muted);
}

.missed .rule-name {
  font-size: 14px;
}

@media (max-width: 640px) {
  .week {
    padding: 12px;
  }

  .tally {
    font-size: 14px;
  }

  .tally th,
  .tally td {
    padding: 6px 3px;
  }

  .tally thead th {
    font-size: 11px;
    letter-spacing: 0;
  }

  .who {
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .lvl .meter {
    width: 80px;
  }

  main {
    padding: 0.5rem;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .bar {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .body {
    padding: 14px;
  }

  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .grades button {
    font-size: 15px;
  }

  .compare {
    grid-template-columns: 1fr;
  }
}

/* The Blockwelt: the start screen's way in, the Bauplatz list, and the editor with its bar, hotbar and Farbe palette. */

.world-cta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #273043;
  color: #fff;
  text-decoration: none;
}

.world-cta b {
  display: block;
  font-family: var(--f-display);
  font-size: 17px;
}

.world-cta span:not(.btn) {
  color: #c9d2e3;
  font-size: 14px;
}

.world-cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.act.build .go {
  display: flex;
  align-items: center;
  gap: 6px;
}

.act.build:hover {
  border-color: var(--line);
}

.rename {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.rename input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
}

.build-form {
  margin-top: 22px;
  max-width: 420px;
}

.build-form h3 {
  margin: 0;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  margin: 6px 0 0;
  padding: 0;
}

.sizes legend {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.size {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 11px;
  cursor: pointer;
}

.form .size {
  margin-top: 0;
  color: var(--ink);
  font-size: 15px;
}

.size:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent2);
}

.size.locked {
  color: var(--muted);
  cursor: default;
}

.size small {
  font-size: 12px;
}

main[data-screen='world'] {
  max-width: 1400px;
}

.screen.world {
  position: relative;
  background: linear-gradient(#bfe2f7, #e8f5fb 70%);
}

.world .stage {
  height: calc(100vh - 2rem - 2px);
  min-height: 420px;
}

.world-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.wbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  pointer-events: none;
}

.wbar > * {
  pointer-events: auto;
}

.pill {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}

a.pill {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--accent);
}

.wbar .right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.wbar .seg {
  background: #fff;
}

.wbar .seg button {
  padding: 7px 12px;
  font-size: 14px;
}

button.pill {
  font-weight: 600;
  cursor: pointer;
}

.pill.night[aria-pressed='true'] {
  background: #283a5c;
  border-color: #0f1a33;
  color: #ffd75e;
}

/* The export dialog: a modal that drops from the „Exportieren“ button like the mockup's menu, one section per format. */

dialog.export {
  inset: auto;
  margin: 0;
  padding: 0;
  width: min(340px, calc(100vw - 24px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 30, 50, 0.15);
  color: var(--ink);
  background: var(--card);
}

dialog.export::backdrop {
  background: rgba(20, 30, 50, 0.2);
}

.export .panel {
  display: grid;
  gap: 10px;
  padding: 10px 12px 12px;
}

.export .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.export h2,
.export h3,
.export p {
  margin: 0;
}

.export h2 {
  font-size: 18px;
}

.export h3 {
  font-size: 16px;
}

.export .format {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 10px;
  border-radius: 8px;
  background: #f2f6fb;
}

.export .edge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.export .seg button {
  padding: 4px 10px;
  font-size: 14px;
}

.export .seg button:disabled {
  cursor: default;
  opacity: 0.55;
}

.export .fits {
  color: #1d6b3a;
  font-size: 14px;
}

.export .why {
  color: var(--muted);
  font-size: 14px;
}

.export .how {
  font-size: 14px;
  line-height: 1.45;
}

.export code {
  padding: 0 3px;
  border-radius: 4px;
  font: 13px ui-monospace, 'SF Mono', Menlo, monospace;
  overflow-wrap: anywhere;
  background: #e2e9f2;
}

.pill.status.offline {
  color: var(--error);
  border-color: var(--error);
}

.dock {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.dock > * {
  pointer-events: auto;
  max-width: 100%;
}

.toast {
  margin: 0;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(30, 36, 50, 0.88);
  color: #fff;
  font-size: 15px;
  text-align: center;
}

.tip {
  margin: 0;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 215, 94, 0.94);
  color: var(--ink);
  font-size: 14px;
  text-align: center;
  text-wrap: balance;
}

.tip:empty,
.toast:empty,
.palette[hidden] {
  display: none;
}

.hotbar,
.palette {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(30, 36, 50, 0.82);
  overflow-x: auto;
}

.slot,
.swatch {
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  cursor: pointer;
}

.slot {
  width: 58px;
  height: 58px;
}

.swatch {
  width: 40px;
  height: 40px;
}

.slot img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}

.swatch img {
  width: 26px;
  height: 26px;
  image-rendering: pixelated;
}

.slot[aria-pressed='true'],
.swatch[aria-pressed='true'] {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.slot:focus-visible,
.swatch:focus-visible {
  outline: 2px solid #ffd75e;
  outline-offset: 1px;
}

.slot .n {
  position: absolute;
  right: 4px;
  bottom: 2px;
  color: #fff;
  font: 700 12px var(--f-body);
  text-shadow: 0 1px 2px #000;
}

.slot.empty img {
  opacity: 0.35;
  filter: grayscale(1);
}

.slot.empty .n {
  color: #c9d2e3;
}

.slot .lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(20, 24, 34, 0.65);
  color: #fff;
  font: 700 10px/1.2 var(--f-body);
  text-align: center;
}

/* The Ich-Ansicht: pocket numbers, the crosshair, the hint while the mouse is free, and the Baukasten. */

.slot .k {
  position: absolute;
  left: 5px;
  top: 2px;
  color: #c9d2e3;
  font: 600 10px var(--f-body);
}

.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  pointer-events: none;
}

.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.crosshair::before {
  left: 10px;
  top: 0;
  width: 2px;
  height: 22px;
}

.crosshair::after {
  left: 0;
  top: 10px;
  width: 22px;
  height: 2px;
}

.ich-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 90%);
  display: grid;
  gap: 8px;
  padding: 16px 20px;
  border: 0;
  border-radius: 14px;
  background: rgba(30, 36, 50, 0.88);
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.ich-hint b {
  font-family: var(--f-display);
  font-size: 18px;
}

.ich-hint span {
  color: #c9d2e3;
  font-size: 14px;
  line-height: 1.5;
}

.baukasten {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: min(600px, 92%);
  max-height: 64%;
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  background: rgba(30, 36, 50, 0.94);
  color: #fff;
}

.bk-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.bk-head b {
  font-family: var(--f-display);
  font-size: 18px;
}

.bk-head span {
  color: #c9d2e3;
  font-size: 14px;
}

.bk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
}

.bk-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 4px 6px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 600 12px var(--f-body);
  cursor: pointer;
}

.bk-item:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.bk-item:focus-visible {
  outline: 2px solid #ffd75e;
  outline-offset: 1px;
}

.bk-item img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}

.bk-item .n {
  position: absolute;
  right: 6px;
  top: 3px;
  font: 700 12px var(--f-body);
  text-shadow: 0 1px 2px #000;
}

.bk-item.empty img {
  opacity: 0.35;
  filter: grayscale(1);
}

.bk-item.empty .n {
  color: #c9d2e3;
}

.bk-item .lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(20, 24, 34, 0.65);
  font: 700 11px/1.2 var(--f-body);
  text-align: center;
}

.crosshair[hidden],
.ich-hint[hidden],
.baukasten[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .world .stage {
    height: calc(100vh - 1rem - 2px);
  }

  .wbar {
    flex-wrap: wrap;
  }

  .slot {
    width: 48px;
    height: 48px;
  }

  .act.build {
    flex-wrap: wrap;
  }
}
