/* Pop-up card layers (over the page; a bottom sheet on phones for the plain cards), the design 4 trading cards
   (team and player, framed, no outer box) and the small pieces the team page and the other cards share. */
html.card-open, html.card-open body { overflow: hidden; }
.card-layer { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; }
.card-dim { position: absolute; inset: 0; background: rgba(3,4,6,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.card-layer.under .card-dim { opacity: 0 !important; }
.card-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; border-radius: 22px; background: rgba(12,13,18,.96); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 90px -20px #000, 0 0 0 1px rgba(255,122,26,.08); transform: translateY(18px) scale(.97); opacity: 0; transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.card-box:focus { outline: none; }
.card-layer.in .card-dim { opacity: 1; }
.card-layer.in .card-box { transform: none; opacity: 1; }
.card-layer.under .card-box { transform: translateY(-10px) scale(.95); filter: brightness(.6); }
.card-layer.out .card-box { transform: translateY(18px) scale(.97); opacity: 0; }
.card-layer.out .card-dim { opacity: 0; }
html.still .card-box, html.still .card-dim { transition: none; }
.card-bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px 0; pointer-events: none; }
.card-bar > * { pointer-events: auto; }
.card-grab { display: none; }
.card-btn { border: 1px solid rgba(255,255,255,.16); background: rgba(10,10,14,.85); color: var(--text); border-radius: 999px; height: 34px; min-width: 34px; padding: 0 12px; font-weight: 800; font-size: 13px; backdrop-filter: blur(8px); }
.card-x { font-size: 22px; line-height: 1; padding: 0; width: 34px; }
.card-body { padding: 4px 18px 18px; }
.card-loading, .card-missing { padding: 60px 10px; text-align: center; color: var(--muted); }
.card-missing b { color: var(--text); }
.card-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.share-fallback { margin: 34px 0 10px; } .share-fallback label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.share-fallback input { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font: inherit; font-size: 12px; }
@media (max-width: 759px) {
  .card-layer { place-items: end stretch; padding: 0; }
  .card-box { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); }
  .card-layer.out .card-box { transform: translateY(100%); }
  .card-layer.under .card-box { transform: translateY(-8px) scale(.96); }
  .card-grab { display: block; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255,255,255,.25); }
  .card-bar { padding-top: 16px; }
  .card-body { padding: 0 14px 16px; }
}

/* flip (two-step turn so faces can have different heights) */
.cc { position: relative; perspective: 1200px; }
.cc-face { position: relative; }
.cc.flip-out .cc-face:not([hidden]) { animation: turnOut .18s ease-in both; }
.cc.flip-in .cc-face:not([hidden]) { animation: turnIn .2s ease-out both; }
@keyframes turnOut { to { transform: rotateY(90deg); opacity: .4; } }
@keyframes turnIn { from { transform: rotateY(-90deg); opacity: .4; } }
.cc-name { display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 0; }
.cc-name b { font-size: 20px; line-height: 1.15; }
.cc-rank { display: inline-flex; align-items: center; gap: 8px; }
.cc-rank-n { font: 800 30px/1 var(--f-num); color: var(--accent); }
.cc-empty { text-align: center; color: var(--muted); margin: 10px 0 0; }
.inj-tag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(255,77,106,.16); color: var(--down); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.edge.up { color: var(--up); } .edge.down { color: var(--down); } .edge.flat { color: var(--text); }
.st { display: grid; gap: 2px; min-width: 0; }
.st small { color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.st b { font: 800 26px/1.05 var(--f-num); font-variant-numeric: tabular-nums; }
.st b em, .st em { display: block; font: 500 11.5px/1.3 var(--f-body); color: var(--muted); font-style: normal; }
.face.xl, .face.m { border: 2px solid var(--pc); }
.face.xl { width: 120px; height: 120px; } .face.xl b { font-size: 28px; }
.av-xl b { font-size: 26px; }
.pp { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 900; color: #0b0d12; background: var(--pc); }
/* ---------- back of the card ---------- */
.bk { display: grid; gap: 14px; padding-top: 4px; }
.bk-head { display: flex; align-items: center; gap: 12px; } .bk-head .cc-name { justify-items: start; text-align: left; flex: 1; } .bk-head .cc-name b { font-size: 18px; }
.bk .seg { margin: 0; justify-self: start; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-grid .st { padding: 12px; border-radius: 12px; background: var(--card2); border: 1px solid rgba(255,255,255,.06); }
.bk-grid .st b { font-size: 24px; }
.bk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .bk-two { grid-template-columns: 1fr; } }
.bk-block { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); min-width: 0; }
.bk-h { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bk-h .small { text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: auto; }
.bk-pane { display: grid; gap: 14px; }
.bk-pane .note { margin: 0; }
.grade-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.grade { display: inline-grid; place-items: center; min-width: 54px; height: 54px; padding: 0 8px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font: 400 30px/1 var(--f-head); }
.pbar { display: grid; grid-template-columns: 150px 1fr 34px; gap: 10px; align-items: center; margin-top: 6px; font-size: 13px; }
.pbar-t { position: relative; height: 8px; border-radius: 8px; background: var(--track); overflow: visible; }
.pbar-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--bar-fill); }
.pbar-t u { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: rgba(255,255,255,.5); }
.pbar b { text-align: right; font-family: var(--f-num); font-size: 17px; }
@media (max-width: 420px) { .pbar { grid-template-columns: 1fr 34px; } .pbar-t { grid-column: 1 / -1; grid-row: 2; } }
.mini-legend summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-top: 10px; }
.l5 { display: flex; gap: 6px; flex-wrap: wrap; }
.l5-g { display: grid; justify-items: center; min-width: 64px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); }
.l5-g b { font: 800 18px/1 var(--f-num); } .l5-g small { font-size: 10px; color: var(--muted); } .l5-g em { font-style: normal; font-size: 11px; color: var(--muted2); }
.l5-g.w b { color: var(--up); } .l5-g.l b { color: var(--down); }
.pl-chip { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); }
.pl-chip small { color: var(--muted); }
.spark { width: 100%; height: auto; max-height: 64px; }
.shelf { margin-top: 8px; } .shelf:first-child { margin-top: 0; }
.shelf-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.shelf-h span { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--card2); font-size: 11px; }
.shelf-good .shelf-h span { color: #ffb347; } .shelf-bad .shelf-h span { color: var(--down); } .shelf-gold .shelf-h span { color: #ffd27a; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); font-size: 12px; font-weight: 700; text-align: left; }
.badge i { font-style: normal; font-size: 15px; } .badge b { color: var(--accent); }
.shelf-bad .badge { border-color: rgba(255,77,106,.3); } .shelf-gold .badge { border-color: rgba(255,210,122,.45); }
.badge.trophy b { color: #ffd27a; font-weight: 800; }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs-row div { display: grid; padding: 10px 12px; border-radius: 12px; background: var(--card2); }
.vs-row small { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.vs-row b { font: 800 26px/1.1 var(--f-num); }
.owners { margin: 0; }
.starts { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.starts li { padding: 8px 10px; border-radius: 10px; background: var(--card2); }
.counted { color: var(--on-text); font-weight: 800; font-size: 12px; }
.ch { width: 100%; height: auto; display: block; }
.ch-bar { fill: #ff7a1a; opacity: .9; } .ch-best { fill: #fff; } .ch-avg { stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-dasharray: 4 4; }
.ch-x, .ch-y { fill: var(--muted); font: 600 10px Inter, sans-serif; }

/* ===================== Framed cards (design 4 team and player cards): no outer box (AB81) =====================
   The card is the pop-up. Computers: centered. Phones: the front opens centered, the back fills the screen (AB110). */
.card-layer.card-framed { padding: 6px; place-items: center; }
.card-framed .card-box { width: auto; max-width: 100%; max-height: none; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
.card-framed .card-body { padding: 0; }
@media (max-width: 759px) {
  .card-layer.card-framed { place-items: center; padding: 6px; }
  .card-framed .card-box { width: auto; max-height: none; border-radius: 0; padding-bottom: 0; transform: translateY(18px) scale(.97); }
  .card-layer.card-framed.in .card-box { transform: none; }
  .card-layer.card-framed.out .card-box { transform: translateY(18px) scale(.97); }
  .card-layer.card-framed.under .card-box { transform: translateY(-8px) scale(.96); }
}
.card-framed .share-fallback { position: absolute; z-index: 20; left: 16px; right: 16px; top: 30%; margin: 0; padding: 12px; background: rgba(8,8,12,.96); border: 1px solid rgba(255,122,26,.45); }

/* Dark orange scrollbars inside every card, computer and phone (AB81: never a white bar). */
.card-layer, .card-layer * { scrollbar-width: thin; scrollbar-color: rgba(255,122,26,.55) rgba(255,255,255,.04); }
.card-layer ::-webkit-scrollbar { width: 6px; height: 6px; }
.card-layer ::-webkit-scrollbar-track { background: rgba(255,255,255,.03); border-radius: 6px; }
.card-layer ::-webkit-scrollbar-thumb { background: linear-gradient(#ff7a1a99, #ff4d1a66); border-radius: 6px; }
.card-layer ::-webkit-scrollbar-corner { background: transparent; }

/* ===================== Design 4 trading card (design 3 Poster in design 1's metal frame; AB100, AB104, AB108)
   Ported from design\card-mockups\mock.css. Layout rules (README): the inner frame line sits 11px in and nothing comes
   closer than 14px; the back's scroll window starts below the corner cuts and stops above the button bar; numbers,
   names and labels shrink to fit (fitAll in card-kit.js); outlined shapes are layers, never a border cut by a clip. */
.tc-wrap { --cw: min(480px, calc((100vh - 48px - 84px) / 1.4)); /* 84px: the most AB317 adds to the height */ filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 22px rgba(255,122,26,.28)); }
@supports (height: 100dvh) { .tc-wrap { --cw: min(480px, calc((100dvh - 48px - 84px) / 1.4)); } }
.tc { --gold: #ffd27a; --gold2: #ffc46b; --hot: #ffb347; --kick: #ff9a4d; --pc: #ff7a1a; position: relative; width: var(--cw); height: calc(var(--cw) * 1.4); color: #f6f3ee; font-family: var(--f-body); text-align: left; line-height: 1.45; }
.tc.enter { animation: tcIn .42s cubic-bezier(.2,.8,.2,1); }
@keyframes tcIn { from { transform: translateY(26px) rotateX(10deg) scale(.96); opacity: 0; } }
html.still .tc.enter { animation: none; }
@media (max-width: 759px) {
  .tc-wrap { --cw: min(calc(100vw - 12px), calc((100vh - 12px - 84px) / 1.4)); }
  @supports (height: 100dvh) { .tc-wrap { --cw: min(calc(100vw - 12px), calc((100dvh - 12px - 84px) / 1.4)); } }
  .tc.side-back { width: calc(100vw - 12px); height: calc(100vh - 12px); }
  @supports (height: 100dvh) { .tc.side-back { height: calc(100dvh - 12px); } }
}
.tc-in { position: absolute; inset: 0; overflow: hidden; container-type: size; isolation: isolate; }
.tc-edge { position: absolute; inset: 0; pointer-events: none; z-index: 9; }
.tc-edge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tc button { font: inherit; color: inherit; }

/* arena background with the orange slash (design 3) */
.tc-arena { position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, #1a0d06 0%, #0b0907 45%, #050506 100%); }
.tc-arena::after { content: ""; position: absolute; left: -20%; right: -20%; top: 30%; height: 24%; background: linear-gradient(90deg, #ff4d1a, #ff7a1a 50%, #ffb347); transform: rotate(-24deg); opacity: .85; box-shadow: 0 0 10cqw rgba(255,122,26,.5); }
.tc-arena .fl { position: absolute; left: -10%; right: -10%; top: 50%; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,122,26,.35), transparent); }

/* ---------- front */
/* AB163: the corner numbers keep 12px from the inner frame line at the cut corners (5px further in than the mock-up) */
.tc-top { position: absolute; top: calc(19px + 2.4cqw); left: calc(7% + 5px); right: calc(7% + 5px); height: 13%; display: flex; justify-content: space-between; align-items: flex-start; z-index: 3; }
.tc-ovr { display: grid; justify-items: start; align-content: center; max-width: 28cqw; }
.tc-ovr b { font: 800 12cqw/0.9 var(--f-num); color: #fff; text-shadow: 0 0 3cqw rgba(255,122,26,.9); white-space: nowrap; }
.tc-ovr small { font: 800 2.7cqw/1 var(--f-num); letter-spacing: .14em; color: var(--gold); }
.tc-season { margin-top: 1.4cqw; padding: 1cqw 1.6cqw; font: 700 2.7cqw/1 var(--f-num); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold2); white-space: nowrap; }
.tc-rank { display: grid; justify-items: end; align-content: center; padding: 0 1.5cqw; }
.tc-rank b { font: 800 12cqw/0.95 var(--f-num); color: var(--gold); text-shadow: 0 0 3cqw rgba(255,196,107,.7); }
.tc-rank.is-pos b { color: var(--pc); text-shadow: 0 0 2.4cqw var(--pc); }
.tc-mv { font: 800 3cqw/1 var(--f-num); letter-spacing: .04em; }
.tc-mv.up { color: var(--up); } .tc-mv.dn { color: var(--down); } .tc-mv.eq { color: var(--muted); }
.tc-hero { position: absolute; top: 8.5%; left: 0; right: 0; height: 46%; display: grid; place-items: center; z-index: 1; }
.tc-pic { position: relative; display: grid; place-items: center; }
.tc-pic img { position: relative; z-index: 1; display: block; }
.tc-pic:has(img) .tc-ini { display: none; }
.tc-ini { position: absolute; inset: 0; display: grid; place-items: center; font: 400 22cqw/1 var(--f-head); color: #fff; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--pc) 85%, #fff 15%), color-mix(in srgb, var(--pc) 55%, #000)); }
.tc-pic.is-round { width: 50cqw; height: 50cqw; border-radius: 50%; padding: 1.6cqw; background: linear-gradient(#ffd27a, #b87420); box-shadow: 0 0 6cqw rgba(255,122,26,.55), 0 0 18cqw rgba(255,122,26,.25); }
.tc-pic.is-round img, .tc-pic.is-round .tc-ini { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tc-pic.is-round .tc-ini { inset: 1.6cqw; width: auto; height: auto; }
.tc-pic.is-cut { width: 92cqw; height: 100%; }
.tc-pic.is-cut img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; -webkit-mask-image: radial-gradient(70% 72% at 50% 42%, #000 58%, transparent 80%); mask-image: radial-gradient(70% 72% at 50% 42%, #000 58%, transparent 80%); filter: drop-shadow(0 0 4cqw rgba(255,122,26,.5)) saturate(1.08) contrast(1.05); }
.tc-pic.is-cut .tc-ini { inset: 12% 22%; border-radius: 50%; }
.tc-ghost { position: absolute; z-index: -1; top: -6%; font: 400 92cqw/0.8 var(--f-head); color: transparent; -webkit-text-stroke: .5cqw rgba(255,122,26,.35); pointer-events: none; }

.tc-band { position: absolute; left: 0; right: 0; top: 54%; height: 14.5%; z-index: 4; display: grid; align-items: center; transform: skewY(-6deg); }
.tc-band::before { content: ""; position: absolute; inset: 0 -2%; z-index: -1; background: #0b0a0c; border-bottom: 1.2cqw solid var(--accent); box-shadow: 0 -1px 0 rgba(255,210,122,.6); }
.tc-band-in { display: grid; justify-items: start; gap: 1.2cqw; padding: 0 9%; min-width: 0; }
.tc-nm { font: 400 calc(min(15cqw, 170cqw / var(--len, 10)))/0.92 var(--f-head); text-transform: uppercase; letter-spacing: .01em; color: #fff; white-space: nowrap; }
.tc-sub { font: 700 3cqw/1.1 var(--f-num); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.tc-sub u { text-decoration: none; color: #fff; }
.tc-inj { color: var(--down); }

/* award seal: drawn as layers (AB104), above the band and clear of the round picture */
.tc-seal { --seal-in: .78; position: absolute; z-index: 5; right: 6%; bottom: 51.4%; width: 19cqw; height: 19cqw; display: grid; place-items: center; align-content: center; gap: .3cqw; text-align: center; padding: 0; border-radius: 50%; background: radial-gradient(circle closest-side, #1a1208 0 78%, #b87420 80%, #ffd27a 88%, #6b3a0a 95.5%, transparent 97%); }
.tc-seal b { font: 800 5.6cqw/1 var(--f-num); color: var(--gold); }
.tc-seal span { width: 13cqw; font: 700 max(7.5px, 1.95cqw)/1.05 var(--f-num); letter-spacing: .05em; text-transform: uppercase; color: #f6e7cf; }
/* AB226: on the player back the seal sits in the flow, to the right of the Best game row (past seasons and Career). */
.tc-info.has-seal { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 3cqw; }
.tc-seal.is-back { position: relative; z-index: auto; right: auto; bottom: auto; width: max(64px, 17cqw); height: max(64px, 17cqw); margin: 1.2cqw 0; }
.tc-seal.is-back b { font-size: max(15px, 5cqw); }
.tc-seal.is-back span { width: max(46px, 12cqw); }
/* AB244: on computers the player seal words (front and back) never render below about 9px; the back seal grows a little
   to fit them. Phones keep the sizes above. */
@media (min-width: 760px) {
  .tc-seal.is-pl span { font-size: max(9px, 1.95cqw); }
  .tc-seal.is-pl.is-back { width: max(64px, 19.5cqw); height: max(64px, 19.5cqw); }
  .tc-seal.is-pl.is-back span { width: max(46px, 13.5cqw); }
}

.tc-stats { position: absolute; left: 7%; right: 7%; height: 14cqw; bottom: calc(14px + 1.6cqw + max(40px, 9cqw) + 1.6cqw + 3.6cqw + 1.6cqw); z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.tc-sc { display: grid; justify-items: center; align-content: center; gap: .4cqw; min-width: 0; padding: 0 1.6cqw; }
.tc-sc + .tc-sc { border-left: 1px solid rgba(255,210,122,.25); }
.tc-sc small { font: 700 2.5cqw/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.tc-sc b { font: 800 8cqw/1 var(--f-num); color: #fff; text-shadow: 0 0 2cqw rgba(255,122,26,.9), 0 0 6cqw rgba(255,122,26,.5); white-space: nowrap; }
.tc-sc b .tc-mv { font-size: .45em; vertical-align: .55em; margin-left: .1em; }
.tc-sc b .edge.up { color: var(--up); } .tc-sc b .edge.down { color: var(--down); }
.tc-sc em { font: 600 2.2cqw/1 var(--f-body); font-style: normal; color: var(--muted); white-space: nowrap; }
.tc-tag { position: absolute; left: 8%; right: 8%; bottom: calc(16px + 1.6cqw + max(40px, 9cqw) + 1.6cqw); z-index: 4; text-align: center; font: italic 700 2.7cqw/1.2 var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: #e9dcc8; display: flex; justify-content: center; }
.tc-tag span { white-space: nowrap; }

/* buttons inside the frame. C6-B Q1: every pill keeps 12px from the inner frame line, cut corners included (moved
   4px up and 8px in on the front, 4px up and 10px in on the back; the tagline 2px up, the stats stay; test-cc-cards
   rule 3c) */
.tc-act { position: absolute; z-index: 6; left: calc(7.5% + 8px); right: calc(7.5% + 8px); bottom: calc(18px + 1.6cqw); height: max(40px, 9cqw); display: grid; grid-template-columns: 1fr 1.25fr 1.15fr 1fr; gap: 1.4cqw; }
.tc-act.n3 { grid-template-columns: 1fr 1.25fr 1fr; }
.tc-act .tc-b { display: flex; align-items: center; justify-content: center; gap: 1.2cqw; width: auto; min-width: 0; min-height: 40px; padding: 0 1.2cqw; border: 1px solid rgba(255,210,122,.35); border-radius: 999px; background: rgba(0,0,0,.55); font: 800 3.1cqw/1 var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: #f1ece4; text-align: center; text-decoration: none; cursor: pointer; }
.tc-act .tc-b i { font-style: normal; font-size: 3.3cqw; color: var(--kick); flex: none; }
.tc-act .tc-b span { white-space: nowrap; }
.tc .tc-act .a-flip { background: linear-gradient(180deg, #ff8a2e, #e8600c); color: #170800; border-color: #ffb347; box-shadow: 0 0 4cqw rgba(255,122,26,.45); }
.tc .tc-act .a-flip i { color: #170800; }
.tc-act .tc-b:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }

/* ---------- back */
/* AB163: text scrolling under the top of the window keeps 12px from the cut corners, and the window keeps 10px
   side padding inside it (.tc-scroll) on phones */
.tc.side-back .tc-in { display: flex; flex-direction: column; padding: calc(var(--cut, 16px) + 16px) 14px 0; background: linear-gradient(170deg, #1d0f06, #09090b 40%); }
.tc.side-back .tc-act { position: relative; left: auto; right: auto; bottom: auto; height: auto; flex: none; margin: 0 calc(7.5cqw - 4px) calc(18px + 1.6cqw); padding-top: 2.4cqw; border-top: 1px solid rgba(255,210,122,.22); }
.tc.side-back .tc-act .tc-b { min-height: 42px; font-size: max(12px, 2.9cqw); }
.tc-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 2.4cqw max(10px, calc(5.5cqw - 14px)) 4cqw; display: flex; flex-direction: column; gap: 3.4cqw; font-size: max(12.5px, 3.1cqw); -webkit-mask-image: linear-gradient(transparent, #000 2.4cqw, #000 calc(100% - 3cqw), transparent); mask-image: linear-gradient(transparent, #000 2.4cqw, #000 calc(100% - 3cqw), transparent); }
.tc-scroll > * { flex: none; }
.tc-bh { display: grid; grid-template-columns: auto 1fr; gap: 4cqw; align-items: center; }
.tc-pennant { --pc: var(--gold); --pn-body: .78; position: relative; isolation: isolate; width: 20cqw; min-width: 72px; height: 27cqw; min-height: 97px; padding: 0 1cqw calc(max(27cqw, 97px) * .22); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .4cqw; text-align: center; }
.tc-pennant::before, .tc-pennant::after { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); }
.tc-pennant::before { background: var(--pc); }
.tc-pennant::after { inset: 2px 2px 2.8px; background: linear-gradient(180deg, #121217, #0a0a0e); }
.tc-pennant small { font: 700 max(12px, 2.4cqw)/1 var(--f-num); letter-spacing: .18em; text-transform: uppercase; color: #ddd; }
.tc-pennant b { font: 400 min(13cqw, 60px)/1 var(--f-head); color: var(--pc); text-shadow: 0 0 3cqw color-mix(in srgb, var(--pc) 60%, transparent); }
/* AB489 (AB313): the low line ("Lock 38.3", "Not started", "No games yet") keeps the 12 px floor at 360. */
.tc-pennant span { font: 700 max(12px, 2.4cqw)/1 var(--f-num); color: #ccc; }
.tc-pennant .tc-mv { font-size: max(12px, 2.4cqw); }
.tc.k-player .tc-pennant { --pc: inherit; }
.tc-bhn { display: grid; gap: 1cqw; min-width: 0; }
.tc-kick { font: 700 max(12px, 2.4cqw)/1 var(--f-num); letter-spacing: .2em; text-transform: uppercase; color: var(--kick); }
.tc-bhn b { font: 400 min(9.5cqw, 46px)/0.95 var(--f-head); text-transform: uppercase; overflow-wrap: anywhere; }
.tc-slant { justify-self: start; padding: 1.2cqw 4cqw; font: 800 max(12px, 2.8cqw)/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: #170800; background: linear-gradient(90deg, #ff7a1a, #ffb347); clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); }
.tc-info { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.10); }
.tc-ir { display: grid; grid-template-columns: 7cqw 34% 1fr; gap: 2cqw; align-items: center; padding: 1.9cqw 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.tc-ir > i { font-style: normal; display: grid; place-items: center; width: 6.4cqw; height: 6.4cqw; min-width: 22px; min-height: 22px; border: 1px solid rgba(255,122,26,.45); color: var(--hot); font-size: max(12px, 2.8cqw); line-height: 1; }
.tc-ir > span { font: 700 max(12px, 2.7cqw)/1.1 var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: #d9d2c8; }
.tc-ir > b { font-weight: 700; font-size: max(12px, 3cqw); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.tc-ir > b small, .tc-ir > b u { font-weight: 500; color: var(--muted); text-decoration: none; font-size: .9em; }
.tc-ir > b u { color: var(--kick); }
.tc-link { display: inline; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; text-decoration: underline dotted rgba(255,154,77,.6); text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
.tc .pl-chip.tc-link { display: inline; width: auto; padding: 0; border: 0; border-radius: 0; background: none; }
.tc-seg { display: flex; gap: 1cqw; padding: 1cqw; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); }
.tc-seg button { flex: 1 1 auto; min-width: 0; white-space: nowrap; border: 0; background: none; padding: 1.8cqw 1cqw; border-radius: 999px; font: 800 max(12px, 2.9cqw)/1 var(--f-num); letter-spacing: .06em; color: var(--muted); text-align: center; cursor: pointer; }
.tc-seg button.on { background: var(--accent); color: #170800; }
.tc-strip { position: relative; padding: 3cqw 2.4cqw 3.4cqw; background: linear-gradient(180deg, #f3eee6, #dcd5cb); color: #1a1410; clip-path: polygon(0 0, 100% 0, 100% 100%, 4cqw 100%, 0 calc(100% - 4cqw)); }
.tc-strip-h { display: flex; align-items: center; justify-content: center; gap: 2cqw; text-align: center; font: 800 max(12px, 3.1cqw)/1 var(--f-num); letter-spacing: .16em; text-transform: uppercase; color: #1a1410; margin-bottom: 2.4cqw; }
.tc-strip-h i { flex: none; width: 6cqw; height: 3px; background: var(--accent); }
.tc-strip-h span { white-space: nowrap; min-width: 0; }
.tc-strip-h span.fit-wrap { white-space: normal; line-height: 1.25; }
.tc-strip-g { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 2.8cqw; }
.tc-strip-g > div { display: grid; justify-items: center; align-content: center; gap: 1.2cqw; min-width: 0; padding: 0 1cqw; border-left: 1px solid rgba(0,0,0,.12); }
.tc-strip-g > div:nth-child(3n+1) { border-left: 0; }
.tc-strip-g small { font: 700 max(12px, 2.2cqw)/1 var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: #4a4038; text-align: center; white-space: nowrap; }
.tc-strip-g b { font: 800 max(15px, 4.9cqw)/1 var(--f-num); color: #e8600c; white-space: nowrap; }
.tc-strip-g .is-na b { color: #8a7f78; font-size: max(12px, 3.2cqw); font-weight: 700; }
.tc-bk { display: grid; gap: 2cqw; padding: 3cqw 0 0; background: transparent; border: 0; border-top: 1px solid rgba(255,210,122,.3); min-width: 0; }
.tc-bk h3 { margin: 0; font: 400 max(15px, 4.2cqw)/1 var(--f-head); text-transform: uppercase; letter-spacing: .03em; color: var(--gold); }
.tc-bk h3 button.info { vertical-align: 2px; }
.tc-muted { margin: 0; color: var(--muted); }
.tc-small { font-size: max(12px, 2.5cqw); margin: 0; }
.tc-nt { color: var(--muted); font-size: .8em; font-weight: 600; }
.tc-grade-row { display: flex; gap: 3cqw; align-items: center; }
.tc-grade { font: 400 12cqw/1 var(--f-head); color: var(--hot); text-shadow: 0 0 3cqw rgba(255,122,26,.6); min-width: 10cqw; }
.tc-grade-row.is-ghost .tc-grade { color: #5c5c66; text-shadow: none; }
.tc-pbar { display: grid; grid-template-columns: 38% 1fr auto; gap: 2cqw; align-items: center; font-size: max(12px, 2.8cqw); }
.tc-pt { position: relative; height: 2.2cqw; min-height: 8px; background: rgba(255,255,255,.08); border-radius: 9px; }
.tc-pt i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ff4d1a, #ffb347); border-radius: 9px; }
.tc-pt u { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: rgba(255,255,255,.5); }
.tc-pbar > b { font: 800 max(14px, 3.6cqw)/1 var(--f-num); text-align: right; min-width: 7cqw; }
.tc-pbar .tc-nt { font-size: max(12px, 2.4cqw); }
.tc-na { margin: 0; text-align: center; padding: 2cqw 2.6cqw; border: 1px dashed rgba(255,179,71,.45); color: #d8c8b2; font-size: max(12px, 2.6cqw); line-height: 1.35; background: rgba(255,122,26,.05); }
.tc-na b { color: var(--hot); }
.tc-l5 { display: flex; gap: 1.6cqw; flex-wrap: wrap; }
.tc-l5 .tc-g { display: grid; justify-items: center; align-content: center; text-align: center; padding: 1.6cqw 2.6cqw; border: 1px solid; min-width: 17cqw; background: none; cursor: pointer; }
.tc-l5 .tc-g.w { border-color: rgba(54,240,143,.5); background: rgba(54,240,143,.08); } .tc-l5 .tc-g.l { border-color: rgba(255,77,106,.5); background: rgba(255,77,106,.08); } .tc-l5 .tc-g.t { border-color: rgba(255,255,255,.25); }
.tc-l5 b { font: 800 max(16px, 4.6cqw)/1 var(--f-num); } .tc-l5 .w b { color: var(--up); } .tc-l5 .l b { color: var(--down); }
.tc-l5 small { font-size: max(12px, 2.3cqw); color: var(--muted); } .tc-l5 em { font: 700 max(12px, 2.6cqw)/1 var(--f-num); font-style: normal; }
.tc-shelf { display: grid; gap: 1.6cqw; padding-top: 1.4cqw; }
.tc-shelf-h { display: flex; justify-content: space-between; font: 800 max(12px, 3cqw)/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; }
.tc-shelf-h span { color: var(--hot); }
.s-gold .tc-shelf-h { color: var(--gold); } .s-good .tc-shelf-h { color: #f1e4d2; } .s-bad .tc-shelf-h { color: #ff8a9b; }
.tc-badges { display: flex; flex-wrap: wrap; gap: 1.4cqw; }
.tc-badge { display: inline-flex; align-items: center; gap: 1.6cqw; padding: 1.2cqw 2.2cqw; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); font-size: max(12px, 2.6cqw); line-height: 1.3; text-align: center; max-width: 100%; cursor: pointer; }
span.tc-badge { cursor: default; }
.tc-badge b { font: 800 max(13px, 3.2cqw)/1 var(--f-num); color: var(--hot); }
.tc-badge i { font-style: normal; }
.s-bad .tc-badge { border-color: rgba(255,77,106,.35); } .s-bad .tc-badge b { color: #ff8a9b; }
.s-gold .tc-badge { border-color: rgba(255,210,122,.45); background: rgba(255,196,107,.08); }
.tc-about { margin: 0; line-height: 1.45; color: #e6dfd5; font-size: max(12.5px, 3cqw); }
.tc-trail .spark { display: block; width: 100%; max-height: 64px; }
.tc-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; }
.tc-vs > div { display: grid; justify-items: center; text-align: center; gap: 1cqw; padding: 2cqw; background: rgba(255,255,255,.05); }
.tc-vs small { font: 700 max(12px, 2.4cqw)/1 var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: #d9d2c8; }
.tc-vs b { font: 800 max(18px, 5cqw)/1 var(--f-num); }
.tc-stale .stale-note { margin: 0; }
.tc .ch { width: 100%; height: auto; display: block; }
.tc .mini-legend { margin: 0; }
.tc .mini-legend summary { margin-top: 0; }

/* game log and season box score: two lines per game so every column fits a phone (AB104) */
.tc-gl { display: grid; gap: 1.2cqw; font: 700 max(12.5px, 3.1cqw)/1 var(--f-num); }
.tc-glh, .tc-glg { display: grid; gap: 3px; padding: 3px 3px 3px 4px; border-left: 3px solid transparent; }
.tc-r1, .tc-r2 { display: grid; gap: 3px; }
.tc-gl-log .tc-r1 { grid-template-columns: 9% 15% 14% 19% 1fr; }
.tc-gl-sea .tc-r1 { grid-template-columns: 1.4fr .8fr 1fr; }
.tc-r2 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.tc-c { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: max(28px, 7cqw); padding: 0 3px; border-radius: 3px; background: rgba(22,24,34,.95); color: #eef0f4; text-align: center; }
.tc-c > span { white-space: nowrap; }
.tc-r2 .tc-c { min-height: max(24px, 5.8cqw); font-size: max(12px, 2.8cqw); background: rgba(255,255,255,.045); }
.tc-glh .tc-c { min-height: max(18px, 4.4cqw); background: none; font-weight: 800; letter-spacing: .06em; color: #cfd2da; }
.tc-glh .tc-r2 .tc-c { color: #9ea2b0; }
.tc-glg.odd { background: rgba(80,110,180,.12); }
.tc-glg.is-cnt { border-left-color: var(--accent); }
.tc-gl .tc-c.gc { color: #141414; }
.tc-gl .tc-c.gc-g { background: #9edcaa; } .tc-gl .tc-c.gc-y { background: #f2d47e; } .tc-gl .tc-c.gc-r { background: #ee9aa1; }
.tc-gl .tc-c.gc-g, .tc-gl .tc-c.gc-y, .tc-gl .tc-c.gc-r { color: #141414; }
.tc-gl .tc-c.best { box-shadow: inset 0 0 0 2px #fff; }
.tc-c.cnt { color: var(--hot); font-size: max(12px, 2.8cqw); }
.tc-c.cnt i { font-style: normal; margin-right: 3px; }
.tc-c.empty { background: rgba(255,255,255,.02); }
.tc-c.miss { color: #6a6e80; }
.tc-glg.on { background: rgba(255,122,26,.14); }
.tc-glg.car .tc-c { color: var(--hot); }
.tc-legend { display: flex; flex-wrap: wrap; gap: 1.2cqw 3cqw; font-size: max(12px, 2.4cqw); color: var(--muted); }
.tc-legend span { display: inline-flex; align-items: center; }
.tc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.tc-legend i.gc-g { background: #9edcaa; } .tc-legend i.gc-y { background: #f2d47e; } .tc-legend i.gc-r { background: #ee9aa1; }
.tc-legend i.lk, .tc-legend i.lg-cnt { background: var(--accent); width: 4px; }
.tc-legend i.lg-cnt { width: 10px; }
.tc-legend i.bg { box-shadow: inset 0 0 0 2px #fff; background: #f2d47e; }
.tc-legend i.lg-dot { background: #fff; border-radius: 50%; }
.tc-legend i.lg-avg { height: 2px; background: rgba(255,255,255,.55); }

/* team page: past seasons as averages (team.js, card redesign item 3) */
.tm-avg-h { flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.tm-avg-h .seg { flex-wrap: wrap; max-width: 100%; margin-bottom: 0; }
.tm-avg .dtile b .muted { font-size: 17px; font-weight: 700; }
.tm-avg .dtile em .hw .hw-t { font-size: max(12px, .82em); text-transform: none; letter-spacing: 0; } /* AB598, AB313: the team name never under 12 px, 2 lines at most */

/* AB148: the current handle with that season's team name small underneath (every page and card) */
.hw { display: inline-flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.15; vertical-align: middle; }
.hw .hw-h { font-weight: 700; overflow-wrap: anywhere; }
.hw .hw-t { display: block; font-size: .82em; font-weight: 500; color: var(--muted); overflow-wrap: anywhere; }
.tc-ir > b .hw { align-items: flex-end; text-align: right; }
.tc-ir > b .hw .hw-t { color: var(--muted); }
.who-t.hw { align-items: flex-start; }

/* power trail (AB131, AB132, AB134): one line over every season, a tick between seasons */
.ptrail-svg { display: block; width: 100%; height: 64px; }
.ptrail-svg .ptrail-tick { stroke: rgba(255,255,255,.16); stroke-width: 1; stroke-dasharray: 3 3; }
.ptrail-svg path { vector-effect: non-scaling-stroke; }
.tc-ptl { list-style: none; margin: 1.6cqw 0 0; padding: 0; display: grid; gap: .8cqw; }
.tc-ptl li { display: flex; gap: 2cqw; align-items: baseline; font-size: max(12px, 2.7cqw); color: #e6dfd5; }
.tc-ptl b { font: 800 max(12px, 2.9cqw)/1 var(--f-num); letter-spacing: .06em; color: var(--hot); min-width: 16cqw; }
.tc-ptl em { font-style: normal; color: var(--kick); }
.tm-power .ptrail-svg { height: 110px; max-width: 760px; }
.tm-ptl { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.tm-ptl b { font-family: var(--f-num); color: #ffb347; margin-right: 8px; }
.tm-ptl em { font-style: normal; color: #ff9a4d; }
.tc-ir > .hw { font: 700 max(12px, 2.9cqw)/1.15 var(--f-body); letter-spacing: 0; text-transform: none; color: #f1e9de; }
.tc-ir > .hw .hw-t { font-size: .86em; }
.ac-weeks .hw { margin-left: 6px; }

/* ===================== Living cards (AB106 batch 1, AB135 to AB143, AB163, AB216, AB219; js/cards/living.js) =====
   The opened design 4 team and player cards: rarity tier by this week's rank (Base steel silver, Rare electric blue,
   Epic crimson red, Legendary deep purple with gold), flame or frost streak edges, holo foil and glare that follow the
   tilt. No glitter dots (AB142). Only transform and opacity animate. Motion off or reduced motion: still, look kept.
   Look reference: design/feature-mockups/fm-cards.css (class names mapped to the site card). */
.card-layer.card-framed { overflow: clip; } /* flame tongues and light rays never widen or scroll the page */
.lc { position: relative; width: var(--cw); }
.lc .tc { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.lc .tc.held { transition: transform .12s ease-out; } /* AB216: settles flat at once over a button */
.lc .tc.side-back { transform: none; will-change: auto; }
.tc.tap-flip { cursor: pointer; }
.tc.tap-flip .tc-scroll { cursor: auto; }
html.still .lc .tc { transform: none; transition: none; }

/* tier palette: --t1 main, --t2 light (labels), --t3 deep (poster wedge end), --tg glow */
.lc.tier-base { --t1: #aab3be; --t2: #e6ebf0; --t3: #4a525d; --tg: rgba(201,208,217,.5); }
.lc.tier-rare { --t1: #2f8bff; --t2: #9fd8ff; --t3: #0b3b8f; --tg: rgba(47,139,255,.7); }
.lc.tier-epic { --t1: #e0123a; --t2: #ff9aa8; --t3: #6b0a1c; --tg: rgba(224,18,58,.7); }
.lc.tier-legendary { --t1: #8a2be2; --t2: #ffd27a; --t3: #3b0c6b; --tg: rgba(155,77,255,.8); }
.lc.tier-base { filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 18px rgba(201,208,217,.25)); }
.lc.tier-rare { filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 22px rgba(47,139,255,.5)); }
.lc.tier-epic { filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 22px rgba(224,18,58,.5)); }
.lc.tier-legendary { filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 26px rgba(155,77,255,.6)); }

/* the poster wedge, labels and numbers take the tier color (the approved layout stays the same) */
.lc .tc-arena { background: linear-gradient(160deg, color-mix(in srgb, var(--t3) 45%, #0b0907) 0%, #0b0907 45%, #050506 100%); }
.lc .tc-arena::after { background: linear-gradient(90deg, var(--t3), var(--t1) 50%, var(--t2)); box-shadow: 0 0 10cqw var(--tg); }
.lc.tier-base .tc-arena::after { background: linear-gradient(90deg, #5d6672, #aab3be 50%, #e6ebf0); }
.lc.tier-legendary .tc-arena::after { background: linear-gradient(90deg, #3b0c6b, #8a2be2 45%, #c18bff 70%, #ffd27a); }
.lc .tc-arena .fl { background: radial-gradient(closest-side, color-mix(in srgb, var(--t1) 35%, transparent), transparent); }
.lc .tc-ovr b { text-shadow: 0 0 3cqw var(--tg); }
.lc .tc-ovr small, .lc .tc-band .tc-sub, .lc .tc-sc small, .lc .tc-rank:not(.is-pos) b { color: var(--t2); }
.lc .tc-rank:not(.is-pos) b { text-shadow: 0 0 3cqw var(--tg); }
.lc .tc-season { color: var(--t2); border-bottom-color: var(--t1); }
.lc .tc-band::before { border-bottom-color: var(--t1); box-shadow: 0 -1px 0 color-mix(in srgb, var(--t2) 60%, transparent); }
.lc .tc-sc b { text-shadow: 0 0 2cqw var(--tg), 0 0 6cqw color-mix(in srgb, var(--t1) 40%, transparent); }
.lc .tc-sc + .tc-sc { border-left-color: color-mix(in srgb, var(--t1) 40%, transparent); }
.lc .tc-pic.is-round { background: linear-gradient(var(--t2), var(--t1) 55%, var(--t3)); box-shadow: 0 0 6cqw var(--tg); }
/* AB337 + AB574, look B (design\feature-mockups\crown-logo.css): the reigning champion's gold ring outside the tier ring,
   with its dark outline (bare gold falls to 1.0:1), and a smaller crown seated on the ring at the top, clear of the tab */
.tc-pic.is-round:has(> .tc-crown), .lc .tc-pic.is-round:has(> .tc-crown) { box-shadow: 0 0 0 .7cqw #140b02, 0 0 0 2cqw #ffc46b, 0 0 0 2.5cqw #6b3f0c, 0 0 6cqw rgba(255,196,107,.55), 0 0 16cqw rgba(255,122,26,.25); }
.tc-crown { position: absolute; z-index: 3; left: 36%; top: -15%; width: 28%; color: #ffd27a; pointer-events: none; filter: drop-shadow(0 0 .4cqw rgba(0,0,0,.9)) drop-shadow(0 0 2cqw rgba(255,210,122,.55)); }
.tc-crown svg { display: block; width: 100%; height: auto; overflow: visible; }
.tc-crown path, .tc-crown rect { stroke: #1a0d00; stroke-width: 3.5; }
/* earlier titles: one small muted crown each (12 px tall) in a dark pill under the logo, no glow (AB329, AB330). The pill
   sits in the picture area (.tc-hero, which starts at --pic-top), 18 px tall and centred in the gap between the logo
   (ends at 57.2cqw) and the name band's edge (63.7cqw), so it touches neither (the mock-up's 20 px pill at 57.6cqw
   reached 1 px into the band at 360) */
.tc-titles { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); top: calc(60.45cqw - 9px); display: flex; gap: 3px; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.62); border: 1px solid rgba(255,210,122,.25); pointer-events: none; }
.tc-titles i { display: block; width: 17px; height: 12px; color: #b8964a; }
.tc-titles i svg { display: block; width: 100%; height: 100%; }
.lc .tc-ghost { -webkit-text-stroke-color: color-mix(in srgb, var(--t1) 40%, transparent); }
.lc .tc-season:has(.tc-gem)::after { content: ""; display: inline-block; width: 1.7cqw; margin-left: 1.4cqw; } /* keeps the words centered */
.tc-gem { display: inline-block; width: 1.7cqw; height: 1.7cqw; margin-right: 1.4cqw; transform: rotate(45deg) translateY(-.2cqw); vertical-align: middle; background: linear-gradient(135deg, var(--t2, #ffd27a), var(--t1, #ff7a1a)); box-shadow: 0 0 1.5cqw var(--tg, rgba(255,122,26,.5)); }

/* holo foil and glare: the light follows the tilt (--mx --my). One smooth sheen per tier, no dots. The layers draw
   with ::before and ::after only and sit under the action row and the frame (AB219: buttons above any glow). */
.lc .tc-holo, .lc .tc-glare { position: absolute; inset: 0; z-index: 7; pointer-events: none; } /* clipped by the card */
.lc .tc-holo::before, .lc .tc-glare::before { content: ""; position: absolute; inset: 0; }
.lc .tc-glare::before { background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.16), transparent 42%); mix-blend-mode: soft-light; }
.lc .tc-holo::before { mix-blend-mode: screen; background-size: 260% 260%; background-position: var(--mx, 50%) var(--my, 50%); }
.lc.tier-base .tc-holo::before { opacity: .7; background-image: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.10) 48%, rgba(220,226,234,.06) 53%, transparent 62%); }
.lc.tier-rare .tc-holo::before { opacity: .9; background-image: linear-gradient(115deg, transparent 30%, rgba(80,200,255,.16) 44%, rgba(160,230,255,.14) 50%, rgba(47,139,255,.12) 56%, transparent 70%); }
.lc.tier-epic .tc-holo::before { opacity: .9; background-image: linear-gradient(115deg, transparent 30%, rgba(255,60,90,.16) 44%, rgba(255,170,150,.12) 50%, rgba(224,18,58,.14) 56%, transparent 70%); }
.lc.tier-legendary .tc-holo::before { background-image: linear-gradient(115deg, transparent 24%, rgba(155,77,255,.20) 38%, rgba(255,120,220,.12) 46%, rgba(255,210,122,.20) 54%, rgba(120,200,255,.10) 60%, transparent 74%); }
.lc .tc.side-back .tc-holo, .lc .tc.side-back .tc-glare { display: none; } /* the back is for reading */
.lc .tc-act { z-index: 8; }
/* Legendary: a holographic prism band sweeps across the foil, purple to gold */
.lc.tier-legendary .tc-holo::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; background: linear-gradient(90deg, transparent, rgba(155,77,255,.35) 25%, rgba(255,140,220,.30) 45%, rgba(255,210,122,.40) 62%, rgba(120,220,255,.22) 80%, transparent); transform: translateX(0) skewX(-18deg); animation: lvPrism 3.6s cubic-bezier(.45,.05,.35,1) infinite; }
@keyframes lvPrism { 0% { transform: translateX(0) skewX(-18deg); } 55%, 100% { transform: translateX(380%) skewX(-18deg); } }
/* Legendary: gold light rays turning behind the card */
.lc.tier-legendary::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--cw) * 1.9); height: calc(var(--cw) * 1.9); margin: calc(var(--cw) * -.95) 0 0 calc(var(--cw) * -.95); z-index: -2; pointer-events: none; background: repeating-conic-gradient(from 0deg, rgba(255,210,122,.30) 0 5deg, transparent 5deg 14deg, rgba(155,77,255,.22) 14deg 18deg, transparent 18deg 30deg); -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 72%); mask-image: radial-gradient(closest-side, #000 30%, transparent 72%); animation: lvRays 24s linear infinite; }
.cc-back .lc.tier-legendary::before { display: none; }
@keyframes lvRays { to { transform: rotate(360deg); } }
/* Legendary: a slow light runs around the frame */
.tc-edge .chase { stroke-dasharray: .07 .93; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px #ffd27a); animation: lvChase 5s linear infinite; }
.tc-edge .chase.c2 { stroke-dasharray: .12 .88; opacity: .45; filter: blur(2px); animation-delay: -.12s; }
@keyframes lvChase { to { stroke-dashoffset: 0; } }

/* streak edges: flame (hot) and frost (cold) */
.lc .fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lc .fx::before { content: ""; position: absolute; inset: 3%; border-radius: 6%; }
.cc-back .lc .fx i, .cc-back .lc .fx b { display: none; } /* the back keeps the glow only, so the text stays clear */
.fx-flame::before { box-shadow: 0 0 calc(var(--cw) * .09) calc(var(--cw) * .025) rgba(255,90,26,.6), 0 calc(var(--cw) * -.04) calc(var(--cw) * .14) rgba(255,140,40,.35); }
.fx-flame i { position: absolute; width: 17%; height: 15%; margin-left: -8.5%; border-radius: 50% 50% 42% 42%; background: radial-gradient(ellipse at 50% 92%, #fff3cf 0%, #ffb347 18%, #ff7a1a 40%, rgba(255,77,26,.55) 58%, transparent 72%); filter: blur(calc(var(--cw) * .012)); transform-origin: 50% 100%; transform: rotate(var(--r)) scaleY(.85); animation: lvTongue var(--d, .9s) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.17s); }
@keyframes lvTongue { 0% { transform: rotate(var(--r)) scaleY(.7) scaleX(1.05); opacity: .75; } 100% { transform: rotate(var(--r)) scaleY(1.15) scaleX(.9); opacity: 1; } }
.fx-flame b { position: absolute; top: 2%; left: calc(8% + var(--i) * 9%); width: 4px; height: 4px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 6px 2px rgba(255,140,40,.9); opacity: 0; animation: lvEmber 2.4s linear infinite; animation-delay: calc(var(--i) * -.37s); }
@keyframes lvEmber { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(calc((var(--i) - 5) * 3px), calc(var(--cw) * -.16)); opacity: 0; } }
.lc.st-flame .tc-tag { color: #ffd9a8; text-shadow: 0 0 1.6cqw rgba(255,90,26,.9); }
.fx-frost::before { box-shadow: 0 0 calc(var(--cw) * .08) calc(var(--cw) * .02) rgba(59,155,255,.5), 0 0 calc(var(--cw) * .16) rgba(159,210,255,.25); }
.fx-frost i { position: absolute; width: 34%; height: 24%; border-radius: 50%; background: radial-gradient(closest-side, rgba(159,210,255,.55), transparent); filter: blur(calc(var(--cw) * .02)); animation: lvMist 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.9s); }
.fx-frost i:nth-child(1) { left: -10%; top: -6%; } .fx-frost i:nth-child(2) { right: -10%; top: -6%; } .fx-frost i:nth-child(3) { left: -12%; top: 40%; }
.fx-frost i:nth-child(4) { right: -12%; top: 40%; } .fx-frost i:nth-child(5) { left: -8%; bottom: -6%; } .fx-frost i:nth-child(6) { right: -8%; bottom: -6%; }
@keyframes lvMist { from { opacity: .45; transform: scale(.9); } to { opacity: 1; transform: scale(1.1); } }
.lc .frost-rim { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--cw) * 1.4); z-index: 2; pointer-events: none; background:
  radial-gradient(circle at 0 0, rgba(225,242,255,.55), rgba(159,210,255,.18) 9%, transparent 16%),
  radial-gradient(circle at 100% 0, rgba(225,242,255,.55), rgba(159,210,255,.18) 9%, transparent 16%),
  radial-gradient(circle at 0 100%, rgba(225,242,255,.45), rgba(159,210,255,.14) 8%, transparent 14%),
  radial-gradient(circle at 100% 100%, rgba(225,242,255,.45), rgba(159,210,255,.14) 8%, transparent 14%);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); animation: lvRim 4s ease-in-out infinite alternate; }
.cc-back .lc .frost-rim { display: none; }
@keyframes lvRim { from { opacity: .7; } to { opacity: 1; } }
.lc.st-frost .tc-tag { color: #cfe8ff; text-shadow: 0 0 1.6cqw rgba(59,155,255,.9); }
.lc.st-frost .tc-stats .tc-sc b { color: #dff0ff; text-shadow: 0 0 1.6cqw rgba(59,155,255,.85), 0 0 5cqw rgba(59,155,255,.4); }

/* Motion off or reduced motion: nothing moves; the tier colors, edges and a fixed shine stay */
html.still .lc .fx i, html.still .lc .fx b, html.still .lc .tc-holo::after, html.still .lc.tier-legendary::before, html.still .lc .frost-rim, html.still .tc-edge .chase { animation: none; }
html.still .tc-edge .chase { stroke-dashoffset: .62; }
html.still .lc .tc-holo::after { transform: translateX(130%) skewX(-18deg); }

/* AB219: the bright, clearly tappable action row on every card (solid fill, bright border, white text) */
.tc-act .tc-b { color: #fff; background: linear-gradient(180deg, #2c2f3a, #1a1c24); border-color: rgba(255,179,71,.75); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 10px rgba(0,0,0,.5); }
.tc-act .tc-b i { color: var(--hot); }
.tc-act .tc-b:hover { background: linear-gradient(180deg, #3a3e4c, #252833); }
.tc .tc-act .a-flip { background: linear-gradient(180deg, #ffa04d, #ff7a1a); color: #170800; border-color: #ffd27a; box-shadow: 0 0 4cqw rgba(255,122,26,.55), inset 0 1px 0 rgba(255,255,255,.4); }
.tc .tc-act .a-flip:hover { background: linear-gradient(180deg, #ffb066, #ff8a33); }

/* phone tilt (iPhone asks once, from this tap): under the card on phones while Motion is on */
.lv-gyro { position: absolute; z-index: 10; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: calc(100vw - 24px); padding: 0 16px; border-radius: 999px; border: 1px solid #ffd27a; background: linear-gradient(180deg, #ffa04d, #ff7a1a); color: #170800; font: 800 13px/1 var(--f-num); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 10px 30px -8px rgba(255,122,26,.8); cursor: pointer; }
.lv-gyro i { font-style: normal; font-size: 16px; }
.lv-gyro:disabled { opacity: .8; white-space: normal; text-transform: none; letter-spacing: 0; font: 600 13px/1.25 var(--f-body); }
.lv-gyro:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
html.still .lv-gyro, .card-layer.side-back .lv-gyro { display: none; }

/* ===================== The approved card tiers (AB749 build; js/cards/living.js "the approved card tiers") ==========
   Players: ten tiers by the card rating (AB263, AB278, AB307, AB309, AB315, AB320), looks from
   design/feature-mockups/fm-tiers.css (AB305, AB306, AB310, AB311): t1 Icon Purple Prism with the platinum frame (nine
   moving effects), t2 MVP orange-red (four), t3 All-Star gold (two), t4 Star orchid (one), t5 Starter crimson, t6 Rotation
   blue, t7 Role player jade, t8 Bench steel silver, t9 Deep bench iron, t10 End of bench bronze (none).
   Teams: six tiers by the power score (AB287, AB291, AB308), looks from fm-cards.css in the player ladder's colours
   (AB312, AB319, AB322): tm1 Juggernaut, tm2 Contender, tm3 Dark horse, tm4 Fringe, tm5 Longshot, tm6 Lottery, with the
   team marks (pinstripes, enamel band with a white stripe, stitched rail, round badge, spotlights, no foil sweep).
   The pack's award cards keep tier-base / rare / epic / legendary above as award rarity (AB308, AB544). */
.lc.tier-t1 { --t1: #6a1fd0; --t2: #ffffff; --t3: #2a0a5e; --tg: rgba(170,120,255,.95); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 22px rgba(255,255,255,.55)) drop-shadow(0 0 46px rgba(140,70,255,.85)); }
.lc.tier-t2 { --t1: #ff3f0f; --t2: #ffd2c4; --t3: #4a0e00; --tg: rgba(255,63,15,.85); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 28px rgba(255,63,15,.6)); }
.lc.tier-t3 { --t1: #f0d000; --t2: #fff4a8; --t3: #4a3a00; --tg: rgba(240,208,0,.7); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 24px rgba(240,208,0,.5)); }
.lc.tier-t4 { --t1: #e0249c; --t2: #ffb8e4; --t3: #5e0a40; --tg: rgba(224,36,156,.7); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 22px rgba(224,36,156,.5)); }
.lc.tier-t5 { --t1: #e0123a; --t2: #ff9aa8; --t3: #6b0a1c; --tg: rgba(224,18,58,.7); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 22px rgba(224,18,58,.5)); }
.lc.tier-t6 { --t1: #2f8bff; --t2: #9fd8ff; --t3: #0b3b8f; --tg: rgba(47,139,255,.7); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 22px rgba(47,139,255,.5)); }
.lc.tier-t7 { --t1: #14c79c; --t2: #b8ffe9; --t3: #064a3a; --tg: rgba(20,199,156,.55); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 18px rgba(20,199,156,.38)); }
.lc.tier-t8 { --t1: #aab3be; --t2: #e6ebf0; --t3: #4a525d; --tg: rgba(201,208,217,.5); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 18px rgba(201,208,217,.25)); }
.lc.tier-t9 { --t1: #5a626c; --t2: #d5d9de; --t3: #23272c; --tg: rgba(150,158,168,.2); filter: drop-shadow(0 26px 40px rgba(0,0,0,.75)); }
.lc.tier-t10 { --t1: #a8754b; --t2: #ecd2b6; --t3: #3d2616; --tg: rgba(168,117,75,.28); filter: drop-shadow(0 26px 40px rgba(0,0,0,.75)); }
/* poster wedge */
.lc.tier-t1 .tc-arena { background: radial-gradient(120% 80% at 70% 20%, #4a17a8 0%, #22084f 40%, #0b0418 75%, #050208 100%); }
.lc.tier-t1 .tc-arena::after { background: linear-gradient(90deg, #ff4d6a, #ffb347 18%, #ffe66b 34%, #36f08f 50%, #3bd1ff 66%, #a46bff 82%, #ff7ad9); box-shadow: 0 0 14cqw rgba(214,228,255,.7); opacity: .95; }
.lc.tier-t2 .tc-arena { background: linear-gradient(160deg, #3a0c02 0%, #120604 45%, #060403 100%); }
.lc.tier-t2 .tc-arena::after { background: linear-gradient(90deg, #5a1200, #c42d00 30%, #ff3f0f 58%, #ff8a5c); box-shadow: 0 0 12cqw rgba(255,63,15,.6); opacity: .95; }
.lc.tier-t3 .tc-arena { background: linear-gradient(160deg, #2e2400 0%, #0d0b04 45%, #050504 100%); }
.lc.tier-t3 .tc-arena::after { background: linear-gradient(90deg, #6b5200, #c9a400 35%, #f0d000 58%, #fff4a8); box-shadow: 0 0 10cqw rgba(240,208,0,.5); }
.lc.tier-t4 .tc-arena::after { background: linear-gradient(90deg, #5e0a40, #e0249c 50%, #ffb8e4); }
.lc.tier-t8 .tc-arena::after { background: linear-gradient(90deg, #5d6672, #aab3be 50%, #e6ebf0); }
.lc.tier-t9 .tc-arena { background: repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px), linear-gradient(160deg, #1a1d21 0%, #0c0d0f 45%, #060607 100%); }
.lc.tier-t9 .tc-arena::after { background: linear-gradient(90deg, #2c3036, #555c65 50%, #8a929b); box-shadow: none; opacity: .5; }
.lc.tier-t10 .tc-arena { background: linear-gradient(160deg, #22160d 0%, #0d0a08 45%, #060505 100%); }
.lc.tier-t10 .tc-arena::after { background: linear-gradient(90deg, #4a2f1a, #8a5d39 50%, #c89466); box-shadow: none; opacity: .55; }
.lc.tier-t9 .tc-sc b, .lc.tier-t10 .tc-sc b { text-shadow: none; }
/* tier mark in the tab: Icon a pearl gem, MVP orange-red, Deep bench and End of bench a flat plain square. One mark only
   (AB780): the Icon gem's offset white spark read as a second mark ("◆ ◆ICON") and is gone */
.lc.tier-t1 .tc-gem { background: linear-gradient(135deg, #fff, #c9b3ff 50%, #7ad7ff); box-shadow: 0 0 2cqw var(--tg); }
.lc.tier-t2 .tc-gem { background: linear-gradient(135deg, #ffd2c4, #ff3f0f); }
.lc.tier-t9 .tc-gem, .lc.tier-t10 .tc-gem { background: var(--t1); box-shadow: none; }
/* foil sheen */
.lc.tier-t1 .tc-holo::before { opacity: .85; background-image: linear-gradient(115deg, transparent 18%, rgba(255,77,106,.16) 30%, rgba(255,230,107,.16) 40%, rgba(54,240,143,.14) 50%, rgba(59,209,255,.18) 60%, rgba(164,107,255,.20) 70%, transparent 82%); }
.lc.tier-t2 .tc-holo::before { opacity: .95; background-image: linear-gradient(115deg, transparent 26%, rgba(255,90,40,.20) 40%, rgba(255,200,170,.18) 50%, rgba(255,63,15,.16) 58%, transparent 72%); }
.lc.tier-t3 .tc-holo::before { opacity: .9; background-image: linear-gradient(115deg, transparent 28%, rgba(255,230,80,.18) 42%, rgba(255,250,200,.18) 50%, rgba(200,160,0,.14) 58%, transparent 72%); }
.lc.tier-t4 .tc-holo::before { opacity: .9; background-image: linear-gradient(115deg, transparent 30%, rgba(255,80,190,.16) 44%, rgba(255,184,228,.12) 50%, rgba(224,36,156,.14) 56%, transparent 70%); }
.lc.tier-t5 .tc-holo::before { opacity: .9; background-image: linear-gradient(115deg, transparent 30%, rgba(255,60,90,.16) 44%, rgba(255,170,150,.12) 50%, rgba(224,18,58,.14) 56%, transparent 70%); }
.lc.tier-t6 .tc-holo::before { opacity: .9; background-image: linear-gradient(115deg, transparent 30%, rgba(80,200,255,.16) 44%, rgba(160,230,255,.14) 50%, rgba(47,139,255,.12) 56%, transparent 70%); }
.lc.tier-t7 .tc-holo::before { opacity: .8; background-image: linear-gradient(115deg, transparent 34%, rgba(20,199,156,.14) 46%, rgba(184,255,233,.10) 50%, transparent 66%); }
.lc.tier-t8 .tc-holo::before { opacity: .7; background-image: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.10) 48%, rgba(220,226,234,.06) 53%, transparent 62%); }
.lc.tier-t9 .tc-holo::before { opacity: .35; background-image: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.06) 50%, transparent 58%); }
.lc.tier-t10 .tc-holo::before { opacity: .45; background-image: linear-gradient(115deg, transparent 40%, rgba(236,210,182,.08) 50%, transparent 60%); }
.lc.tier-t9 .tc-glare, .lc.tier-t10 .tc-glare { opacity: .55; }
/* moving sweeps: Icon two (rainbow and white), MVP one, All-Star one gold, Star one slow */
.lc.tier-t1 .tc-holo::after, .lc.tier-t1 .tc-glare::after, .lc.tier-t2 .tc-holo::after, .lc.tier-t3 .tc-holo::after, .lc.tier-t4 .tc-holo::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; transform: translateX(0) skewX(-18deg); animation: lvPrism 3.2s cubic-bezier(.45,.05,.35,1) infinite; }
.lc.tier-t1 .tc-holo::after { background: linear-gradient(90deg, transparent, rgba(255,77,106,.32) 15%, rgba(255,230,107,.34) 35%, rgba(54,240,143,.30) 50%, rgba(59,209,255,.34) 65%, rgba(164,107,255,.36) 85%, transparent); }
.lc.tier-t1 .tc-glare::after { width: 22%; animation-delay: -1.6s; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5) 50%, transparent); }
.lc.tier-t2 .tc-holo::after { width: 38%; animation-duration: 3.8s; background: linear-gradient(90deg, transparent, rgba(255,110,60,.36) 30%, rgba(255,225,205,.42) 52%, rgba(255,63,15,.30) 72%, transparent); }
.lc.tier-t3 .tc-holo::after { width: 34%; animation-duration: 4.4s; background: linear-gradient(90deg, transparent, rgba(255,226,74,.36) 35%, rgba(255,250,210,.40) 55%, transparent); }
.lc.tier-t4 .tc-holo::after { width: 28%; animation-duration: 5.6s; background: linear-gradient(90deg, transparent, rgba(255,120,200,.26) 50%, transparent); }
/* behind the card: Icon two ray layers turning opposite ways, MVP orange rays */
.lc.tier-t1::before, .lc.tier-t1::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--cw) * 2.3); height: calc(var(--cw) * 2.3); margin: calc(var(--cw) * -1.15) 0 0 calc(var(--cw) * -1.15); z-index: -3; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 28%, transparent 74%); mask-image: radial-gradient(closest-side, #000 28%, transparent 74%); animation: lvRays 22s linear infinite; }
.lc.tier-t1::before { background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.38) 0 4deg, transparent 4deg 12deg, rgba(120,200,255,.24) 12deg 15deg, transparent 15deg 24deg); }
.lc.tier-t1::after { animation: lvRaysBack 34s linear infinite; background: repeating-conic-gradient(from 7deg, rgba(170,110,255,.34) 0 4deg, transparent 4deg 16deg, rgba(255,122,217,.22) 16deg 19deg, transparent 19deg 31deg); }
.lc.tier-t2::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--cw) * 1.9); height: calc(var(--cw) * 1.9); margin: calc(var(--cw) * -.95) 0 0 calc(var(--cw) * -.95); z-index: -2; pointer-events: none; background: repeating-conic-gradient(from 0deg, rgba(255,120,70,.32) 0 5deg, transparent 5deg 14deg, rgba(255,63,15,.20) 14deg 18deg, transparent 18deg 30deg); -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 72%); mask-image: radial-gradient(closest-side, #000 30%, transparent 72%); animation: lvRays 24s linear infinite; }
@keyframes lvRaysBack { to { transform: rotate(-360deg); } }
/* Icon only: a rainbow band of light just outside the frame that turns round the card, and a purple halo that breathes */
.tc-aura { position: absolute; inset: calc(var(--cw) * -.02); z-index: -1; overflow: hidden; border-radius: calc(var(--cw) * .05); pointer-events: none; }
.tc-aura > i { position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; margin: -110% 0 0 -110%; animation: lvRays 6s linear infinite; background: conic-gradient(#ff4d6a, #ffb347, #ffe66b, #36f08f, #3bd1ff, #a46bff, #ff7ad9, #ff4d6a); }
.tc-halo { position: absolute; inset: -9%; z-index: -2; pointer-events: none; border-radius: 12%; background: radial-gradient(closest-side, rgba(150,80,255,.55), rgba(150,80,255,.18) 60%, transparent 100%); animation: lvHalo 3.2s ease-in-out infinite alternate; }
@keyframes lvHalo { from { opacity: .55; transform: scale(.97); } to { opacity: 1; transform: scale(1.04); } }
/* frame lights (living.js frameExtra) and frame line weights */
.tc-edge .chase.tx2 { stroke-dasharray: .06 .44; filter: drop-shadow(0 0 6px var(--tg)); animation: lvChase 4.2s linear infinite; }
.tc-edge .chase.tx2.rev { animation-direction: reverse; opacity: .85; }
.tc-edge .chase.tx3 { stroke-dasharray: .05 .95; filter: drop-shadow(0 0 4px var(--tg)); animation: lvChase 6.5s linear infinite; }
.tc-edge .tx-in { opacity: .85; }
.lc.tier-t1 .tc-edge .tx-in { animation: lvInPulse 2.4s ease-in-out infinite alternate; }
@keyframes lvInPulse { from { opacity: .45; } to { opacity: 1; } }
.lc.tier-t7 .tc-edge svg > polygon:first-of-type, .lc.tier-t8 .tc-edge svg > polygon:first-of-type { stroke-width: 5; }
.lc.tier-t9 .tc-edge svg > polygon:first-of-type, .lc.tier-t10 .tc-edge svg > polygon:first-of-type { stroke-width: 4; }

/* ---------- team tiers (tm1..tm6) */
.lc.tier-tm1 { --t1: #6a1fd0; --t2: #e6d9ff; --t3: #2a0a5e; --tg: rgba(150,80,255,.7); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 26px rgba(140,70,255,.6)); }
.lc.tier-tm2 { --t1: #ff3f0f; --t2: #ffd2c4; --t3: #4a0e00; --tg: rgba(255,63,15,.6); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 22px rgba(255,63,15,.45)); }
.lc.tier-tm3 { --t1: #f0d000; --t2: #fff4a8; --t3: #4a3a00; --tg: rgba(240,208,0,.5); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 20px rgba(240,208,0,.38)); }
.lc.tier-tm4 { --t1: #2f8bff; --t2: #9fd8ff; --t3: #0b3b8f; --tg: rgba(47,139,255,.5); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 18px rgba(47,139,255,.35)); }
.lc.tier-tm5 { --t1: #aab3be; --t2: #e6ebf0; --t3: #4a525d; --tg: rgba(201,208,217,.3); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 14px rgba(201,208,217,.22)); }
.lc.tier-tm6 { --t1: #a8754b; --t2: #ecd2b6; --t3: #3d2616; --tg: rgba(168,117,75,.28); filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)) drop-shadow(0 0 12px rgba(168,117,75,.22)); }
.lc[class*="tier-tm"] .tc-arena { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--t1) 10%, transparent) 0 2px, transparent 2px 14px), linear-gradient(160deg, color-mix(in srgb, var(--t3) 75%, #0b0907) 0%, #0b0907 50%, #050506 100%); }
.lc.tier-tm1 .tc-arena { background: repeating-linear-gradient(90deg, rgba(200,170,255,.10) 0 2px, transparent 2px 14px), radial-gradient(120% 80% at 70% 20%, #4a17a8 0%, #22084f 40%, #0b0418 75%, #050208 100%); }
.lc[class*="tier-tm"] .tc-arena::after { background: linear-gradient(90deg, color-mix(in srgb, var(--t1) 55%, #000) 0, var(--t1) 30% 62%, #ffffff 62% 67%, var(--t1) 67% 72%, color-mix(in srgb, var(--t1) 60%, #000) 72%); box-shadow: 0 0 8cqw var(--tg); opacity: .9; }
.lc.tier-tm1 .tc-arena::after { background: linear-gradient(90deg, #ff4d6a, #ffb347 14%, #ffe66b 27%, #36f08f 40%, #3bd1ff 52%, #a46bff 61%, #ffffff 62% 67%, #a46bff 67%, #ff7ad9 80%, #6a1fd0); box-shadow: 0 0 10cqw rgba(214,228,255,.55); opacity: .95; }
.lc[class*="tier-tm"] .tc-gem { border-radius: 50%; transform: translateY(-.1cqw); background: var(--t1); box-shadow: 0 0 0 .5cqw rgba(255,255,255,.85), 0 0 1.5cqw var(--tg); }
.lc.tier-tm1 .tc-gem { background: linear-gradient(135deg, #fff, #c9b3ff 50%, #7ad7ff); }
.lc[class*="tier-tm"] .tc-holo::before { opacity: .45; background-image: linear-gradient(180deg, rgba(255,255,255,.08), transparent 38%); background-size: 100% 100%; }
.lc[class*="tier-tm"] .tc-glare { opacity: .6; }
.tc-beam { display: none; }
.lc.tier-tm1 .tc-beam, .lc.tier-tm2 .tc-beam, .lc.tier-tm3 .tc-beam.b1 { display: block; position: absolute; top: -6%; height: 78%; width: 30cqw; background: linear-gradient(180deg, color-mix(in srgb, var(--t1) 45%, transparent), transparent 78%); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); filter: blur(2px); transform-origin: 50% 0; animation: lvBeam 6s ease-in-out infinite alternate; }
.lc.tier-tm1 .tc-beam { background: linear-gradient(180deg, rgba(220,200,255,.45), transparent 78%); }
.tc-beam.b1 { left: 4%; }
.tc-beam.b2 { right: 4%; animation-delay: -3s; }
@keyframes lvBeam { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.tc-edge .chase.tmc { stroke-dasharray: .06 .44; filter: drop-shadow(0 0 4px rgba(200,170,255,.9)); animation: lvChase 5.5s linear infinite; }
.tc-edge .chase.tmc.rev { animation-direction: reverse; opacity: .85; }

/* ---------- the tab (AB307, AB308, AB309, AB325): the tier word line, then "Rating 81.4" / "Power 55.0", then
   "Next tier at N" or "Top tier", every line 12 px or more (AB105, AB317) */
.lc .tc-season:has(.tc-rt)::after { content: none; }
.lc .tc-season .tc-tl { display: block; font: 700 max(12px, 2.7cqw)/1.1 var(--f-num); letter-spacing: .08em; } /* AB313: the tier word line is 12 px or more */
.lc .tc-season .tc-tl::after { content: ""; display: inline-block; width: 1.7cqw; margin-left: 1.4cqw; }
.lc .tc-season .tc-rt, .lc .tc-season .tc-nx { display: block; margin-top: 2px; font: 800 max(12px, 2.7cqw)/1.1 var(--f-num); letter-spacing: .03em; text-transform: none; text-align: center; }
.lc .tc-season .tc-rt { color: #fff; }
.lc .tc-season .tc-nx { color: var(--t2); }

/* ---------- AB328: the back, on a past season: that season's rating and the tier word on a chip in the tier's colour */
.tc-sr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); }
.tc-sr .tc-sr-k { font: 700 12px/1.1 var(--f-num); letter-spacing: .05em; text-transform: uppercase; color: #d9d2c8; }
.tc-sr b { font: 800 18px/1 var(--f-num); color: #fff; }
.tc-sr .tc-sr-t { font: 800 12px/1 var(--f-num); letter-spacing: .04em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.tc-sr-t1 { background: #6a1fd0; color: #ffffff; } .tc-sr-t2 { background: #ff3f0f; color: #120a04; } .tc-sr-t3 { background: #f0d000; color: #120a04; }
.tc-sr-t4 { background: #e0249c; color: #120a04; } .tc-sr-t5 { background: #e0123a; color: #ffffff; } .tc-sr-t6 { background: #2f8bff; color: #120a04; }
.tc-sr-t7 { background: #14c79c; color: #120a04; } .tc-sr-t8 { background: #aab3be; color: #120a04; } .tc-sr-t9 { background: #5a626c; color: #ffffff; }
.tc-sr-t10 { background: #a8754b; color: #120a04; }

/* the back is for reading: no rays, halo or band of light behind it */
.cc-back .lc.tier-t1::before, .cc-back .lc.tier-t1::after, .cc-back .lc.tier-t2::before, .cc-back .lc .tc-aura, .cc-back .lc .tc-halo { display: none; }
/* Motion off or reduced motion: nothing moves; the sweeps rest clear of the face, the look stays */
html.still .lc.tier-t1::before, html.still .lc.tier-t1::after, html.still .lc.tier-t2::before, html.still .tc-aura > i, html.still .tc-halo, html.still .tc-beam, html.still .lc.tier-t1 .tc-edge .tx-in, html.still .lc .tc-glare::after { animation: none; }
html.still .lc.tier-t1 .tc-glare::after { transform: translateX(640%) skewX(-18deg); }
html.still .lc.tier-t1 .tc-holo::after, html.still .lc.tier-t2 .tc-holo::after, html.still .lc.tier-t3 .tc-holo::after { transform: translateX(330%) skewX(-18deg); }
html.still .lc.tier-t4 .tc-holo::after { transform: translateX(470%) skewX(-18deg); }
html.still .lc.tier-t1 .tc-edge .tx-in { opacity: .9; }

/* AB218, AB216 item 2, AB219: the card back's way to the player page, the same orange as the trade button, never white */
.tc .tc-pp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; min-height: 52px; margin: 2.4cqw 7.5cqw; padding: 8px 14px; border-radius: 14px; text-decoration: none; background: linear-gradient(180deg, #ffa04d, #ff7a1a); color: #170800; border: 1px solid #ffd27a; box-shadow: 0 8px 22px -8px rgba(255,122,26,.8); }
.tc .tc-pp i { font-style: normal; font-size: 20px; line-height: 1; }
.tc .tc-pp span { display: grid; gap: 3px; min-width: 0; }
.tc .tc-pp b { font: 800 15px/1 var(--f-num); letter-spacing: .08em; text-transform: uppercase; }
.tc .tc-pp small { font: 600 12px/1.15 var(--f-body); color: #4a1c06; }
.tc .tc-pp:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- AB317 (settles AB313): the taller card. The tab (tier word, "Rating N.N" / "Power N.N", "Next tier at N",
   AB309, AB325) never reaches over the picture: the top content starts 26 px down (the inner frame line at 11 px, the
   12 px padding of AB163, plus 3 px), the picture starts 3 px under the tab with its exact size (64.4% of the card width
   tall, as before), and the card grows taller to make the room. Every text on the card is 12 px or more (AB105).
   Ported from design\feature-mockups\card12.css, with the tab's third line (AB325). Every length is in card widths
   (--u = 1% of --cw) so the card height, outside the card's own container, agrees with the inside. */
.tc { --u: calc(var(--cw) / 100); --tabf: max(12px, calc(2.7 * var(--u)));
  --tab-h: calc(3.4 * var(--u) + 7px + 3.3 * var(--tabf)); --pic-top: calc(26px + var(--tab-h) + 3px);
  --grow: calc(var(--pic-top) + 48px - 15.5 * var(--u)); height: calc(var(--cw) * 1.4 + var(--grow)); }
.lc .frost-rim { height: 100%; }
.tc.side-front .tc-top { top: 26px; height: auto; }
.tc-season { font-size: max(12px, 2.7cqw); letter-spacing: .08em; }
/* AB105: a top tab too long for the room between the corners stays 12 px or more and wraps onto two lines (card-kit fitAll) */
.tc-top > .tc-season.fit-wrap { white-space: normal; text-align: center; line-height: 1.15; letter-spacing: .06em; }
.tc-top > .tc-season.fit-wrap > * { white-space: nowrap; }
/* a one-line tier row a little wider than the wrapped tab ("End of bench · Wk 3" at 360, gem and spacer included)
   started at the tab's left edge and ran out on the right only, so it sat 1.6 to 2.6 px off centre; as a centred
   column it spills evenly into the tab's own padding instead */
.tc-top > .tc-season.fit-wrap:has(> .tc-tl) { display: flex; flex-direction: column; align-items: center; }
/* AB673: words in the corner ("No games", "Not started") have descenders the 0.9 line of a number leaves no room for;
   the label under them moves down clear of the drawn letters */
.tc-ovr.is-words b { line-height: 1.05; margin-bottom: .18em; }
.tc-ovr small { font-size: max(12px, 2.7cqw); letter-spacing: .05em; }
.tc-mv { font-size: max(12px, 3cqw); }
/* the picture: same size as before, under the tab */
.tc.side-front .tc-hero { top: var(--pic-top); height: 64.4cqw; }
/* the name band follows the picture (it overlapped the picture's foot by .7% of the width before, and still does) */
.tc.side-front .tc-band { top: calc(var(--pic-top) + 63.7cqw); height: calc(20.3cqw + 14px); }
.tc-sub { font-size: max(12px, 3cqw); letter-spacing: .04em; }
.tc-sub.fit-wrap { white-space: normal; line-height: 1.15; }
/* the award seal keeps its place on the picture */
.tc-seal:not(.is-back) { bottom: auto; top: calc(var(--pic-top) + 37.04cqw); }
/* stats, the tag line and the buttons (anchored to the bottom, so they move down with the taller card) */
.tc.side-front .tc-stats { height: calc(14cqw + 14px); bottom: calc(18px + 1.6cqw + max(40px, 9cqw) + 1.6cqw + 16px + 1.6cqw); }
.tc-sc small { font-size: max(12px, 2.5cqw); letter-spacing: .03em; }
.tc-sc em { font: 600 max(12px, 2.2cqw)/1.05 var(--f-num); text-align: center; } /* the condensed numbers face, as card12.css */
.tc-sc small.fit-wrap, .tc-sc em.fit-wrap { white-space: normal; text-align: center; }
.tc-sc em .tc-nw { white-space: nowrap; } /* AB523: "4 yr" stays one word on the Dyn. value sub line; a no-break space ties the "i" to it */
.tc.side-front .tc-tag { bottom: calc(18px + 1.6cqw + max(40px, 9cqw) + 1.6cqw); font-size: max(12px, 2.7cqw); letter-spacing: .05em; }
.tc-tag span.fit-wrap { white-space: normal; line-height: 1.15; }
.tc-act .tc-b { font-size: max(12px, 3.1cqw); letter-spacing: .02em; gap: 4px; padding: 0 4px; }
.tc-act .tc-b i { font-size: max(12px, 3.3cqw); }
.tc-act .tc-b span.fit-wrap { white-space: normal; line-height: 1.05; width: min-content; text-align: center; } /* a wrapped label hugs its longest word so icon and words stay centered */
/* AB317 on the back: the labels that took a share of their parent's size, and the shared page widgets, keep 12 px */
.tc .tc-ir > b small, .tc .tc-ir > b u { font-size: max(12px, .9em); }
.tc .hw .hw-t, .tc .tc-ir > .hw .hw-t { font-size: max(12px, .82em); }
.tc button.info { font-size: 12px; }
/* AB523: the Dyn. value "i" sits on its sub line; its margin box is one 12 px line tall, so the cell keeps its height
   and the column stays level with the other three (the button itself stays 25 px to tap) */
.tc-sc em button.info { margin: -7px -4px -7px -1px; }
.tc .grade-legend span { font-size: 12px; }
.tc .ch-x, .tc .ch-y { font-size: 12px; }
/* Motion off and reduced motion: the team spotlights hold still too (the tier rule above outranks html.still .tc-beam) */
html.still .lc .tc-beam { animation: none; }

/* AB768: the plain card for a player with no file yet: Close is the only button, centered under "More coming". */
.tc-act.tc-act-plain { grid-template-columns: minmax(0, 40%); justify-content: center; }

/* AB757 Share (SHARE-1 as drawn, design\feature-mockups\share-preview.css): the "Link copied" toast, 4 s, a role=status
   region inside the card's dialog; and the copy box when copying is blocked. Never under 12 px. */
.share-toasts { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 40; display: grid; justify-items: center; pointer-events: none; padding: 0 16px; }
.share-toasts:empty { display: none; }
.share-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 460px; width: 100%; padding: 12px 16px; border-radius: 16px; background: rgba(22,24,32,.96); border: 1px solid rgba(54,240,143,.55); box-shadow: 0 16px 40px rgba(0,0,0,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); text-align: left; line-height: 1.3; }
.share-toast .ok { width: 32px; height: 32px; flex: none; border-radius: 50%; background: #36f08f; color: #04150b; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.share-toast b { display: block; font: 800 18px/1.1 var(--f-num); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.share-toast small { display: block; font-size: 14px; color: #d6d3cd; overflow-wrap: anywhere; }
html:not(.still) .share-toast { animation: shareUp .25s ease-out both; }
@keyframes shareUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .share-toast { animation: none !important; } }
.share-fallback { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(14,15,20,.97); border: 1px solid #ff7a1a; text-align: left; }
.share-fallback > label { font: 800 14px/1 var(--f-num); letter-spacing: .1em; text-transform: uppercase; color: #ffd27a; }
.share-fallback .sf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.share-fallback .sf-row input { min-height: 44px; min-width: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: #0d0e13; color: var(--text); font: 500 14px/1 var(--f-body); padding: 0 12px; }
.share-fallback .sf-copy { min-height: 44px; justify-content: center; background: var(--accent, #ff7a1a); color: #140800; border-color: transparent; }
.share-fallback .sf-close { min-height: 44px; justify-self: start; }
.share-fallback .sf-help { margin: 0; font-size: 14px; line-height: 1.35; color: #d6d3cd; }
.card-framed .share-fallback { padding: 14px; border-color: #ff7a1a; }
