.pass-shop {
    --paper: #bce9d7;
    --print: #162f2b;
    --muted-text: #b6bcc4;
    padding-top: clamp(28px, 4.6vw, 66px);
}
.pass-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 24px;
}
.pass-intro h1 {
    font-size: clamp(2.35rem, 4.4vw, 4rem);
    letter-spacing: -.025em;
}
.pass-intro p {
    margin-top: 12px;
    color: var(--muted-text);
    font-size: 1.0625rem;
}
.pass-period {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.75fr;
    flex: none;
    padding: 4px;
    background: #101218;
    border: 1px solid #434650;
    border-radius: 10px;
    isolation: isolate;
}
.pass-period::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 4px auto 4px 4px;
    width: calc((100% - 8px) / 2.75);
    border-radius: 6px;
    background: #ecebe5;
    box-shadow: 0 1px 4px #0005;
    transition: transform 230ms ease, width 230ms ease;
}
.pass-shop[data-period="yearly"] .pass-period::before {
    width: calc((100% - 8px) * 1.75 / 2.75);
    transform: translateX(calc(100% / 1.75));
}
.pass-period a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-inline: 12px;
    border-radius: 6px;
    font-size: .9375rem;
    font-weight: 650;
    color: #d8dbe0;
    transition: color 160ms ease;
}
.pass-period a[aria-current] { color: #191b22; }
.pass-period small {
    padding: 2px 6px;
    border-radius: 4px;
    background: #3a3425;
    color: #ffdb8e;
    font-size: .75rem;
    white-space: nowrap;
}
.pass-period a[aria-current] small { background: #f4d995; color: #51390d; }
.pass-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.trainer-pass {
    --art: url("/art/premium-map.webp");
    --edge: #69b59d;
    --cover-height: clamp(174px, 16vw, 208px);
    --inset: clamp(20px, 2.3vw, 34px);
    --notch: 8px;
    --stub-color: #272c31;
    --stub-edge: #535e61;
    position: relative;
    min-width: 0;
    border-radius: 14px;
    color: var(--print);
    scroll-margin-block-start: 16px;
}
.trainer-pass#vip {
    --art: url("/art/vip-map.webp");
    --paper: #ffda8c;
    --edge: #d49b49;
    --print: #372812;
    --stub-color: #302e2b;
    --stub-edge: #796747;
}
.pass-face, .pass-stub {
    mask: radial-gradient(circle at left var(--cut), transparent var(--notch), black calc(var(--notch) + 1px)) left / 51% 100% no-repeat,
          radial-gradient(circle at right var(--cut), transparent var(--notch), black calc(var(--notch) + 1px)) right / 51% 100% no-repeat;
}
.pass-face {
    --cut: bottom;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(115deg, var(--paper) 30%, var(--edge));
}
#vip .pass-face {
    background: linear-gradient(120deg, #eac079, #ffe4a7 34%, #f5cc7e 57%, #f9dd9f 66%, #d59e50);
}
.pass-foil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 33%, #fff4cd55 44%, #fff9e5b3 48%, transparent 52%, #fff4cd55 56%, transparent 66%);
    transform: translateX(-100%);
    animation: premium-foil 8s ease-in-out 1.4s infinite;
}
.pass-cover {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--cover-height);
    padding: 14px var(--inset) 16px;
    overflow: hidden;
}
.pass-face::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--art) center / cover;
    mix-blend-mode: luminosity;
    opacity: .38;
    mask-image: linear-gradient(95deg, transparent 12%, #0004 47%, black 94%);
}
.pass-face::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 7px;
    border: 1px solid color-mix(in srgb, var(--print) 24%, transparent);
    border-radius: 9px 9px 2px 2px;
    pointer-events: none;
}
.pass-print { position: relative; width: 64%; }
.pass-imprint {
    display: flex;
    align-items: center;
    gap: 6px;
    font: 700 .75rem/1.1 ui-monospace, Consolas, monospace;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.pass-imprint::before {
    content: "";
    width: 17px;
    height: 17px;
    background: url("/mark.svg") center / contain no-repeat;
}
.pass-print h2 {
    margin: 0 0 6px;
    font-size: clamp(3.3rem, 4.8vw, 4.6rem);
    font-weight: 760;
    line-height: .97;
    letter-spacing: -.035em;
}
.pass-lead { font-size: clamp(1rem, 1.45vw, 1.1875rem); font-weight: 750; line-height: 1.2; white-space: nowrap; }
.pass-portrait {
    position: absolute;
    inset: 0 1.4% 0 auto;
    width: 36%;
    display: grid;
    place-items: center;
    isolation: isolate;
}
.pass-portrait::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 124%;
    aspect-ratio: 1;
    border: 1px solid color-mix(in srgb, var(--paper) 65%, transparent);
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 18%, color-mix(in srgb, var(--paper) 66%, transparent) 18.2% 18.7%, transparent 19% 32%);
}
.pass-portrait img {
    width: 100%;
    height: calc(var(--cover-height) - 10px);
    object-fit: contain;
    filter: drop-shadow(0 5px 3px #13232338);
}
#vip .pass-portrait img {
    width: 110%;
    animation: rayquaza-hover 1.8s ease-in-out infinite alternate;
}
@keyframes rayquaza-hover {
    from { transform: translateY(3px); }
    to { transform: translateY(-3px); }
}
.pass-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    font-size: .8125rem;
    font-weight: 650;
    line-height: 1.3;
}
.pass-highlights li {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.pass-highlights li::before {
    content: "";
    flex: none;
    width: 8px;
    height: 4px;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: translateY(-2px) rotate(-45deg);
}
.pass-stub {
    --cut: top;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(min-content, min(43%, 12rem));
    align-items: center;
    gap: 10px;
    padding: 18px var(--inset) 21px;
    min-height: 108px;
    color: var(--ink);
    background: var(--stub-color);
    border-radius: 0 0 14px 14px;
    box-shadow: inset 0 0 0 1px var(--stub-edge);
}
.pass-stub::before {
    position: absolute;
    content: "";
    inset: 0 9px auto;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--edge) 0 5px, transparent 5px 10px);
    opacity: .7;
}
.pass-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.pass-price strong {
    font: 690 clamp(2.5rem, 3.7vw, 3.3rem)/1 Cond, sans-serif;
    letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
}
.pass-price span, .pass-terms { color: #c4c9cb; font-size: .875rem; }
.pass-terms { margin-top: 3px; }
.pass-terms b { color: var(--paper); font-weight: 600; white-space: nowrap; }
.pass-terms b::before { content: "· "; color: #c4c9cb; }
.pass-action {
    display: grid;
    place-items: center;
    min-height: 46px;
    width: 100%;
    padding: 8px 16px;
    border-radius: 7px;
    background: var(--paper);
    color: var(--print);
    font: 700 1rem/1.2 Sans, sans-serif;
    text-align: center;
    transition: background 140ms, transform 140ms;
}
.pass-action:hover:not(:disabled) { background: color-mix(in srgb, var(--paper), white 20%); }
.pass-stub > .pass-action { width: auto; white-space: nowrap; }
.pass-action:active:not(:disabled) { transform: translateY(1px); }
.pass-action:disabled { color: #d2d4d5; background: #46484b; opacity: 1; }
.trainer-pass:target .pass-stub { box-shadow: inset 0 -4px var(--paper), inset 0 0 0 1px var(--stub-edge); }
.pass-shop :focus-visible { outline: 3px solid white; outline-offset: 3px; }
.pass-period a:focus-visible { outline-color: var(--gold); outline-offset: -2px; }
.pass-period a[aria-current]:focus-visible { outline-color: #53401a; }
.pass-shop[data-period] .pass-stub:not([hidden]) > :first-child { animation: pass-price-in 220ms ease-out; }
@keyframes pass-price-in {
    from { opacity: .5; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.pass-renewal { color: var(--muted-text); font-size: .875rem; margin-top: 12px; }
.pass-renewal strong { color: var(--ink); }
.pass-details {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    margin-top: clamp(30px, 4vw, 52px);
    padding-top: clamp(24px, 2.5vw, 36px);
    border-top: 1px solid var(--line);
}
.pass-details h2 { font-size: 2.125rem; line-height: 1.1; letter-spacing: -.016em; }
#code-claim { margin: auto; padding: 22px; }
#code-claim:modal {
    inset-block: var(--claim-visible-top, 0px) var(--claim-covered-bottom, 0px);
    max-height: min(92dvh, calc(100% - var(--claim-visible-top, 0px) - var(--claim-covered-bottom, 0px) - 16px));
    overflow-y: auto;
}
#code-claim[open]:not(:modal) { position: static; grid-column: 1 / -1; width: min(100%, 440px); margin: 8px 0 0; }
#code-claim p { margin: 6px 0; color: var(--muted-text); }
#code-claim a:not(.primary) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
#code-claim .account-form { margin-bottom: 0; }
#code-claim .primary { display: inline-flex; align-items: center; }
#code-claim > .primary { margin-top: 12px; }
.claim-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.claim-heading h2 { font-size: 1.65rem; }
.pass-feature-panel {
    --feature-color: var(--paper);
    padding: clamp(16px, 2.2vw, 26px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #22252c;
}
.pass-feature-panel h2 { font-size: 1.85rem; }
.pass-example { --feature-color: #ffda8c; }
.pass-benefits { list-style: none; margin: 14px 0 0; padding: 0; }
.pass-benefits li { position: relative; padding: 14px 0 14px 36px; border-top: 1px solid var(--line); }
.pass-benefits li:last-child { padding-bottom: 0; }
.pass-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--feature-color) 12%, transparent);
}
.pass-benefits li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 22px;
    width: 10px;
    height: 5px;
    border: solid var(--feature-color);
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}
.pass-benefits h3, .pass-example h3 { font: 700 1.0625rem/1.4 Sans, sans-serif; }
.pass-benefits p, .pass-example > p { color: var(--muted-text); line-height: 1.5; }
.pass-benefits p { margin-top: 3px; }
.pass-benefits a { color: var(--feature-color); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.pass-benefits a:hover { text-decoration-color: currentColor; }
.pass-sidebar { display: grid; gap: 20px; min-width: 0; }
.pass-patreon {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #61523c;
    border-radius: 12px;
    background: #292724;
}
.patreon-cover {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: cover;
    object-position: 60% center;
    border-bottom: 1px solid #61523c;
}
.patreon-copy {
    padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2vw, 24px);
}
.patreon-copy h2 { font-size: 1.85rem; }
.patreon-copy p { margin: 5px 0 0; color: #d7d0c6; }
.patreon-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.patreon-prices { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; }
.patreon-prices > div { padding-left: 10px; border-left: 2px solid #bce9d7; }
.patreon-prices > div + div { border-color: #ffda8c; }
.patreon-prices dt { font-size: .85rem; color: #e4ddd1; }
.patreon-prices dd { font: 700 1.6rem/1.25 Cond, sans-serif; }
.patreon-prices small { font: 400 .8rem Sans, sans-serif; color: #d7d0c6; white-space: nowrap; }
.patreon-plans, .patreon-account-action {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: .9375rem;
    font-weight: 700;
}
.patreon-plans { background: #ffda8c; color: #322818; }
.patreon-plans:hover { background: #ffe5af; }
.patreon-account-action { margin-top: 12px; border-color: #76634a; color: #f4e6d0; }
.patreon-account-action:hover { background: #3a332a; border-color: #a58a60; }
.pass-example > p { margin-top: 9px; }
.pass-example > h3 { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.pass-discord-links a { display: flex; align-items: center; width: fit-content; min-height: 44px; margin-top: 8px; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.pass-discord-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.pass-discord-links .pass-join { gap: 8px; padding: 0 12px; border: 1px solid #5e638a; border-radius: 7px; background: #33364c; color: #f0f0ff; text-decoration: none; font-weight: 650; }
.pass-discord-links .pass-join:hover { background: #414561; }
@media (min-width: 721px) {
    .pass-details > .pass-patreon { grid-column: 1 / -1; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
    .pass-details > .pass-patreon .patreon-cover { height: 100%; border: 0; border-right: 1px solid #61523c; }
    .pass-details > .pass-patreon .patreon-copy { place-self: center; }
}
@media (max-width: 960px) {
    .pass-intro { align-items: start; }
    .pass-pair { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .pass-stub { padding-inline: 18px; }
}
@media (max-width: 720px) {
    .pass-shop { padding-top: 19px; }
    .pass-intro { display: grid; gap: 12px; margin-bottom: 14px; }
    .pass-intro p { margin-top: 6px; font-size: 1rem; }
    .pass-period { width: min(100%, 25rem); }
    .pass-details { grid-template-columns: minmax(0, 1fr); }
    .patreon-copy { padding: 16px; }
    .trainer-pass { --cover-height: clamp(106px, 27vw, 136px); --inset: 16px; --notch: 6px; }
    .pass-face { border-radius: 11px 11px 0 0; }
    .pass-cover {
        display: grid;
        grid-template-columns: minmax(0, 1fr) clamp(76px, 24vw, 126px);
        gap: 8px;
        padding-block: 10px 13px;
    }
    .pass-face::after { inset: 5px; border-radius: 7px 7px 2px 2px; }
    .pass-print { grid-area: 1 / 1; width: auto; }
    .pass-print h2 { margin: 0 0 3px; font-size: 2.5rem; }
    .pass-lead { font-size: 1rem; }
    .pass-portrait { position: relative; inset: auto; grid-area: 1 / 2; width: 100%; }
    .pass-portrait img { height: calc(var(--cover-height) - 16px); }
    .pass-imprint { margin-bottom: 4px; }
    .pass-imprint::before { width: 14px; height: 14px; }
    .pass-highlights { margin-top: 5px; gap: 2px 10px; }
    .pass-stub {
        padding: 10px var(--inset); min-height: 76px; border-radius: 0 0 11px 11px;
    }
    .pass-price strong { font-size: 2.25rem; }
    .pass-action { padding: 7px 10px; font-size: .9375rem; }
    .pass-details h2 { font-size: 1.85rem; }
}
@media (max-width: 480px) {
    .pass-cover { row-gap: 3px; padding-block: 8px 10px; }
    .pass-portrait img { height: calc(var(--cover-height) - 34px); }
    .pass-print { display: contents; }
    .pass-title { grid-area: 1 / 1; }
    .pass-lead, .pass-highlights { grid-column: 1 / -1; }
}
@media (max-width: 359px) {
    .pass-stub { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .pass-stub > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
    .pass-terms { margin-top: 0; text-align: right; }
    .pass-terms b { display: block; }
    .pass-terms b::before { content: none; }
}
