/* SKIN "bold": a Swiss poster crossed with a sticker album, built from flat saturated tier colours, thick black rules and one enormous tier word.
   Every selector is scoped under body.skin-bold, and the observation count stays the loudest element on the card after the orbit. */

body.skin-bold {
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --heavy: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f4efe2;
  background-image: radial-gradient(rgba(0, 0, 0, .16) 2px, transparent 2.6px);
  background-size: 16px 16px;
  color: #000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- card frame ---------- */
body.skin-bold .card {
  --tc: #d4d4d4;   /* tier colour */
  --ti: #000;      /* ink used on the tier colour */
  --tfs: 52px;     /* tier word size */
  --tsy: 1.2;      /* tier word vertical stretch */
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 380px;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  overflow: hidden;
  text-align: left;
}

/* ---------- tier colours: flat, saturated, nothing subtle ---------- */
body.skin-bold .card.t-mythic    { --tc: #ff1f9a; --ti: #000; --tfs: 60px; --tsy: 1.03; }
body.skin-bold .card.t-legendary { --tc: #ff5a1f; --ti: #000; --tfs: 39px; --tsy: 1.6; }
body.skin-bold .card.t-epic      { --tc: #8a3dff; --ti: #fff; --tfs: 66px; --tsy: .96; }
body.skin-bold .card.t-rare      { --tc: #1a56ff; --ti: #fff; --tfs: 66px; --tsy: .96; }
body.skin-bold .card.t-uncommon  { --tc: #00d27a; --ti: #000; --tfs: 36px; --tsy: 1.72; }
body.skin-bold .card.t-common    { --tc: #ffd800; --ti: #000; --tfs: 51px; --tsy: 1.22; }
body.skin-bold .card.t-control   { --tc: #d4d4d4; --ti: #000; --tfs: 51px; --tsy: 1.22; }

/* ---------- hazard stripe ---------- */
body.skin-bold .card .rule {
  flex: 0 0 10px;
  box-sizing: border-box;
  height: 10px;
  background: repeating-linear-gradient(135deg, #000 0 7px, var(--tc) 7px 14px);
  border-bottom: 3px solid #000;
}

/* ---------- header: the enormous tier word ---------- */
body.skin-bold .card header {
  flex: 0 0 62px;
  box-sizing: border-box;
  height: 62px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 8px 5px;
  background: var(--tc);
  border-bottom: 4px solid #000;
  overflow: hidden;
}

body.skin-bold .card .tier {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--tfs);
  line-height: .8;
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ti);
  transform: scaleY(var(--tsy));
  transform-origin: 0 100%;
}

/* the index is a slapped-on black sticker */
body.skin-bold .card .idx {
  position: absolute;
  top: 78px;
  right: 9px;
  z-index: 3;
  padding: 3px 8px 2px;
  background: #000;
  color: #fff;
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .06em;
  transform: rotate(4deg);
  box-shadow: 3px 3px 0 var(--tc);
}

/* ---------- plot: halftone paper, flat tier disc, black orbit ---------- */
body.skin-bold .card .plot {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  background: #fff;
  overflow: hidden;
}

body.skin-bold .card .plot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#000 1.2px, transparent 1.7px);
  background-size: 8px 8px;
  opacity: .13;
}

body.skin-bold .card .plot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  box-sizing: border-box;
  border: 4px solid #000;
  border-radius: 50%;
  background: var(--tc);
}

body.skin-bold .card .plot svg.orb {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.skin-bold .card .orb path,
body.skin-bold .card .orb circle,
body.skin-bold .card .orb line {
  vector-effect: non-scaling-stroke;
}

body.skin-bold .card .orb .ring {
  fill: none;
  stroke: #000;
  stroke-width: 2px;
  stroke-opacity: .22;
}

body.skin-bold .card .orb .shadow {
  fill: none;
  stroke: #000;
  stroke-width: 3px;
  stroke-opacity: .7;
  stroke-dasharray: 1 7;
  stroke-linecap: round;
}

body.skin-bold .card .orb .ghost {
  fill: none;
  stroke: #000;
  stroke-width: 2px;
  stroke-opacity: .28;
}

body.skin-bold .card .orb .orbit {
  fill: none;
  stroke: #000;
  stroke-width: 5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.skin-bold .card .orb .qline {
  stroke: #000;
  stroke-width: 2px;
  stroke-dasharray: 5 4;
}

body.skin-bold .card .orb .sun {
  fill: #ff2a1f;
  stroke: #000;
  stroke-width: 3px;
}

body.skin-bold .card .orb .body {
  fill: #fff;
  stroke: #000;
  stroke-width: 3px;
}

/* ---------- name: black bar, white shout ---------- */
body.skin-bold .card h2 {
  flex: 0 0 34px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 8px;
  background: #000;
  color: #fff;
  font-family: var(--heavy);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  overflow: hidden;
}

/* ---------- the product: the observation count ---------- */
body.skin-bold .card .count {
  flex: 0 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 8px;
  margin: 0;
  padding: 6px 8px 5px;
  background: #fff;
  border-bottom: 4px solid #000;
}

body.skin-bold .card .count b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 76px;
  line-height: .8;
  letter-spacing: -.01em;
  color: var(--tc);
  -webkit-text-stroke: 6px #000;
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 #000;
}

body.skin-bold .card .count span {
  flex: 1 1 72px;
  min-width: 72px;
  box-sizing: border-box;
  margin-bottom: 3px;
  padding-left: 8px;
  border-left: 4px solid #000;
  font-family: var(--heavy);
  font-weight: 800;
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ---------- elements: 2 x 2 label-and-value blocks ---------- */
body.skin-bold .card .els {
  flex: 0 0 auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  background: #fff;
  border-bottom: 4px solid #000;
}

body.skin-bold .card .els div {
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  min-width: 0;
  height: 20px;
}

body.skin-bold .card .els div:nth-child(odd)  { border-right: 3px solid #000; }
body.skin-bold .card .els div:nth-child(-n+2) { border-bottom: 3px solid #000; }

body.skin-bold .card .els dt {
  flex: 0 0 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: var(--tc);
  color: var(--ti);
  border-right: 3px solid #000;
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
}

body.skin-bold .card .els dd {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0 6px;
  font-family: var(--heavy);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}

/* ---------- footer ---------- */
body.skin-bold .card footer {
  flex: 0 0 18px;
  box-sizing: border-box;
  padding: 0 8px;
  background: var(--tc);
  color: var(--ti);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 8px;
  line-height: 18px;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
}
