*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    width: 100%;
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 10;
    padding-bottom: 2.5rem;
}

.card {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgb(226 232 240 / 0.5), 0 8px 10px -6px rgb(226 232 240 / 0.5);
    position: relative;
}

.card-hero {
    padding: 1.5rem;
    overflow: hidden;
}

.card-pad {
    padding: 1.5rem;
}

.watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    opacity: 0.2;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.crest {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #d97706;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #f59e0b;
    border-radius: 999px;
}

@keyframes pulse {
    50% { opacity: 0.55; }
}

.hero-copy {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.hero-copy h1 {
    margin: 0;
    font-size: 1.875rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: #0f172a;
}

.hero-copy p {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-box {
    background: rgb(248 250 252 / 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

.info-box svg {
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.info-box div {
    font-size: 0.75rem;
    line-height: 1.625;
    color: #64748b;
}

.section-head {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.section-head h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-head svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #2563eb;
}

.fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field-row {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.625rem 1rem;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    transition: border-color 0.3s ease;
}

.field-row:hover {
    border-color: #cbd5e1;
}

.field-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.field-text {
    overflow: hidden;
    flex: 1;
    margin-right: 0.5rem;
}

.field-label {
    margin: 0 0 0.125rem;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.field-value {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-value.is-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #334155;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
}

.copy-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: #fff;
    color: #94a3b8;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    align-self: center;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.copy-btn:hover {
    color: #2563eb;
    background: #eff6ff;
}

.copy-btn svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.stamps {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #e2e8f0;
}

.stamps-row {
    display: flex;
    gap: 1rem;
    height: 6rem;
    justify-content: center;
}

.stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    opacity: 0.9;
}

.stamp:hover {
    opacity: 1;
}

.stamp img {
    height: 7rem;
    object-fit: contain;
}

.qr-card {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-logo {
    height: 4rem;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.qr-name {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0f172a;
}

.qr-frame {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 30px rgb(15 23 42 / 0.12);
    border: 1px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

.qr-frame img {
    width: 14rem;
    height: 14rem;
    object-fit: contain;
}

.qr-card h2 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.qr-body {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #475569;
    max-width: 24rem;
}

.qr-list {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #475569;
    max-width: 24rem;
}

.qr-list li {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}

.qr-dot {
    margin-top: 0.375rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #10b981;
    flex-shrink: 0;
}

.notice {
    text-align: center;
}

.notice p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.625;
}

.text-green-600 {
    color: #16a34a;
}
