:root{
    --qr-code-size: 200px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
}

.ticket-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px;
}

.ticket-card {
    width: 100%;
    max-width: 320px;
    background: #f7f7f7;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: 1px solid #d7d7d7;
}

.ticket-header {
    position: relative;
    min-height: 150px;
    background-color: #000;
    padding: 18px 22px;
    color: #ffffff;
}

/*
.ticket-header::after {
    content: "";
    position: absolute;
    left: -40px;
    bottom: -18px;
    width: 220px;
    height: 70px;
    border-radius: 50%;
    border-top: 10px solid rgba(255, 210, 0, 0.95);
    transform: rotate(10deg);
}
*/

.ticket-brand-small {
    position: relative;
    z-index: 2;
    display: block;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ticket-title-main {
    position: relative;
    z-index: 2;
    margin: 34px 0 0;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ticket-title-sub {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 2px;
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
    color: #c82020;
    text-align: right;
}

.ticket-body {
    padding: 18px 22px 22px;
    text-align: center;
    background: #f7f7f7;
}

.ticket-qr {
    width: 112px;
    height: 112px;
    margin: 0 auto 8px;
    background: #ffffff;
    border: 6px solid #ffffff;
    box-shadow: 0 0 0 1px #111111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-qr-placeholder {
    width: 86px;
    height: 86px;
    background:
        linear-gradient(90deg, #000 50%, transparent 50%) 0 0 / 12px 12px,
        linear-gradient(#000 50%, transparent 50%) 0 0 / 12px 12px;
    opacity: 0.95;
}

.ticket-divider {
    width: 112px;
    height: 6px;
    margin: 0 auto 12px;
    background: #f4a300;
}

.ticket-id {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.35;
}

.ticket-id strong {
    font-weight: 700;
}

.ticket-name {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
}

.ticket-photo {
    margin: 0 auto 10px;
    width: 118px;
    min-height: 118px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ticket-photo img {
    display: block;
    width: 118px;
    height: 138px;
    object-fit: cover;
    border: 1px solid #d0d0d0;
    background: #ffffff;
}

.ticket-person-name {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.3;
}

.ticket-validity {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
}

.ticket-wallet-buttons {
    margin: 0 0 18px;
}

.wallet-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 5px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 700;
}

.wallet-button span {
    display: block;
    text-align: left;
}

.wallet-button small {
    display: block;
    font-size: 8px;
    font-weight: 400;
    line-height: 1;
}

.wallet-button + .wallet-button {
    margin-top: 8px;
}

.ticket-info {
    margin: 0 auto;
    max-width: 250px;
    font-size: 10px;
    line-height: 1.15;
    color: #777777;
}

.ticket-info a {
    color: #2271b1;
    text-decoration: underline;
}

.ticket-qr {
    width: var(--qr-code-size);
    height: var(--qr-code-size);
    margin: 0 auto 8px;
    background: #ffffff;
    border: 6px solid #ffffff;
    box-shadow: 0 0 0 1px #111111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-qr svg {
    display: block;
    width: var(--qr-code-size);
    height: var(--qr-code-size);
}

.wallet-button-main {
    width: 100%;
    max-width: 230px;
    min-height: 42px;
    font-size: 13px;
    text-align: center;
}

.wallet-button-apple,
.wallet-button-neutral {
    background: #000000;
    color: #ffffff;
}

.wallet-button-google {
    background: #000000;
    color: #ffffff;
}

.wallet-fallback-links {
    margin-top: 10px;
    font-size: 11px;
    color: #777777;
}

.wallet-fallback-links a {
    color: #777777;
    text-decoration: underline;
}

.wallet-fallback-links span {
    margin: 0 5px;
    color: #aaaaaa;
}

@media (max-width: 420px) {
    .ticket-page {
        padding: 12px;
    }

    .ticket-card {
        max-width: 100%;
    }
}