:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #282826;
  background: #faf9f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  min-width: 280px;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 30px 36px 28px;
}

header {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -.1px;
}

main {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 640px;
  text-align: center;
  padding: 54px 0 88px;
}

.spinner {
  width: 23px;
  height: 23px;
  margin: 0 auto 30px;
  border: 1.5px solid #deddd8;
  border-top-color: #282826;
  border-radius: 50%;
  animation: spin 1.25s linear infinite;
}

h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.6px;
}

p { margin: 0; }

.intro {
  margin-top: 9px;
  color: #76756f;
  font-size: 13px;
  line-height: 1.5;
}

.ticket { margin-top: 44px; }

.label, .total {
  color: #76756f;
  font-size: 12px;
  line-height: 1.5;
}

.number {
  margin: 10px 0 8px;
  font-size: clamp(23px, 5.9vw, 44px);
  line-height: 1.15;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1.8px;
  white-space: nowrap;
}

.total { font-variant-numeric: tabular-nums; }

.estimate {
  margin-top: 33px;
  font-size: 12px;
  line-height: 1.5;
}

.excuse {
  min-height: 36px;
  max-width: 300px;
  margin: 8px auto 0;
  color: #76756f;
  font-size: 12px;
  line-height: 1.5;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 27px;
  margin-top: 19px;
}

button {
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  color: #64635e;
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #c0bfb9;
  cursor: pointer;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

button:hover { color: #191918; text-decoration-color: #191918; }
button:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }

.notice {
  position: absolute;
  right: 0;
  bottom: 23px;
  left: 0;
  min-height: 36px;
  max-width: 310px;
  margin: auto;
  padding: 0 10px;
  color: #64635e;
  font-size: 12px;
  line-height: 1.5;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  color: #76756f;
  font-size: 11px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

footer > :last-child { justify-self: end; text-align: right; }
.footer-ad {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 970px;
  padding: 24px 0 12px;
  text-align: center;
}
.footer-ad[hidden] { display: none; }
.footer-ad p { margin-bottom: 10px; font-size: 10px; }
.privacy-settings { grid-column: 1 / -1; justify-self: center; padding: 0; font: inherit; }
.privacy-settings[hidden] { display: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: #c0bfb9; }
a:hover { color: #191918; text-decoration-color: #191918; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

.privacy-page main {
  align-self: start;
  max-width: 620px;
  padding: 64px 0;
  text-align: left;
}
.privacy-page h1 { margin-bottom: 12px; }
.privacy-page h2 { margin: 28px 0 8px; font-size: 14px; font-weight: 500; }
.privacy-page main p { color: #64635e; font-size: 13px; line-height: 1.75; }
.privacy-page main p + p { margin-top: 12px; }
.privacy-page .updated { margin-bottom: 28px; color: #76756f; font-size: 11px; }
.privacy-page code { overflow-wrap: anywhere; font-size: 12px; }

dialog {
  width: min(360px, calc(100% - 48px));
  margin: auto;
  padding: 40px 28px 28px;
  border: 1px solid #d6d5cf;
  color: #282826;
  background: #faf9f6;
  text-align: center;
}

dialog::backdrop { background: rgb(40 40 38 / 18%); }
dialog h2 { margin: 0 0 16px; font-size: 20px; font-weight: 400; letter-spacing: -.4px; }
dialog p { color: #64635e; font-size: 12px; line-height: 1.6; }
.dialog-position { margin-top: 14px; color: #282826; font-variant-numeric: tabular-nums; }
dialog form { margin-top: 23px; }
.no-script { margin-top: 18px; color: #76756f; font-size: 12px; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  body { padding: 22px 22px 20px; }
  main { padding: 48px 0 78px; }
  h1 { font-size: 22px; }
  .number { font-size: clamp(23px, 7.3vw, 35px); letter-spacing: -.8px; }
  .ticket { margin-top: 38px; }
  footer { gap: 12px; font-size: 10px; }
}

@media (max-height: 650px) {
  main { padding-top: 28px; padding-bottom: 70px; }
  .spinner { margin-bottom: 22px; }
  .ticket { margin-top: 28px; }
  .estimate { margin-top: 24px; }
  .actions { margin-top: 10px; }
  .notice { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 6s; }
  button { transition: none; }
}

@media print {
  .footer-ad, .privacy-settings { display: none !important; }
}
