:root {
  color-scheme: light;
  --ink: #1c1712;
  --muted: #5e564c;
  --paper: #f6f0e4;
  --panel: #efe4d2;
  --line: #e2d3bc;
  --rail: #c4482d;
  --board: #14241f;
  --ok: #1d6b45;
  --error: #8c2f1b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  color: var(--ink);
  background-color: var(--board);
  background-image:
    radial-gradient(ellipse at 18% -10%, rgba(232, 196, 124, 0.18), transparent 46%),
    repeating-linear-gradient(-18deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 14px);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.ticket {
  width: min(100%, 34rem);
  display: grid;
  grid-template-columns: 14px 1fr;
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.rail {
  background: var(--rail);
}

.body {
  padding: 28px 28px 22px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--rail);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.label,
dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.region {
  margin: 4px 0 0;
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  font-size: clamp(3rem, 12vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.meta {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.meta div + div {
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

dd {
  margin: 3px 0 0;
}

.mono {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.other {
  margin-top: 22px;
  padding: 16px;
  background: var(--panel);
  border-radius: 14px;
}

h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

#other-status {
  margin: 0;
}

#other-status.is-ok {
  color: var(--ok);
}

#other-status.is-error {
  color: var(--error);
}

#other-result {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

#other-result[hidden] {
  display: none !important;
}

.links {
  display: flex;
  gap: 16px;
  margin: 18px 0 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--rail);
  outline-offset: 3px;
}

@media (max-width: 420px) {
  .body {
    padding: 22px 18px 16px;
  }
}
