:root {
  /* Warm off-white background and slightly creamy receipt paper */
  --bg: #f4f1ea;
  --paper: #fffcf5;
  --ink: #181818;
  --text: #181818;
  --muted: #6b6860; /* #737068 was 4.38:1 on --bg */
  --muted-on-paper: #737068;
  --accent-on-paper: #d32f2f; /* red text on the receipt paper */ /* secondary text on the receipt paper */
  --accent: #d32f2f; /* Bold red */
  --accent-on-bg: #c62828; /* the logo on the page background; --accent is 4.4:1 there */
  --line: #d6d3cb;
  /* Result tiers; all three stay >= 4.5:1 on the receipt paper in both colour modes */
  --tier-great: #14532d;
  --tier-good: #2f6b1f;
  --tier-mid: #8a5300;
  --tier-poor: #a8420a;
  --tier-bad: #9b1c1c;
  /* Vivid versions for the meter fill and box tint (never used for text) */
  --fill-great: #1f9d55;
  --fill-good: #84cc16;
  --fill-mid: #f5b301;
  --fill-poor: #f97316;
  --fill-bad: #dc2626;
  
  --font-ui: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1917;
    /* In dark mode, the receipt stays relatively light (like a real paper receipt in the dark),
       but we dim it slightly to avoid blinding contrast. */
    --paper: #e8e4db;
    --ink: #181818;
    --text: #e8e4db;
    --muted: #8b887f;
    --muted-on-paper: #504c45; /* paper stays light in dark mode, so its text must be dark */
    --accent-on-paper: #b3261e; /* --accent is only 3.9:1 on the dark-mode paper */
    --accent-on-bg: #ef5350; /* --accent is 3.5:1 on the dark page */
    --line: #b5b1a8; /* Darker dashes on the light receipt */
  }
}
:root[data-theme="dark"] {
    --bg: #1a1917;
    /* In dark mode, the receipt stays relatively light (like a real paper receipt in the dark),
       but we dim it slightly to avoid blinding contrast. */
    --paper: #e8e4db;
    --ink: #181818;
    --text: #e8e4db;
    --muted: #8b887f;
    --muted-on-paper: #504c45; /* paper stays light in dark mode, so its text must be dark */
    --accent-on-paper: #b3261e; /* --accent is only 3.9:1 on the dark-mode paper */
    --accent-on-bg: #ef5350; /* --accent is 3.5:1 on the dark page */
    --line: #b5b1a8; /* Darker dashes on the light receipt */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.5;
}

.site-header, main, .site-footer {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

main { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }

/* Header */
.site-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 12px; 
  padding-top: 16px;
  padding-bottom: 12px;
}
.logo { 
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.5rem; 
  margin: 0; 
  color: var(--accent-on-bg); 
  letter-spacing: -0.02em;
}

/* The Ripped Receipt Base (Variant B) */
.receipt-card {
  /* Older questions print on yellowed paper: main.js sets --age from 0 (new) to 1 (2008 or older) */
  --paper-aged: color-mix(in srgb, var(--paper) calc(100% - var(--age, 0) * 32%), #c9a45a);
  background: var(--paper-aged);
  color: var(--ink);
  position: relative;
  padding: 32px 24px;
  /* Keep overflow visible so pseudo-elements show */
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.08));
}

/* Zigzag borders logic using linear gradients */
.receipt-card::before, .receipt-card::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 8px;
  background-size: 16px 16px;
  background-repeat: repeat-x;
}

/* Bottom rip (applied to both Question and Result screens) */
.receipt-card::after {
  bottom: -8px;
  background-image: 
    linear-gradient(135deg, var(--paper-aged) 25%, transparent 25%), 
    linear-gradient(-135deg, var(--paper-aged) 25%, transparent 25%);
  background-position: 0 0;
}

/* Top rip (applied only to Result screen for full thermal receipt look) */
.result-receipt::before {
  top: -8px;
  background-image: 
    linear-gradient(45deg, var(--paper-aged) 25%, transparent 25%), 
    linear-gradient(-45deg, var(--paper-aged) 25%, transparent 25%);
  background-position: 0 100%;
}

/* Question Screen specific styles */
.question-card {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 28px 20px 24px;
  text-align: center;
}

.period-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  padding: 8px 20px;
  border-radius: 24px;
  margin-bottom: 16px;
}

.product-image[hidden] { display: none; }
.product-image {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.product { 
  margin: 0 0 6px; 
  font-size: clamp(1.75rem, 6vw, 2.25rem); 
  font-weight: 700; 
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.unit { 
  margin: 0 0 20px; 
  color: var(--muted-on-paper); 
  font-size: 1rem;
}

.guess-field { 
  display: flex; 
  align-items: center; 
  border: 3px solid var(--ink); 
  border-radius: 8px; 
  background: var(--paper);
  margin-bottom: 10px;
}
.guess-field input {
  flex: 1; 
  min-width: 0; 
  border: 0; 
  background: transparent; 
  padding: 14px 18px;
  font: 700 2rem var(--font-mono); 
  color: var(--ink);
}
.guess-field input:focus { outline: none; }
.guess-field:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.currency { 
  padding-right: 20px; 
  font: 700 1.5rem var(--font-mono); 
}
.error { 
  min-height: 1.5em; 
  color: var(--accent-on-paper); 
  font-size: 0.875rem; 
  font-weight: 600;
  margin-bottom: 16px;
}

/* Result Receipt specific styles */
.receipt-wrapper {
  margin: 16px 0 32px; /* Extra margin for the torn edges */
}

.result-receipt {
  font-family: var(--font-mono);
  padding: 24px 24px 32px;
}

.receipt-head { 
  text-align: center; 
  margin: 0 0 24px; 
  font-weight: 700;
  letter-spacing: 0.05em;
}
.receipt-title { 
  font-weight: 700; 
  margin: 0 0 4px; 
  font-size: 1.125rem;
}
.receipt-unit { 
  color: var(--muted-on-paper); 
  margin: 0 0 16px; 
  font-size: 0.875rem;
}
.result-receipt hr { 
  border: 0; 
  border-top: 2px dashed var(--line); 
  margin: 16px 0;
}
.result-receipt dl { margin: 0; }
.row { 
  display: flex; 
  justify-content: space-between; 
  padding: 6px 0; 
  font-size: 1rem;
}
.row dd { margin: 0; font-weight: 700; }

.verdict-box {
  border: 2px solid var(--accent);
  padding: 16px;
  margin: 24px 0;
  text-align: center;
}
.verdict { 
  color: var(--accent); 
  font-weight: 700; 
  font-size: 1.25rem; 
  margin: 0;
}

.verdict-box[data-tier] { border-color: var(--tier, var(--accent)); background: color-mix(in srgb, var(--fill, transparent) 14%, transparent); }
.verdict-box[data-tier] .verdict,
.score-box[data-tier] { color: var(--tier, var(--accent)); }
[data-tier='great'] { --tier: var(--tier-great); --fill: var(--fill-great); }
[data-tier='good'] { --tier: var(--tier-good); --fill: var(--fill-good); }
[data-tier='mid'] { --tier: var(--tier-mid); --fill: var(--fill-mid); }
[data-tier='poor'] { --tier: var(--tier-poor); --fill: var(--fill-poor); }
[data-tier='bad'] { --tier: var(--tier-bad); --fill: var(--fill-bad); }

.meter {
  height: 10px;
  margin: 8px auto 0;
  max-width: 220px;
  background: rgba(0,0,0,0.12);
  border-radius: 5px;
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  width: var(--score, 0%);
  background: var(--fill, var(--accent));
  transition: width 0.4s ease-out;
}
@media (prefers-reduced-motion: reduce) { .meter > span { transition: none; } }

.score-box {
  text-align: center;
  margin: 24px 0 16px;
  font-weight: 700;
  font-size: 1.125rem;
}

.context-line,
.tax-line,
.tax-details {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--muted-on-paper);
  margin: 0 0 16px;
  padding: 12px;
  background: rgba(0,0,0,0.03);
  border-radius: 6px;
  line-height: 1.4;
}
.context-line,
.tax-line {
  text-align: center;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .context-line,
  :root:not([data-theme="light"]) .tax-line,
  :root:not([data-theme="light"]) .tax-details { background: rgba(0,0,0,0.1); }
}
:root[data-theme="dark"] .context-line,
:root[data-theme="dark"] .tax-line,
:root[data-theme="dark"] .tax-details { background: rgba(0,0,0,0.1); }

.tax-details summary {
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  padding: 2px 0;
  color: var(--ink);
  list-style-position: inside;
}
.tax-details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.tax-details-table {
  width: 100%;
  margin: 12px 0 8px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.tax-details-table th,
.tax-details-table td {
  padding: 4px 0;
}
.tax-details-table th {
  font-weight: 400;
  text-align: left;
  color: var(--muted-on-paper);
}
.tax-details-table td {
  font-weight: 700;
  text-align: right;
  color: var(--ink);
}
.tax-details-table tr.tax-total-row th,
.tax-details-table tr.tax-total-row td {
  border-top: 1px dashed var(--line);
  font-weight: 700;
  padding-top: 6px;
}
.tax-caveat {
  font-size: 0.75rem;
  color: var(--muted-on-paper);
  text-align: center;
  margin: 8px 0 4px;
}
.tax-period-sources {
  font-size: 0.75rem;
  color: var(--muted-on-paper);
  text-align: center;
  margin: 4px 0 0;
}
.tax-period-sources a {
  color: inherit;
  text-decoration: underline;
}

.source { 
  font-size: 0.75rem; 
  color: var(--muted-on-paper); 
  text-align: center;
  margin: 0;
}
.source a { color: inherit; text-decoration: underline; }
/* Source type label; wraps with the text so it never changes the layout width. */
.source-kind {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--muted-on-paper);
  overflow-wrap: anywhere;
}

/* Actions & Session */
.session-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.session { 
  text-align: center; 
  font-size: 0.875rem; 
  color: var(--muted); 
  margin: 0;
}

.actions { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap;
}
.btn {
  font: 700 1.125rem var(--font-ui); 
  padding: 16px 20px; 
  border-radius: 8px;
  border: 2px solid var(--text); 
  background: transparent; 
  color: var(--text); 
  cursor: pointer;
  text-align: center;
  transition: transform 0.1s;
  flex: 1;
}
.btn:active { transform: scale(0.98); }
.btn.primary { 
  background: var(--text); 
  color: var(--bg); 
  flex: 1 1 100%; 
}
.receipt-card .btn.primary { 
  background: var(--ink); 
  border-color: var(--ink); 
  color: var(--paper); 
  width: 100%;
}

.question-card .guess-field input { text-align: center; }
.question-card .currency { padding-right: 18px; }

/* Phones: keep "Sonraki" and sharing in reach at the bottom of the screen */
@media (max-width: 719px) {
  .session-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
    gap: 10px;
  }
  .session-actions .session { font-size: 0.8125rem; }
  .session-actions .actions { flex-wrap: nowrap; gap: 8px; }
  .session-actions .btn { padding: 12px 8px; font-size: 0.9375rem; }
  .session-actions .btn.primary { flex: 1.3 1 0; }
  .session-actions .wide-only { display: none; }
}

.narrow-only { display: none; }
@media (max-width: 719px) { .session-actions .narrow-only { display: inline; } }

/* Exact-guess confetti */
.confetti-layer {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50;
}
.confetti-piece {
  position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px;
  animation-name: confetti-fall; animation-timing-function: cubic-bezier(.2,.6,.4,1); animation-fill-mode: forwards;
}
@keyframes confetti-fall {
  to { transform: translate(var(--drift), 105vh) rotate(var(--spin)); opacity: 0.9; }
}

/* Wider screens: give the single card a bit more room and centre it vertically */
@media (min-width: 720px) {
  .site-header, main, .site-footer { max-width: 560px; }
  main { justify-content: center; }
  .product-image { width: 128px; height: 128px; }
}

/* Footer */
.site-footer { 
  font-size: 0.75rem; 
  color: var(--muted); 
  text-align: center; 
  margin-top: auto;
}
.site-footer a { color: inherit; font-weight: 600; }
.site-footer .credit { margin-top: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Timeline Screen */
.header-link, .footer-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.header-link:hover, .footer-link:hover {
  text-decoration: underline;
}
.site-footer .footer-link {
  font-weight: 600;
  color: var(--muted);
}

.timeline-header {
  text-align: center;
  margin-bottom: 24px;
}
.timeline-header h2 {
  font-size: 1.75rem;
  margin: 0 0 8px;
  color: var(--text);
}
.timeline-header p {
  color: var(--text);
  margin: 0 0 16px;
  font-size: 0.875rem;
}
.timeline-back-btn {
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 24px;
}

.timeline-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.picker-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink); /* the paper is light in dark mode too, so --text would be invisible here */
  font: 600 0.875rem var(--font-ui);
  cursor: pointer;
  white-space: nowrap;
}
.picker-chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.picker-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.timeline-receipt {
  padding: 24px 16px;
}

.timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.timeline-table th, .timeline-table td {
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  text-align: left;
  vertical-align: top;
}
.timeline-table tr:last-child th,
.timeline-table tr:last-child td {
  border-bottom: none;
}
.timeline-table th[scope="row"] {
  font-weight: 700;
  width: 38%;
  padding-right: 12px;
}

.timeline-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.timeline-price {
  font-weight: 700;
  font-size: 1rem;
}
.timeline-ratio {
  font-size: 0.75rem;
  color: #b3261e; /* darker red: --accent is only 3.9:1 on the dark-mode paper */
  font-weight: 700;
}

.timeline-bar-track {
  width: 100%;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}
.timeline-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--muted-on-paper);
}
.timeline-source {
  color: inherit;
  text-decoration: underline;
}
.timeline-note[open] {
  flex-basis: 100%;
}
.timeline-note summary {
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}
.timeline-note p {
  margin: 6px 0 0;
  line-height: 1.4;
}

.guess-steps { display: flex; gap: 8px; justify-content: center; margin: 0 0 12px; }
.guess-steps .step { color: var(--ink); border-color: var(--ink); flex: 1; padding: 8px 4px; font-size: 0.875rem; min-height: 40px; }
.cashier-line { font-family: var(--font-ui); font-style: italic; text-align: center; font-size: 0.875rem; color: var(--muted-on-paper); margin: 0 0 16px; }

.site-header { flex-wrap: wrap; }
.header-nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

.hint-btn { display: block; margin: 0 auto 12px; padding: 4px 8px; background: none; border: 0; font: inherit; font-size: 0.875rem; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* Theme toggle in the header */
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; flex: none; background: transparent; border: 2px solid var(--text); border-radius: 50%; color: var(--text); font-size: 1.125rem; line-height: 1; cursor: pointer; }
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.logo { text-decoration: none; }

/* Home menu */
.home-intro { text-align: center; margin: 8px 0 20px; color: var(--text); }
.home-intro h2 { font-size: 1.5rem; margin: 0 0 8px; }
.home-intro p { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.mode-list { display: grid; gap: 12px; }
.mode-card { display: grid; gap: 6px; padding: 16px 16px 14px; background: var(--paper); color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: 8px; }
.mode-card:hover { transform: translate(-1px, -1px); }
.mode-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mode-name { font: 700 1.25rem var(--font-ui); }
.mode-desc { font: 400 0.9375rem var(--font-ui); color: var(--muted-on-paper); }
.mode-meta { font: 700 0.8125rem var(--font-mono); color: var(--accent-on-paper); }
.mode-meta:empty { display: none; }
.mode-main { box-shadow: 4px 4px 0 var(--text); }
.mode-main .mode-meta { border-top: 1px dashed var(--line); padding-top: 8px; }
.mode-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.mode-row .mode-name { font-size: 1.0625rem; flex: none; }
.mode-row .mode-desc { font-size: 0.8125rem; text-align: right; }

/* Hint: a small slip with aligned rows instead of one long line */
.hint-slip { margin: 0 0 12px; padding: 10px 12px; background: rgba(0,0,0,0.03); border: 1px dashed var(--ink); border-radius: 4px; font-family: var(--font-mono); font-size: 0.875rem; }
.hint-slip-title { margin: 0 0 6px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.75rem; color: var(--muted-on-paper); }
.hint-row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.hint-row strong { font-weight: 700; }


/* Short colour fade when the theme is switched by hand (class is set for ~400ms by main.js) */
@media (prefers-reduced-motion: no-preference) {
  html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, fill 0.35s ease !important;
  }
  .theme-toggle.spin { animation: theme-spin 0.4s ease; }
}
@keyframes theme-spin { from { transform: rotate(-90deg) scale(0.8); } to { transform: none; } }


/* Touch targets: every control gets at least a 44x44 CSS px hit area (WCAG 2.5.5). */
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-title { margin: 0; font-size: inherit; line-height: inherit; }
.theme-toggle { width: 44px; height: 44px; }
.guess-steps .step { min-height: 44px; }
.hint-btn { min-height: 44px; padding: 8px 12px; }
.picker-chip { min-height: 44px; }
.site-footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.tax-details summary, .timeline-note summary { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.tax-details summary { display: flex; justify-content: center; }
.timeline-source, .source a, .tax-period-sources a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.archive-link { font-weight: 700; }

#category-picker { margin-bottom: 8px; }
.note-link { display: inline-flex; align-items: center; min-height: 44px; margin: 2px 0; padding: 0 12px; border: 2px solid var(--ink); border-radius: 6px; color: var(--ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.note-link:hover { background: var(--ink); color: var(--paper); }
.note-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }


/* Yellowed old receipts: darker secondary text keeps the 4.5:1 contrast on the tinted paper */
.receipt-card[data-aged] { --muted-on-paper: #4a463f; --accent-on-paper: #a82019; }

/* Sound toggle sits next to the theme toggle */
.header-tools { display: flex; gap: 8px; align-items: center; }
.sound-toggle[aria-pressed="false"] { opacity: 0.6; }

/* Result icon reacts to the score; motion only for users who allow it */
.result-image { width: 56px; height: 56px; margin: 4px auto 8px; }
@media (prefers-reduced-motion: no-preference) {
  .result-image.bounce { animation: icon-bounce 0.7s ease; }
  .result-image.shake { animation: icon-shake 0.6s ease; }
}
@keyframes icon-bounce { 0%, 100% { transform: none; } 30% { transform: translateY(-14px) scale(1.12); } 55% { transform: translateY(0) scale(0.96); } 75% { transform: translateY(-5px); } }
@keyframes icon-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px) rotate(-6deg); } 40% { transform: translateX(8px) rotate(6deg); } 60% { transform: translateX(-5px) rotate(-3deg); } 80% { transform: translateX(4px) rotate(2deg); } }

/* Cashier banter extras on the receipt */
.pos-line { margin: -8px 0 12px; text-align: center; font: 700 0.8125rem var(--font-mono); color: var(--accent-on-paper); letter-spacing: 0.02em; }
.ytl-note { margin: 0 0 12px; text-align: center; font: 400 0.8125rem var(--font-mono); color: var(--muted-on-paper); }
.receipt-foot { margin: 16px 0 8px; text-align: center; font: 400 0.6875rem var(--font-mono); letter-spacing: 0.04em; color: var(--muted-on-paper); }
.year-anchor { margin: 0 0 12px; text-align: center; font: italic 0.875rem var(--font-ui); color: var(--muted-on-paper); }
.year-anchor[hidden] { display: none; }
.hint-cashier { margin: 0 0 8px; font: italic 0.875rem var(--font-ui); color: var(--muted-on-paper); }

/* Skip link under the submit button */
.skip-btn { display: block; margin: 8px auto 0; min-height: 44px; padding: 8px 12px; background: none; border: 0; font: inherit; font-size: 0.875rem; font-weight: 700; color: var(--muted-on-paper); text-decoration: underline; cursor: pointer; }
.skip-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
