/* Roleta de Descontos — Studio Jay Batista
   Tokens + componentes. Mobile-first. */

:root {
  /* Paleta da marca */
  --jb-ink: #30301a;        /* verde escuro — texto principal, fundos de destaque */
  --jb-cream: #e5dbd3;      /* bege claro — fundo da página */
  --jb-tan: #c9ad8c;        /* caramelo — acento, CTA sobre escuro */
  --jb-stone: #aba59d;      /* cinza quente — estados desabilitados */
  --jb-olive: #6d6d48;      /* oliva — ações secundárias, sucesso */
  /* Tons de apoio (contraste) */
  --jb-paper: #fbf8f4;      /* fundo de superfície */
  --jb-olive-deep: #5c5c3c; /* texto oliva sobre claro (AA) */
  --jb-error: #8a3f2b;

  --jb-ink-70: rgba(48, 48, 26, .70);
  --jb-ink-60: rgba(48, 48, 26, .62);
  --jb-ink-45: rgba(48, 48, 26, .45);
  --jb-line: rgba(48, 48, 26, .14);
  --jb-line-strong: rgba(48, 48, 26, .22);
  --jb-tint: rgba(48, 48, 26, .05);

  --font-display: "Garet", "Outfit", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px;

  --shadow-card: 0 26px 50px -24px rgba(48, 48, 26, .4);
  --ease-out: cubic-bezier(.16, .9, .16, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  color: var(--jb-ink);
  background: var(--jb-paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--jb-olive-deep); }
a:hover { color: var(--jb-ink); }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--jb-olive); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Tipografia ---------- */
.t-display { font: 500 34px/1.06 var(--font-display); letter-spacing: -.01em; margin: 0; }
.t-title   { font: 500 28px/1.12 var(--font-display); margin: 0; }
.t-h2      { font: 500 26px/1.1 var(--font-display); margin: 0; }
.t-body    { font: 400 14px/1.55 var(--font-body); color: var(--jb-ink-70); margin: 0; text-wrap: pretty; }
.t-small   { font: 400 12px/1.5 var(--font-body); color: var(--jb-ink-60); margin: 0; text-wrap: pretty; }
.t-label   { font: 600 12px/1 var(--font-body); color: var(--jb-ink-60); }
.t-eyebrow { font: 600 11px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--jb-tan); }
.t-code    { font: 500 21px/1 var(--font-display); letter-spacing: .06em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  border: none; border-radius: var(--r-pill);
  padding: 17px 20px; min-height: 52px;
  font: 600 15px/1 var(--font-body); letter-spacing: .02em;
  transition: background-color .2s, border-color .2s, transform .1s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn--block { width: 100%; }
.btn--primary { background: var(--jb-ink); color: var(--jb-paper); }
.btn--primary:hover { background: var(--jb-olive); }
.btn--accent { background: var(--jb-tan); color: var(--jb-ink); }
.btn--accent:hover { background: #d4bb9d; }
.btn--accent:disabled { background: var(--jb-stone); }
.btn--olive { background: var(--jb-olive); color: var(--jb-paper); }
.btn--olive:hover { background: #7d7d55; }
.btn--ghost-dark { background: transparent; color: var(--jb-cream); border: 1px solid rgba(229, 219, 211, .4); }
.btn--ghost-dark:hover { border-color: var(--jb-tan); }
.btn--ghost { background: transparent; color: var(--jb-ink); border: 1px solid var(--jb-line-strong); }
.btn--ghost:hover { background: var(--jb-tint); }
.btn--sm { padding: 11px 18px; min-height: 40px; font-size: 13px; }

/* ---------- Formulário ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field__input {
  border: none; border-bottom: 1px solid var(--jb-line-strong);
  background: transparent; padding: 10px 2px;
  font: 400 16px/1.3 var(--font-body); color: var(--jb-ink);
  outline: none; transition: border-color .2s;
}
.field__input:focus { border-bottom-color: var(--jb-olive); }
.field__input[aria-invalid="true"] { border-bottom-color: var(--jb-error); }
.field__input--boxed {
  border: 1px solid var(--jb-line-strong); border-radius: var(--r-md);
  background: #fff; padding: 13px 14px; font-size: 15px;
}
.field__input--boxed:focus { border-color: var(--jb-olive); }
.form-error { font: 400 13px/1.4 var(--font-body); color: var(--jb-error); margin: 0; }

/* ---------- Chips / status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  padding: 6px 12px 6px 9px; border-radius: var(--r-pill);
  background: rgba(109, 109, 72, .12);
  font: 600 12px/1 var(--font-body); color: var(--jb-olive-deep);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--jb-olive); }
.status {
  display: inline-block; flex: none; justify-self: start;
  padding: 5px 9px; border-radius: var(--r-pill);
  font: 600 10px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
}
.status--pendente { background: var(--jb-olive); color: var(--jb-paper); }
.status--usado { background: rgba(48, 48, 26, .09); color: var(--jb-ink-60); }

/* =========================================================
   FLUXO DO CLIENTE (index.html)
   ========================================================= */
.shell { min-height: 100dvh; }
.brand { display: none; }
.app {
  min-height: 100dvh; max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column; background: var(--jb-paper);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Tablet: cartão centralizado sobre fundo creme */
@media (min-width: 600px) {
  body { background: var(--jb-cream); }
  .shell { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
  .app { min-height: 0; height: min(780px, calc(100dvh - 80px)); width: 100%; max-width: 440px; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-card); }
  .app .screen { overflow-y: auto; }
}

/* Desktop: painel da marca + fluxo lado a lado */
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; align-items: stretch; }
  .brand {
    display: flex; flex-direction: column; gap: 32px;
    background: var(--jb-ink); color: var(--jb-paper);
    padding: 48px clamp(40px, 6vw, 96px);
  }
  .brand__logo { width: 140px; height: 140px; object-fit: contain; margin: -24px 0 0 -22px; mix-blend-mode: lighten; }
  .brand__body { margin-top: auto; display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
  .brand__title { font: 500 clamp(36px, 3.4vw, 52px)/1.06 var(--font-display); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
  .brand__text { font: 400 16px/1.6 var(--font-body); color: rgba(229, 219, 211, .75); margin: 0; text-wrap: pretty; }
  .brand__contact { font-style: normal; display: flex; flex-direction: column; gap: 6px; padding-top: 24px; border-top: 1px solid rgba(201, 173, 140, .3); font: 400 13px/1.5 var(--font-body); color: rgba(229, 219, 211, .65); max-width: 460px; }
  .brand__contact a { color: var(--jb-tan); text-decoration: none; font-weight: 600; }
  .brand__contact a:hover { color: var(--jb-cream); }
  .shell > .app { align-self: center; justify-self: center; margin: 40px; }
}
.progress { height: 3px; margin: var(--s-4) var(--s-5) 0; background: var(--jb-line); border-radius: 2px; overflow: hidden; }
.progress__bar { height: 100%; width: 25%; background: var(--jb-olive); transition: width .45s ease; }

.screen { flex: 1; display: flex; flex-direction: column; padding: var(--s-6) var(--s-6) var(--s-6); animation: rise .45s ease both; }
.screen--dark { background: var(--jb-ink); color: var(--jb-paper); }
.screen__footer { margin-top: auto; padding-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.app:has(.screen--dark:not([hidden])) { background: var(--jb-ink); }
.app:has(.screen--dark:not([hidden])) .progress { background: rgba(229, 219, 211, .15); }
.app:has(.screen--dark:not([hidden])) .progress__bar { background: var(--jb-tan); }

.logo-sm { width: 104px; height: 104px; object-fit: contain; margin: -16px 0 -14px -14px; mix-blend-mode: multiply; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.form { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-6); }
.legal { font: 400 11px/1.5 var(--font-body); color: var(--jb-ink-45); text-align: center; margin: 0; text-wrap: pretty; }

/* Roleta */
.wheel-head { text-align: center; display: flex; flex-direction: column; gap: 10px; margin-top: var(--s-1); }
.wheel-head .t-title { color: var(--jb-paper); }
.wheel {
  position: relative; width: min(296px, 78vw); aspect-ratio: 1;
  margin: var(--s-8) auto 0;
}
.wheel__halo { position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(201, 173, 140, .35); animation: glow 3s ease-in-out infinite; }
.wheel__pointer { position: absolute; top: -16px; left: 50%; margin-left: -9px; width: 18px; height: 22px; background: var(--jb-tan); clip-path: polygon(50% 100%, 0 0, 100% 0); z-index: 3; }
.wheel__disc {
  position: absolute; inset: 0; border-radius: 50%;
  border: 7px solid var(--jb-tan); overflow: hidden;
  /* background (conic-gradient) gerado em JS a partir da lista de prêmios */
}
.wheel__disc.is-spinning { transition: transform 4.2s var(--ease-out); }
.wheel__label { position: absolute; inset: 0; display: flex; justify-content: center; pointer-events: none; }
.wheel__label span { margin-top: 22px; width: 104px; text-align: center; font: 600 11px/1.25 var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.wheel__hub {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--jb-paper); border: 5px solid var(--jb-tan); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font: 600 17px/1 var(--font-display); color: var(--jb-ink);
}
.hint-dark { font: 400 12px/1.5 var(--font-body); color: rgba(251, 248, 244, .55); text-align: center; margin: 0; }

/* Resultado */
.prize { text-align: center; animation: pop .55s ease both; }
.prize__card { margin-top: var(--s-4); padding: 22px 18px; border: 1px solid rgba(201, 173, 140, .45); border-radius: 18px; background: rgba(251, 248, 244, .05); }
.prize__name { font: 500 30px/1.12 var(--font-display); color: var(--jb-cream); margin: 0; text-wrap: pretty; }
.prize__desc { font: 400 13px/1.5 var(--font-body); color: rgba(229, 219, 211, .7); margin: 9px 0 0; }
.voucher { margin-top: 18px; background: var(--jb-paper); color: var(--jb-ink); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; animation: rise .6s .12s ease both; }
.voucher__row { display: flex; justify-content: space-between; gap: var(--s-3); }
.voucher__col { display: flex; flex-direction: column; gap: 6px; }
.voucher__col--end { text-align: right; }
.divider { height: 1px; background: var(--jb-line); border: 0; margin: 0; }

/* Carteira */
.wallet-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.ticket { margin-top: var(--s-4); border-radius: var(--r-lg); overflow: hidden; background: var(--jb-ink); color: var(--jb-paper); }
.ticket__top { padding: 20px 20px 16px; }
.ticket__perf { margin: 0 16px; border-top: 1px dashed rgba(201, 173, 140, .5); }
.ticket__bottom { padding: 14px 20px 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.ticket .t-label { color: rgba(229, 219, 211, .6); }
.history { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.history li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: 13px 0; border-bottom: 1px solid var(--jb-line); }
.history__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.section-title { margin-top: 26px; }

/* =========================================================
   PAINEL DO STUDIO (painel.html)
   ========================================================= */
.admin { min-height: 100dvh; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--jb-paper); }
.sidebar { background: var(--jb-ink); padding: 22px 16px; display: flex; flex-direction: column; gap: 26px; }
.sidebar__logo { width: 104px; height: 104px; object-fit: contain; margin: -12px auto -14px; mix-blend-mode: lighten; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav__item { text-align: left; border: none; border-radius: 9px; padding: 11px 12px; background: transparent; color: rgba(229, 219, 211, .65); font: 400 14px/1 var(--font-body); transition: background-color .18s, color .18s; }
.nav__item:hover { color: var(--jb-paper); background: rgba(229, 219, 211, .07); }
.nav__item[aria-current="page"] { background: rgba(229, 219, 211, .14); color: var(--jb-paper); font-weight: 600; }
.sidebar__foot { margin-top: auto; font: 400 11px/1.5 var(--font-body); color: rgba(229, 219, 211, .45); }

.main { padding: 32px 36px 40px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; }
.page-head .t-small { margin-top: 4px; }

.table { border: 1px solid var(--jb-line); border-radius: 12px; overflow: hidden; }
.table__row { display: grid; gap: 12px; padding: 15px 18px; align-items: center; border-top: 1px solid rgba(48, 48, 26, .09); }
.table__row--head { background: var(--jb-tint); border-top: 0; padding: 12px 18px; font: 600 10px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--jb-ink-60); }
.table--premios .table__row { grid-template-columns: 2.2fr .8fr .9fr 1fr .7fr; }
.table--vouchers .table__row { grid-template-columns: 1fr 1.3fr 1.5fr 1fr .9fr; }
.cell-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cell-main strong { font: 400 14px/1.2 var(--font-body); }
.code { font: 500 14px/1 var(--font-display); letter-spacing: .05em; }

.stepper { display: flex; align-items: center; gap: 7px; }
.stepper button { width: 26px; height: 26px; border: 1px solid var(--jb-line-strong); border-radius: var(--r-sm); background: transparent; color: var(--jb-ink); font: 400 14px/1 var(--font-body); }
.stepper button:hover { background: var(--jb-tint); }
.stepper output { font: 600 14px/1 var(--font-body); min-width: 18px; text-align: center; }
.meter { display: flex; flex-direction: column; gap: 5px; }
.meter__value { font: 600 13px/1 var(--font-body); color: var(--jb-olive-deep); }
.meter__track { height: 4px; border-radius: 2px; background: rgba(48, 48, 26, .1); overflow: hidden; }
.meter__fill { height: 100%; background: var(--jb-olive); transition: width .25s; }

.switch { position: relative; width: 42px; height: 23px; border: none; border-radius: var(--r-pill); background: rgba(48, 48, 26, .2); transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--jb-paper); transition: left .2s; }
.switch[aria-checked="true"] { background: var(--jb-olive); }
.switch[aria-checked="true"]::after { left: 22px; }

.filters { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.filter { border: 1px solid var(--jb-line-strong); border-radius: var(--r-pill); padding: 9px 16px; background: transparent; color: var(--jb-ink-70); font: 400 13px/1 var(--font-body); }
.filter[aria-pressed="true"] { background: var(--jb-ink); color: var(--jb-paper); border-color: var(--jb-ink); }

.narrow { max-width: 540px; display: flex; flex-direction: column; gap: 22px; }
.search { display: flex; gap: 10px; align-items: flex-end; }
.search .field { flex: 1; }
.search .field__input { text-transform: uppercase; letter-spacing: .06em; }
.result { border: 1px solid var(--jb-line); border-radius: 14px; padding: 22px; background: rgba(201, 173, 140, .12); display: flex; flex-direction: column; gap: 14px; }
.result__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); }
.result__meta { display: flex; gap: 26px; flex-wrap: wrap; font: 400 12px/1.4 var(--font-body); color: var(--jb-ink-60); }
.result__meta strong { color: var(--jb-ink); font-weight: 600; }
.note { border: 1px solid var(--jb-line); border-radius: 12px; padding: 18px; background: var(--jb-tint); }
.note p { margin: 9px 0 0; font: 400 13px/1.6 var(--font-body); color: var(--jb-ink-70); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fieldset { border: 1px solid var(--jb-line); border-radius: 12px; padding: 18px; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fieldset legend { padding: 0 6px; margin-left: -6px; }
.days-input { display: flex; align-items: center; gap: 10px; }
.days-input .field__input { width: 110px; }
textarea.field__input { font-family: var(--font-body); line-height: 1.5; }
.vars { display: flex; flex-wrap: wrap; gap: 8px; }
.var-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--jb-line-strong); background: #fff; border-radius: var(--r-pill); padding: 6px 12px 6px 6px; font: 400 12px/1 var(--font-body); color: var(--jb-ink-60); transition: border-color .18s, background-color .18s; }
.var-chip:hover { border-color: var(--jb-olive); background: rgba(109, 109, 72, .06); }
.var-chip code { font: 600 12px/1 var(--font-body); color: var(--jb-olive-deep); background: rgba(109, 109, 72, .12); padding: 5px 8px; border-radius: var(--r-pill); }
.preview { display: flex; flex-direction: column; gap: 8px; }
.preview__bubble { margin: 0; align-self: flex-start; max-width: 100%; background: #dcf2d0; color: #1f2a17; padding: 10px 14px; border-radius: 12px 12px 12px 4px; font: 400 14px/1.5 var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) { .var-chip span { display: none; } .var-chip { padding: 4px; } }

/* Aviso de giro bloqueado (cliente) */
.blocked { margin-top: var(--s-5); padding: 18px; border-radius: 14px; background: rgba(201, 173, 140, .18); border: 1px solid rgba(201, 173, 140, .5); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; animation: rise .35s ease both; }
.blocked__title { font: 500 18px/1.2 var(--font-display); margin: 0; }
.blocked .btn { margin-top: 6px; }
.voucher__place { display: flex; flex-direction: column; gap: 3px; font: 400 12px/1.5 var(--font-body); color: var(--jb-ink-60); }
.voucher__place a { font-weight: 600; color: var(--jb-olive-deep); text-decoration: none; align-self: flex-start; }

/* Tablet: sidebar estreita */
@media (max-width: 1024px) {
  .admin { grid-template-columns: 180px minmax(0, 1fr); }
  .main { padding: 28px 24px 36px; }
  .table--vouchers .table__row { grid-template-columns: 1fr 1.2fr 1.3fr .9fr .9fr; }
}

/* Celular: navegação no topo, tabelas viram cartões */
@media (max-width: 760px) {
  .admin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 5; flex-direction: row; align-items: center; padding: 8px 12px; gap: 10px; min-width: 0; }
  .sidebar__logo { flex: none; width: 52px; height: 52px; margin: -6px; }
  .nav { flex: 1; min-width: 0; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav__item { white-space: nowrap; padding: 10px 12px; font-size: 13px; min-height: 40px; }
  .sidebar__foot { display: none; }
  .main { padding: 20px 16px 32px; gap: 18px; }
  .page-head .btn { width: 100%; }

  .table { border: 0; border-radius: 0; display: flex; flex-direction: column; gap: 10px; }
  .table > div:last-child { display: flex; flex-direction: column; gap: 10px; }
  .table__row--head { display: none; }
  .table__row { border: 1px solid var(--jb-line); border-radius: 12px; padding: 14px 16px; background: #fff; }
  .table--premios .table__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "nome switch" "meter meter" "peso validade";
    row-gap: 14px;
  }
  .table--premios .cell-main { grid-area: nome; }
  .table--premios .switch { grid-area: switch; }
  .table--premios .meter { grid-area: meter; }
  .table--premios .stepper { grid-area: peso; }
  .table--premios .table__row > .t-small { grid-area: validade; justify-self: end; align-self: center; }
  .stepper button { width: 36px; height: 36px; }
  .table--vouchers .table__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "codigo status" "cliente data" "premio premio";
    row-gap: 6px;
  }
  .table--vouchers .table__row > :nth-child(1) { grid-area: codigo; }
  .table--vouchers .table__row > :nth-child(2) { grid-area: cliente; }
  .table--vouchers .table__row > :nth-child(3) { grid-area: premio; }
  .table--vouchers .table__row > :nth-child(4) { grid-area: data; justify-self: end; }
  .table--vouchers .table__row > :nth-child(5) { grid-area: status; justify-self: end; }

  .search { flex-direction: column; align-items: stretch; }
  .search .btn { width: 100%; }
  .result { padding: 18px; }
  .result__head { flex-direction: column-reverse; gap: 10px; }
  .result__meta { flex-direction: column; gap: 4px; }
  .result .btn { align-self: stretch !important; width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* =========================================================
   PEÇA IMPRESSA A5 (qr-impresso.html)
   ========================================================= */
.print-page { min-height: 100dvh; display: flex; align-items: center; justify-content: center; background: var(--jb-cream); padding: 40px 20px; }
.a5 { width: min(148mm, 100%); aspect-ratio: 148 / 210; background: var(--jb-ink); padding: 14mm 12mm 11mm; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: var(--shadow-card); }
.a5__logo { width: 52mm; height: 52mm; object-fit: contain; margin: -8mm 0 -7mm; mix-blend-mode: lighten; }
.a5__title { font: 500 40px/1.05 var(--font-display); color: var(--jb-paper); margin: 12px 0 0; }
.a5__qr { margin-top: 26px; background: var(--jb-paper); padding: 16px; border-radius: var(--r-sm); width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; font: 400 11px/1.4 var(--font-body); color: var(--jb-ink-60); }
.a5__copy { font: 400 13px/1.6 var(--font-body); color: rgba(229, 219, 211, .75); margin: 22px 0 0; max-width: 280px; text-wrap: pretty; }
.a5__foot { margin-top: auto; width: 100%; padding-top: 18px; border-top: 1px solid rgba(201, 173, 140, .35); display: flex; flex-direction: column; gap: 5px; align-items: center; }
.a5__ig { font: 600 12px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--jb-tan); }
.a5__contact { font: 400 11.5px/1.5 var(--font-body); color: rgba(229, 219, 211, .75); margin: 0; }
.a5__addr { font: 400 10.5px/1.5 var(--font-body); color: rgba(229, 219, 211, .6); margin: 0; max-width: 290px; }
@media (max-width: 600px) {
  .print-page { padding: 16px; align-items: flex-start; }
  .a5 { aspect-ratio: auto; min-height: calc(100dvh - 32px); padding: 32px 22px 24px; }
  .a5__title { font-size: 32px; }
}
@media print {
  @page { size: A5; margin: 0; }
  .a5 { width: 148mm; height: 210mm; aspect-ratio: auto; }
  .print-page { padding: 0; background: none; min-height: 0; }
  .a5 { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.88); } 60% { transform: scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes glow { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
