/* =========================================================
   Diner Pass (#/pass): the card, its designs, and the page.
   Card typography uses container units (cqw), so the same card looks
   right as a 120px thumbnail or a 420px hero.
   ========================================================= */
.pc { --rx: 0deg; --ry: 0deg; --sx: 50%; --sy: 50%; --fa: 0deg; position: relative; display: block; width: 100%; aspect-ratio: 1.586; border-radius: clamp(10px, 5.5%, 24px); transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .55s var(--ease); color: #fff; text-align: left; -webkit-tap-highlight-color: transparent; }
.pc.is-flipped { transform: rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); }
.pc-face { container-type: inline-size; position: absolute; inset: 0; border-radius: inherit; padding: 6% 6.5%; display: flex; flex-direction: column; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; isolation: isolate; box-shadow: 0 6cqw 12cqw -5cqw rgb(2 6 15 / .55), inset 0 0 0 1px rgb(255 255 255 / .14); }
.pc-mini .pc-face { box-shadow: 0 6px 16px -8px rgb(2 6 15 / .5), inset 0 0 0 1px rgb(255 255 255 / .14); }
.pc-back { transform: rotateY(180deg); }
.pc-art, .pc-foil, .pc-sheen { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.pc-sheen { z-index: 1; background: radial-gradient(circle at var(--sx) var(--sy), rgb(255 255 255 / .30), transparent 46%); mix-blend-mode: overlay; }
.pc-foil { z-index: 0; opacity: 0; background: conic-gradient(from var(--fa) at var(--sx) var(--sy), #ff7ad9, #ffd36e, #7affc8, #6ec3ff, #b07aff, #ff7ad9); mix-blend-mode: color-dodge; filter: saturate(1.3); transition: opacity .3s; }
.pc[data-pc]:hover .pc-foil { opacity: .22; }
.pc-row { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 3cqw; }
.pc-logo .logo { font-size: 3.4cqw !important; }
.pc-logo .logo-mark { width: 8cqw; height: 8cqw; }
.pc-tier { font-size: 2.7cqw; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 1.1cqw 2.4cqw; border-radius: 99px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .25); backdrop-filter: blur(4px); white-space: nowrap; }
.pc-mid { margin-top: 5cqw; justify-content: flex-start; }
.pc-chip { width: 11cqw; height: auto; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .25)); }
.pc-wave { width: 6cqw; height: 6cqw; opacity: .75; }
.pc-bottom { position: relative; z-index: 2; margin-top: auto; display: flex; flex-direction: column; min-width: 0; }
.pc-label { font-size: 2.6cqw; letter-spacing: .22em; text-transform: uppercase; opacity: .72; }
.pc-name { font-size: 6.4cqw; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: .6cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta { margin-top: 2cqw; align-items: flex-end; }
.pc-num { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 3.5cqw; letter-spacing: .08em; opacity: .9; white-space: nowrap; }
.pc-since { font-size: 2.8cqw; opacity: .82; text-align: right; white-space: nowrap; }
.pc-since b { font-size: 3.1cqw; }
.pc-stripe { position: absolute; left: 0; right: 0; top: 10cqw; height: 11cqw; background: rgb(0 0 0 / .55); z-index: 0; }
.pc-backgrid { position: relative; z-index: 2; margin-top: 18cqw; flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 4cqw; min-height: 0; }
.pc-backstats { display: flex; flex-direction: column; gap: 1.2cqw; font-size: 3.3cqw; min-width: 0; }
.pc-big { font-size: 5.6cqw; font-weight: 800; }
.pc-trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-next { margin-top: auto; opacity: .85; }
.pc-codewrap { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1cqw; }
.pc-code { display: grid; grid-template-columns: repeat(7, 2.2cqw); gap: .55cqw; padding: 1.6cqw; border-radius: 2cqw; background: #fff; }
.pc-code i { width: 2.2cqw; height: 2.2cqw; border-radius: .4cqw; background: #E2E8F0; }
.pc-code i.on { background: #0F172A; }
.pc-codelabel { font-size: 2.3cqw; opacity: .7; }

/* ---------- designs ---------- */
.skin-classic .pc-face { background: radial-gradient(120% 140% at 0% 0%, #23324B, #0F172A 62%); }
.skin-classic .pc-art { background: repeating-linear-gradient(135deg, rgb(255 255 255 / .035) 0 2px, transparent 2px 14px), radial-gradient(60% 80% at 100% 100%, rgb(255 138 0 / .22), transparent 70%); }
.skin-sunset .pc-face { background: radial-gradient(120% 140% at 100% 0%, #FFC47A, #FF8A00 45%, #C2410C); color: #1A1206; }
.skin-sunset .pc-art { background: radial-gradient(circle at 82% 118%, rgb(255 255 255 / .35) 0 22%, transparent 22.5%), radial-gradient(circle at 82% 118%, rgb(255 255 255 / .18) 0 32%, transparent 32.5%), radial-gradient(circle at 82% 118%, rgb(255 255 255 / .10) 0 42%, transparent 42.5%); }
.skin-sunset .pc-tier, .skin-receipt .pc-tier { background: rgb(15 23 42 / .12); border-color: rgb(15 23 42 / .22); }
.skin-ube .pc-face { background: radial-gradient(120% 140% at 0% 100%, #7C3AED, #3B2A8C 52%, #120F2E); }
.skin-ube .pc-art { background: radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 68% 14%, #fff, transparent), radial-gradient(1.5px 1.5px at 86% 46%, #fff, transparent), radial-gradient(1px 1px at 40% 70%, #fff, transparent), radial-gradient(1px 1px at 24% 88%, #fff, transparent), radial-gradient(60% 70% at 85% 10%, rgb(236 72 153 / .35), transparent 70%); }
.skin-gold .pc-face { background: linear-gradient(135deg, #0B0B0F, #1F1A10 55%, #3A2E12); }
.skin-gold .pc-art { background: repeating-linear-gradient(115deg, rgb(245 215 142 / .09) 0 1px, transparent 1px 7px), linear-gradient(115deg, transparent 40%, rgb(245 215 142 / .22) 50%, transparent 60%); }
.skin-gold .pc-tier { background: linear-gradient(90deg, #F5D78E, #C9A24A); color: #1F1A10; border: 0; }
.skin-gold .pc-name { background: linear-gradient(90deg, #FFF3CF, #E8C36A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skin-prism .pc-face { background: linear-gradient(135deg, #1B1035, #0D2A3A); }
.skin-prism .pc-art { background: conic-gradient(from 210deg at 70% 30%, #ff7ad9, #ffd36e, #7affc8, #6ec3ff, #b07aff, #ff7ad9); opacity: .55; mix-blend-mode: screen; animation: prism 8s linear infinite; }
.skin-prism .pc-foil { opacity: .3 !important; }
@keyframes prism { to { filter: hue-rotate(360deg); } }
.skin-kape .pc-face { background: radial-gradient(120% 140% at 0% 0%, #6B4423, #3B2314 60%, #24150B); }
.skin-kape .pc-art { background: radial-gradient(circle at 84% 38%, transparent 0 12%, rgb(245 222 179 / .55) 12.5% 14%, transparent 14.5% 19%, rgb(245 222 179 / .4) 19.5% 21%, transparent 21.5% 26%, rgb(245 222 179 / .25) 26.5% 28%, transparent 28.5%), radial-gradient(ellipse 4% 6% at 18% 30%, rgb(0 0 0 / .25), transparent), radial-gradient(ellipse 4% 6% at 30% 62%, rgb(0 0 0 / .2), transparent); }
.skin-explorer .pc-face { background: linear-gradient(140deg, #134E4A, #0F2E2B); }
.skin-explorer .pc-art { background: repeating-radial-gradient(circle at 78% 30%, transparent 0 10px, rgb(153 246 228 / .16) 10px 11px), repeating-radial-gradient(circle at 10% 110%, transparent 0 12px, rgb(153 246 228 / .10) 12px 13px); }
.skin-barkada .pc-face { background: linear-gradient(135deg, #0E7490, #155E75 50%, #164E63); }
.skin-barkada .pc-art { background: radial-gradient(circle at 10% 20%, #FACC15 0 1.6%, transparent 1.8%), radial-gradient(circle at 30% 80%, #F472B6 0 1.4%, transparent 1.6%), radial-gradient(circle at 55% 30%, #FB923C 0 1.2%, transparent 1.4%), radial-gradient(circle at 75% 70%, #A3E635 0 1.6%, transparent 1.8%), radial-gradient(circle at 90% 18%, #F472B6 0 1.2%, transparent 1.4%), radial-gradient(circle at 45% 60%, #fff 0 .9%, transparent 1.1%), radial-gradient(circle at 65% 12%, #FACC15 0 1%, transparent 1.2%), radial-gradient(circle at 20% 55%, #A3E635 0 1%, transparent 1.2%); }
.skin-fiesta .pc-face { background: linear-gradient(160deg, #BE185D, #831843 70%); }
.skin-fiesta .pc-art { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='22'%3E%3Cpath d='M0 0h12L6 14z' fill='%23FACC15'/%3E%3Cpath d='M12 0h12l-6 14z' fill='%2338BDF8'/%3E%3Cpath d='M24 0h12l-6 14z' fill='%23A3E635'/%3E%3Cpath d='M36 0h12l-6 14z' fill='%23FB923C'/%3E%3Cpath d='M48 0h12l-6 14z' fill='%23fff'/%3E%3C/svg%3E") top left / 26cqw auto repeat-x, radial-gradient(60% 70% at 100% 100%, rgb(250 204 21 / .25), transparent 70%); }
.skin-fiesta .pc-row:first-child { margin-top: 5cqw; }
.skin-receipt .pc-face { background: #FBFAF6; color: #1F2937; box-shadow: 0 6cqw 12cqw -5cqw rgb(2 6 15 / .45), inset 0 0 0 1px rgb(15 23 42 / .08); }
.skin-receipt .pc-art { background: repeating-linear-gradient(0deg, transparent 0 9px, rgb(15 23 42 / .06) 9px 10px), radial-gradient(circle at 50% 100%, #E7E5DE 0 3px, transparent 3.5px) bottom / 10px 7px repeat-x; }
.skin-receipt .pc-num { font-weight: 700; }
.skin-nightowl .pc-face { background: radial-gradient(120% 120% at 80% 0%, #1E3A8A, #0B1437 55%, #050A1F); }
.skin-nightowl .pc-art { background: radial-gradient(circle at 82% 26%, #FDE68A 0 7%, transparent 7.5%), radial-gradient(circle at 86% 22%, #0B1437 0 6.4%, transparent 6.9%), radial-gradient(1.4px 1.4px at 15% 25%, #fff, transparent), radial-gradient(1px 1px at 40% 15%, #fff, transparent), radial-gradient(1.2px 1.2px at 60% 40%, #fff, transparent), radial-gradient(1px 1px at 30% 55%, #fff, transparent), radial-gradient(1.4px 1.4px at 70% 75%, #fff, transparent), radial-gradient(1px 1px at 92% 60%, #fff, transparent); }
.skin-budget .pc-face { background: radial-gradient(120% 140% at 0% 0%, #10B981, #047857 50%, #064E3B); }
.skin-budget .pc-art { background: radial-gradient(circle at 84% 46%, #FCD34D 0 8%, #D97706 8.5% 9.5%, transparent 10%), radial-gradient(circle at 74% 56%, #FDE68A 0 6%, #D97706 6.5% 7.5%, transparent 8%), repeating-linear-gradient(90deg, rgb(255 255 255 / .05) 0 1px, transparent 1px 16px); }
.skin-streak .pc-face { background: radial-gradient(120% 120% at 50% 120%, #F97316, #B91C1C 45%, #1C0A06 85%); }
.skin-streak .pc-art { background: radial-gradient(circle at 20% 90%, rgb(253 224 71 / .6) 0 1.2%, transparent 1.5%), radial-gradient(circle at 45% 80%, rgb(253 224 71 / .5) 0 .9%, transparent 1.2%), radial-gradient(circle at 70% 92%, rgb(253 224 71 / .55) 0 1.1%, transparent 1.4%), radial-gradient(circle at 85% 70%, rgb(253 224 71 / .4) 0 .8%, transparent 1.1%), radial-gradient(70% 50% at 50% 110%, rgb(253 186 116 / .45), transparent 70%); animation: embers 3.5s ease-in-out infinite alternate; }
@keyframes embers { to { transform: translateY(-4%); opacity: .8; } }

/* ---------- page ---------- */
.pass-hero { position: relative; overflow: hidden; border-radius: 28px; color: #fff; background: #0B1120; padding: 1.5rem 1.25rem 1.25rem; isolation: isolate; }
@media (min-width: 640px) { .pass-hero { padding: 2.5rem; } }
.pass-hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 85% 20%, rgb(255 138 0 / .28), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgb(124 58 237 / .32), transparent 60%), repeating-linear-gradient(135deg, rgb(255 255 255 / .03) 0 1px, transparent 1px 22px); }
.pass-hero-grid { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 1024px) { .pass-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; } }
.pass-hero-copy { order: 2; }
@media (min-width: 1024px) { .pass-hero-copy { order: 0; } }
.pass-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #FFB257; }
.pass-eyebrow svg { width: 14px; height: 14px; }
.pass-title { margin-top: .4rem; font-size: clamp(2.2rem, 9vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.pass-perk { margin-top: .6rem; color: rgb(255 255 255 / .72); max-width: 32rem; }
.pass-bar { height: 10px; border-radius: 99px; background: rgb(255 255 255 / .12); overflow: hidden; }
.pass-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FF8A00, #FFD36E); box-shadow: 0 0 16px rgb(255 160 40 / .6); animation: grow 1.1s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.pass-ghost { background: rgb(255 255 255 / .08); color: #fff; border: 1px solid rgb(255 255 255 / .18); }
.pass-ghost:hover { background: rgb(255 255 255 / .14); }
.pass-stage { position: relative; perspective: 1400px; max-width: 440px; width: 100%; margin: 0 auto; padding: .5rem 0 0; }
.pass-stage .pc { animation: cardIn .9s var(--ease) backwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) rotateX(18deg) rotateY(-16deg) scale(.94); } }
.pass-glow { position: absolute; inset: 12% 8% -4%; filter: blur(38px); opacity: .55; border-radius: 50%; z-index: -1; }
.pass-glow.skin-classic { background: #FF8A00; } .pass-glow.skin-sunset { background: #FF8A00; } .pass-glow.skin-ube { background: #7C3AED; } .pass-glow.skin-gold { background: #C9A24A; }
.pass-glow.skin-prism { background: conic-gradient(#ff7ad9, #ffd36e, #7affc8, #6ec3ff, #b07aff); } .pass-glow.skin-kape { background: #92400E; } .pass-glow.skin-explorer { background: #14B8A6; }
.pass-glow.skin-barkada { background: #06B6D4; } .pass-glow.skin-fiesta { background: #DB2777; } .pass-glow.skin-receipt { background: #E5E7EB; } .pass-glow.skin-nightowl { background: #3B82F6; }
.pass-glow.skin-budget { background: #10B981; } .pass-glow.skin-streak { background: #F97316; }
.pass-hint { margin-top: .9rem; text-align: center; font-size: .75rem; color: rgb(255 255 255 / .55); }
.pass-stats { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .pass-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pass-stat { padding: 1rem; display: flex; flex-direction: column; gap: .15rem; }
.pass-stat svg { width: 18px; height: 18px; color: var(--brand-ink); }
.pass-stat b { font-size: 1.5rem; font-weight: 800; margin-top: .3rem; }
.pass-stat span { font-size: .78rem; color: var(--muted); }

.tier-road { display: grid; gap: .75rem; }
@media (min-width: 900px) { .tier-road { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tr { position: relative; display: grid; grid-template-columns: auto 92px minmax(0, 1fr); align-items: center; gap: .85rem; padding: .75rem; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 900px) { .tr { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 1rem .75rem; } .tr-dot { position: absolute; top: .6rem; left: .6rem; } }
.tr-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.tr-dot svg { width: 14px; height: 14px; }
.tr.is-done .tr-dot { background: var(--success-50); color: var(--success-ink); border-color: transparent; }
.tr.is-on { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.tr-card { width: 92px; display: block; }
@media (min-width: 900px) { .tr-card { width: 100%; max-width: 150px; } }
.tr:not(.is-done) .tr-card { filter: grayscale(.85) brightness(.85); opacity: .7; }
.tr-body { display: flex; flex-direction: column; gap: .1rem; font-size: .8rem; color: var(--muted); min-width: 0; }
.tr-body b { font-size: .95rem; color: var(--text); }
@media (min-width: 900px) { .tr-body { align-items: center; } }

.dz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .dz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1100px) { .dz-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dz { display: flex; flex-direction: column; text-align: left; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); padding: .6rem; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; min-width: 0; }
.dz:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgb(15 23 42 / .45); }
.dz.is-worn { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.dz-card { position: relative; display: block; }
.dz.is-locked .dz-card .pc { filter: grayscale(1) brightness(.75) contrast(.9); }
.dz-lock { position: absolute; inset: 0; display: grid; place-items: center; }
.dz-lock svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgb(15 23 42 / .7); color: #fff; box-sizing: content-box; }
.dz-worn { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: .2rem; font-size: .65rem; font-weight: 800; padding: .2rem .45rem; border-radius: 99px; background: var(--brand); color: #0F172A; }
.dz-worn svg { width: 11px; height: 11px; }
.dz-body { display: flex; flex-direction: column; gap: .3rem; padding: .65rem .25rem .2rem; min-width: 0; }
.dz-name { font-size: .9rem; font-weight: 800; line-height: 1.2; }
.dz-how { display: flex; gap: .35rem; align-items: flex-start; font-size: .74rem; color: var(--muted); line-height: 1.35; }
.dz-how svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }
.dz-bar { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; border: 1px solid var(--line); }
.dz-bar span { display: block; height: 100%; background: linear-gradient(90deg, #FF8A00, #FFB257); border-radius: inherit; }
.dz-count { font-size: .7rem; color: var(--muted); }
.dz-preview { max-width: 300px; margin: .25rem auto 0; }
.rar { align-self: flex-start; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 99px; display: inline-block; }
.rar-common { background: var(--soft); color: var(--muted); }
.rar-rare { background: rgb(14 165 233 / .12); color: #0369A1; }
.rar-epic { background: rgb(139 92 246 / .14); color: #6D28D9; }
.rar-legendary { background: linear-gradient(90deg, rgb(245 158 11 / .2), rgb(236 72 153 / .2)); color: #B45309; }
html.dark .rar-rare { color: #7DD3FC; } html.dark .rar-epic { color: #C4B5FD; } html.dark .rar-legendary { color: #FCD34D; }

.pass-teaser { display: flex; align-items: center; gap: 1rem; padding: .85rem; border-radius: 18px; border: 1px solid var(--line); background: var(--soft); transition: border-color .2s; }
.pass-teaser:hover { border-color: var(--brand); }
.pass-teaser .pc { width: 112px; flex: none; }
.pass-teaser > .min-w-0 > span { overflow-wrap: anywhere; }
@media (max-width: 379px) { .pass-teaser { gap: .75rem; padding: .7rem; } .pass-teaser .pc { width: 84px; } }

.unlock-stage { position: relative; display: grid; place-items: center; height: 190px; }
.unlock-card { width: 250px; animation: unlockIn .9s var(--ease) both; }
@keyframes unlockIn { from { opacity: 0; transform: scale(.6) rotate(-12deg); } 60% { transform: scale(1.06) rotate(2deg); } }
.unlock-burst { position: absolute; inset: 0; pointer-events: none; }
.unlock-burst i { position: absolute; left: 50%; top: 50%; width: 8px; height: 14px; border-radius: 2px; background: hsl(calc(var(--i) * 40) 90% 60%); animation: burst 1.2s cubic-bezier(.2, .7, .3, 1) .2s both; transform: rotate(calc(var(--i) * 20deg)) translateY(0); }
@keyframes burst { to { transform: rotate(calc(var(--i) * 20deg)) translateY(-150px) rotate(220deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pass-stage .pc, .unlock-card, .unlock-burst i, .pass-bar span, .skin-prism .pc-art, .skin-streak .pc-art { animation: none !important; } }
.sb-new { margin-left: auto; font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .1rem .4rem; border-radius: 99px; background: linear-gradient(90deg, #FF8A00, #EC4899); color: #fff; }
