/* punk-silk.css — THUD CORE's Silkpunk (run 4, 2026-10-19; the owner: «and one with silkpunk»): an engineering fantasy of
   bamboo, silk, lacquer and bronze among misty karst peaks, at peace. Gold-leaf bezels, a vermilion lacquer pinstripe, jade
   for state and progress, gold leaf for the reward; each readiness plate marked with a cloud scroll. Vermilion and lapis
   are trim alone, never a state (red is the wrong answer's); Ukraine's blue and yellow stay the accent (jade) and the
   reward (gold). Its faces are THUD's own shelf (fonts/, through fonts.css and thud-def.css): Lora's brush-born serif for
   titles, Montserrat's capitals for labels; Inter for text. No characters or calligraphy anywhere: nothing is written
   that a learner might take for a language. Nothing new to load, and none is put on what a card teaches. */
html[data-palette="silk"] {
  --caps: "Montserrat DEF", "Montserrat", var(--face);
  --display: "Lora", "Literata", Georgia, serif;
  --ui: "Inter DEF", "Inter", var(--face);
  --gold: #e9b64a;
  --vermilion: #d4482a;
  --jade: #55c99a;
  --lapis: #2b4ea2;
  --gold-leaf: linear-gradient(180deg, #fff6d8 0%, #f5d98c 30%, #b8862b 52%, #fbe6a8 58%, #cf9a3c 80%, #fff0c4 100%);
  /* the glass: a gold-leaf bezel; a jade glint for its sheen */
  --rim: rgba(255, 236, 190, .6);
  --rim-soft: rgba(190, 170, 120, .22);
  --rim-far: rgba(60, 60, 80, .55);
  --hi: rgba(240, 250, 240, .12);
  --glass-top: rgba(200, 240, 220, .05);
  --spot: rgba(150, 230, 190, .16);
  --sheen: rgba(240, 255, 245, .14);
  /* a gold line along a panel's top, jade at its middle */
  --horizon: linear-gradient(90deg, transparent, rgba(240, 200, 110, .42) 20%, rgba(85, 201, 154, .62) 50%, rgba(240, 200, 110, .42) 80%, transparent);
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23e9b64a' stroke-width='1.3' opacity='.7' stroke-linecap='round'%3E%3Cpath d='M9 24a6 6 0 1 1 6-6 3 3 0 1 0 3-3'/%3E%3Cpath d='M15 24a6 6 0 0 1 12 0 4 4 0 0 0 8 0'/%3E%3Cpath d='M6 29h28'/%3E%3C/g%3E%3Ccircle cx='18' cy='15' r='1.4' fill='%23d4482a'/%3E%3C/svg%3E");
}
html[data-look="milk"][data-palette="silk"] {
  --gold: #8a5a00;
  --vermilion: #b0301a;
  --jade: #0a7e54;
  --lapis: #1f3f8f;
  --rim: rgba(140, 120, 80, .55);
  --rim-soft: rgba(160, 150, 110, .2);
  --rim-far: rgba(30, 36, 56, .3);
  --hi: rgba(255, 255, 255, .75);
  --spot: rgba(210, 245, 225, .38);
  --horizon: linear-gradient(90deg, transparent, rgba(10, 126, 84, .45) 50%, transparent);
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%238a5a00' stroke-width='1.3' opacity='.6' stroke-linecap='round'%3E%3Cpath d='M9 24a6 6 0 1 1 6-6 3 3 0 1 0 3-3'/%3E%3Cpath d='M15 24a6 6 0 0 1 12 0 4 4 0 0 0 8 0'/%3E%3Cpath d='M6 29h28'/%3E%3C/g%3E%3Ccircle cx='18' cy='15' r='1.4' fill='%23b0301a'/%3E%3C/svg%3E");
}
html[data-palette="silk"] body { font-family: var(--ui); }
html[data-palette="silk"] :is(.def-hero__title, .phead h1, .t-display, .t-large, .t-title, .t-head, .def-card__title, .sheet .t-title, .fr-res .rs-head, .bk-title) { font-family: var(--display); font-weight: 600; letter-spacing: 0; }
html[data-palette="silk"] .caps { font-family: var(--caps); font-weight: 600; letter-spacing: .24em; }
html[data-palette="silk"] :is(.def-cell b, .fr-arc__n, .fr-tiles b, .fr-tile b) { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
/* the Debrief's score in its rim (PUNK.md call 41): vermilion lacquer, gold-leaf cloud scrolls between two rims of gold
   (art/silk/bezel.webp, scripts/cut_rims.py), its opening 180 px of 224, clear of the gauge's ticks (176 px) */
html[data-palette="silk"] .fr-arc, html[data-palette="silk"] .fr-res .fr-arc { margin: 38px 0 36px; }
html[data-palette="silk"] .fr-arc .ring::after { content: ""; position: absolute; inset: -36px; pointer-events: none;
  background: url("art/silk/bezel.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
html[data-look="milk"][data-palette="silk"] .fr-arc .ring::after { filter: drop-shadow(0 6px 10px rgba(96, 30, 18, .28)); }
html[data-palette="silk"] .def-brand b { font-family: var(--display); font-weight: 700; letter-spacing: .04em; }
html[data-palette="silk"] .def-brand i { font-family: var(--caps); font-weight: 600; letter-spacing: .28em; }

/* the panels: smoked glass in a gold-leaf bezel, a gold line along the top, jade at its middle */
html[data-palette="silk"] .glass:not(.chip):not(.tabbar):not(.btn):not(.def-cell):not(.fr-tile) {
  background-image: var(--horizon), linear-gradient(180deg, var(--glass-top) 0%, rgba(255, 255, 255, .02) 42%, rgba(255, 255, 255, 0) 100%);
  background-size: 100% 1px, 100% 100%; background-repeat: no-repeat; background-position: 0 0, 0 0; }
/* the readiness plates: each marked with a cloud scroll in its corner, a drop of vermilion lacquer in its curl */
html[data-palette="silk"] :is(.def-cell, .fr-tile) {
  background-image: var(--cloud), var(--horizon), linear-gradient(180deg, var(--glass-top) 0%, rgba(255, 255, 255, .02) 42%, rgba(255, 255, 255, 0) 100%);
  background-size: 30px 30px, 100% 1px, 100% 100%; background-position: calc(100% - 8px) 8px, 0 0, 0 0; background-repeat: no-repeat; border-radius: 18px; }

/* the strategies' covers: a gold-leaf frame with a vermilion lacquer pinstripe inside it */
html[data-palette="silk"] .def-card { border-radius: 18px; outline: 1px solid rgba(212, 72, 42, .55); outline-offset: -7px; }
html[data-palette="silk"] .def-card::before { padding: 1.5px;
  background: linear-gradient(160deg, #fff0c0, #d2a845 24%, #775510 46%, #fbe6a8 54%, #b28628 78%, #f8e2a4); }
html[data-palette="silk"] .btn--primary { border-radius: 999px; font-weight: 700; }

/* the hero: the name in gold leaf by night (a jade glint), in ink by day */
html:not([data-look="milk"])[data-palette="silk"] .def-hero__title { background-image: var(--gold-leaf); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)) drop-shadow(0 0 16px rgba(233, 182, 74, .28)); }
html:not([data-look="milk"])[data-palette="silk"] .def-hero__eyebrow { color: var(--acc-ink); }

/* the name in the intro: gold leaf, its rule jade with a vermilion heart */
html[data-palette="silk"] .intro__thud { font-family: "Lora", Georgia, serif; font-weight: 700; letter-spacing: .03em;
  background-image: linear-gradient(180deg, #fff7dc 0%, #f4d78a 26%, #b8862b 50%, #fbe8ad 56%, #cf9a3c 78%, #55c99a 100%); }
html[data-palette="silk"] .intro__arms > i { background-image: linear-gradient(180deg, #fff7dc 0%, #f4d78a 26%, #b8862b 50%, #fbe8ad 56%, #cf9a3c 78%, #55c99a 100%); }
html[data-palette="silk"] .intro__def { font-family: "Montserrat DEF", "Montserrat", sans-serif; font-weight: 600; letter-spacing: .5em; }
html[data-palette="silk"] .intro__rule { background: linear-gradient(90deg, transparent, #55c99a, #d4482a, #55c99a, transparent); }

/* ── the companion's burst (RAM.md §7, thud.js burst): flakes of gold leaf turning in the air, a jade one among them ── */
[data-ram="silk"] .petal { left: -3px; top: -3px; width: 6px; height: 4px; border-radius: 1px 3px; background: #f5d98c !important; box-shadow: 0 0 5px 1px rgba(240, 200, 110, .6); }
[data-ram="silk"] .petal.p2 { background: #8fe0bb !important; box-shadow: 0 0 5px 1px rgba(85, 201, 154, .65); }

