.checkout-joker-page {
    /* Match /joker, classic index typography for rank + suit + JOKER only */
    --b9-card-pip-font: "Times New Roman", Times, "Nimbus Roman", "Liberation Serif", Georgia, ui-serif, serif;
}
.checkout-joker-page .checkout-joker-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}
.checkout-joker-page .checkout-joker-wrap {
    padding: 12px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}
.checkout-joker-page .checkout-joker-stage {
    width: 100%;
    max-width: 350px;
    height: 440px;
    perspective: 1200px;
    perspective-origin: 50% 50%;
}
@media (min-width: 480px) {
    .checkout-joker-page .checkout-joker-stage {
        height: 460px;
    }
}
@media (min-width: 768px) {
    .checkout-joker-page .checkout-joker-stage {
        height: 520px;
    }
}
.checkout-joker-page .checkout-joker-flip {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.checkout-joker-page .checkout-joker-flip.is-flipped {
    transform: rotateY(180deg);
}
@media (hover: none), (pointer: coarse) {
    .checkout-joker-page .checkout-joker-flip {
        transition: none;
    }
    .checkout-joker-page .checkout-joker-flip.is-flipped {
        transform: none;
    }
    .checkout-joker-page .checkout-joker-face-back {
        display: none !important;
    }
}
.checkout-joker-page .checkout-joker-face--front {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    padding: 36px 18px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #000;
    box-sizing: border-box;
    transform: rotateY(0deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    z-index: 2;
    cursor: pointer;
    touch-action: manipulation;
}
.checkout-joker-page .checkout-joker-face--front:focus {
    outline: none;
}
.checkout-joker-page .checkout-joker-face--front:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 3px;
}
/* Wildcard (JOKER / Complete tier) keeps a distinct frame; other tiers use the base 1px border only */
.checkout-joker-page .checkout-joker-face--front.checkout-joker-face--wildcard {
    border: 1px solid #e5e7eb;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.15),
        inset 0 0 0 2px rgba(220, 38, 38, 0.35);
}
@media (min-width: 480px) {
    .checkout-joker-page .checkout-joker-face--front {
        padding: 40px 22px 30px;
    }
}
@media (min-width: 768px) {
    .checkout-joker-page .checkout-joker-face--front {
        padding: 44px 26px 32px;
    }
}
/* /why-style card backs */
.checkout-joker-page .checkout-joker-face-back.card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    z-index: 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.checkout-joker-page .checkout-joker-face-back.card-back.black {
    background: #000000;
}
.checkout-joker-page .checkout-joker-face-back.card-back.black .card-back-pattern {
    background: #000000;
    background-color: #000000;
}
.checkout-joker-page .checkout-joker-face-back.card-back.black .card-back-pattern: before {
    border-color: rgba(255, 255, 255, 0.15);
}
.checkout-joker-page .checkout-joker-face-back.card-back.black .dice-pattern {
    color: #ffffff;
}
.checkout-joker-page .checkout-joker-face-back.card-back.red {
    background: linear-gradient(135deg, #000000 0%, #1a0000 50%, #ff0000 100%);
}
.checkout-joker-page .checkout-joker-face-back.card-back.red .card-back-pattern {
    background: linear-gradient(135deg, #000000 0%, #1a0000 50%);
}
.checkout-joker-page .checkout-joker-face-back.card-back.red .card-back-pattern: before {
    border-color: rgba(220, 38, 38, 0.3);
}
.checkout-joker-page .checkout-joker-face-back.card-back.red .dice-pattern {
    color: #dc2626;
}
.checkout-joker-page .checkout-joker-face-back.card-back.red .dice-pip {
    opacity: 0.3;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
}
.checkout-joker-page .checkout-joker-face-back.card-back.red .branding-area {
    border-color: rgba(220, 38, 38, 0.2);
    box-shadow: none;
}
.checkout-joker-page .checkout-joker-face-back.card-back.red .branding-logo {
    color: #ff00006e;
}
.checkout-joker-page .checkout-joker-face-back.card-back.red .branding-tagline {
    color: #ffffff;
}
.checkout-joker-page .card-back-pattern {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.checkout-joker-page .card-back-pattern: before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    z-index: 1;
}
.checkout-joker-page .dice-pattern {
    position: absolute;
    left: 30px;
    right: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    z-index: 0;
}
.checkout-joker-page .dice-pattern.top-row {
    top: 30px;
    height: 60px;
}
.checkout-joker-page .dice-pattern.bottom-row {
    bottom: 30px;
    height: 60px;
}
@media (min-width: 480px) {
    .checkout-joker-page .dice-pattern {
        left: 40px;
        right: 40px;
        gap: 12px;
    }
    .checkout-joker-page .dice-pattern.top-row {
        top: 40px;
        height: 70px;
    }
    .checkout-joker-page .dice-pattern.bottom-row {
        bottom: 40px;
        height: 70px;
    }
}
@media (min-width: 768px) {
    .checkout-joker-page .dice-pattern {
        left: 50px;
        right: 50px;
        gap: 15px;
    }
    .checkout-joker-page .dice-pattern.top-row {
        top: 50px;
        height: 80px;
    }
    .checkout-joker-page .dice-pattern.bottom-row {
        bottom: 50px;
        height: 80px;
    }
}
.checkout-joker-page .branding-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}
.checkout-joker-page .branding-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
    line-height: 1.1;
}
.checkout-joker-page .branding-tagline {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-top: 6px;
    opacity: 0.9;
}
@media (min-width: 480px) {
    .checkout-joker-page .branding-area {
        padding: 30px 40px;
        border-radius: 18px;
    }
    .checkout-joker-page .branding-logo {
        font-size: 36px;
        margin-bottom: 10px;
    }
    .checkout-joker-page .branding-tagline {
        font-size: 11px;
        margin-top: 7px;
    }
}
@media (min-width: 768px) {
    .checkout-joker-page .branding-area {
        padding: 40px 50px;
        border-radius: 20px;
    }
    .checkout-joker-page .branding-logo {
        font-size: 44px;
        margin-bottom: 12px;
    }
    .checkout-joker-page .branding-tagline {
        font-size: 12px;
        margin-top: 8px;
    }
}
.checkout-joker-page .dice-face {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkout-joker-page .dice-pip {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.2;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
.checkout-joker-page .dice-face.pattern-1 .dice-pip:nth-child(1) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.checkout-joker-page .dice-face.pattern-2 .dice-pip:nth-child(1) {
    top: 30%;
    left: 30%;
}
.checkout-joker-page .dice-face.pattern-2 .dice-pip:nth-child(2) {
    bottom: 30%;
    right: 30%;
}
.checkout-joker-page .dice-face.pattern-3 .dice-pip:nth-child(1) {
    top: 30%;
    left: 30%;
}
.checkout-joker-page .dice-face.pattern-3 .dice-pip:nth-child(2) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.checkout-joker-page .dice-face.pattern-3 .dice-pip:nth-child(3) {
    bottom: 30%;
    right: 30%;
}
.checkout-joker-page .dice-face.pattern-4 .dice-pip:nth-child(1) {
    top: 30%;
    left: 30%;
}
.checkout-joker-page .dice-face.pattern-4 .dice-pip:nth-child(2) {
    top: 30%;
    right: 30%;
}
.checkout-joker-page .dice-face.pattern-4 .dice-pip:nth-child(3) {
    bottom: 30%;
    left: 30%;
}
.checkout-joker-page .dice-face.pattern-4 .dice-pip:nth-child(4) {
    bottom: 30%;
    right: 30%;
}
.checkout-joker-page .dice-face.pattern-5 .dice-pip:nth-child(1) {
    top: 30%;
    left: 30%;
}
.checkout-joker-page .dice-face.pattern-5 .dice-pip:nth-child(2) {
    top: 30%;
    right: 30%;
}
.checkout-joker-page .dice-face.pattern-5 .dice-pip:nth-child(3) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.checkout-joker-page .dice-face.pattern-5 .dice-pip:nth-child(4) {
    bottom: 30%;
    left: 30%;
}
.checkout-joker-page .dice-face.pattern-5 .dice-pip:nth-child(5) {
    bottom: 30%;
    right: 30%;
}
.checkout-joker-page .dice-face.pattern-6 .dice-pip:nth-child(1) {
    top: 30%;
    left: 30%;
}
.checkout-joker-page .dice-face.pattern-6 .dice-pip:nth-child(2) {
    top: 30%;
    right: 30%;
}
.checkout-joker-page .dice-face.pattern-6 .dice-pip:nth-child(3) {
    top: 50%;
    left: 30%;
    transform: translateY(-50%);
}
.checkout-joker-page .dice-face.pattern-6 .dice-pip:nth-child(4) {
    top: 50%;
    right: 30%;
    transform: translateY(-50%);
}
.checkout-joker-page .dice-face.pattern-6 .dice-pip:nth-child(5) {
    bottom: 30%;
    left: 30%;
}
.checkout-joker-page .dice-face.pattern-6 .dice-pip:nth-child(6) {
    bottom: 30%;
    right: 30%;
}
.checkout-joker-page .checkout-joker-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}
.checkout-joker-page .checkout-joker-corner--tl {
    top: 10px;
    left: 10px;
}
.checkout-joker-page .checkout-joker-corner--br {
    bottom: 10px;
    right: 10px;
    transform: rotate(180deg);
}
@media (min-width: 768px) {
    .checkout-joker-page .checkout-joker-corner--tl { top: 14px; left: 14px; }
    .checkout-joker-page .checkout-joker-corner--br { bottom: 14px; right: 14px; }
}
.checkout-joker-page .checkout-joker-pip {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.checkout-joker-page .checkout-joker-rank-char {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--b9-card-pip-font);
    color: #000;
    letter-spacing: -0.02em;
}
.checkout-joker-page .checkout-joker-suit-char {
    font-size: 20px;
    line-height: 1;
    margin-top: 4px;
    color: #000;
    font-family: var(--b9-card-pip-font);
    font-weight: 400;
}
.checkout-joker-page .checkout-joker-pip--red .checkout-joker-rank-char. checkout-joker-page .checkout-joker-pip--red .checkout-joker-suit-char {
    color: #dc2626;
}
.checkout-joker-page .checkout-joker-joker-vert {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--b9-card-pip-font);
    color: #dc2626;
    max-height: 130px;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .checkout-joker-page .checkout-joker-joker-vert { font-size: 12px; max-height: 150px; }
}
.checkout-joker-page .checkout-joker-pip--red .checkout-joker-joker-vert {
    color: #dc2626;
}
.checkout-joker-page .checkout-joker-content {
    max-width: 90%;
    overflow-y: auto;
    max-height: 100%;
    padding: 4px 4px 0;
}
.checkout-joker-page .checkout-joker-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
@media (min-width: 768px) {
    .checkout-joker-page .checkout-joker-title { font-size: 20px; margin-bottom: 10px; }
}
.checkout-joker-page .checkout-joker-title--sentence {
    text-transform: none;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}
@media (min-width: 768px) {
    .checkout-joker-page .checkout-joker-title--sentence { font-size: 17px; }
}
.checkout-joker-page .checkout-joker-headline {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
    letter-spacing: -0.015em;
    text-transform: none;
}
@media (min-width: 768px) {
    .checkout-joker-page .checkout-joker-headline { font-size: 17px; }
}
.checkout-joker-page .checkout-joker-body {
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 10px;
    color: #374151;
    font-weight: 500;
}
@media (min-width: 768px) {
    .checkout-joker-page .checkout-joker-body { font-size: 13px; }
}
.checkout-joker-page .checkout-joker-pain {
    font-size: 12px;
    margin: 0 0 10px;
    color: #4b5563;
    font-weight: 600;
}
@media (min-width: 768px) {
    .checkout-joker-page .checkout-joker-pain { font-size: 13px; }
}
.checkout-joker-page .checkout-joker-price {
    margin: 4px 0 10px;
    line-height: 1.1;
}
.checkout-joker-page .checkout-joker-strike {
    font-size: 22px;
    font-weight: 700;
    text-decoration: line-through;
    opacity: 0.55;
    margin-right: 0;
    vertical-align: baseline;
}
.checkout-joker-page .checkout-joker-slash-sep {
    font-size: 26px;
    font-weight: 800;
    color: #9ca3af;
    margin: 0 2px;
    vertical-align: baseline;
}
.checkout-joker-page .checkout-joker-big {
    font-size: 34px;
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #000;
}
.checkout-joker-page .checkout-joker-featured .checkout-joker-big { color: #dc2626; }
@media (min-width: 768px) {
    .checkout-joker-page .checkout-joker-big { font-size: 42px; }
}
.checkout-joker-page .checkout-joker-save {
    margin: -2px 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.35;
    color: #dc2626;
}
.checkout-joker-page .checkout-joker-sub {
    font-size: 12px;
    color: #4b5563;
    margin: 0 0 10px;
    font-weight: 500;
}
.checkout-joker-page .checkout-joker-line {
    font-size: 12px;
    margin: 0 0 5px;
    text-align: left;
    line-height: 1.35;
    color: #111827;
}
@media (min-width: 768px) {
    .checkout-joker-page .checkout-joker-line { font-size: 13px; }
}
.checkout-joker-page .checkout-joker-micro {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 12px 0 0;
    line-height: 1.35;
}
@media (min-width: 768px) {
    .checkout-joker-page .checkout-joker-micro { font-size: 12px; }
}
.checkout-joker-page .checkout-joker-featured .checkout-joker-micro {
    color: #991b1b;
}
.checkout-joker-page .checkout-joker-form {
    margin-top: 1rem;
    width: 100%;
    max-width: 350px;
}
.checkout-joker-page .checkout-joker-col[data-static] .checkout-joker-face--static {
    cursor: default;
    pointer-events: none;
}
.checkout-joker-page .checkout-joker-success-actions {
    margin-top: 1.25rem;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}
.checkout-joker-page .checkout-joker-access {
    width: 100%;
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    color: var(--ds-text-secondary, #475569);
}
.checkout-joker-page .checkout-joker-access-label {
    display: block;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--ds-text-muted, #64748b);
    margin-bottom: 0.35rem;
}
.checkout-joker-page .checkout-joker-access-value {
    display: block;
    min-height: 1.4em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ds-text, #0f172a);
    letter-spacing: 0.08em;
    user-select: all;
    -webkit-user-select: all;
}
.checkout-joker-page .checkout-joker-success-actions .checkout-joker-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.checkout-joker-page .checkout-joker-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid #000;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.checkout-joker-page .checkout-joker-btn:hover {
    transform: scale(1.03);
}
.checkout-joker-page .checkout-joker-btn--dark {
    background: #fff;
    color: #000;
}
.checkout-joker-page .checkout-joker-btn--dark:hover {
    background: #000;
    color: #fff;
}
.checkout-joker-page .checkout-joker-btn--featured {
    background: #fff;
    color: #000;
}
.checkout-joker-page .checkout-joker-btn--featured:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
.checkout-joker-page .checkout-learn-more {
    margin: 0.55rem 0 0;
    text-align: center;
    width: 100%;
    max-width: 350px;
    font-size: 0.875rem;
}
.checkout-joker-page .checkout-learn-more a {
    color: var(--ds-primary, #dc2626);
    font-weight: 700;
    text-decoration: underline;
}
.checkout-joker-page .checkout-learn-more a:hover {
    color: #991b1b;
}
.checkout-joker-page .checkout-joker-learn-face {
    margin: 0.45rem 0 0;
    position: relative;
    z-index: 5;
}
.checkout-joker-page .checkout-learn-more-link {
    color: #dc2626 !important;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: underline;
    cursor: pointer;
}
.checkout-joker-page .checkout-joker-badge-pop {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}
.checkout-joker-page .checkout-joker-badge-pop span {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    z-index: 2;
    font-family: 'Inter', system-ui, sans-serif;
}
@media (min-width: 768px) {
    .checkout-joker-page .checkout-joker-badge-pop span { font-size: 11px; top: -18px; }
}
.checkout-joker-page .checkout-ladder-focus {
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08), 0 0 0 10px rgba(220, 38, 38, 0.14);
    border-radius: 20px;
    background: rgba(220, 38, 38, 0.04);
    padding: 12px 8px;
}
