/*
 * TAG Legal Desk v2.1: J161 enamel pins drawn by the page (js\v21_badge_pins.js) for the J144 badges and any badge the
 * art kit has no pin for. Every colour is an art token (art\tokens\art_tokens.css, art\grove_and_badges\gb_art.css)
 * with the kit's own fallback, so Light, Dark and High contrast (and forced colours) read as the kit's pins do.
 * The reveal's pop and the one sweep of light are the kit's own (.gb-pin in gb_art.css); only transform and opacity
 * animate. Game art: hidden in the quiet period (data-quiet), never in a job, on the email paper, on a welfare surface
 * or in print; Calm, reduced motion and the days that matter keep the reveal still.
 */

/* ---------- the box ---------- */
.v21bp { position: relative; display: inline-grid; place-items: center; flex: none; line-height: 0; }
.v21bp > svg { grid-area: 1 / 1; display: block; overflow: visible; }
.v21bp .gb-sweep { grid-area: 1 / 1; }
/* (the book's narrow screen sizing of the 160 px detail is the craft stylesheet's own .v21c-pin-art.v21c-px160 rule) */

/* ---------- the metal (the kit's two gradients: rim light to dark, bezel dark to light) ---------- */
.v21bp.t-bronze .bp-mhi { stop-color: var(--metal-bronze-hi, #D39A68); }
.v21bp.t-bronze .bp-mlo { stop-color: var(--metal-bronze-lo, #6B4222); }
.v21bp.t-silver .bp-mhi { stop-color: var(--metal-silver-hi, #E6EAEC); }
.v21bp.t-silver .bp-mlo { stop-color: var(--metal-silver-lo, #737B80); }
.v21bp.t-gold .bp-mhi { stop-color: var(--metal-gold-hi, #F1D774); }
.v21bp.t-gold .bp-mlo { stop-color: var(--metal-gold-lo, #8C6C12); }
.v21bp.t-brass .bp-mhi { stop-color: var(--metal-brass-hi, #E2C37E); }
.v21bp.t-brass .bp-mlo { stop-color: var(--metal-brass-lo, #7D5E24); }
.v21bp .bp-crescent { fill: var(--art-light, rgba(255,255,255,.72)); opacity: calc(.9 * var(--gb-hc-soft, 1)); }
.v21bp .bp-bezel-shade { fill: var(--art-shade, rgba(20,30,22,.20)); opacity: calc(.6 * var(--gb-hc-soft, 1)); }
.v21bp .bp-streak { fill: var(--art-light, rgba(255,255,255,.72)); opacity: calc(.11 * var(--gb-hc-soft, 1)); }
.v21bp .bp-edge { stroke: var(--art-hc-edge, transparent); stroke-width: var(--art-hc-edge-w, 0); stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.v21bp .bp-engrave { stroke: var(--metal-gold-hi, #F1D774); stroke-width: .55; opacity: calc(.75 * var(--gb-hc-soft, 1)); }
.v21bp .bp-hcline { display: none; }

/* ---------- the enamel (the kit's fired colours; Dark holds them near Light) ---------- */
.v21bp .f-gum { fill: var(--gb-enamel-gum, #34553A); }
.v21bp .f-euc { fill: var(--gb-enamel-eucalypt, #46636B); }
.v21bp .f-sky { fill: var(--gb-enamel-sky, #6A93AC); }
.v21bp .f-juv { fill: var(--gb-enamel-juvenile, #8FAEA3); }
.v21bp .f-cream { fill: var(--gb-enamel-cream, #F1E8D2); }
/* 30 Sep 2026: the deep midnight enamel of the Director's own gift pin (the night window over the bed). The kit has no
   midnight, so its token lives here, set like the kit's: Dark holds it near Light, High contrast is white enamel and
   forced colours take Canvas. */
:root { --gb-enamel-midnight: #1C2A4E; }
:root[data-theme="dark"], :root[data-theme="night_shift"] { --gb-enamel-midnight: #21305A; }
:root[data-theme="high_contrast"] { --gb-enamel-midnight: #FFFFFF; }
@media (forced-colors: active) { :root { --gb-enamel-midnight: Canvas; } }
.v21bp .f-night { fill: var(--gb-enamel-midnight, #1C2A4E); }

/* ---------- the motif's colours (fills c-, strokes k-) ---------- */
.v21bp .c-cream { fill: var(--flora-blossom, #F1E8D2); }      .v21bp .k-cream { stroke: var(--flora-blossom, #F1E8D2); }
.v21bp .c-paper { fill: var(--flora-bark-pale, #DDD3C3); }    .v21bp .k-paper { stroke: var(--flora-bark-pale, #DDD3C3); }
.v21bp .c-white { fill: var(--flora-wild-white, #F2EFE6); }   .v21bp .k-white { stroke: var(--flora-wild-white, #F2EFE6); }
.v21bp .c-gold { fill: var(--flora-wattle, #D9A21B); }        .v21bp .k-gold { stroke: var(--flora-wattle, #D9A21B); }
.v21bp .c-golddk { fill: var(--flora-wattle-deep, #A87A0C); } .v21bp .k-golddk { stroke: var(--flora-wattle-deep, #A87A0C); }
.v21bp .c-gum { fill: var(--flora-gum, #5A7D5E); }            .v21bp .k-gum { stroke: var(--flora-gum, #5A7D5E); }
.v21bp .c-gumdk { fill: var(--flora-gum-deep, #34553A); }     .v21bp .k-gumdk { stroke: var(--flora-gum-deep, #34553A); }
.v21bp .c-juv { fill: var(--flora-gum-juvenile, #8FAEA3); }   .v21bp .k-juv { stroke: var(--flora-gum-juvenile, #8FAEA3); }
.v21bp .c-fern { fill: var(--flora-fern, #6E9A45); }          .v21bp .k-fern { stroke: var(--flora-fern, #6E9A45); }
.v21bp .c-ferndk { fill: var(--flora-fern-deep, #3F6B2C); }   .v21bp .k-ferndk { stroke: var(--flora-fern-deep, #3F6B2C); }
.v21bp .c-bark { fill: var(--flora-bark, #8B6E55); }          .v21bp .k-bark { stroke: var(--flora-bark, #8B6E55); }
.v21bp .c-nut { fill: var(--flora-nut, #7A5A3E); }            .v21bp .k-nut { stroke: var(--flora-nut, #7A5A3E); }
.v21bp .c-red { fill: var(--flora-waratah, #A8203F); }        .v21bp .k-red { stroke: var(--flora-waratah, #A8203F); }
.v21bp .c-orange { fill: var(--flora-bottlebrush, #D2472E); } .v21bp .k-orange { stroke: var(--flora-bottlebrush, #D2472E); }
.v21bp .c-banksia { fill: var(--flora-banksia, #C87632); }    .v21bp .k-banksia { stroke: var(--flora-banksia, #C87632); }
.v21bp .c-pink { fill: var(--flora-wild-pink, #E29AB0); }     .v21bp .k-pink { stroke: var(--flora-wild-pink, #E29AB0); }
.v21bp .c-violet { fill: var(--flora-wild-violet, #8C7BC2); } .v21bp .k-violet { stroke: var(--flora-wild-violet, #8C7BC2); }
.v21bp .c-blue { fill: var(--fauna-wren-blue, #3C8DD0); }     .v21bp .k-blue { stroke: var(--fauna-wren-blue, #3C8DD0); }
.v21bp .c-bluedk { fill: var(--fauna-wren-blue-deep, #1F4F8A); } .v21bp .k-bluedk { stroke: var(--fauna-wren-blue-deep, #1F4F8A); }
.v21bp .c-brown { fill: var(--fauna-wren-brown, #9C7E60); }   .v21bp .k-brown { stroke: var(--fauna-wren-brown, #9C7E60); }
.v21bp .c-belly { fill: var(--fauna-wren-belly, #E6DCCB); }   .v21bp .k-belly { stroke: var(--fauna-wren-belly, #E6DCCB); }
.v21bp .c-sky { fill: var(--gb-enamel-sky, #6A93AC); }        .v21bp .k-sky { stroke: var(--gb-enamel-sky, #6A93AC); }
.v21bp .c-ink { fill: var(--fauna-wren-black, #1E2124); }     .v21bp .k-ink { stroke: var(--fauna-wren-black, #1E2124); }
.v21bp .c-sh { fill: var(--art-shade, rgba(20,30,22,.20)); }  .v21bp .k-sh { stroke: var(--art-shade, rgba(20,30,22,.20)); }
.v21bp .c-hi { fill: var(--art-light, rgba(255,255,255,.72)); } .v21bp .k-hi { stroke: var(--art-light, rgba(255,255,255,.72)); }
.v21bp.t-bronze .c-metal { fill: var(--metal-bronze, #A0683A); } .v21bp.t-bronze .k-metal { stroke: var(--metal-bronze, #A0683A); }
.v21bp.t-silver .c-metal { fill: var(--metal-silver, #A9B0B5); } .v21bp.t-silver .k-metal { stroke: var(--metal-silver, #A9B0B5); }
.v21bp.t-gold .c-metal { fill: var(--metal-gold, #C9A227); }     .v21bp.t-gold .k-metal { stroke: var(--metal-gold, #C9A227); }
.v21bp.t-brass .c-metal { fill: var(--metal-brass, #B48A3C); }   .v21bp.t-brass .k-metal { stroke: var(--metal-brass, #B48A3C); }
.v21bp.t-bronze .c-metalhi { fill: var(--metal-bronze-hi, #D39A68); } .v21bp.t-silver .c-metalhi { fill: var(--metal-silver-hi, #E6EAEC); }
.v21bp.t-gold .c-metalhi { fill: var(--metal-gold-hi, #F1D774); }     .v21bp.t-brass .c-metalhi { fill: var(--metal-brass-hi, #E2C37E); }

/* the large drawing's thin metal line round each main shape (the kit's l tier) */
.v21bp .bp-line { fill: none; stroke-width: .42; stroke-linejoin: round; opacity: calc(.7 * var(--gb-hc-soft, 1)); }
.v21bp.t-bronze .bp-line { stroke: var(--metal-bronze-hi, #D39A68); }
.v21bp.t-silver .bp-line { stroke: var(--metal-silver-hi, #E6EAEC); }
.v21bp.t-gold .bp-line { stroke: var(--metal-gold-hi, #F1D774); }
.v21bp.t-brass .bp-line { stroke: var(--metal-brass-hi, #E2C37E); }

/* ---------- locked: the kit's grey glass and a faint pressed silhouette ---------- */
.v21bp .bp-glass { fill: var(--glass-hover, rgba(255,255,255,.35)); }
.v21bp .bp-glass-shade { fill: var(--art-shade, rgba(20,30,22,.20)); opacity: calc(.42 * var(--gb-hc-soft, 1)); }
.v21bp .bp-bevel-lo { fill: var(--art-shade, rgba(20,30,22,.20)); }
.v21bp .bp-bevel-lo2 { fill: var(--art-shade, rgba(20,30,22,.20)); opacity: calc(.8 * var(--gb-hc-soft, 1)); }
.v21bp .bp-bevel-hi { fill: var(--art-light, rgba(255,255,255,.72)); opacity: calc(.9 * var(--gb-hc-soft, 1)); }
.v21bp .bp-sil-hi { opacity: .5; }
.v21bp .bp-sil-lo { opacity: .15; }
.v21bp .bp-sil-det { opacity: .42; }
.v21bp .bp-sil-hi .bps, .v21bp .bp-sil-det .bps { fill: #FFFFFF; }
.v21bp .bp-sil-lo .bps { fill: #16211A; }
.v21bp .bp-sil-hi .bps.bpk, .v21bp .bp-sil-det .bps.bpk { fill: none; stroke: #FFFFFF; }
.v21bp .bp-sil-lo .bps.bpk { fill: none; stroke: #16211A; }
:root[data-theme="dark"] .v21bp .bp-sil-hi, :root[data-theme="night_shift"] .v21bp .bp-sil-hi { opacity: .14; }
:root[data-theme="dark"] .v21bp .bp-sil-lo, :root[data-theme="night_shift"] .v21bp .bp-sil-lo { opacity: .34; }
:root[data-theme="dark"] .v21bp .bp-sil-det, :root[data-theme="night_shift"] .v21bp .bp-sil-det { opacity: .14; }
:root[data-theme="dark"] .v21bp .bp-sil-lo .bps, :root[data-theme="night_shift"] .v21bp .bp-sil-lo .bps { fill: #000000; }
:root[data-theme="dark"] .v21bp .bp-sil-lo .bps.bpk, :root[data-theme="night_shift"] .v21bp .bp-sil-lo .bps.bpk { fill: none; stroke: #000000; }
/* Where the browser can read a colour out of a token, the pressing takes the kit's own --art-light and --art-shade
   (their colour, at full strength: each copy stays one flat pressing and its group sets how faint it is); the solid
   values above are the fallback. High contrast and forced colours keep their own rules below. */
@supports (fill: rgb(from #FFFFFF r g b)) {
  .v21bp .bp-sil-hi .bps, .v21bp .bp-sil-det .bps { fill: rgb(from var(--art-light, #FFFFFF) r g b / 1); }
  .v21bp .bp-sil-hi .bps.bpk, .v21bp .bp-sil-det .bps.bpk { fill: none; stroke: rgb(from var(--art-light, #FFFFFF) r g b / 1); }
  .v21bp .bp-sil-lo .bps { fill: rgb(from var(--art-shade, #16211A) r g b / 1); }
  .v21bp .bp-sil-lo .bps.bpk { fill: none; stroke: rgb(from var(--art-shade, #16211A) r g b / 1); }
  :root[data-theme="dark"] .v21bp .bp-sil-lo .bps, :root[data-theme="night_shift"] .v21bp .bp-sil-lo .bps { fill: rgb(from var(--art-shade, #000000) r g b / 1); }
  :root[data-theme="dark"] .v21bp .bp-sil-lo .bps.bpk, :root[data-theme="night_shift"] .v21bp .bp-sil-lo .bps.bpk { fill: none; stroke: rgb(from var(--art-shade, #000000) r g b / 1); }
}

/* ---------- High contrast: white enamel, a black edge, a black motif with white details ---------- */
/* the High contrast only outline (role h): hidden in the colour themes, black in High contrast, CanvasText forced */
.v21bp .r-h { display: none; }
:root[data-theme="high_contrast"] .v21bp .r-p:not(.bpk) { fill: #000000; opacity: 1; }
:root[data-theme="high_contrast"] .v21bp .r-p.bpk { stroke: #000000; opacity: 1; }
:root[data-theme="high_contrast"] .v21bp .r-d:not(.bpk) { fill: #FFFFFF; opacity: 1; }
:root[data-theme="high_contrast"] .v21bp .r-d.bpk { stroke: #FFFFFF; opacity: 1; }
:root[data-theme="high_contrast"] .v21bp .r-s, :root[data-theme="high_contrast"] .v21bp .bp-lines,
:root[data-theme="high_contrast"] .v21bp .bp-sil-hi, :root[data-theme="high_contrast"] .v21bp .bp-sil-det { display: none; }
:root[data-theme="high_contrast"] .v21bp .bp-hcline { display: inline; stroke: #000000; stroke-width: 1px; vector-effect: non-scaling-stroke; }
:root[data-theme="high_contrast"] .v21bp .r-h { display: inline; fill: none; stroke: #000000; opacity: 1; }
:root[data-theme="high_contrast"] .v21bp .bp-sil-lo { opacity: 1; }
:root[data-theme="high_contrast"] .v21bp .bp-sil-lo .bps { fill: none; stroke: #000000; stroke-width: 1px; vector-effect: non-scaling-stroke; }
@media (forced-colors: active) {
  .v21bp .r-p:not(.bpk) { fill: CanvasText; opacity: 1; }
  .v21bp .r-p.bpk { stroke: CanvasText; opacity: 1; }
  .v21bp .r-d:not(.bpk) { fill: Canvas; opacity: 1; }
  .v21bp .r-d.bpk { stroke: Canvas; opacity: 1; }
  .v21bp .r-s, .v21bp .bp-lines, .v21bp .bp-sil-hi, .v21bp .bp-sil-det { display: none; }
  .v21bp .bp-hcline { display: inline; stroke: CanvasText; stroke-width: 1px; vector-effect: non-scaling-stroke; }
  .v21bp .r-h { display: inline; fill: none; stroke: CanvasText; opacity: 1; }
  .v21bp .bp-sil-lo { opacity: 1; }
  .v21bp .bp-sil-lo .bps { fill: none; stroke: CanvasText; stroke-width: 1px; vector-effect: non-scaling-stroke; }
}

/* ---------- where a pin shows: the trophy room's list, the win line and a flying prize ---------- */
.v21tr-pin > .v21bp { margin: 0 auto; }
/* a book label with one long word (Clickosaurus) is set a touch smaller, so the word is never split in two */
.v21c-pinbtn .nm.nm-long { font-size: .6875rem; letter-spacing: -.01em; }
.kcn-prize > .v21bp, .kcn-win-pic > .v21bp { width: 100%; height: 100%; }
.kcn-prize > .v21bp > svg, .kcn-win-pic > .v21bp > svg { width: 100%; height: 100%; }

/* ---------- the reveal stays still: reduced motion, the Motion setting, Calm, the days that matter ---------- */
@media (prefers-reduced-motion: reduce) {
  .v21bp.is-revealing > svg { animation: v21bp-fade 120ms linear both !important; }
  .v21bp .gb-sweep { display: none !important; }
}
:root[data-motion="reduced"] .v21bp.is-revealing > svg, :root[data-calm="on"] .v21bp.is-revealing > svg,
:root[data-day-matters]:not([data-day-matters=""]) .v21bp.is-revealing > svg { animation: v21bp-fade 120ms linear both !important; }
:root[data-motion="reduced"] .v21bp .gb-sweep, :root[data-calm="on"] .v21bp .gb-sweep,
:root[data-day-matters]:not([data-day-matters=""]) .v21bp .gb-sweep { display: none !important; }
@keyframes v21bp-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- game art: never in the quiet period, a job, the email paper, a welfare surface or print ---------- */
:root[data-quiet="on"] .v21bp { display: none !important; }
#job-layer .v21bp, .paper .v21bp, #wf-layer .v21bp, #wf-slot .v21bp, #wf-over-job .v21bp, #wf-over-cover .v21bp,
.wf-band .v21bp, .band-welfare .v21bp, #leave-root .v21bp { display: none !important; }
@media print { .v21bp { display: none !important; } }
