/* Reji: "receipt tape and hanko".
   Indigo (ai) is the ink of the shop curtain; vermilion (shu) appears only on
   the paid stamp; paper is white on a cool mist ground. */
/* Reji Dot: the register's own dot-matrix font for numbers (tools/make-dot-font.py,
   3 KB, served from this site). Japanese text uses the device's own fonts. */
@font-face {
  font-family: "Reji Dot";
  src: url("../fonts/reji-dot.woff") format("woff");
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A5, U+00D7, U+FF0C, U+FF0E, U+FFE5;
}

:root {
  --ai: #22305a;
  --ai-deep: #18213f;
  --ai-wash: #dde3ef;
  --ink: #1b2440;
  --ink-soft: #5a6480;
  --mist: #e7eaf0;
  --paper: #fff;
  --line: #cbd2de;
  --line-soft: #e1e5ec;
  --shu: #d0391f;
  --matcha: #3f7d4e;
  --ochre: #b7802a;
  --ochre-wash: #fbf1dc;
  --ochre-line: #e8d0a0;
  --ochre-ink: #6b4a12;
  --danger: #b3261e;
  --danger-wash: #fbeae8;
  --focus: #3d6fe0;

  --font-ui: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-dot: "Reji Dot", "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;

  /* modular scale 1.25 */
  --t-xs: 0.8rem;
  --t-sm: 0.9rem;
  --t-md: 1rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5625rem;
  --t-2xl: 1.953rem;
  --t-3xl: 2.441rem;
  --t-4xl: 3.052rem;

  --r-key: 10px;
  --r-ctl: 8px;
  --r-card: 14px;
  --r-modal: 18px;

  color-scheme: only light; /* never auto-darkened: QR codes must stay dark on light */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; /* quick taps never zoom (iPhone, iPad) */ }
button, .btn, .tile { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body {
  margin: 0;
  font: 400 var(--t-md) / 1.6 var(--font-ui);
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { line-height: 1.3; font-weight: 700; }
p { margin: 0 0 0.75em; }
a { color: var(--ai); text-underline-offset: 0.18em; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-soft); }
.hint { display: block; color: var(--ink-soft); font-size: var(--t-xs); line-height: 1.55; }
.fine { color: var(--ink-soft); font-size: var(--t-xs); margin: 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.55em 1.1em;
  border: 1.5px solid var(--line); border-radius: var(--r-ctl);
  background: var(--paper); color: var(--ai);
  font-weight: 700; font-size: var(--t-sm); line-height: 1.25; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, transform .06s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--ai); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--ai); border-color: var(--ai); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--ai-deep); border-color: var(--ai-deep); }
.btn.ghost { background: transparent; }
.btn.quiet { background: transparent; border-color: transparent; padding-inline: 0.7em; }
.btn.quiet:hover { background: var(--ai-wash); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-ghost { background: transparent; border-color: transparent; color: var(--danger); }
.btn.danger-ghost:hover { background: var(--danger-wash); }
.btn.big { min-height: 56px; padding-inline: 1.5em; font-size: var(--t-lg); border-radius: 10px; }
.btn.small { min-height: 36px; padding: 0.3em 0.8em; font-size: var(--t-xs); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--ink-soft); cursor: pointer;
}
.icon-btn:hover { background: var(--ai-wash); color: var(--ai); }
.icon-btn.danger:hover { background: var(--danger-wash); color: var(--danger); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.5rem 0 1rem; }
.btn-col { display: grid; gap: 0.4rem; }
.btn-col .btn { justify-content: flex-start; }

/* ---------- segmented controls (buttons with aria state, or radio labels) ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--ai-wash); }
.seg > button, .seg-opt > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0.3em 1.05em; border: 0; border-radius: 999px;
  background: transparent; color: var(--ai); font-weight: 700; font-size: var(--t-sm);
  cursor: pointer; white-space: nowrap;
}
.seg > [aria-selected="true"], .seg > [aria-checked="true"], .seg-opt input:checked + span {
  background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(24, 33, 63, .2);
}
.seg-opt { position: relative; display: inline-flex; }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.seg-sm > button { min-height: 32px; font-size: var(--t-xs); padding-inline: 0.9em; }

/* ---------- form fields ---------- */
.field { display: grid; gap: 0.35rem; margin: 0 0 1.15rem; padding: 0; border: 0; min-width: 0; }
.label { font-weight: 700; font-size: var(--t-sm); padding: 0; }
input:where(:not([type=checkbox]):not([type=radio]):not([type=file])), select {
  width: 100%; min-height: 44px; padding: 0.5em 0.75em;
  font-size: 16px; /* keeps iOS from zooming */
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-ctl);
}
textarea { width: 100%; padding: 0.6em 0.75em; font-size: 16px; line-height: 1.65; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-ctl); resize: vertical; }
textarea:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 3px rgba(34, 48, 90, .16); }
input:focus, select:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 3px rgba(34, 48, 90, .16); }
input::placeholder { color: #98a1b6; }
.addr-input { letter-spacing: 0.02em; }
.field-error { color: var(--danger); font-size: var(--t-xs); font-weight: 700; margin: 0; }
.field-error:empty { display: none; }
.has-error input { border-color: var(--danger); }
.check { display: inline-flex; align-items: center; gap: 0.6em; min-height: 44px; cursor: pointer; }
.check input, .radio-inline input { width: 20px; height: 20px; margin: 0; accent-color: var(--ai); flex: none; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip, .chip-check span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0.3em 1em;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--ink-soft); font-weight: 700; font-size: var(--t-sm); white-space: nowrap; cursor: pointer;
}
.chip[aria-selected="true"], .chip-check input:checked + span { background: var(--ai); border-color: var(--ai); color: #fff; }
.chip-check { position: relative; display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- noren header: the shop curtain carries the store's name ---------- */
.noren {
  position: relative; display: flex; align-items: center; gap: 1rem;
  min-height: 64px; padding: 0.55rem clamp(0.75rem, 2vw, 1.25rem) 1.05rem;
  padding-top: max(0.55rem, env(safe-area-inset-top));
  background: var(--ai); color: #fff;
}
.noren::after { /* the slits between curtain panels */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 11px; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 3px), var(--mist) calc(20% - 3px) 20%);
}
.noren :focus-visible { outline-color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; color: #fff; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 700; font-size: var(--t-lg); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-btn {
  min-height: 36px; padding: 0.2em 0.8em; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 999px;
  background: transparent; color: #fff; font-weight: 700; font-size: var(--t-xs); cursor: pointer;
}
.lang-btn:hover { background: rgba(255, 255, 255, .12); }
.test-strip {
  margin: 0; padding: 0.35rem 1rem; text-align: center; font-weight: 700; font-size: var(--t-xs); color: var(--ochre-ink);
  background: repeating-linear-gradient(-45deg, #f6e7c6 0 12px, #f1dcae 12px 24px);
}

/* ---------- modal ---------- */
#modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(24, 33, 63, .5); }
.modal {
  position: relative; width: min(520px, 100%); max-height: calc(100dvh - 2rem); overflow: auto;
  padding: 1.5rem; border-radius: var(--r-modal); background: var(--paper);
  box-shadow: 0 24px 60px -12px rgba(24, 33, 63, .45);
}
.modal:focus { outline: none; }
.modal.small { width: min(420px, 100%); }
.modal.wide { width: min(860px, 100%); }
.modal-title { display: flex; align-items: center; gap: 0.45em; margin: 0 0 0.5rem; font-size: var(--t-lg); }
.modal-text { margin: 0 0 1rem; color: var(--ink-soft); }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; margin-top: 1.25rem; }
.modal-x { position: absolute; top: 0.6rem; right: 0.6rem; }
body.modal-open { overflow: hidden; }
.pin-input { font-size: 1.6rem !important; letter-spacing: 0.4em; text-align: center; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 80;
  max-width: calc(100vw - 2rem); padding: 0.7em 1.25em; border-radius: 999px;
  background: var(--ai-deep); color: #fff; font-weight: 700; font-size: var(--t-sm); text-align: center;
  transform: translate(-50%, 180%); transition: transform .25s ease; pointer-events: none;
}
#toast.show { transform: translate(-50%, 0); }
#toast[data-kind="error"] { background: var(--danger); }

/* ---------- notices, key/value lists, spinner ---------- */
.notice { margin: 0; padding: 0.85rem 1rem; border-radius: 12px; font-size: var(--t-sm); }
.notice h1 { margin: 0 0 0.3rem; font-size: var(--t-lg); }
.notice p { margin: 0; }
.notice.warn { background: var(--ochre-wash); border: 1.5px solid var(--ochre-line); color: #5b3e0e; }
.notice.error { background: var(--danger-wash); border: 1.5px solid #efc2bd; color: #7c1d16; }
.kv { display: grid; gap: 0.35rem; margin: 1rem 0 0; font-size: var(--t-sm); text-align: left; }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.35rem; border-bottom: 1px dotted var(--line); }
.kv dt { color: var(--ink-soft); flex: none; }
.kv dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.working { display: flex; align-items: center; gap: 0.75rem; margin: 0; font-weight: 700; }
.spinner { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid var(--ai-wash); border-top-color: var(--ai); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 2.5rem 1rem; text-align: center; }
.empty-title { font-weight: 700; font-size: var(--t-lg); margin-bottom: 0.4rem; }
.empty-text { color: var(--ink-soft); max-width: 42ch; margin: 0 auto 1.25rem; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.chain-badge {
  display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; white-space: nowrap;
  background: var(--ai-wash); color: var(--ai); font-size: var(--t-xs); font-weight: 700;
}
.chain-badge.test { background: #f6e7c6; color: var(--ochre-ink); }

/* ---------- QR ---------- */
.qr-frame { position: relative; width: min(100%, 360px); aspect-ratio: 1; }
.qr-frame > svg { display: block; width: 100%; height: 100%; }
.qr-frame.small { width: min(100%, 232px); }

/* ---------- receipt paper ---------- */
.torn { position: relative; }
.torn::after { /* zigzag tear at the bottom of the paper */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M0 0h14L7 9z' fill='%23fff'/%3E%3C/svg%3E") repeat-x 0 0 / 14px 9px;
}
.receipt { background: var(--paper); color: var(--ink); padding: 1.35rem 1.15rem 1.4rem; font-size: var(--t-sm); }
.rc-head { text-align: center; }
.rc-store { margin: 0 0 0.25rem; font-size: var(--t-lg); }
.rc-head p { margin: 0; color: var(--ink-soft); font-size: var(--t-xs); }
.rc-title { margin: 0.9rem 0 0.4rem; text-align: center; font-weight: 700; letter-spacing: 0.5em; padding-left: 0.5em; }
:lang(en) .rc-title { letter-spacing: 0.2em; padding-left: 0.2em; }
.rc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding-bottom: 0.5rem; border-bottom: 1px dashed var(--line); color: var(--ink-soft); font-size: var(--t-xs); }
.rc-items { list-style: none; margin: 0.5rem 0; padding: 0; }
.rc-items li { display: grid; grid-template-columns: 1fr auto; column-gap: 0.75rem; padding: 0.22rem 0; }
.rc-amt { font-family: var(--font-dot); text-align: right; }
.rc-qty { grid-column: 1 / -1; padding-left: 1em; color: var(--ink-soft); font-size: var(--t-xs); font-family: var(--font-dot); }
.rc-desc { margin: 0.6rem 0; }
.rc-totals, .rc-pay { margin: 0; padding-top: 0.5rem; border-top: 1px dashed var(--line); }
.rc-totals > div, .rc-pay > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.rc-totals dd, .rc-pay dd { margin: 0; text-align: right; }
.rc-totals dd { font-family: var(--font-dot); }
.rc-totals small { font-family: var(--font-ui); }
.rc-total { font-weight: 700; font-size: var(--t-lg); }
.rc-total dd { font-size: var(--t-xl); }
.rc-rate { color: var(--ink-soft); font-size: var(--t-xs); }
.rc-pay { margin-top: 0.6rem; font-size: var(--t-xs); }
.rc-note, .rc-foot { margin: 0.6rem 0 0; color: var(--ink-soft); font-size: var(--t-xs); }
.rc-foot { text-align: center; }
.rc-qr { margin-top: 0.8rem; text-align: center; font-size: var(--t-xs); color: var(--ink-soft); }
.rc-qr svg { width: 30mm; height: 30mm; }

/* ---------- the paid stamp (日付印) ---------- */
.hanko { display: block; width: 100%; height: 100%; overflow: visible; color: var(--shu); mix-blend-mode: multiply; }
.stamp { pointer-events: none; opacity: .92; transform: rotate(-12deg); animation: stamp-in .5s cubic-bezier(.2, .75, .3, 1) .12s both; }
@keyframes stamp-in {
  0% { opacity: 0; transform: scale(1.9) rotate(-3deg); }
  60% { opacity: 1; transform: scale(.94) rotate(-13deg); }
  80% { transform: scale(1.02) rotate(-12deg); }
  100% { opacity: .92; transform: scale(1) rotate(-12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .stamp { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ---------- printing: only #print-root goes to paper ---------- */
#print-root { display: none; }
@media print {
  @page { margin: 4mm; }
  body[data-print] { background: #fff; }
  body[data-print] > *:not(#print-root) { display: none !important; }
  body[data-print] #print-root { display: block; width: var(--print-w, 48mm); font-size: 9pt; color: #000; }
  #print-root .receipt { padding: 0; font-size: 9pt; }
  #print-root .rc-store { font-size: 12pt; }
  #print-root .rc-total { font-size: 11pt; }
  #print-root .rc-total dd { font-size: 13pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* terms / privacy links under customer-facing pages */
.legal-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.3rem 1.1rem; padding: 0.5rem 1rem calc(1.25rem + env(safe-area-inset-bottom)); font-size: 0.75rem; }
.legal-links a { color: inherit; opacity: 0.7; }
@media print { .legal-links { display: none; } }

/* ---- store branding (shared) ---- */
.noren { background: var(--brand, var(--ai)); }
.brand-logo { width: 34px; height: 34px; flex: none; border-radius: 9px; background: #fff; object-fit: contain; padding: 2px; }
.receipt[data-brand="1"] .rc-store { color: var(--rc-brand); }
.receipt[data-brand="1"] .rc-head { border-bottom: 3px solid var(--rc-brand); padding-bottom: 0.45rem; }
.rc-logo { display: block; width: 64px; height: 64px; margin: 0 auto 0.35rem; object-fit: contain; }
.rc-link { margin: 0.7rem 0 0; text-align: center; }
.rc-link a { display: inline-block; padding: 0.35rem 0.95rem; border-radius: 99px; border: 1.5px solid currentColor; color: var(--rc-brand, var(--ai)); font-weight: 700; font-size: 0.85em; text-decoration: none; }
.rc-link-url { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media print {
  .rc-link a { display: none; }
  .rc-link-url { display: block; font-size: 0.75em; word-break: break-all; }
  .rc-logo { filter: grayscale(1) contrast(1.2); }
}

/* ---- store card: store page, payment complete, Settings preview ---- */
.store-card { --sc: var(--brand, var(--ai)); display: grid; gap: 0.8rem; padding: 1.1rem 1.1rem 1.2rem; border: 1px solid var(--line-soft); border-top: 4px solid var(--sc); border-radius: 16px; background: #fff; box-shadow: 0 12px 28px -24px rgba(24, 33, 63, .6); text-align: left; }
.sc-head { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.sc-logo { width: 64px; height: 64px; flex: none; padding: 4px; border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; object-fit: contain; }
.sc-mono { display: grid; place-items: center; border: 0; background: var(--sc); color: #fff; font-size: 1.6rem; font-weight: 700; }
.sc-id { min-width: 0; }
.sc-name { margin: 0; color: var(--sc); font-size: var(--t-xl); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.sc-tag { margin: 0.15rem 0 0; line-height: 1.55; }
.sc-people { display: flex; align-items: center; gap: 0.3rem; margin: 0.25rem 0 0; color: var(--ink-soft); font-size: var(--t-sm); }
.sc-people .ic, .sc-link .ic { width: 15px; height: 15px; }
.sc-event { display: inline-flex; align-items: center; gap: 0.4rem; justify-self: start; margin: 0; padding: 0.3rem 0.85rem; border-radius: 99px; background: var(--sc); color: #fff; font-size: var(--t-sm); }
.sc-event .ic { width: 16px; height: 16px; }
.sc-event b { margin-right: 0.6em; }
.sc-about { margin: 0; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.sc-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sc-link { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.42rem 0.9rem; border: 1.5px solid var(--sc); border-radius: 99px; color: var(--sc); font-size: var(--t-sm); font-weight: 700; text-decoration: none; }
.store-card.compact { padding: 0.9rem; box-shadow: none; }
.store-card.compact .sc-logo { width: 48px; height: 48px; border-radius: 11px; }

/* ---- receipts: event, 宛名 and 但し書き ---- */
.rc-event { margin: 0.25rem 0 0; font-weight: 700; }
.rc-addressee { margin: 0.5rem 0 0.3rem; padding-bottom: 0.15rem; border-bottom: 1px solid currentColor; font-size: 1.12em; text-align: left; }
.rc-proviso { margin: 0.4rem 0 0; font-size: 0.9em; }
.rc-received { margin: 0.1rem 0 0.4rem; font-size: 0.85em; }

/* ---- 店頭POP: fits a Japanese postcard (100 x 148 mm) ---- */
.pop { --pop: var(--ai); display: grid; justify-items: center; gap: 2.4mm; width: 96mm; box-sizing: border-box; padding: 6mm 5mm 4mm; border: 2.2mm solid var(--pop); border-radius: 6mm; background: #fff; color: #1b2440; text-align: center; font-family: var(--font-ui); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pop p { margin: 0; }
.pop-logo { width: 24mm; height: 24mm; object-fit: contain; }
.pop-name { color: var(--pop); font-size: 19pt; font-weight: 700; line-height: 1.25; }
.pop-tag { font-size: 9.5pt; line-height: 1.5; }
.pop-event { padding: 1mm 3.5mm; border-radius: 99px; background: var(--pop); color: #fff; font-size: 9.5pt; font-weight: 700; }
.pop-pay { width: 100%; box-sizing: border-box; padding: 3mm 3mm 3.2mm; border-radius: 3mm; background: #f2f4fa; }
.pop-big { color: var(--pop); font-size: 23pt; font-weight: 800; letter-spacing: 0.04em; }
.pop .pop-sub { margin-top: 1mm; font-size: 9.5pt; font-weight: 700; }
.pop .pop-how { margin-top: 1mm; color: #434a5e; font-size: 8pt; line-height: 1.5; }
.pop-qr svg { display: block; width: 28mm; height: 28mm; margin: 0 auto; }
.pop .pop-qr p { margin-top: 1mm; font-size: 8pt; font-weight: 700; }
.pop-foot { color: #6b7285; font-size: 6.5pt; }
@page pop { size: 100mm 148mm; margin: 2mm; }
@media print { body[data-print="pop"] #print-root { page: pop; font-size: 10pt; } }

.mono { font-family: var(--font-dot); font-size: 0.95em; word-break: break-all; }
.opt { margin-left: 0.3rem; padding: 0.05rem 0.5rem; border-radius: 99px; background: var(--mist); color: var(--ink-soft); font-size: 0.72rem; font-weight: 700; vertical-align: middle; }
