.card-print-page { background: #f8f2e7; color: #302119; }
.card-toolbar { padding: 1.15rem 0 0.4rem; }
.card-toolbar h1 { font-family: Fraunces, Georgia, serif; }
.card-toolbar .row { flex-wrap: wrap; }
.card-sheet {
  width: min(100% - 24px, 560px);
  margin: 14px auto;
}
.passport-card {
  box-sizing: border-box;
  background: #fffaf1;
  color: #ad4424;
  border: 8px solid #ad4424;
  border-radius: 6px;
  padding: 8px 10px 10px;
  font-family: Outfit, system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.card-lights { width: 100%; height: auto; display: block; }
.card-print-page .passport-card h1,
.card-print-page .card-back-title {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  color: #ad4424;
  letter-spacing: 0.02em;
  line-height: 0.98;
  margin: 2px 4px 0;
  font-size: 1.7rem;
}
.card-edition {
  margin: 6px 0 0;
  text-align: center;
  color: #ad4424;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 1rem;
}
.card-tagline {
  margin: 4px 8px 0;
  text-align: center;
  color: #ad4424;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.card-tagline .star { color: #ad4424; }
.stamp-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 12px 0;
  margin: 10px 0 6px;
  flex: 0 0 auto;
}
.stamp-spot-wrap { width: 20%; display: flex; justify-content: center; }
.stamp-spot {
  width: 42px;
  height: 42px;
  border: 1.5px solid #ad4424;
  border-radius: 50%;
  color: #8a8a8a;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  background: transparent;
}
.card-foot, .card-back-foot {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.1fr;
  align-items: end;
  gap: 2px;
  margin-top: auto;
}
.card-deco { width: 100%; height: 92px; display: block; }
.card-center { text-align: center; }
.card-mascot { width: 72px; height: auto; margin: 0 auto 2px; }
.card-motto {
  margin: 0;
  text-align: center;
  color: #ad4424;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
}
.card-motto .heart { color: #ad4424; }
.card-key-title {
  margin: 6px 0 8px;
  padding: 4px 0;
  text-align: center;
  color: #ad4424;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.68rem;
  border-top: 1px solid #c6a15b;
  border-bottom: 1px solid #c6a15b;
}
.shop-key {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 8px;
  flex: 0 0 auto;
  align-content: start;
}
.shop-rule { background: #c6a15b; }
.shop-key ol { list-style: none; margin: 0; padding: 0; }
.shop-key li {
  display: flex;
  gap: 5px;
  align-items: baseline;
  margin: 0 0 4px;
  color: #243028;
  font-size: 0.72rem;
  line-height: 1.25;
}
.shop-num { color: #ad4424; font-weight: 700; min-width: 1.15em; }
.shop-name { min-width: 0; overflow-wrap: anywhere; }
.card-player { margin-top: 6px; }
.card-line {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  border-bottom: 1px solid #ad4424;
  min-height: 22px;
  margin: 3px 0;
  font-size: 0.72rem;
}
.card-line span { color: #ad4424; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.card-line b { font-weight: 600; color: #243028; min-height: 1em; }
.card-turnin, .card-turnin-list { margin: 6px 0 0; font-size: 0.68rem; line-height: 1.35; color: #ad4424; }
.card-turnin { font-weight: 700; }

@media (max-width: 380px) {
  .stamp-spot { width: 36px; height: 36px; font-size: 12px; }
  .card-print-page .passport-card h1,
  .card-print-page .card-back-title { font-size: 1.22rem; }
  .card-tagline { font-size: 0.58rem; }
  .card-deco { height: 58px; }
  .card-mascot { width: 44px; }
  .shop-key li { font-size: 0.68rem; }
}

@media print {
  @page { size: letter portrait; margin: 0; }
  html, body, main, #card-sheets {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    width: 8.5in;
    height: 11in;
    overflow: hidden !important;
  }
  .site-header, .site-footer, .card-toolbar { display: none !important; }
  .card-sheet {
    box-sizing: border-box;
    width: 8.5in;
    height: 11in;
    margin: 0;
    padding: 0.4in;
    background: #fff;
    overflow: hidden;
    break-after: avoid;
    page-break-after: avoid;
    break-inside: avoid;
  }
  .passport-card {
    box-sizing: border-box;
    width: 7.7in;
    height: 10.2in;
    margin: 0;
    min-height: 0;
    overflow: hidden;
    border-width: 8px;
    padding: 0.08in 0.14in 0.1in;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .card-lights { width: 100%; height: var(--lights, auto); }
  .card-print-page .passport-card h1 {
    font-size: var(--title, 26pt);
    line-height: 0.95;
    margin: 0.02in 0.06in 0;
  }
  .card-print-page .card-back-title { font-size: 12pt; margin: 0.06in 0 0; }
  .card-edition { font-size: var(--edition, 16pt); letter-spacing: 0.16em; margin-top: 0.06in; }
  .card-sheet[data-tight="1"] .card-back-title,
  .card-sheet[data-tight="1"] .card-key-title,
  .card-sheet[data-tight="1"] .card-tagline { font-size: 7.5pt; margin-top: 0.02in; }
  .card-sheet[data-tight="1"] .card-line { min-height: 0.16in; font-size: 8pt; }
  .card-sheet[data-tight="1"] .card-turnin,
  .card-sheet[data-tight="1"] .card-turnin-list { font-size: 7pt; }
  .card-tagline { font-size: 8pt; margin: 0.05in 0.08in 0; }
  .card-key-title { font-size: 8pt; margin: 0.04in 0 0.05in; padding: 0.03in 0; }
  .stamp-grid {
    flex: 0 0 auto;
    gap: var(--row-gap, 0.16in) 0;
    margin: 0.08in 0 0.04in;
  }
  .stamp-spot {
    width: var(--stamp, 1.1in);
    height: var(--stamp, 1.1in);
    font-size: 16pt;
    border-width: 2px;
  }
  .shop-key { gap: 0.08in; }
  .shop-key li {
    font-size: var(--list, 9pt);
    line-height: 1.15;
    margin: 0 0 0.03in;
  }
  .card-player { margin-top: 0.04in; }
  .card-line { min-height: 0.22in; margin: 0.02in 0; font-size: 9pt; }
  .card-line span { font-size: 7.5pt; }
  .card-turnin, .card-turnin-list { font-size: 8pt; margin-top: 0.04in; }
  .card-deco { height: var(--deco, 1.65in); }
  .card-mascot { width: var(--mascot, 1.3in); }
  .card-motto { font-size: 7pt; }
}


.card-rules { font-size: 9px; line-height: 1.25; margin: 8px 0; padding-left: 16px; }
.card-foot { display: block; text-align: center; }
.card-mascot { width: 48px; }
@media print { .card-rules { font-size: 7pt; } .card-mascot { width: .5in; } }

.card-toolbar [hidden] { display: none !important; }
