/* ===================================================================== */
/* 🎴 The adults' word card (js/banco-wordcard.js · 2026-11-15)          */
/* His words: «I love this credit card design. I want you to use it for  */
/* words also… every word that is new should appear as a flashcard,      */
/* like this, like a credit card» (bct/CLAUDE.md «Every word is a luxury */
/* card»). The bank card's own material (css/banco.css .bk-cardx):       */
/* lacquer black, the banknote guilloche (the same canvas math), the     */
/* gold 回纹 fret top and bottom, gold type, the red seal; 1.586.        */
/* Self-contained: its own tokens and font names (the scenes load it     */
/* without banco.css). Sizes follow the card's own width (container      */
/* units), so a phone, a laptop and a small card read the same.          */
/* Contrast on the lightest lacquer (#2a1c12): ivory 13.9:1, muted 8.5:1,*/
/* gold 7.6:1, the gold's darkest end 4.0:1 (large type only), the       */
/* line's red 4.9:1 on the strip.                                        */
/* ===================================================================== */
@font-face { font-family: 'BWC Sans'; src: url('/assets/fonts/study/noto-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'BWC Sans'; src: url('/assets/fonts/study/noto-sans-600.woff2') format('woff2'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'BWC Sans'; src: url('/assets/fonts/study/noto-sans-800.woff2') format('woff2'); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'BWC Garamond'; src: url('/assets/fonts/study/eb-garamond-medium.woff2') format('woff2'); font-weight: 500 700; font-style: normal; font-display: swap; }
/* the study cuts hold Latin-1 only: ā ǎ ī ǐ ǔ ǚ… fell to another font, and in Garamond «wǒmen» drew a loose «ˇ»
   (measured 2026-11-15). These ~5 KB faces add exactly the 24 pinyin tone letters to each family (unicode-range),
   cut from the same open-licence fonts (study/fonts → pyftsubset; OFL beside them). Each one carries EXACTLY the
   weight range of the face it completes: a different range is a separate face, and the browser then takes it alone
   for that weight and sends every other letter to the next font (measured: «400 600» beside «500 600» lost á é ó) */
@font-face { font-family: 'BWC Sans'; src: url('/assets/fonts/pinyin/noto-tones-600.woff2') format('woff2'); font-weight: 500 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-0101, U+0112-0113, U+011A-011B, U+012A-012B, U+014C-014D, U+016A-016B, U+01CD-01DC; }
@font-face { font-family: 'BWC Sans'; src: url('/assets/fonts/pinyin/noto-tones-800.woff2') format('woff2'); font-weight: 700 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-0101, U+0112-0113, U+011A-011B, U+012A-012B, U+014C-014D, U+016A-016B, U+01CD-01DC; }
@font-face { font-family: 'BWC Garamond'; src: url('/assets/fonts/pinyin/garamond-tones-500.woff2') format('woff2'); font-weight: 500 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-0101, U+0112-0113, U+011A-011B, U+012A-012B, U+014C-014D, U+016A-016B, U+01CD-01DC; }

.bwc {
  --bwc-text: #f2e9d6;      /* ivory */
  --bwc-muted: #c7b89b;     /* quiet text, 8.5:1 on the lightest lacquer */
  --bwc-gold: #d9b66c;
  --bwc-gold-2: #f5e3b0;
  --bwc-gold-deep: #9e7531;
  --bwc-red: #e0503f;       /* the seal, the word in its line */
  --bwc-sans: 'BWC Sans', 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
  --bwc-display: 'BWC Garamond', 'EB Garamond', Georgia, serif;
  --bwc-zh: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', serif;
  --bwc-ease: cubic-bezier(.23, 1, .32, 1);
  --bwc-ease-io: cubic-bezier(.77, 0, .175, 1);
  position: relative; container-type: inline-size; width: 100%; min-width: 240px; max-width: 520px;
  color: var(--bwc-text); font-family: var(--bwc-sans); text-align: left; -webkit-font-smoothing: antialiased;
}
.bwc.is-small { max-width: 340px; min-width: 220px; }
.bwc *, .bwc *::before, .bwc *::after { box-sizing: border-box; }
:where(.bwc) p { margin: 0; }
.bwc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the face: exactly the bank card's lacquer, edge and depth (it grows only if a long meaning needs it) */
/* layout: the word left, its worth and seal at the pinyin's foot on the right, the meaning along the bottom where the
   bank card has its holder; a word of 3+ characters takes the whole width and the worth moves beside the meaning */
.bwc-face { position: relative; isolation: isolate; aspect-ratio: 1.586; border-radius: 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; row-gap: 4px; column-gap: 12px;
  grid-template-areas: "top top" "mid end" "foot foot";
  padding: 22px 22px 18px; padding: clamp(14px, 6.2cqi, 24px) clamp(16px, 6.2cqi, 26px) clamp(12px, 5cqi, 20px);
  background: radial-gradient(120% 90% at 82% 18%, #2a1c12 0%, #120d0a 55%, #0a0806 100%);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85), inset 0 2px 0 rgba(255, 236, 190, .06), inset 0 0 0 1px rgba(217, 182, 108, .22); }
.bwc.is-small .bwc-face { box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .8), inset 0 2px 0 rgba(255, 236, 190, .06), inset 0 0 0 1px rgba(217, 182, 108, .22); }
/* the material layer: guilloche canvas, the two frets, the sheen (clipped to the card, never to its writing) */
.bwc-mat { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.bwc-mat canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bwc-fret { position: absolute; left: 12px; right: 12px; height: 9px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='9'%3E%3Cpath d='M.5 8.5H8.5V.5H2.5V6.5H6.5V2.5H4.5M9.5.5H17.5V8.5H11.5V2.5H15.5V6.5H13.5' fill='none' stroke='%23d9b66c' stroke-width='1'/%3E%3C/svg%3E") repeat-x 0 0 / 18px 9px; }
.bwc-fret.is-t { top: 10px; } .bwc-fret.is-b { bottom: 10px; }
.bwc-sheen { position: absolute; inset: -40% -60%; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 236, 190, .14) 47%, rgba(255, 250, 235, .24) 50%, rgba(255, 236, 190, .14) 53%, transparent 62%); }

/* top: who issued it (or the round's label) · a business word's double gold frame */
.bwc.is-wide .bwc-face { grid-template-areas: "top top" "mid mid" "foot end"; }
.bwc-top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding-top: 6px; }
.bwc-tag { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--bwc-display); font-weight: 600;
  font-size: 17px; font-size: clamp(14.5px, 4.5cqi, 19px); line-height: 1.2; color: var(--bwc-gold-2); text-decoration: none; }
a.bwc-tag { text-decoration: underline; text-decoration-color: rgba(217, 182, 108, .35); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { a.bwc-tag:hover { text-decoration-color: var(--bwc-gold); } }
a.bwc-tag:focus-visible { outline: 2px solid var(--bwc-gold-2); outline-offset: 3px; border-radius: 2px; }
.bwc-biz { flex: none; padding: 4px 10px 4px; border-radius: 4px; color: var(--bwc-gold-2); font-size: 12.5px; font-weight: 600; line-height: 1.2;
  box-shadow: inset 0 0 0 1px rgba(217, 182, 108, .8), inset 0 0 0 3px rgba(16, 11, 8, .9), inset 0 0 0 4px rgba(217, 182, 108, .38); }

/* the word: hanzi in gold leaf (the balance's gradient), its pinyin under it */
.bwc-mid { grid-area: mid; align-self: end; min-width: 0; }
.bwc-zh { white-space: nowrap; font-family: var(--bwc-zh); font-weight: 700; line-height: 1.06; letter-spacing: .02em; padding-bottom: .04em;
  font-size: 76px; font-size: clamp(46px, 22cqi, 112px); color: var(--bwc-gold);
  background: linear-gradient(176deg, var(--bwc-gold-2) 8%, var(--bwc-gold) 46%, var(--bwc-gold-deep) 92%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; overflow-wrap: anywhere; }
.bwc-zh[data-n="3"] { font-size: 64px; font-size: clamp(40px, 18cqi, 94px); }
.bwc-zh[data-n="4"] { font-size: 52px; font-size: clamp(34px, 14.5cqi, 76px); }
.bwc-zh[data-n="5"], .bwc-zh[data-n="6"] { font-size: 42px; font-size: clamp(28px, 11.5cqi, 60px); }
.bwc-zh:focus { outline: none; }
/* pinyin in Noto Sans: every tone mark drawn on its letter (ī ǎ ǔ ǚ), never a loose mark */
.bwc-py { margin-top: 2px; font-family: var(--bwc-sans); font-weight: 600; line-height: 1.2; letter-spacing: .01em;
  font-size: 22px; font-size: clamp(16px, 6.2cqi, 29px); color: var(--bwc-text); overflow-wrap: anywhere; }

/* foot: the meaning where the bank card has its holder; the worth and the seal where it has its figure and chop */
.bwc-foot { grid-area: foot; align-self: end; min-width: 0; padding-bottom: 8px; }
.bwc-mean { min-width: 0; font-family: var(--bwc-display); font-weight: 600; line-height: 1.16; color: var(--bwc-text);
  font-size: 20px; font-size: clamp(17px, 5.7cqi, 27px); text-wrap: balance; overflow-wrap: anywhere; }
.bwc-mean.is-long { font-size: 17px; font-size: clamp(15.5px, 4.6cqi, 22px); line-height: 1.2; }
.bwc-mean.is-veiled { color: var(--bwc-muted); letter-spacing: .3em; font-size: 20px; }
.bwc-mean:focus { outline: none; }
.bwc-end { grid-area: end; align-self: end; display: flex; align-items: flex-end; gap: 10px; padding-bottom: 4px; }
.bwc.is-wide .bwc-end { padding-bottom: 8px; }
.bwc-val { text-align: right; }
.bwc-val b { display: block; font-family: var(--bwc-display); font-weight: 500; line-height: 1; letter-spacing: -.01em; padding-bottom: 2px;
  font-size: 26px; font-size: clamp(21px, 7.6cqi, 36px); font-variant-numeric: lining-nums tabular-nums; color: var(--bwc-gold);
  background: linear-gradient(176deg, var(--bwc-gold-2) 8%, var(--bwc-gold) 46%, var(--bwc-gold-deep) 92%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.bwc-yen { font-size: .62em; margin-right: .1em; vertical-align: .18em; }
.bwc-val small { display: block; margin-top: 3px; color: var(--bwc-muted); font-size: 12px; font-size: clamp(11.5px, 3.3cqi, 13px); font-weight: 600; max-width: 7.5em; text-align: right; }   /* (wraps: «once you know it» squeezed a two-character word onto two lines, the scene's small card in English) */
/* in your bank: the gold diamond of «La sé» beside the figure */
.bwc.is-known .bwc-val small::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 2px; transform: rotate(45deg);
  background: var(--bwc-gold); box-shadow: 0 0 0 2.5px rgba(217, 182, 108, .2); }
/* the tones seal 声: a cinnabar chop pressed askew (hollow while the tones wait; red is never an error) */
.bwc-sealslot:empty { display: none; }
.bwc-seal { display: grid; place-items: center; width: 40px; height: 40px; width: clamp(32px, 11cqi, 48px); height: clamp(32px, 11cqi, 48px);
  margin-bottom: 2px; border-radius: 5px; background: var(--bwc-red); color: #fff4e4; font-family: var(--bwc-zh); font-weight: 700; line-height: 1;
  font-size: 24px; font-size: clamp(19px, 6.6cqi, 29px); transform: rotate(-6deg); box-shadow: 0 6px 16px -8px rgba(224, 80, 63, .8); }
.bwc-seal.is-wait { background: transparent; color: rgba(224, 80, 63, .86); box-shadow: inset 0 0 0 1.5px rgba(224, 80, 63, .72); }

/* the «use case»: the line the word came in, the word red. Attached = a stub under the card; alone = its own panel */
.bwc-use { position: relative; isolation: isolate; padding: 24px 18px 16px; padding: clamp(20px, 6cqi, 26px) clamp(16px, 6.2cqi, 26px) clamp(14px, 4.6cqi, 20px);
  border-radius: 18px; background: linear-gradient(180deg, #160f0b 0%, #0d0a07 100%);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(217, 182, 108, .2); }
.bwc-use::before { content: ''; position: absolute; left: 12px; right: 12px; top: 10px; height: 9px; z-index: -1; opacity: .4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='9'%3E%3Cpath d='M.5 8.5H8.5V.5H2.5V6.5H6.5V2.5H4.5M9.5.5H17.5V8.5H11.5V2.5H15.5V6.5H13.5' fill='none' stroke='%23d9b66c' stroke-width='1'/%3E%3C/svg%3E") repeat-x 0 0 / 18px 9px; }
.bwc-use.is-attached { margin-top: 3px; border-radius: 6px 6px 18px 18px; }
.bwc-use.is-attached::before { top: 0; height: 1px; left: 16px; right: 16px; opacity: 1; background: repeating-linear-gradient(90deg, rgba(217, 182, 108, .45) 0 5px, transparent 5px 10px); }
.bwc.has-use .bwc-face { border-radius: 18px 18px 6px 6px; }
.bwc-use-k { margin-top: 6px; color: var(--bwc-gold); font-size: 13px; font-weight: 700; }
.bwc-use.is-attached .bwc-use-k { margin-top: 0; }
.bwc-use-zh { margin-top: 6px; font-family: var(--bwc-zh); font-weight: 500; line-height: 1.45; color: var(--bwc-text);
  font-size: 25px; font-size: clamp(21px, 6.2cqi, 30px); }
.bwc-use-py { margin-top: 2px; font-family: var(--bwc-sans); font-weight: 600; line-height: 1.45; color: var(--bwc-muted);
  font-size: 16px; font-size: clamp(15px, 4.4cqi, 18px); }
.bwc-use-tr { margin-top: 6px; color: var(--bwc-muted); line-height: 1.45; font-size: 15px; font-size: clamp(14.5px, 4.2cqi, 16.5px); }
.bwc-use .is-red { color: var(--bwc-red); font-weight: 700; }
.bwc-use-zh .is-red { font-weight: 700; }
.bwc-w { white-space: nowrap; }

/* ── motion (emil-design-eng: one authored moment, transform + opacity, ease-out, under 320 ms) ── */
/* a new card is dealt onto the table: it rises from just below, a hair turned, and settles */
.bwc.is-deal { transform-origin: 50% 100%; animation: bwc-deal 300ms var(--bwc-ease) both; }
@keyframes bwc-deal { from { opacity: 0; transform: translateY(22px) rotate(-1.6deg) scale(.965); } to { opacity: 1; transform: none; } }
/* and the gold catches the light once as it lands (the bank card's own sheen) */
.bwc.is-deal .bwc-sheen { animation: bwc-sheen 1100ms var(--bwc-ease-io) 140ms both; }
@keyframes bwc-sheen { 0% { opacity: 0; transform: translateX(-45%); } 14% { opacity: 1; } 86% { opacity: 1; } 100% { opacity: 0; transform: translateX(45%); } }
/* «Ver significado»: the meaning writes itself in where the dots were */
.bwc-mean.is-in { animation: bwc-in 260ms var(--bwc-ease) both; }
@keyframes bwc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* the strip on its own rises in after the meaning */
.bwc.is-rise { animation: bwc-in 300ms var(--bwc-ease) 60ms both; }
/* the tones pass: the seal is pressed */
.bwc-seal.is-press { animation: bwc-press 420ms var(--bwc-ease) both; }
@keyframes bwc-press { 0% { opacity: 0; transform: rotate(-6deg) scale(1.7); } 55% { opacity: 1; transform: rotate(-6deg) scale(.93); } 100% { transform: rotate(-6deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .bwc, .bwc *, .bwc-face::after { animation: none !important; transition: none !important; }
}

/* ── the denominations (his notes 2026-11-16, replacing the tiers: «one different Chinese type of word cannot have the
   same color of card. It cannot have the same nomination… I'm collecting different things»). Each KIND of word is its
   own card of the range, a gemstone or a precious metal with its name engraved top right; the same kind is the same
   card in every episode and level. Eight deep stones (ivory type) and four light metals and glazes (ink type), so no
   two kinds share a ground. Mastery is laid ON the card, never by changing its colour: «La sé» = a foil edge in the
   card's own metal (`is-known`), tones passed = the holographic foil (`is-foil`) beside the red 声.
   Contrast measured on each ground's lightest point under the type: ivory ≥ 9:1 and muted ≥ 5.4:1 on the stones, ink
   ≥ 9:1 and muted ≥ 4.8:1 on the light ones. ── */
.bwc { --bwc-ink: 217,182,108; --bwc-foil: 217,182,108; --bwc-gem: #e8c97e; }
.bwc-top { justify-content: flex-start; }
.bwc-tag { flex: 1 1 auto; }
.bwc-kind { flex: none; font-size: 11px; line-height: 1.2; text-transform: uppercase; color: var(--bwc-muted); font-weight: 600; letter-spacing: .04em; opacity: .9; }
.bwc.is-small .bwc-kind { display: none; }   /* (a small card keeps its top row for the bank's name) */
/* the denomination: its name in the card's leaf, small caps spaced like an engraving, a cut gem before it, the kind under */
.bwc-denom { flex: none; display: grid; justify-items: end; gap: 1px; text-align: right; line-height: 1.1; }
.bwc-denom b { display: inline-flex; align-items: center; gap: 7px; font-family: var(--bwc-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; font-size: 13px; font-size: clamp(11.5px, 3.5cqi, 15px); color: var(--bwc-gold-2); }
.bwc-denom b::before { content: ''; width: 7px; height: 7px; transform: rotate(45deg); border-radius: 1px; flex: none;
  background: linear-gradient(135deg, #fff 0%, var(--bwc-gem) 45%, rgba(0, 0, 0, .35) 100%); box-shadow: 0 0 0 1px rgba(var(--bwc-foil), .55), 0 0 10px rgba(var(--bwc-foil), .45); }
.bwc-denom small { font-family: var(--bwc-sans); font-weight: 600; font-size: 10.5px; font-size: clamp(10px, 2.9cqi, 12px); letter-spacing: .08em; text-transform: uppercase; color: var(--bwc-muted); }
.bwc.is-small .bwc-denom small { display: none; }
.bwc-face { transition: box-shadow 600ms var(--bwc-ease); }

/* each stone's gem colour on anything that names its kind (a tile, a counter, the deck's index): `.is-d-<pos>` */
.is-d-n { --bwc-gem: #7fd6a6; } .is-d-v { --bwc-gem: #f07a5c; } .is-d-adv { --bwc-gem: #7f9cf2; } .is-d-prep { --bwc-gem: #5fd8cf; }
.is-d-mw { --bwc-gem: #e8a46a; } .is-d-time { --bwc-gem: #c4a2f5; } .is-d-conj { --bwc-gem: #f5ae48; } .is-d-part { --bwc-gem: #c9d0dc; }
.is-d-adj { --bwc-gem: #e2b24a; } .is-d-num { --bwc-gem: #b9c1cf; } .is-d-pron { --bwc-gem: #f0c9d6; } .is-d-phrase { --bwc-gem: #8fcaa6; }
/* the eight stones (deep grounds, ivory type, the leaf in the card's own metal). `.bwc-stone.is-d-<pos>` = the same
   ground and tokens on any box («Mis depósitos»: your collection) */
.bwc.is-d-n .bwc-face, .bwc-stone.is-d-n { --bwc-ink: 132,206,166; --bwc-foil: 217,182,108;
  background: radial-gradient(120% 90% at 82% 18%, #1f5a43 0%, #0d2e22 55%, #061811 100%); }
.bwc.is-d-v .bwc-face, .bwc-stone.is-d-v { --bwc-ink: 236,128,98; --bwc-foil: 217,182,108;
  background: radial-gradient(120% 90% at 82% 18%, #7a2016 0%, #3d0e09 55%, #1d0604 100%); }
.bwc.is-d-adv .bwc-face, .bwc-stone.is-d-adv { --bwc-ink: 132,160,240; --bwc-foil: 217,182,108;
  background: radial-gradient(120% 90% at 82% 18%, #26408c 0%, #101f4d 55%, #070e26 100%); }
.bwc.is-d-prep .bwc-face, .bwc-stone.is-d-prep { --bwc-ink: 98,212,204; --bwc-foil: 217,182,108;
  background: radial-gradient(120% 90% at 82% 18%, #17676a 0%, #0b3a3c 55%, #051c1d 100%); }
.bwc.is-d-mw .bwc-face, .bwc-stone.is-d-mw { --bwc-gold: #e0a36a; --bwc-gold-2: #f8d8b4; --bwc-gold-deep: #9a5f2c; --bwc-ink: 214,150,96; --bwc-foil: 224,163,106;
  background: radial-gradient(120% 90% at 82% 18%, #6e3424 0%, #3a1a10 55%, #1b0b07 100%); }
.bwc.is-d-time .bwc-face, .bwc-stone.is-d-time { --bwc-gold: #d9c8f5; --bwc-gold-2: #f3ecff; --bwc-gold-deep: #8f75c2; --bwc-ink: 190,150,240; --bwc-foil: 205,180,245;
  background: radial-gradient(120% 90% at 82% 18%, #55298a 0%, #2c1248 55%, #150824 100%); }
.bwc.is-d-conj .bwc-face, .bwc-stone.is-d-conj { --bwc-gold: #f0c070; --bwc-gold-2: #ffe7b0; --bwc-gold-deep: #a8701e; --bwc-ink: 245,170,70; --bwc-foil: 245,185,95;
  background: radial-gradient(120% 90% at 82% 18%, #b0640e 0%, #5e3306 55%, #2a1503 100%); }
.bwc.is-d-part .bwc-face, .bwc-stone.is-d-part { --bwc-gold: #d6dbe3; --bwc-gold-2: #f6f8fb; --bwc-gold-deep: #858c98; --bwc-ink: 190,196,208; --bwc-foil: 205,212,224;
  background: radial-gradient(120% 90% at 82% 18%, #33363f 0%, #15161b 55%, #07080a 100%); }
.bwc.is-d-part .bwc-fret, .bwc.is-d-time .bwc-fret { filter: grayscale(1) brightness(1.35); }
/* the four light ones: gold leaf, silver, pearl, celadon porcelain (ink type; the seal a deeper red to stay a seal) */
.bwc.is-d-adj .bwc-face, .bwc.is-d-num .bwc-face, .bwc.is-d-pron .bwc-face, .bwc.is-d-phrase .bwc-face { --bwc-red: #b8321f; }
.bwc-stone.is-d-adj { --bwc-text: #2a1a08; --bwc-muted: #5a4014; --bwc-gold: #3a2709; --bwc-gold-2: #6a4a14; --bwc-foil: 120,84,24;
  background: linear-gradient(128deg, #f6e2a6 0%, #d7b061 30%, #f3d98f 52%, #c39a45 74%, #ecd08a 100%); }
.bwc-stone.is-d-num { --bwc-text: #1a1d23; --bwc-muted: #474d58; --bwc-gold: #20242c; --bwc-gold-2: #555c69; --bwc-foil: 70,78,92;
  background: linear-gradient(128deg, #f7f8fa 0%, #c9cdd4 28%, #eef0f3 50%, #b4b9c2 72%, #e9ebef 100%); }
.bwc-stone.is-d-pron { --bwc-text: #2b211c; --bwc-muted: #5c4a40; --bwc-gold: #3b2c24; --bwc-gold-2: #6b5446; --bwc-foil: 150,118,132;
  background: linear-gradient(128deg, #fffaf3 0%, #ecdfd3 26%, #fbf3ea 48%, #e2d6e4 70%, #f7efe6 100%); }
.bwc-stone.is-d-phrase { --bwc-text: #13281d; --bwc-muted: #3d5a49; --bwc-gold: #1d3b2c; --bwc-gold-2: #3f6650; --bwc-foil: 52,104,78;
  background: linear-gradient(128deg, #e6f2e9 0%, #b8d4c3 28%, #dcebe0 50%, #a6c5b2 72%, #d9eadf 100%); }
.bwc.is-d-adj .bwc-face { --bwc-text: #2a1a08; --bwc-muted: #5a4014; --bwc-gold: #3a2709; --bwc-gold-2: #6a4a14; --bwc-gold-deep: #160d02;
  --bwc-ink: 74,48,10; --bwc-foil: 120,84,24;
  background: linear-gradient(128deg, #f6e2a6 0%, #d7b061 30%, #f3d98f 52%, #c39a45 74%, #ecd08a 100%);
  box-shadow: 0 30px 60px -24px rgba(60, 38, 6, .75), inset 0 2px 0 rgba(255, 250, 225, .65), inset 0 0 0 1px rgba(120, 84, 24, .45); }
.bwc.is-d-num .bwc-face { --bwc-text: #1a1d23; --bwc-muted: #474d58; --bwc-gold: #20242c; --bwc-gold-2: #555c69; --bwc-gold-deep: #0b0d10;
  --bwc-ink: 40,46,58; --bwc-foil: 70,78,92;
  background: linear-gradient(128deg, #f7f8fa 0%, #c9cdd4 28%, #eef0f3 50%, #b4b9c2 72%, #e9ebef 100%);
  box-shadow: 0 30px 60px -24px rgba(20, 24, 32, .7), inset 0 2px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(70, 78, 92, .4); }
.bwc.is-d-pron .bwc-face { --bwc-text: #2b211c; --bwc-muted: #5c4a40; --bwc-gold: #3b2c24; --bwc-gold-2: #6b5446; --bwc-gold-deep: #1a120d;
  --bwc-ink: 120,96,110; --bwc-foil: 150,118,132;
  background: linear-gradient(128deg, #fffaf3 0%, #ecdfd3 26%, #fbf3ea 48%, #e2d6e4 70%, #f7efe6 100%);
  box-shadow: 0 30px 60px -24px rgba(50, 36, 40, .65), inset 0 2px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(120, 96, 110, .35); }
.bwc.is-d-phrase .bwc-face { --bwc-text: #13281d; --bwc-muted: #3d5a49; --bwc-gold: #1d3b2c; --bwc-gold-2: #3f6650; --bwc-gold-deep: #0b1a12;
  --bwc-ink: 40,84,62; --bwc-foil: 52,104,78;
  background: linear-gradient(128deg, #e6f2e9 0%, #b8d4c3 28%, #dcebe0 50%, #a6c5b2 72%, #d9eadf 100%);
  box-shadow: 0 30px 60px -24px rgba(16, 40, 28, .65), inset 0 2px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(40, 84, 62, .35); }
.bwc.is-d-adj .bwc-fret, .bwc.is-d-num .bwc-fret, .bwc.is-d-pron .bwc-fret, .bwc.is-d-phrase .bwc-fret { opacity: .5; filter: brightness(.35) saturate(.6); }
.bwc.is-d-adj .bwc-biz, .bwc.is-d-num .bwc-biz, .bwc.is-d-pron .bwc-biz, .bwc.is-d-phrase .bwc-biz { box-shadow: inset 0 0 0 1px currentColor; }
.bwc.is-d-adj .bwc-denom b::before, .bwc.is-d-num .bwc-denom b::before, .bwc.is-d-pron .bwc-denom b::before, .bwc.is-d-phrase .bwc-denom b::before {
  box-shadow: 0 0 0 1px rgba(var(--bwc-foil), .7); }

/* «La sé»: a foil frame laid on the card in its own metal (two hairlines, like an engraved border) */
.bwc-face::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0;
  box-shadow: inset 0 0 0 1px rgba(var(--bwc-foil), .9), inset 0 0 0 5px transparent, inset 0 0 0 5.5px rgba(var(--bwc-foil), .38);
  transition: opacity 500ms var(--bwc-ease); }
.bwc.is-known .bwc-face::after { opacity: 1; }
/* tones passed: the holographic foil, a narrow band of soft spectral light near the seal that slides with the light
   (`--bwc-lx` 0..1 from a finger or the mouse; still otherwise: no endless animation on a phone) */
.bwc-holo { position: absolute; inset: 0; opacity: 0; mix-blend-mode: color-dodge; pointer-events: none;
  background: linear-gradient(112deg, transparent 34%, rgba(255, 140, 196, .42) 41%, rgba(140, 220, 255, .42) 47%, rgba(170, 255, 190, .38) 53%, rgba(255, 228, 140, .42) 59%, transparent 66%) no-repeat;
  background-size: 240% 100%; background-position: calc(var(--bwc-lx, .3) * 100%) 0; transition: opacity 600ms var(--bwc-ease); }
.bwc.is-foil .bwc-holo { opacity: .32; }
.bwc.is-foil.is-d-adj .bwc-holo, .bwc.is-foil.is-d-num .bwc-holo, .bwc.is-foil.is-d-pron .bwc-holo, .bwc.is-foil.is-d-phrase .bwc-holo { mix-blend-mode: overlay; opacity: .2; }
/* the moment it is earned: one sweep of light across the card and the frame drawn on */
.bwc.is-earn .bwc-sheen { animation: bwc-sheen 1100ms var(--bwc-ease-io) both; }
.bwc.is-earn .bwc-face::after { animation: bwc-frame 700ms var(--bwc-ease) both; }
@keyframes bwc-frame { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
