/* punk-record.css — the Record's medals, bests and charts (frap-record.js) and the certificates' own place (punk-cert.js
   page()), 2026-10-19. Every colour is a token of frap.css (priced by verify_contrast.py) or the certificate's own paper and
   metal (punk-cert.js THEME, the same the canvas draws with). */

/* ── MEDALS: a shelf that scrolls sideways on a phone, a grid on a wider page ── */
.mdls { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter, 20px)); padding: 4px var(--gutter, 20px) 8px; scroll-padding-inline: var(--gutter, 20px); }
.mdls::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .mdls { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); overflow: visible; margin: 0; padding: 4px 0 8px; } }
/* between a phone and a desk, four a row: the words' eight in two even rows (five and three before), the book's four in one */
@media (min-width: 640px) and (max-width: 1099px) { .mdls { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mdl { -webkit-appearance: none; appearance: none; position: relative; flex: 0 0 104px; display: grid; justify-items: center; align-content: start; gap: 0;
  margin: 0; padding: 4px 2px 6px; border: 0; background: none; color: var(--ink); font: inherit; text-align: center; cursor: pointer;
  scroll-snap-align: start; -webkit-tap-highlight-color: transparent; border-radius: 16px; }
.mdl:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 2px; }
.mdl__art { position: relative; display: block; width: 88px; height: 88px; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.mdl:hover .mdl__art { transform: translateY(-2px) rotate(-3deg); }
.mdl:active .mdl__art { transform: scale(.96); }
.mdl__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 9px rgba(0, 0, 0, .38)); }
/* a disc of the tier's metal under the picture, so the engraved number never floats on the page while it comes (the
   medals are kept the first time each is seen, not before); every medal is a full circle and covers it */
.mdl__art::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #f3e3bb, #c69b45 52%, #6f5119); }
.mdl--silver::before { background: radial-gradient(circle at 36% 30%, #fbfbfa, #b9bec4 52%, #5d646c); }
.mdl--bronze::before { background: radial-gradient(circle at 36% 30%, #f0c9a0, #a8693a 52%, #57321a); }
.mdl--locked::before { filter: grayscale(1) brightness(.62) contrast(.92); opacity: .62; }
/* the number engraved in the medal's plain centre, the family's mark above it */
.mdl__face { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1px; color: rgba(44, 28, 8, .74);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45), 0 -1px 1px rgba(0, 0, 0, .28); pointer-events: none; }
.mdl__face b { font-family: var(--display, inherit); font-weight: 750; font-size: 23px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.mdl__glyph { width: 13px; height: 13px; opacity: .85; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .4)); }
.mdl--silver .mdl__face { color: rgba(26, 31, 38, .72); }
/* Cyberpunk's bronze and steel are dark at their centre: the number glows there, as its neon does */
html[data-palette="cyber"] .mdl--bronze .mdl__face, html[data-palette="cyber"] .mdl--silver .mdl__face { color: #e8fbff; text-shadow: 0 0 6px rgba(70, 225, 255, .85), 0 0 1px rgba(0, 0, 0, .8); }
html[data-palette="cyber"] .mdl--bronze .mdl__glyph, html[data-palette="cyber"] .mdl--silver .mdl__glyph { filter: drop-shadow(0 0 4px rgba(70, 225, 255, .9)); }
/* not yet: the first tier's medal, its metal gone grey */
.mdl--locked img { filter: grayscale(1) brightness(.62) contrast(.92) drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); opacity: .62; }
.mdl--locked .mdl__face { color: rgba(20, 22, 26, .62); text-shadow: 0 1px 0 rgba(255, 255, 255, .22); }
html[data-palette="cyber"] .mdl--locked .mdl__face { color: rgba(232, 251, 255, .55); text-shadow: none; }
/* new since the last look: a ring of the skin's light, and a word */
.mdl--new::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--acc-3), 0 0 22px 2px var(--glow, rgba(255, 210, 120, .5));
  animation: mdl-new 2.2s ease-in-out 3; }
@keyframes mdl-new { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.mdl__ribbon { position: absolute; top: 2px; right: 4px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 750; letter-spacing: .04em;
  color: var(--acc-ink); background: var(--ground); box-shadow: inset 0 0 0 1.5px currentColor; }
.mdl__name { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 650; line-height: 1.2; color: var(--ink); }
.mdl__bar { display: block; width: 64px; height: 4px; margin: 6px auto 3px; border-radius: 2px; background: rgba(var(--tint), .14); overflow: hidden; }
.mdl__bar i { display: block; height: 100%; border-radius: inherit; background: var(--acc-3); }
.mdl__sub { display: block; font-size: 11px; line-height: 1.2; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mdl__sub--all { margin-top: 6px; color: var(--acc-ink); font-weight: 650; }
.mdl--none .mdl__name { color: var(--ink-2); }
/* a family's tiers, in a sheet */
.mdl-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; margin-top: 16px; }
.mdl-t { display: grid; justify-items: center; gap: 3px; text-align: center; }
.mdl-t .mdl__art { width: 80px; height: 80px; }
.mdl-t .mdl__face b { font-size: 21px; }
.mdl-t__v { margin-top: 4px; font-size: 13px; font-weight: 650; color: var(--ink); line-height: 1.2; }
.mdl-t__s { font-size: 11.5px; color: var(--ink-3); line-height: 1.25; }
.mdl-t--off .mdl-t__v { color: var(--ink-2); }

/* ── PERSONAL BESTS ── */
.pbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pb { --r: var(--r-row); display: grid; align-content: start; gap: 2px; padding: 14px 14px 13px; min-width: 0; }
.pb__ic { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 6px; border-radius: 9px; color: var(--acc-ink); background: rgba(var(--tint), .1); }
.pb__ic svg { width: 17px; height: 17px; }
.pb__k { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.pb__v { font-size: 19px; font-weight: 750; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pb__s { font-size: 12px; line-height: 1.3; color: var(--ink-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pbs .pb:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 900px) { .pbs { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); } .pbs .pb:last-child:nth-child(odd) { grid-column: auto; } }

/* ── COMING BACK: fourteen days ── */
.fcs { --r: var(--r-tile); display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; padding: 14px 10px 10px; }
.fc { display: grid; grid-template-rows: 14px 74px auto; justify-items: center; gap: 4px; min-width: 0; }
.fc__n { font-size: 10px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fc__col { position: relative; width: 100%; max-width: 18px; height: 100%; border-radius: 6px; background: rgba(var(--tint), .08); overflow: hidden; }
.fc__col i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 6px; background: linear-gradient(180deg, var(--acc-3), color-mix(in srgb, var(--acc-3) 55%, transparent)); }
.fc--now .fc__col { box-shadow: inset 0 0 0 1.5px var(--acc-3); }
.fc__d { font-size: 9.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.fc--now .fc__d { color: var(--acc-ink); }
.rec-say { margin: 8px 2px 0; line-height: 1.45; }

/* ── A YEAR OF STUDY ── */
.yr { --r: var(--r-tile); padding: 12px 12px 10px; }
.yr__m { display: grid; grid-template-columns: repeat(var(--w), minmax(0, 1fr)); gap: 2px; height: 14px; margin-bottom: 4px; font-size: 10px; font-weight: 600; color: var(--ink-3); }
.yr__m span { white-space: nowrap; }
.yr__g { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, auto); grid-template-columns: repeat(var(--w), minmax(0, 1fr)); gap: 2px; }
.yr__d { display: block; aspect-ratio: 1; border-radius: 2px; background: rgba(var(--tint), .08); }
.yr--1 { background: color-mix(in srgb, var(--acc-3) 32%, transparent); }
.yr--2 { background: color-mix(in srgb, var(--acc-3) 55%, transparent); }
.yr--3 { background: color-mix(in srgb, var(--acc-3) 78%, transparent); }
.yr--4 { background: var(--acc-3); }
.yr--today { box-shadow: 0 0 0 1.5px var(--ink-2); }
.yr__key { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 8px; font-size: 10px; color: var(--ink-3); }
.yr__key .yr__d { width: 9px; }
.yr__key span { margin: 0 3px; }

/* ── WHEN YOU STUDY ── */
.when { --r: var(--r-tile); display: grid; gap: 16px; padding: 14px 14px 12px; }
@media (min-width: 640px) { .when { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end; } }
.when__bars { display: flex; align-items: flex-end; gap: 2px; height: 70px; }
.when__bars i { flex: 1; min-height: 3px; border-radius: 2px; background: var(--acc-3); }
.when__bars i.is-0 { background: rgba(var(--tint), .1); }
.when__ax { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.when__wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.rwk { display: grid; justify-items: center; gap: 5px; }
.rwk__col { position: relative; width: 100%; max-width: 22px; height: 70px; border-radius: 6px; background: rgba(var(--tint), .08); overflow: hidden; }
.rwk__col i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 6px; background: var(--acc-3); }
.rwk__d { font-size: 10px; font-weight: 650; color: var(--ink-3); }
/* the chart lights what its line says (frap-record.js whenHtml): the part of the day with the most at full ink, a rule and
   its name under its hours; the other hours and days softer; the day with the most, its letter in the accent */
.when__bars i.lo, .rwk__col i.lo { opacity: .38; }
.when__band { position: relative; height: 16px; margin-top: 4px; }
.when__band span { position: absolute; top: 0; box-sizing: border-box; padding: 3px 0 0; border-top: 2px solid var(--acc-ink); text-align: center; white-space: nowrap;
  font-family: var(--caps); font-size: 9px; font-weight: 700; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; color: var(--acc-ink); }
.rwk__d.on { color: var(--acc-ink); }

/* ── WORDS THAT FIGHT BACK ── */
.fight { cursor: default; }
.fight__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 12.5px; font-weight: 750;
  color: var(--acc-ink); background: rgba(var(--tint), .1); box-shadow: inset 0 0 0 1px rgba(var(--tint), .16); font-variant-numeric: tabular-nums; }
.fight__x { flex: none; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.rec-go { gap: 2px; margin: 0 2px; font-size: 14px; }   /* to Review, which deals these first (frap-record.js fightSay) */
.rec-go .i { width: 15px; height: 15px; }

/* ── YOUR STRATEGIES: their paintings ── */
.strs { display: grid; gap: 10px; }
@media (min-width: 640px) and (max-width: 1099px) { .strs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.str { --r: var(--r-row); display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px 9px 9px;
  color: inherit; text-decoration: none; }
.str__pic { position: relative; display: block; width: 54px; height: 69px; border-radius: 10px; overflow: hidden; background: var(--frost-off);
  box-shadow: 0 0 0 1px rgba(var(--tint), .14); }
.str__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.str__seal { position: absolute; right: 3px; bottom: 3px; width: 17px; height: 24px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.str__main { display: grid; gap: 2px; min-width: 0; }
.str__name { font-size: 14.5px; font-weight: 650; line-height: 1.25; color: var(--ink); }
.str__sub { font-size: 12px; color: var(--ink-3); }
.str--cert { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--acc-3) 60%, transparent), var(--cast, none); }
.str__done { width: 15px; height: 15px; color: var(--acc-ink); }

/* ── THE CARD TO THE CERTIFICATES ── */
.ctc { --r: var(--r-tile); display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 16px 0 0; padding: 13px 14px 13px 12px;
  color: inherit; text-decoration: none; }
.ctc__seals { display: grid; place-items: center; }
.ctc__seal { width: 40px; height: 56px; display: block; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35)); }
/* the latest certificates, fanned like cards in a hand (punk-cert.js fanHtml) */
.ctc--fan { grid-template-columns: 76px minmax(0, 1fr) auto; }
.ctc__fan { position: relative; display: block; width: 72px; height: 64px; }
.ctc__fan .ctm--thumb { position: absolute; top: 4px; width: 40px; transform-origin: 50% 100%; }
.ctc__fan .ctm--thumb:nth-child(1) { left: 16px; transform: rotate(0deg); }
.ctc__fan--2 .ctm--thumb:nth-child(1) { left: 8px; transform: rotate(-8deg); } .ctc__fan--2 .ctm--thumb:nth-child(2) { left: 24px; transform: rotate(6deg); }
.ctc__fan--3 .ctm--thumb:nth-child(1) { left: 2px; transform: rotate(-12deg); } .ctc__fan--3 .ctm--thumb:nth-child(2) { left: 16px; transform: rotate(0deg); top: 1px; }
.ctc__fan--3 .ctm--thumb:nth-child(3) { left: 30px; transform: rotate(12deg); }
.ctc__fan .ctm--thumb .ctm__sheet::after { animation: none; }
.ctc__main { display: grid; gap: 2px; min-width: 0; }
.ctc__main b { font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.ctc .i--chev { color: var(--ink-3); }
.bk-mode .ctc { margin: 0 0 14px; }

/* ══ THE CERTIFICATES' OWN PLACE (#/certificates) ══ */
.ctp__lead { margin: 0 2px 6px; max-width: 40em; }
.ctp__name { margin: 0 2px 4px; font-size: 14px; color: var(--ink-2); }
.ctp__name b { color: var(--ink); font-weight: 700; }
.ctp__awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; margin-top: 18px; }
@media (min-width: 1100px) { .ctp__awards { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: start; gap: 22px; } }
.ctg { display: grid; grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); gap: 16px 12px; }
@media (min-width: 640px) { .ctg { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 20px 16px; } }
.ctg__part { display: flex; align-items: baseline; gap: 8px; margin: 20px 2px 10px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
.ctg__part span { font-weight: 600; color: var(--ink-3); font-size: 12px; }
.ctp__acts { display: flex; justify-content: center; margin-top: 26px; }
/* All, or the earned only (punk-cert.js page()); the pressed chip drawn as the accent's image, which Field mode and Low power keep */
.ctp__show { display: flex; gap: 8px; margin: 12px 0 0; }
.ctp__show .chip[aria-pressed="true"] { color: var(--on-acc); background: var(--acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.ctp--earned .ctm:not(.ctm--on), .ctp--earned [data-earned="0"] { display: none; }
.ctp__foot { margin: 14px 2px 0; line-height: 1.5; max-width: 46em; }
/* a strategy's certificates, one a level (punk-cert.js slot()): its highest on a pile of the others, a chip a level that
   opens each; the level worn now, while it holds none, a dashed chip with its way to go (hidden under «Earned») */
.cts { display: grid; align-content: start; gap: 8px; min-width: 0; }
.cts__lv { display: flex; flex-wrap: wrap; gap: 5px; }
.cts__chip { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 30px; min-height: 26px; padding: 0 8px; box-sizing: border-box;
  border-radius: 999px; font-size: 11px; font-weight: 750; letter-spacing: .05em; line-height: 1; white-space: nowrap; color: var(--ink-2); text-decoration: none;
  background: rgba(var(--tint), .06); box-shadow: inset 0 0 0 1px rgba(var(--tint), .2); font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; }
.cts__chip.is-on { color: var(--on-acc); background: var(--acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.cts__chip--next { color: var(--ink-3); background: none; box-shadow: none; border: 1px dashed rgba(var(--tint), .32); }
.cts__chip--next span { font-weight: 600; letter-spacing: 0; }
.cts__chip:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 2px; }
.ctp--earned .cts__chip--next { display: none; }
/* the pile: a sheet's edge behind the highest for each other certificate (two at most), the paper of the skin worn */
.ctm--pile::before, .ctm--pile3::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1240 / 1754; z-index: -1; border-radius: 3px;
  background: linear-gradient(180deg, var(--ct-p1), var(--ct-p2)); box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .14); }
.ctm--pile::before { transform: translate(3px, -4px) rotate(2.4deg); }
.ctm--pile3::after { transform: translate(-3px, -6px) rotate(-2.2deg); }

/* a small certificate: paper, a frame of the skin's metal, the window and its picture, the seal on its ribbon, the number */
.ctm { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; container-type: inline-size; }
.ctm__sheet { position: relative; display: block; aspect-ratio: 1240 / 1754; container-type: inline-size; border-radius: 3px; overflow: hidden;
  background: linear-gradient(180deg, var(--ct-p1), var(--ct-p2)); color: var(--ct-ink);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6), 0 2px 4px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .1);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), box-shadow .35s ease, filter .35s ease, opacity .35s ease; }
.ctm:hover .ctm__sheet, .ctm:focus-visible .ctm__sheet { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 16px 28px -12px rgba(0, 0, 0, .65), 0 2px 4px rgba(0, 0, 0, .2), 0 0 0 1px rgba(0, 0, 0, .1); }
.ctm:focus-visible { outline: none; }
.ctm:focus-visible .ctm__sheet { box-shadow: 0 0 0 3px var(--acc-2); }
.ctm__frame { position: absolute; inset: 3.7%; border: 2px solid transparent; border-image: var(--ct-m) 1; }
.ctm__frame::after { content: ""; position: absolute; inset: 2.1cqw; border: 1px solid; border-image: var(--ct-m) 1; opacity: .7; }
/* each part where the certificate has it (punk-cert.js mini() sets its place and size from lay(), in cqw) */
.ctm__x { position: absolute; left: 7%; right: 7%; text-align: center; line-height: 1; white-space: nowrap; overflow: hidden; color: var(--ct-ink); }
.ctm__brand { font-weight: 700; letter-spacing: .2em; color: var(--ct-soft); }
.ctm__t, .ctm__nm, .ctm__big, .ctm__d, .ctm__no { font-family: var(--display, Georgia, serif); font-weight: 600; }
.ctm__l { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ct-acc); }
.ctm__no { letter-spacing: .34em; text-indent: .34em; }
.ctm__rule { position: absolute; height: max(1px, .16cqw); background: var(--ct-m); opacity: .8; }
.ctm__win { position: absolute; padding: .73cqw; background: var(--ct-m); box-sizing: border-box; }
.ctm__pic { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.ctm__win img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ctm--arch .ctm__win, .ctm--arch .ctm__win img { border-radius: 50% 50% 0 0 / 50% 50% 0 0; }   /* the canvas's arch: half the width across, half the height down */
.ctm--round .ctm__win, .ctm--round .ctm__win img, .ctm--moon .ctm__win, .ctm--moon .ctm__win img { border-radius: 50%; }
.ctm--cut .ctm__win { clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%); }
.ctm--deco .ctm__win { clip-path: polygon(8% 0, 92% 0, 92% 4%, 96% 4%, 96% 8%, 100% 8%, 100% 92%, 96% 92%, 96% 96%, 92% 96%, 92% 100%, 8% 100%, 8% 96%, 4% 96%, 4% 92%, 0 92%, 0 8%, 4% 8%, 4% 4%, 8% 4%); }
/* the seal: a medal of the skin's metal, paper at its heart, the arms; the ribbon's tails in blue and yellow below it */
.ctm__seal { position: absolute; }
.ctm__disc { position: absolute; inset: 0; border-radius: 50%; background: var(--ct-m); box-shadow: 0 .7cqw 1.6cqw rgba(40, 25, 5, .35); }
.ctm__disc::after { content: ""; position: absolute; inset: 9.3%; border-radius: 50%; background: var(--ct-p1); box-shadow: inset 0 0 0 .25cqw rgba(0, 0, 0, .14); }
.ctm--on .ctm__seal::before, .ctm--on .ctm__seal::after { content: ""; position: absolute; top: 62%; width: 30%; height: 64%; z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.ctm--on .ctm__seal::before { left: 16%; background: linear-gradient(90deg, #003c7e, #0057b7 45%); transform: rotate(22deg); }
.ctm--on .ctm__seal::after { right: 16%; background: linear-gradient(270deg, #c9a200, #ffd500 45%); transform: rotate(-22deg); }
.ctm__seal { z-index: 1; isolation: isolate; }
.ctm__arms { position: absolute; left: 29%; top: 20.7%; width: 42%; height: 58.6%; z-index: 1; display: block; }
.ctm__ghost { position: absolute; inset: 0; border-radius: 50%; border: .5cqw dashed var(--ct-soft); opacity: .55; }
/* the two awards: the scene in a wide window, the award's name */
.ctm--big .ctm__t { letter-spacing: .01em; }
/* not earned: the paper pale, the way to go (or a lock) where the seal will be */
.ctm:not(.ctm--on) .ctm__sheet { filter: grayscale(.85) brightness(.9) contrast(.92); opacity: .62; }
.ctm__lock { position: absolute; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; pointer-events: none; }
.ctm__lock .ring { background: var(--ground); border-radius: 50%; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55); }
.ctm__lock .ring__in { font-size: 11px; font-weight: 750; white-space: nowrap; }
.ctm__lock .ring__in small { font-size: 7.5px; margin-left: 1px; }
.ctm__lk { display: grid; place-items: center; width: clamp(26px, 22cqw, 36px); height: clamp(26px, 22cqw, 36px); border-radius: 50%; background: var(--ground); color: var(--ink-2);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line); }
.ctm__lk .i { width: 46%; height: 46%; }
.ctm__label { font-size: 12.5px; font-weight: 650; line-height: 1.25; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ctm__sub { font-size: 11px; line-height: 1.3; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ctm--on .ctm__sub { color: var(--ink-2); }
.ctm__code { display: block; margin-top: 1px; letter-spacing: .04em; color: var(--ink-3); }
.ctm--big .ctm__label { font-size: 14.5px; }
/* a certificate earned catches the light once, as it comes into view */
.ctm--on .ctm__sheet::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 47%, transparent 64%); transform: translateX(-120%); }
.ctm--on.in .ctm__sheet::after, .ctm--on:hover .ctm__sheet::after { animation: ctm-sheen 1.3s ease .2s 1 both; }
@keyframes ctm-sheen { to { transform: translateX(120%); } }
@media print { body.ct-printing > .ct-print { break-after: page; } body.ct-printing > .ct-print:last-of-type { break-after: auto; } }
@media (prefers-reduced-motion: reduce) {
  .mdl__art, .ctm__sheet { transition: none; }
  .mdl--new::after { animation: none; opacity: .8; }
  .ctm--on .ctm__sheet::after { display: none; }
}
html[data-watch="on"] .mdl--new::after { animation: none; }

/* ── THE WAY TO A CERTIFICATE (punk-cert.js wayHtml(), 2026-11-09): the certificate pale beside what earns it, the next
   first, then each lesson, section, part or strategy on Learn's route; on a desk the certificate stands to the left ── */
.ctw { display: grid; gap: 0; padding-bottom: 28px; }
.ctw__fig { display: grid; justify-items: center; gap: 10px; margin: 6px 0 14px; }
.ctw__ctm { width: clamp(124px, 36vw, 156px); }
.ctw__ctm .ctm__sheet { view-transition-name: ct-sheet; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .12); }
.ctw__ctm:hover .ctm__sheet { transform: none; }
.ctw__ctm .ctm__lock .ring { width: 30cqw; height: 30cqw; }
.ctw__ctm .ctm__lock .ring__in { font-size: 8.5cqw; }
.ctw__ctm .ctm__lock .ring__in small { font-size: 5cqw; }
.ctw__ctm .ctm__lk { width: 24cqw; height: 24cqw; }
.ctw__cap { max-width: 30ch; margin: 0; text-align: center; }
.ctw__cap b { color: var(--ink-2); font-weight: 650; }
.ctw__way { display: grid; min-width: 0; }
.ctw__eye { margin: 0 0 4px; text-align: center; }
.ctw__h { margin: 0; text-align: center; }
.ctw__what { margin: 4px 0 0; text-align: center; }
.ctw__prog { display: grid; justify-items: center; gap: 8px; margin: 14px 0 4px; }
.ctw__bar { display: flex; gap: 3px; width: min(100%, 320px); height: 6px; }
.ctw__bar i { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: 3px; background: rgba(var(--tint), .14); }
.ctw__bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--acc); }   /* --acc is a gradient in every skin */
.ctw__n { font-size: 13px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ctw__next { margin-top: 18px; text-decoration: none; color: inherit; }
.ctw__gh { margin-top: 26px; }
.ctw__route .stop__card { text-decoration: none; }
.ctw__route .stop__art { flex: none; width: 46px; height: 46px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1px rgba(var(--tint), .12); }
.ctw__say { margin: 16px 0 12px; text-align: center; }
.ctw__lv { justify-self: center; }
.ctw__rule { margin: 18px 2px 0; line-height: 1.5; }
@media (min-width: 900px) {
  .ctw { grid-template-columns: minmax(200px, 280px) minmax(0, 560px); justify-content: center; align-items: start; column-gap: 48px; }
  .ctw__fig { position: sticky; top: 92px; margin: 8px 0 0; }
  .ctw__ctm { width: 100%; }
  .ctw__eye, .ctw__h, .ctw__what, .ctw__say { text-align: left; }
  .ctw__prog { justify-items: start; }
  .ctw__lv { justify-self: start; }
}
/* «Next to earn» (punk-cert.js page()): the nearest certificates, small and pale, each with its way to go */
.ctn { margin-top: 18px; }
.ctn__row { text-decoration: none; color: inherit; }
.ctn__ctm { flex: none; width: 40px; margin: 2px 4px 2px 0; }
.ctn__ctm .ctm__sheet { box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .12); }
.ctn__bar { display: block; max-width: 220px; height: 4px; margin-top: 8px; border-radius: 2px; overflow: hidden; background: rgba(var(--tint), .12); }
.ctn__bar i { display: block; height: 100%; border-radius: inherit; background: var(--acc); }

/* ── THE DEBRIEF: a medal reached, a certificate earned (frap-record.js debrief()) ── */
.fr-earned { display: grid; gap: 10px; margin: 14px 0 4px; }
.fre { --r: var(--r-tile); display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; color: inherit; text-decoration: none;
  animation: fre-in .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.fre:nth-child(2) { animation-delay: .12s; } .fre:nth-child(3) { animation-delay: .24s; }
@keyframes fre-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.fre .mdl__art { width: 56px; height: 56px; }
.fre .mdl__face b { font-size: 15px; } .fre .mdl__glyph { width: 9px; height: 9px; }
.fre__seal { width: 40px; height: 56px; justify-self: center; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35)); }
/* the certificate just earned, small, in the Debrief's card (punk-cert.js thumb()) */
.ctm--thumb { width: 52px; justify-self: center; transform: rotate(-3deg); }
.ctm--thumb .ctm__sheet { box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .12); }
.ctm--thumb .ctm__sheet::after { animation: ctm-sheen 1.3s ease .6s 1 both; }
@media (prefers-reduced-motion: reduce) { .ctm--thumb .ctm__sheet::after { animation: none; } }
.fre__main { display: grid; gap: 2px; min-width: 0; }
.fre__main b { font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.fre__sub { font-size: 12.5px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .fre { animation: none; } }
/* on a desk the words that fight back stand beside where the words stand, one column (frap-screens.js pairWords();
   their two columns in half a desk ran a word into its «missed», 2026-11-16) */
