/* Dela Gothic One is licensed under assets/fonts/OFL.txt. */
@font-face {
  font-family: 'Slop Display';
  src: url('assets/fonts/dela-gothic-one.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #eeede7;
  --ink: #292c27;
  --orange: #ec663d;
  --rule: #c9cdc1;
  --muted: #68705e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.intro {
  width: 86.1666667%;
  margin: 0 auto;
  padding-top: 20px;
}
.intro-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.intro-toggle {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 24px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.intro-toggle:hover {
  color: var(--ink);
}
.language-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-left: auto;
  font-size: 11px;
  line-height: 24px;
}
.language-switcher a {
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 4px;
}
.language-switcher a:hover,
.language-switcher a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
}
.language-switcher a[aria-current='page'] {
  font-weight: 600;
}
.intro h1 {
  margin: 0;
  font-family: 'Slop Display', 'Arial Black', sans-serif;
  font-size: clamp(27px, 4.4vw, 50px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.intro p {
  max-width: 610px;
  margin: 16px 0 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
.creator-badge a:focus-visible,
.share-tools a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.language-switcher a:focus-visible,
.intro-toggle:focus-visible,
.restore-credits:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.toolbar {
  width: 86.1666667%;
  min-height: 85px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-bottom: 1px solid var(--rule);
}
.feed {
  min-width: 150px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: 1px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 14px;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.feed:hover {
  background: #41473c;
}
.feed:active {
  background: #191d17;
}
.feed span {
  font-size: 18px;
  line-height: 18px;
}
.feed:disabled {
  cursor: wait;
  opacity: 0.55;
}
.upload-area {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.upload,
.default {
  min-height: 40px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}
.upload:hover,
.default:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--ink);
}
.default {
  font-size: 10px;
}
.default[hidden] {
  display: none;
}
.upload-area.drag {
  outline: 1px dashed var(--muted);
  outline-offset: 6px;
}
.sound {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}
.sound:hover {
  color: var(--ink);
}
.sound svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.file-message {
  width: 86.1666667%;
  margin: 0 auto;
  font-size: 11px;
  line-height: 16px;
  color: #a63f24;
}
.file-message:not(:empty) {
  padding: 12px 0 0;
}
.machine-view {
  position: relative;
  width: 100%;
  overflow: hidden;
}
canvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}
.machine-view canvas#machine {
  position: relative;
  z-index: 1;
}
.machine-view canvas.paper-layer {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}
.corner-tools {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: calc(100vw - 40px);
}
.credits-sharing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}
.restore-credits {
  display: inline-block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.restore-credits:hover {
  color: var(--ink);
}
.share-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #292c2712;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  line-height: 18px;
  text-decoration: none;
  box-shadow: 0 2px 8px #292c2708;
}
.share-button:hover {
  background: #f7f7f3;
}
.share-button--platform {
  width: 34px;
  padding: 0;
}
.share-button--platform svg {
  display: block;
  flex: 0 0 16px;
}
#copy-link {
  min-width: 76px;
}
.share-feedback {
  max-width: 280px;
  margin: 0;
  padding: 5px 9px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  line-height: 16px;
  overflow-wrap: anywhere;
}
.creator-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border: 1px solid #292c270d;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 4px 16px #292c2717,
    0 1px 3px #292c270a;
}
.creator-badge__photo {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #eeede7;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.creator-badge__profile {
  display: block;
  flex: 0 0 48px;
  border-radius: 50%;
}
.creator-badge__credit {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.creator-badge__label {
  color: var(--muted);
  font-size: 11px;
  line-height: 14px;
}
.creator-badge__name {
  color: var(--ink);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.creator-badge__name:hover {
  text-decoration: underline;
}
.creator-badge__dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.creator-badge__dismiss:hover {
  background: var(--paper);
  color: var(--ink);
}
.creator-badge[hidden],
#intro-copy[hidden],
.intro-toggle[hidden],
.credits-sharing[hidden],
.restore-credits[hidden],
.share-button[hidden],
.share-feedback[hidden] {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  .corner-tools {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
  }
  .intro {
    padding-top: 40px;
  }
  .machine-view {
    margin-top: 96px;
  }
  .intro p {
    margin-top: 12px;
    font-size: 13px;
  }
  .toolbar {
    gap: 8px 12px;
  }
  .feed {
    min-width: 140px;
    padding-inline: 12px;
    gap: 12px;
  }
  .upload-area {
    gap: 4px 12px;
  }
  .upload,
  .sound {
    font-size: 10px;
  }
  .sound {
    gap: 5px;
  }
  .sound svg {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 400px) {
  .intro h1 {
    font-size: clamp(21px, 6.8vw, 27px);
  }
}
