/* Holo Kit Cards: a 3D carousel of sport cards; the front card flips to that sport's facts.
   Self-contained (every class starts with hkc-) so it can sit on any site. Colors and fonts follow
   the page's --ink / --red / --display / --font when present. */
.hkc {
	--hkc-paper: var(--paper, #FAFAF7);
	--hkc-paper-2: var(--paper-2, #EFEDE8);
	--hkc-ink: var(--ink, #111);
	--hkc-mute: var(--mute, #5B5B57);
	--hkc-mute-d: var(--mute-d, #A6A39B);
	--hkc-line: var(--line, #E1DED7);
	--hkc-red: var(--red, #C8102E);
	--hkc-red-dk: var(--red-dk, #A50D26);
	--hkc-display: var(--display, 'Inter Tight', 'Arial Narrow', Arial, sans-serif);
	--hkc-body: var(--font, Inter, system-ui, sans-serif);
	--hkc-w: min(320px, 68vw);
	position: relative;
	font-family: var(--hkc-body);
}
.hkc *, .hkc *::before, .hkc *::after { box-sizing: border-box; }
.hkc-rail { position: relative; height: calc(var(--hkc-w) * 1.4 + 90px); perspective: 1600px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hkc-slot { --rx: 0deg; --ry: 0deg; --flip: 0deg; --mx: 50%; --my: 50%; position: absolute; left: 50%; top: 50%; width: var(--hkc-w); aspect-ratio: 5 / 7; margin-left: calc(var(--hkc-w) / -2); margin-top: calc(var(--hkc-w) * -0.7); transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .6s, filter .6s; }
.hkc-card { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip))); transition: transform .7s cubic-bezier(.2, .8, .2, 1); cursor: pointer; border: 0; padding: 0; margin: 0; background: none; font: inherit; color: inherit; text-align: left; border-radius: 16px; }
.hkc-slot.is-live .hkc-card, .hkc-slot.is-live .hkc-gos { transition: transform .08s linear; }
.hkc-edge { position: absolute; inset: 0; border-radius: 16px; background: #2b2b2b; }
.hkc-face { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 34px 60px -26px rgba(17, 17, 17, .55); }
.hkc-front { transform: translateZ(4px); background: var(--hkc-ink); color: #fff; }
.hkc-back { transform: rotateY(180deg) translateZ(1px); background: var(--hkc-paper); color: var(--hkc-ink); border: 1px solid var(--hkc-line); }
.hkc-no { position: absolute; top: 22px; left: 24px; font: 700 11px var(--hkc-body); letter-spacing: .2em; color: var(--hkc-mute-d); }
.hkc-no b { color: var(--hkc-red); }
.hkc-ghost { position: absolute; right: -8%; bottom: 14%; font: italic 900 calc(var(--hkc-w) * .66)/.8 var(--hkc-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .14); }
.hkc-art { position: absolute; left: 50%; top: 13%; width: 70%; transform: translateX(-50%); filter: drop-shadow(0 22px 20px rgba(0, 0, 0, .6)); }
.hkc-art svg { display: block; width: 100%; height: auto; }
/* real photos: the front becomes a studio shot; several colorways crossfade */
.hkc-ph { position: absolute; inset: 0; background: #ECEBE7; }
.hkc-ph img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity 1s ease; }
.hkc-ph img.is-on { opacity: 1; }
.hkc-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 17, 0) 52%, rgba(17, 17, 17, .88) 100%); }
.hkc-photo .hkc-no { color: var(--hkc-mute); }
/* "Custom uniforms" strip: a slim red band down the right edge, like the edge of a trading card */
.hkc-vtag { position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; width: 26px; display: flex; align-items: center; justify-content: center; background: var(--hkc-red); color: #fff; writing-mode: vertical-rl; font: 700 9px/1 var(--hkc-body); letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.hkc-front:has(.hkc-vtag) .hkc-tag { right: 38px; }
.hkc-front:has(.hkc-vtag) .hkc-name { right: 38px; }
.hkc-tag { position: absolute; top: 18px; right: 18px; padding: 5px 8px; background: var(--hkc-ink); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hkc-name { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.hkc-name b { font: italic 900 calc(var(--hkc-w) * .115)/.88 var(--hkc-display); letter-spacing: -.035em; text-transform: uppercase; }
.hkc-flipme { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--hkc-mute-d); }
/* a quiet silver foil, only where the light hits */
.hkc-foil { position: absolute; inset: 0; mix-blend-mode: soft-light; opacity: 0; transition: opacity .4s; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, rgba(200, 200, 200, .2) 52%, transparent 65%); background-size: 250% 250%; background-position: var(--mx) var(--my); }
.hkc-glare { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .22), transparent 42%); }
.hkc-slot.is-on .hkc-foil, .hkc-slot.is-on .hkc-glare { opacity: 1; }

/* back: the sport at a glance */
.hkc-bk { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px 22px 76px; gap: 12px; }
.hkc-lbl { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--hkc-mute); }
.hkc-bk h3 { margin: 0; font: italic 900 calc(var(--hkc-w) * .094)/.9 var(--hkc-display); letter-spacing: -.035em; text-transform: uppercase; }
.hkc-specs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hkc-line); border-left: 1px solid var(--hkc-line); }
.hkc-specs span { display: grid; gap: 2px; padding: 9px 10px; border-right: 1px solid var(--hkc-line); border-bottom: 1px solid var(--hkc-line); }
.hkc-specs b { font: 800 16px/1.05 var(--hkc-display); letter-spacing: -.02em; }
.hkc-specs i { font-style: normal; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hkc-mute); }
.hkc-packs { display: grid; gap: 6px; }
.hkc-pk { display: block; padding: 8px 10px; background: #fff; border: 1px solid var(--hkc-line); font-size: 11px; line-height: 1.35; }
.hkc-pk b { display: block; font: 800 13px var(--hkc-display); letter-spacing: .02em; text-transform: uppercase; }
.hkc-pk em { font-style: normal; color: var(--hkc-red); font-weight: 700; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.hkc-pk.is-pop { background: var(--hkc-ink); color: #fff; border-color: var(--hkc-ink); }
.hkc-pts { margin-top: auto; display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--hkc-line); font-size: 12px; font-weight: 600; }
.hkc-pts span::before { content: "\2713"; margin-right: 8px; color: var(--hkc-red); font-weight: 700; }
.hkc-has-bk .hkc-pts { display: none; }
.hkc-bkphoto { height: 30%; flex: none; margin: -22px -22px 0; background: #ECEBE7; overflow: hidden; }
.hkc-bkphoto img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 22%; display: block; }
/* packages as three small name tiles (the full list is one tap away in the Packages pop-up) */
.hkc-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.hkc-pk { padding: 8px 4px; text-align: center; }
.hkc-pk span, .hkc-pk em { display: none; }
.hkc-pk b { font-size: 11px; }
.hkc-has-bk .hkc-specs span { padding: 6px 8px; }
.hkc-has-bk .hkc-specs b { font-size: 14px; }
.hkc-gos { position: absolute; left: 22px; right: 22px; bottom: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; /* turns with the card (same pivot: the card centre), so it shows only on the back */
	transform-origin: 50% calc(66px - var(--hkc-w) * .7); transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip) + 180deg)) translateZ(6px); transition: transform .7s cubic-bezier(.2, .8, .2, 1); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hkc-go { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 6px; background: var(--hkc-red); border: 1px solid var(--hkc-red); color: #fff; font: 600 11px var(--hkc-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center; }
.hkc-go:hover { background: var(--hkc-red-dk); border-color: var(--hkc-red-dk); color: #fff; }
.hkc-go-line { background: #fff; border-color: var(--hkc-ink); color: var(--hkc-ink); }
.hkc-go-line:hover { background: var(--hkc-ink); border-color: var(--hkc-ink); color: #fff; }
.hkc-gos > :only-child { grid-column: 1 / -1; }

/* controls under the rail */
.hkc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; margin-top: 6px; }
.hkc-arrow { width: 52px; height: 52px; display: grid; place-items: center; padding: 0; border: 1px solid var(--hkc-ink); border-radius: 0; background: transparent; color: var(--hkc-ink); cursor: pointer; }
.hkc-arrow:hover { background: var(--hkc-ink); color: #fff; }
.hkc-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.hkc-dot { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 6px; border: 0; background: none; cursor: pointer; font: 700 11px var(--hkc-body); letter-spacing: .14em; text-transform: uppercase; color: var(--hkc-mute); }
.hkc-dot span { display: block; padding-bottom: 6px; border-bottom: 2px solid transparent; }
.hkc-dot[aria-current="true"] { color: var(--hkc-ink); }
.hkc-dot[aria-current="true"] span { border-color: var(--hkc-red); }
.hkc-credit { width: 100%; margin: 0; text-align: center; font-size: 10px; letter-spacing: .08em; color: var(--hkc-mute-d); }
.hkc-credit a { color: inherit; }
.hkc button:focus-visible, .hkc a:focus-visible { outline: 2px solid var(--hkc-red); outline-offset: 3px; }

/* phones: the labels give way to short bars so the controls stay on one line */
@media (max-width: 700px) {
	.hkc-bar { gap: 8px; }
	.hkc-arrow { width: 44px; height: 44px; }
	.hkc-dot { min-width: 26px; padding: 0 2px; }
	.hkc-dot span { width: 18px; height: 3px; padding: 0; border: 0; background: var(--hkc-line); font-size: 0; }
	.hkc-dot[aria-current="true"] span { background: var(--hkc-red); }
}
