/* Card 1 · Ticket (Mikky's pick). One SVG path = body, content clip, rim (stroked and clipped to itself, so the rim
   keeps one width at the cut corners, the notch and the bites) and the sheen clip.
   Rim: one even colour. Gold = solid --gold with a hairline in --gold-deep; Common = solid silver (ink-inactive on paper).
   Shine: one soft 45° band that sweeps the card once on reveal, then rests with no highlight. Reduced motion: none.
   Shadow: --shadow-flat's two layers as drop-shadows, so it follows the ticket silhouette. */
.tk{position:relative;flex:none;perspective:900px;
  --tk-sh1:color-mix(in srgb,var(--surface-dark-solid) 7%,transparent);--tk-sh2:color-mix(in srgb,var(--surface-dark-solid) 8%,transparent);
  --tk-rim:var(--gold);--tk-hair:color-mix(in srgb,var(--gold-deep) 45%,transparent)}
:root.dark .tk,[data-mode="night"] .tk{--tk-sh1:color-mix(in srgb,var(--surface-dark-solid) 30%,transparent);--tk-sh2:color-mix(in srgb,var(--surface-dark-solid) 26%,transparent)}
.tk[data-r="common"]{--tk-rim:color-mix(in srgb,var(--ink-inactive) 70%,var(--paper));--tk-hair:transparent}
.tk__in{position:absolute;inset:0;transform-style:preserve-3d}
.tk__face,.tk__back{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;
  filter:drop-shadow(0 1px 2px var(--tk-sh1)) drop-shadow(0 4px 14px var(--tk-sh2))}
.tk__back{transform:rotateY(180deg)}
.tk svg.tk__layer{position:absolute;inset:0;width:100%;height:100%}
.tk__body{fill:var(--paper)}
.tk__rim{fill:none}
.tk__hair{fill:none;stroke:var(--tk-hair)}
.tk__tear{stroke:var(--border-control);stroke-width:1.5;stroke-dasharray:3 4;stroke-linecap:round}
.tk__clip{position:absolute;inset:0}
.tk__content{display:flex;flex-direction:column;padding:16px 13px 14px}
.tk__no{display:block;height:18px;margin-bottom:var(--space-1-5);text-align:center;font:var(--type-micro);color:var(--ink-soft);font-variant-numeric:tabular-nums}
.tk__art{position:relative;flex:none;height:118px;border-radius:10px;overflow:hidden;background:var(--sky)}
.tk__art svg{position:absolute;inset:0;width:100%;height:100%}
.tk__name{flex:1;margin:var(--space-5) 0 0;font:var(--type-title);line-height:24px;color:var(--ink);text-wrap:balance}
.tk__meta{display:flex;justify-content:space-between;align-items:center;margin:0;font:var(--type-label-sm);color:var(--ink-soft)}
.tk__rar{display:inline-flex;align-items:center;gap:6px}
.tk[data-r="gold"] .tk__rar{color:var(--gold-deep)}
.tk__gems{display:inline-flex;gap:3px}
.tk__gems i{width:8px;height:8px;transform:rotate(45deg);border-radius:1.5px;background:var(--ink-soft)}
.tk[data-r="gold"] .tk__gems i{background:var(--gold)}
/* the sheen: one band, invisible at rest */
.tk__sheen{pointer-events:none;opacity:0;
  background:linear-gradient(135deg,transparent 38%,color-mix(in srgb,var(--ink-on-fill) 25%,transparent) 50%,transparent 62%) 120% 120%/300% 300% no-repeat}
/* back: dark in both modes, quiet diamond weave, the platform stamp */
.tk__back .tk__clip{display:grid;place-items:center;align-content:center;gap:var(--space-2);text-align:center;color:var(--ink-on-fill);
  background:
    repeating-linear-gradient(45deg,color-mix(in srgb,var(--gold) 16%,transparent) 0 1px,transparent 1px 14px),
    repeating-linear-gradient(-45deg,color-mix(in srgb,var(--gold) 16%,transparent) 0 1px,transparent 1px 14px),
    var(--surface-dark-solid)}

/* 44px thumbnail: the chamfer is the silhouette, art fills the ticket */
.tk--mini .tk__face{filter:drop-shadow(0 1px 2px var(--tk-sh1))}
.tk--mini .tk__clip .tk__art{height:100%;border-radius:0}

/* Metallic rim: one smooth, symmetric diagonal gradient (dark edge, bright centre band, dark edge). No patches. */
.tk[data-r="gold"] .tk-m0,.tk__back .tk-m0{stop-color:color-mix(in srgb,var(--ll-gold-800) 55%,var(--ll-gold-400))}
.tk[data-r="gold"] .tk-m1,.tk__back .tk-m1{stop-color:var(--ll-gold-400)}
.tk[data-r="gold"] .tk-m2,.tk__back .tk-m2{stop-color:color-mix(in srgb,var(--ll-gold-300) 45%,#fff)}
.tk[data-r="common"] .tk-m0{stop-color:color-mix(in srgb,var(--ink-inactive) 85%,var(--paper))}
.tk[data-r="common"] .tk-m1{stop-color:color-mix(in srgb,var(--ink-inactive) 60%,var(--paper))}
.tk[data-r="common"] .tk-m2{stop-color:color-mix(in srgb,var(--ink-inactive) 18%,#fff)}
.tk[data-r="gold"] .tk__hair{stroke:color-mix(in srgb,var(--ll-gold-800) 55%,transparent)}
.tk[data-r="gold"] .tk__gems i{background:linear-gradient(135deg,var(--ll-gold-400),color-mix(in srgb,var(--ll-gold-800) 45%,var(--ll-gold-400)))}
.tk[data-r="rare"] .tk-m0{stop-color:color-mix(in srgb,var(--lagoon-deep) 80%,var(--lagoon))}
.tk[data-r="rare"] .tk-m1{stop-color:var(--lagoon)}
.tk[data-r="rare"] .tk-m2{stop-color:color-mix(in srgb,var(--lagoon) 35%,#fff)}
.tk[data-r="rare"] .tk__hair{stroke:color-mix(in srgb,var(--lagoon-deep) 50%,transparent)}
.tk[data-r="rare"] .tk__rar{color:var(--lagoon-deep)}
.tk[data-r="rare"] .tk__gems i{background:var(--lagoon)}
/* Embedded in Versions 1-3: the full ticket scaled into the reveal stage */
.rv-card.rv-tk{width:96px;height:135px;background:none!important;box-shadow:none!important;border-radius:0!important;display:block!important;padding:0;aspect-ratio:auto!important;font:inherit;color:inherit}
.rv-tk .tk{transform:scale(.5);transform-origin:0 0}
.rv-tk[data-i="0"],.rv-tk.rv-card--l{z-index:2}
