.ct-tools { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.ct-scale { width: min(1060px, 100%); margin: 0 auto; container-type: inline-size; }
.ct { position: relative; width: 100%; aspect-ratio: 297 / 210; background: #f7f4ef; color: #1a1714; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); display: flex; flex-direction: column; align-items: center; padding: 4.2cqw 6cqw 3.4cqw; text-align: center; }
.ct::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 45%, rgba(255,106,19,.07), transparent 70%), repeating-linear-gradient(135deg, rgba(0,0,0,.015) 0 2px, transparent 2px 6px); }
.ct-frame { position: absolute; inset: 1.6cqw; border: .35cqw solid #ff6a13; border-radius: .6cqw; pointer-events: none; }
.ct-frame::after { content: ""; position: absolute; inset: .7cqw; border: .12cqw solid #1a1714; border-radius: .3cqw; }
.ct > * { position: relative; }
.ct > .ct-frame { position: absolute; }
.ct-logo { height: 6.6cqw; width: auto; margin: 0 auto; display: block; }
.ct-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 0; }
.ct-kicker { font: 600 1.05cqw var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: #8a8378; }
.ct-title { font: 700 4.6cqw/1.1 var(--font-head); text-transform: uppercase; color: #1a1714; margin: .5cqw 0 1.8cqw; letter-spacing: .02em; }
.ct-title::after { content: ""; display: block; width: 9cqw; height: .4cqw; background: #ff6a13; margin: 1cqw auto 0; border-radius: 9px; }
.ct-cert { font: italic 400 1.3cqw var(--font-body); color: #6b645a; }
.ct-holder { font: 700 4cqw/1.15 var(--font-head); color: #e5560a; margin: .5cqw 0; overflow-wrap: anywhere; max-width: 100%; }
.ct-line { font: 400 1.4cqw/1.5 var(--font-body); max-width: 70%; color: #3a352f; }
.ct-big { font: 700 6cqw/1 var(--font-head); color: #1a1714; margin-top: 1.4cqw; }
.ct-big small { font-size: 2cqw; color: #8a8378; }
.ct-big--rank { color: #e5560a; }
.ct-sub { font: 600 1.4cqw var(--font-body); color: #3a352f; margin-top: .4cqw; }
.ct-tn { font: 700 2cqw var(--font-head); margin-top: .6cqw; }
.ct-icon { font-size: 4cqw; margin-top: 1cqw; }
.ct-foot { width: 100%; display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 2cqw; align-items: end; text-align: left; }
.ct-meta { display: grid; gap: .9cqw; }
.ct-meta span { display: block; font: 600 .9cqw var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #8a8378; }
.ct-meta b { font: 700 1.4cqw var(--font-body); }
.ct-code { font-family: monospace !important; letter-spacing: .06em; }
.ct-verify { text-align: center; }
.ct-state { font: 700 1.25cqw var(--font-body); }
.ct-state.ok { color: #1b8a52; }
.ct-state.bad { color: #c0262b; }
.ct-addr { font: 400 .95cqw var(--font-body); color: #8a8378; margin-top: .4cqw; }
.ct-qr { width: 9.5cqw; height: 9.5cqw; background: #fff; padding: .6cqw; border: .1cqw solid #ddd; border-radius: .5cqw; }
.ct-qr svg { width: 100%; height: 100%; display: block; }
.ct-wm { position: absolute !important; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-18deg); font: 700 9cqw/1 var(--font-head); color: rgba(192,38,43,.78); border: .8cqw solid rgba(192,38,43,.78); padding: .6cqw 2cqw; border-radius: 1.2cqw; white-space: nowrap; background: rgba(247,244,239,.55); letter-spacing: .04em; }
.ct.is-revoked .ct-holder, .ct.is-revoked .ct-title { filter: grayscale(.6); }

@media (max-width: 640px) {
  .ct { aspect-ratio: auto; padding: 26px 20px 20px; }
  .ct-frame { inset: 8px; border-width: 3px; }
  .ct-logo { height: 40px; }
  .ct-body { padding: 14px 0; }
  .ct-kicker { font-size: .62rem; }
  .ct-title { font-size: 1.7rem; margin: 6px 0 14px; }
  .ct-title::after { width: 60px; height: 3px; margin-top: 8px; }
  .ct-cert { font-size: .85rem; }
  .ct-holder { font-size: 1.6rem; }
  .ct-line { font-size: .88rem; max-width: 100%; }
  .ct-big { font-size: 3.2rem; margin-top: 12px; }
  .ct-big small { font-size: 1.1rem; }
  .ct-sub { font-size: .9rem; }
  .ct-tn { font-size: 1.1rem; }
  .ct-icon { font-size: 2.4rem; }
  .ct-foot { grid-template-columns: 1fr auto; gap: 14px; }
  .ct-meta { gap: 8px; }
  .ct-meta span { font-size: .6rem; }
  .ct-meta b { font-size: .88rem; }
  .ct-verify { grid-column: 1 / -1; grid-row: 2; }
  .ct-state { font-size: .8rem; }
  .ct-addr { font-size: .65rem; }
  .ct-qr { width: 84px; height: 84px; padding: 5px; }
  .ct-wm { font-size: 1.7rem; border-width: 3px; padding: 4px 12px; border-radius: 8px; }
}

@page { size: A4 landscape; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print, .sp-header, .sp-footer, #site-header, #site-footer { display: none !important; }
  .sp-main { padding: 0 !important; min-height: 0; }
  .wrap { width: auto !important; margin: 0 !important; }
  .ct-scale { width: 297mm; margin: 0; }
  .ct { width: 297mm; height: 210mm; aspect-ratio: auto; border-radius: 0; box-shadow: none; page-break-inside: avoid; break-inside: avoid; }
}
