/* 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 ── */
/* «Sittings» (frap-record.js sittingsHtml; OPUS.md E13, THUD CORE's DK2): seven short strokes, today last, each split
   Words, Grammar, Reading; a day with minutes is never under a stroke (8% of its column): never a dot. Today's
   sittings under them */
.sits { --r: var(--r-tile); display: grid; gap: 12px; padding: 14px 14px 12px; }
.sits__wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sit { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.sit__n { min-height: 14px; color: var(--ink-2); font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sit__col { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 84px; border-bottom: 1px solid rgba(var(--tint), .16); }
.sit__bar { display: flex; flex-direction: column-reverse; gap: 2px; width: 62%; max-width: 26px; overflow: hidden; border-radius: 5px 5px 1px 1px; }
.sit__bar i { display: block; flex: 1 1 0; min-height: 3px; background: rgba(var(--tint), .2); }
/* the three told apart in every skin and light by more than a step of the ramp: the accent whole, the accent faint,
   the ink's own grey; a gap of the card between them */
.sit__bar .sit__w, .sit__k--w::before { background: var(--acc-3); }
.sit__bar .sit__g, .sit__k--g::before { background: var(--acc-3); opacity: .5; }
.sit__bar .sit__r, .sit__k--r::before { background: rgba(var(--tint), .42); }
.sit__d { overflow: hidden; color: var(--ink-3); font-size: 10px; font-weight: 650; white-space: nowrap; }
.sit--now .sit__d { color: var(--acc-ink); }
.sits__key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: var(--ink-3); font-size: 12px; }
.sit__k { display: inline-flex; align-items: center; gap: 6px; }
.sit__k b { color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; }   /* the week's minutes in each mode */
.sit__k::before { content: ""; width: 14px; height: 4px; border-radius: 2px; }
.sits__h { margin: 4px 0 0; color: var(--acc-ink); font-size: 11px; }
.sits__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sits__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 6px 0; border-top: 1px solid rgba(var(--tint), .08); font-size: 14px; }
.sits__list li:first-child { border-top: 0; }
.sits__list b { font-variant-numeric: tabular-nums; }
.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); }

/* ── 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 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 in two columns, each row's rule its own */
@media (min-width: 1100px) {
  .fights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
  .fights .row + .row::before { display: none; }
  .fights .row:nth-child(n + 3)::after { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: 1px; background: var(--line); }
}
