:root {
  --paper: #f3efe6;
  --ink: #1e1a17;
  --muted: #6b625a;
  --card: #fffdf8;
  --line: #e3dbd0;
  --crimson: #9e1b34;
  --success: #1d6b45;
  --gold: #f3e2bc;
  --gold-ink: #6a4b12;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 32px 16px 48px;
  background:
    radial-gradient(900px 420px at 50% -80px, #fff, transparent 70%),
    var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.45;
}

.slip {
  width: min(100%, 28rem);
  margin: 0 auto;
  padding: 28px 24px 32px;
  background: var(--card);
  border-radius: 18px;
  border-top: 4px solid var(--crimson);
  box-shadow: 0 18px 50px rgba(60, 40, 20, 0.08);
}

.banner {
  margin: -8px 0 18px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 0.92rem;
}

.brand {
  display: block;
  width: 84px;
  height: auto;
  margin: 0 0 16px;
}

h1 {
  margin: 0 0 8px;
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

p { margin: 0 0 14px; }

.lede, .footnote, .bill, .redirect-note, .detail {
  color: var(--muted);
}

.amount {
  margin: 8px 0 12px;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 2.4rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.bill span {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pay-prompt {
  margin: 22px 0 12px;
  color: var(--ink);
  font-weight: 600;
}

.methods {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.method, .button, .text-button {
  font: inherit;
}

.method {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 14px 18px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.method:hover, .method:focus-visible {
  border-color: var(--crimson);
  background: #fff7f8;
}

.method-credit_card img {
  display: block;
  width: 80%;
  height: auto;
  object-fit: contain;
}

.method-fps img {
  display: block;
  width: 20%;
  height: auto;
  object-fit: contain;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 16px;
  color: white;
  background: var(--crimson);
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
}

.button-secondary {
  color: var(--crimson);
  background: transparent;
  border: 1px solid var(--crimson);
}

.text-button {
  padding: 0;
  color: var(--crimson);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

.actions { display: grid; gap: 8px; margin-top: 12px; }

.qr {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 8px auto 16px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.wait { text-align: center; }

#countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
}

.warning {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4e8;
  color: #8a4b12;
}

.mark { width: 52px; height: 52px; margin-bottom: 12px; }
.mark svg { width: 52px; height: 52px; }
.mark-success { color: var(--success); }
.mark-cancelled, .mark-failed, .mark-timed_out { color: var(--crimson); }

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