:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", system-ui, sans-serif;
  color-scheme: light dark;
  --bg: #f5f7fa;
  --paper: #fff;
  --ink: #162331;
  --muted: #526275;
  --line: #cdd6de;
  --accent: #1558a5;
  --action: #1558a5;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
header {
  border-bottom: 1px solid var(--line);
}
header,
main {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
.wordmark,
main > section {
  width: min(100%, 620px);
  margin: auto;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 70px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 750;
  text-decoration: none;
}
.wordmark small {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 550;
}
.mark {
  display: inline-block;
  width: 23px;
  height: 23px;
  border: 3px solid var(--accent);
  border-right: 0;
  border-radius: 2px;
  background: linear-gradient(
      to right,
      transparent 48%,
      var(--accent) 48%,
      var(--accent) 63%,
      transparent 63%
    )
    0 0/100% 57% no-repeat;
}
.mark:after {
  content: "";
  display: block;
  margin-left: auto;
  width: 3px;
  height: 47%;
  background: var(--accent);
}
main {
  padding-top: clamp(32px, 6vh, 62px);
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}
h1 {
  font-size: clamp(2.05rem, 6.7vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.045em;
  margin: 0 0 14px;
}
h2 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
}
.lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.07rem;
}
.sheet {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
}
.sheet canvas {
  display: block;
  width: 100%;
  height: auto;
}
.teaser {
  background: #f9fbfd;
}
.teaser span {
  position: absolute;
  left: 14px;
  bottom: 10px;
  color: #526477;
  background: #f9fbfd;
  padding: 2px 5px;
  font-size: 0.8rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.button {
  font: inherit;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
}
.actions .button {
  flex: 1 1 135px;
}
.primary {
  background: var(--action);
  color: white;
  border-color: var(--action);
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.note,
#status,
.legend {
  font-size: 0.91rem;
  color: var(--muted);
}
#status:empty {
  display: none;
}
.back {
  display: block;
  width: fit-content;
  margin-top: 20px;
  color: var(--accent);
  padding: 10px 0;
}
.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 18px;
  border-top: 3px solid var(--ink);
}
.legend .door {
  border-top: 2px dashed #a26418;
}
.legend .window {
  border-top: 3px double #357f9b;
}
.test-route {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.qr {
  display: block;
  background: white;
  border-radius: 8px;
  padding: 8px;
  max-width: 65%;
  height: auto;
}
.test-route p {
  color: var(--muted);
}
@media (pointer: coarse) and (max-width: 760px) {
  #other-device {
    display: none;
  }
}
[hidden] {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111923;
    --paper: #182432;
    --ink: #ebf2f9;
    --muted: #acbac9;
    --line: #3b4855;
    --accent: #91beff;
    --action: #245e9f;
  }
}
@media (max-width: 370px) {
  header,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .actions .button {
    flex-basis: 100%;
  }
}
