/* RotoProphet — the player card, shared by the app and The Oracle. */

/* ---- The player card: a late-80s trading card ----
   Cream card stock with a hard dark edge and rounded corners, the photo
   in a window framed in the team's two colors, the name on a slanted
   banner, a striped foot. All original: the shapes nod to the era, the
   layout is ours. Colors come in as --p (primary), --s (secondary) and
   --pi / --si (ink that reads on each). */
.vc {
  --p: #141414; --s: #777; --pi: #fff; --si: #141414;
  width: 100%; max-width: 400px; margin: 0 auto;
  background: #f7f2e6; color: #141414;
  border: 3px solid #1a1713; border-radius: 16px;
  padding: 13px 13px 0; position: relative; overflow: hidden;
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
}
/* Paper grain. */
.vc::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .02) 0 1px, transparent 1px 4px);
}
.vc-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 9px; position: relative;
}
/* Team tab: a slanted block in the primary, the abbreviation set in the
   secondary. */
.vc-team {
  background: var(--p); color: var(--pi); font-weight: 800; font-size: 22px;
  letter-spacing: .14em; padding: 5px 16px 4px 12px; line-height: 1;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 4px 4px 0 var(--s);
}
.vc-team img { width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 0 1px rgba(0,0,0,.4)); }
.vc-set {
  font-family: Cinzel, Georgia, serif; font-weight: 700; font-size: 12px;
  letter-spacing: .12em; color: #6b6253; text-align: right; line-height: 1.15;
}
.vc-set b { display: block; font-size: 15px; color: #141414; }
/* The photo window. */
.vc-photo {
  position: relative; aspect-ratio: 4 / 4.6; border-radius: 12px; overflow: hidden;
  border: 4px solid var(--p); box-shadow: 0 0 0 3px var(--s), 0 0 0 4px #1a1713;
  background:
    radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--p) 55%, #fff) 0%, transparent 60%),
    linear-gradient(180deg, #efe6d2, #d8ccb4);
}
.vc-photo img.mug-lg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.vc-photo .vc-jersey {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: Cinzel, Georgia, serif; font-size: 150px; line-height: 1; color: var(--p);
  letter-spacing: -.03em;
}
/* Name banner: two slanted bars, the secondary over the primary, like a
   printed shadow. */
.vc-name {
  position: absolute; left: -6px; bottom: 16px; max-width: calc(100% - 10px);
  transform: skewX(-9deg); transform-origin: left bottom;
}
.vc-name > span {
  display: block; background: var(--s); color: var(--si); font-weight: 900; font-size: var(--name-size, 25px);
  line-height: 1; letter-spacing: .04em; padding: 8px 18px 7px 20px; text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--p), 0 0 0 2px #1a1713;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vc-name > span > span { display: inline-block; transform: skewX(9deg); }
/* Rostered-by tag, top right of the photo. */
.vc-owner {
  position: absolute; top: 10px; right: -2px; background: #141414; color: #fbf6ec;
  font-weight: 700; font-size: 13px; letter-spacing: .1em; padding: 5px 10px 4px;
  text-transform: uppercase; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
}
.vc-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 2px 10px; position: relative;
}
.vc-pos {
  border: 2px solid #1a1713; background: #fff; padding: 4px 10px 3px;
  font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--p);
}
.vc-num {
  font-family: Cinzel, Georgia, serif; font-weight: 900; font-size: 26px; color: var(--p);
  line-height: 1; letter-spacing: -.01em;
}
.vc-num small { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; color: #6b6253; letter-spacing: .12em; margin-right: 4px; }
/* The striped foot: a band of the two colors on a slant. */
.vc-stripes {
  height: 12px; margin: 0 -13px;
  background: repeating-linear-gradient(-55deg, var(--p) 0 14px, var(--s) 14px 22px, #f7f2e6 22px 26px);
  border-top: 2px solid #1a1713;
}
/* Below the card: the "back", stats and the contract on cream with
   rule lines in the old printer's red-brown. */
.vc-back {
  max-width: 400px; margin: 14px auto 0; background: #f7f2e6; color: #141414;
  border: 2px solid #1a1713; border-radius: 10px; padding: 10px 12px 11px;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
}
.vc-back-h {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid #8a2b1e; padding-bottom: 5px; margin-bottom: 7px;
  font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #8a2b1e;
}
.vc-back-h span:last-child { color: #6b6253; font-weight: 700; }
.vc-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; text-align: center; }
.vc-stats div { padding: 2px 0; border-right: 1px solid #d9cdb3; }
.vc-stats div:last-child { border-right: none; }
.vc-stats .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #6b6253; }
.vc-stats .v { font-family: Cinzel, Georgia, serif; font-weight: 700; font-size: 23px; line-height: 1.15; }
.vc-contract {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  border-top: 1px dashed #b8a98a; margin-top: 8px; padding-top: 7px;
  font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #6b6253;
}
.vc-contract b { font-family: Cinzel, Georgia, serif; font-size: 24px; color: var(--p); letter-spacing: 0; }
/* The scouting note under the card. */
.vc-note {
  max-width: 400px; margin: 14px auto 0; background: #fbf6ec; color: #2a2620;
  border: 2px solid #1a1713; border-radius: 10px; padding: 11px 13px 12px;
  font-family: Barlow, system-ui, sans-serif; font-size: 14px; line-height: 1.55;
}
.vc-note h4 {
  margin: 0 0 5px; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: #8a2b1e;
}
