/* punk.css — what THUD PUNK's skins share (2026-10-11): Settings › The skin, the hero's living picture, the intro's scene.
   Each skin's faces and material are its own sheet (punk-steam.css, punk-cyber.css); its tokens are frap.css's, priced by
   verify_contrast.py in Night, Dawn and Field mode. Dieselpunk is THUD DEF's own look, untouched. */

/* ── Settings › The skin: six pictures, each a radio (Mobbin: Outlook’s, Binance’s and Matter’s theme pickers); two by two
   on a phone, three abreast where there is room ── */
.skins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
@media (min-width: 640px) { .skins { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* six skins: two rows of three */
.skin { -webkit-appearance: none; appearance: none; border: 0; margin: 0; padding: 0; background: none; color: var(--ink); font: inherit;
  text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.skin__pv { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--frost-off);
  box-shadow: 0 0 0 1px rgba(var(--tint), .14), var(--cast); transition: box-shadow .3s ease, transform .3s ease; }
.skin__pv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.skin:hover .skin__pv img { transform: scale(1.045); }
.skin:active .skin__pv { transform: scale(.98); }
.skin[aria-checked="true"] .skin__pv { box-shadow: 0 0 0 2px var(--acc-3), 0 0 0 6px color-mix(in srgb, var(--acc-3) 20%, transparent), 0 14px 32px -12px var(--glow); }
.skin:focus-visible { outline: none; }
.skin:focus-visible .skin__pv { box-shadow: 0 0 0 3px var(--acc-2), var(--cast); }
.skin__name { display: block; margin-top: 10px; font-weight: 700; font-size: 14px; }
.skin[aria-checked="true"] .skin__name { color: var(--acc-ink); }
.skin__sub { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--ink-2); }

/* ── the hero alive (thud.js liveScene): the same picture as the still beneath, so the canvas fades in over it unseen ── */
.def-hero__field { opacity: 0; transition: opacity 1.2s ease; }
.def-hero__field.drawn { opacity: 1; }
/* run 4: every skin's hero is its opening scene (punk-scape.js), Dieselpunk's too: the still beneath sits as the canvas does,
   without THUD DEF's breath, and the forge's embers stay in THUD DEF (sparks over a city at night read as fire) */
.def-hero__art img { object-position: 50% 50%; animation: none; }
.def-hero__embers { display: none; }

/* ── the intro's scene (thud-intro.js scene()): the skin's still, alive, pushing in as the still does ── */
.intro__scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease, filter 1.1s ease .12s; }
.intro--still .intro__scene.drawn { opacity: 1; animation: def-push 4.4s linear both; }
.intro--hit .intro__scene { filter: brightness(.2) saturate(1.1) blur(7px); }
.intro--calm .intro__scene { display: none; }
/* the hero's slow breath belongs to the still alone: the living picture has its own motion, and both must stay one picture */
.def-hero__field { animation: none !important; }

/* ── the name in the intro, in each skin's light: engraved brass; neon ── */
html[data-palette="steam"] .intro__thud { font-family: "Playfair PUNK", Georgia, serif; font-weight: 900; letter-spacing: .02em;
  background-image: linear-gradient(180deg, #fff6dc 0%, #f4d98f 28%, #c9a04e 52%, #8a5a1c 70%, #e8c77a 86%, #7a5420 100%); }
html[data-palette="steam"] .intro__arms > i { background-image: linear-gradient(180deg, #fff6dc 0%, #f4d98f 28%, #c9a04e 52%, #8a5a1c 70%, #e8c77a 86%, #7a5420 100%); }
html[data-palette="steam"] .intro__def { font-family: "Playfair SC PUNK", Georgia, serif; font-weight: 400; text-transform: lowercase; letter-spacing: .5em; }
/* the faintest of the six names (HANDOFF, 2026-10-21): its small capitals have one weight, so it is set larger, in brass, lamplit */
html[data-palette="steam"] .intro__def { font-size: clamp(14px, 1.1vw + 10px, 22px); color: #f4d98f; text-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 0 14px rgba(255, 190, 90, .45); }
html[data-palette="steam"] .intro__rule { background: linear-gradient(90deg, transparent, #c9a04e, transparent); }
html[data-palette="cyber"] .intro__thud { font-family: "Inter DEF", "Inter", sans-serif; font-weight: 900; letter-spacing: .08em;
  background-image: linear-gradient(180deg, #ffffff 0%, #d2f7ff 30%, #45e3ff 55%, #8f7bff 76%, #ff5ad9 100%); }
html[data-palette="cyber"] .intro__arms > i { background-image: linear-gradient(180deg, #ffffff 0%, #d2f7ff 30%, #45e3ff 55%, #8f7bff 76%, #ff5ad9 100%); }
html[data-palette="cyber"] .intro--mark .intro__thud, html[data-palette="cyber"] .intro--mark .intro__arms > i { animation-name: punk-neon; }
html[data-palette="cyber"] .intro__arms { filter: drop-shadow(0 0 18px rgba(69, 227, 255, .45)); }
@keyframes punk-neon {
  0% { background-position: 0 0; filter: brightness(1.6) drop-shadow(0 0 30px rgba(69, 227, 255, .9)); }
  8% { filter: brightness(.6) drop-shadow(0 0 8px rgba(255, 90, 217, .6)); }
  14% { filter: brightness(1.5) drop-shadow(0 0 26px rgba(69, 227, 255, .85)); }
  100% { background-position: 0 70%; filter: brightness(1) drop-shadow(0 0 18px rgba(69, 227, 255, .45)) drop-shadow(0 0 2px rgba(255, 90, 217, .6)); } }
html[data-palette="cyber"] .intro__rule { background: linear-gradient(90deg, transparent, #45e3ff, #ff5ad9, transparent); }
/* the Debrief's eyebrow clears the cheering ram on a phone (thud.css .cheer stands at the top's right, 92 px wide, over the
   eyebrow's end): THUD PUNK's own mend, in every skin; THUD DEF keeps the overlap until the owner carries this over */
/* QUIZ.md 6b: he stands beside the score now, under the eyebrow, which takes the width (the drill's name a chip) */
@media (max-width: 560px) { .fr-res__top:has(> .cheer) > .eyebrow { padding-inline: 8px; text-wrap: balance; } .fr-res__top > .cheer { top: 78px; } }

/* ── Words and Grammar, two modes (box G, 2026-10-16): the switch heading Learn, Review and Record (frap.js modesHtml);
   the mode in use filled with the accent, the other a word to tap, a dot on it when it has something due ── */
.modes { display: flex; width: max-content; max-width: 100%; margin: 2px auto 16px; padding: 4px; gap: 2px; border-radius: 999px; }
.modes__thumb { display: none; }
.modes__m { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 20px; border-radius: 999px; color: var(--ink-2);
  font-weight: 650; font-size: 15px; letter-spacing: .01em; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, background-color .25s ease, box-shadow .25s ease; }
.modes__m[aria-current="page"] { color: var(--on-acc); background: var(--acc-2); box-shadow: 0 6px 16px -8px var(--glow); }
.modes__m:not([aria-current]):hover { color: var(--ink); }
.modes__m:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 2px; }
.modes__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rwd-3); box-shadow: 0 0 8px var(--rwd-glow); }
/* on the home the header floats over the hero (thud-def.css .top--def): the switch is its second row, centred */
.top--def:has(.modes) { flex-wrap: wrap; row-gap: 10px; }
.top--def .modes { order: 9; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .modes__m { transition: none; } }


/* the wallpapers' choice (frap-glass.js wallSeg): in Settings and in a set's options, under its row */
.set-wall, .group > .seg:has([data-wall]), .group > .seg:has([data-ram-set]) { margin: 0 12px 12px; }

/* whose ram (thud.js ramTiles, Settings): the four rams, any in any skin */
.rams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 2px 12px 12px; }   /* six rams: two rows of three */
.ram-tile { -webkit-appearance: none; appearance: none; border: 0; margin: 0; padding: 8px 4px 6px; background: rgba(var(--tint), .05); color: var(--ink-2);
  border-radius: 14px; display: grid; justify-items: center; gap: 4px; font: inherit; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(var(--tint), .08); }
.ram-tile img { width: 64px; height: auto; display: block; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
.ram-tile__name { font-size: 12.5px; font-weight: 650; }
.ram-tile__sub { font-size: 11px; color: var(--ink-3); margin-top: -3px; }
.ram-tile[aria-checked="true"] { color: var(--ink); box-shadow: inset 0 0 0 2px var(--acc-3); background: rgba(var(--acc-rgb), .12); }
.rams__h { margin: 2px 16px 6px; font: 600 11px/1.3 var(--caps, var(--ui)); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.rams__own { display: block; margin: -4px auto 12px; border: 0; background: none; color: var(--acc-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

/* the briefing's Ready: the learner's name, optional (punk-cert.js, RUN4.md box N) */
.fl__name { display: grid; gap: 6px; width: min(100%, 22em); margin: 18px auto 0; text-align: left; }
.fl__name-l { font-size: 13px; color: var(--ink-2); }
.fl__name-l i { font-style: normal; color: var(--ink-3); }
.fl__name-in { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.18));
  background: var(--field, rgba(255,255,255,.07)); color: var(--ink); font: inherit; font-size: 17px; }
.fl__name-in:focus { outline: 2px solid var(--acc); outline-offset: 1px; }

/* ── the look, one tap away (frap-look.js, 2026-10-19; Mobbin: Apple Books' «Themes & Settings»): the skin as pictures,
   the card's typeface as «Aa» in its own face, each a row that scrolls sideways, the selected one ringed ── */
.lk .ss__label { margin: 16px 0 8px; }
.lk-row { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 -20px; padding: 4px 20px 6px; scroll-padding-inline: 20px; }
.lk-row::-webkit-scrollbar { display: none; }
.lk-skin, .lk-face, .lk-wall { -webkit-appearance: none; appearance: none; border: 0; margin: 0; padding: 0; background: none; color: var(--ink);
  font: inherit; cursor: pointer; flex: 0 0 auto; scroll-snap-align: start; text-align: center; -webkit-tap-highlight-color: transparent; }
.lk-skin { width: 84px; }
.lk-skin__pv, .lk-wall__pv { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--frost-off);
  box-shadow: 0 0 0 1px rgba(var(--tint), .16); transition: box-shadow .25s ease, transform .25s ease; }
.lk-skin__pv { aspect-ratio: 3 / 4; }
.lk-skin__pv img, .lk-wall__pv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lk-skin__name, .lk-wall__name, .lk-face__name { display: block; margin-top: 6px; font-size: 12px; line-height: 1.25; color: var(--ink-2); white-space: nowrap; }
.lk-face { width: 76px; }
.lk-face__aa { display: grid; place-items: center; height: 64px; border-radius: 14px; font-size: 26px; line-height: 1; color: var(--ink);
  background: var(--frost-off); box-shadow: 0 0 0 1px rgba(var(--tint), .16); transition: box-shadow .25s ease, transform .25s ease; }
.lk-face__name { overflow: hidden; text-overflow: ellipsis; }
.lk-wall { width: 64px; }
.lk-wall__pv { height: 80px; }
.lk-wall__pv i { position: absolute; inset: 0; }
.lk-wall--glow { background: radial-gradient(70% 55% at 25% 20%, var(--fld-1), transparent 70%), radial-gradient(70% 55% at 85% 85%, var(--fld-3), transparent 70%), var(--ground); }
.lk-wall--aurora { background: linear-gradient(170deg, transparent 30%, var(--fld-2) 48%, transparent 62%), linear-gradient(190deg, transparent 45%, var(--fld-1) 60%, transparent 75%), var(--ground); }
.lk-wall--stars { background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 45% 65%, #fff, transparent),
  radial-gradient(1px 1px at 80% 75%, #fff, transparent), radial-gradient(1px 1px at 30% 85%, #fff, transparent), radial-gradient(60% 50% at 30% 30%, var(--fld-1), transparent 70%), var(--ground); }
.lk-wall--rain { background: repeating-linear-gradient(100deg, transparent 0 9px, rgba(var(--tint), .22) 9px 10px), radial-gradient(70% 60% at 60% 40%, var(--fld-2), transparent 70%), var(--ground); }
.lk-skin[aria-checked="true"] .lk-skin__pv, .lk-face[aria-checked="true"] .lk-face__aa, .lk-wall[aria-checked="true"] .lk-wall__pv {
  box-shadow: 0 0 0 2px var(--acc-3), 0 0 0 5px color-mix(in srgb, var(--acc-3) 22%, transparent); }
.lk-skin[aria-checked="true"] .lk-skin__name, .lk-face[aria-checked="true"] .lk-face__name, .lk-wall[aria-checked="true"] .lk-wall__name { color: var(--acc-ink); font-weight: 700; }
.lk-skin:active .lk-skin__pv, .lk-face:active .lk-face__aa, .lk-wall:active .lk-wall__pv { transform: scale(.96); }
.lk-skin:focus-visible, .lk-face:focus-visible, .lk-wall:focus-visible { outline: none; }
.lk-skin:focus-visible .lk-skin__pv, .lk-face:focus-visible .lk-face__aa, .lk-wall:focus-visible .lk-wall__pv { outline: 2px dashed var(--acc-2); outline-offset: 4px; }
.lk-pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; }
.lk-pair .seg { width: 100%; }
.lk-more { -webkit-appearance: none; appearance: none; border: 0; background: none; font: inherit; font-size: 14px; color: var(--acc-ink); cursor: pointer;
  margin: 16px 0 2px; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lk-btn svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .lk-skin__pv, .lk-face__aa, .lk-wall__pv { transition: none; } }
/* the chip beside «?»: the palette alone, as round as «?» */
.chip--look svg { width: 18px; height: 18px; }
/* on the home its row is full (the brand, Field, the level, «?»): on a phone or a tablet it stands at the end of the switch's
   row, the switch still centred; on a desk, where the header keeps only «?» and the switch (thud.css), beside «?» */
@media (max-width: 1099px) { .top--def:has(.modes) .chip--look { order: 10; position: absolute; right: calc(var(--gutter) + var(--sar)); bottom: 2px; } }
/* on a phone the switch keeps clear of both chips (22 Oct: where «?» wraps onto the switch's row, as in Dieselpunk, Cyberpunk
   and Silkpunk at 428 px, the centred switch was pushed under the palette chip): it stands against the palette chip, its
   three modes drawn closer; narrower than 424 px (where the three cannot share a row) the two chips share a row and the
   switch takes its own */
@media (max-width: 480px) {
  .top--def:has(.modes):has(.chip--look) .modes { margin: 0 56px 0 auto; }
  .top--def .modes--3 .modes__m { padding: 0 11px; }
}
@media (max-width: 423px) {
  .top--def:has(.modes):has(.chip--look) .chip--look { position: static; order: 10; margin-left: auto; }
  .top--def:has(.modes):has(.chip--look) .modes { order: 11; margin: -10px auto 0; }   /* -10px: the empty row's gap given back */
  .top--def:has(.modes):has(.chip--look)::after { content: ""; order: 10; flex-basis: 100%; height: 0; }   /* the switch on a row of its own */
}
/* and on a desk at the sidebar's foot too, beside the level (the foot is the desk's alone: .side, frap.css) */
@media (min-width: 1100px) {
  .side__foot:has(.chip--look) { display: flex; align-items: center; gap: 8px; }
  .side__foot .chip--look { flex: none; min-width: 36px; padding: 0 !important; justify-content: center; }
}
.lk-row__ic svg { width: 18px; height: 18px; }

/* ── the primary key (RUN6.md B): a button that is pressed, not a capsule that shrinks. Each mechanical skin's primary
   stands on a lip of its own darker metal and goes down onto it when pressed (Dieselpunk, Steampunk, Raypunk, Weird
   West, Silkpunk); Cyberpunk's is lit from within instead, and brightens. Flat in Field mode and under Low power. ── */
html:not([data-watch="on"]):not([data-low="on"]):not([data-palette="cyber"]) .btn--primary {
  box-shadow: inset 0 1px 0 var(--btn-rim), inset 0 -10px 16px -10px var(--btn-deep),
    0 4px 0 -.5px color-mix(in srgb, var(--btn-2, var(--acc)) 52%, #000),
    0 16px 30px -12px var(--glow), 0 2px 5px rgba(var(--shade), calc(.3 * var(--sk)));
  transition: transform .12s ease, box-shadow .12s ease, filter var(--t) ease, opacity var(--t) ease;
}
html:not([data-watch="on"]):not([data-low="on"]):not([data-palette="cyber"]) :is(.btn--primary:active, a:active > .btn--primary) {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 var(--btn-rim), inset 0 -8px 14px -10px var(--btn-deep),
    0 1px 0 -.5px color-mix(in srgb, var(--btn-2, var(--acc)) 52%, #000), 0 6px 14px -10px var(--glow);
}
html:not([data-watch="on"]):not([data-low="on"])[data-palette="cyber"] .btn--primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 1px rgba(184, 246, 255, .45),
    0 0 26px -6px var(--neon-c, #45e3ff), 0 14px 30px -14px var(--glow);
}
html:not([data-watch="on"]):not([data-low="on"])[data-palette="cyber"] :is(.btn--primary:active, a:active > .btn--primary) { transform: scale(.975); filter: brightness(1.15) saturate(1.1); }
@media (prefers-reduced-motion: reduce) { :is(.btn--primary:active, a:active > .btn--primary) { transform: none !important; } }
/* a key set inside a link (the hero's, Learn's Today) goes down when the link is pressed: :active is the link's */

/* ── Learn's «Also today» (frap.js learn(), RUN6.md R2): the Grammar's next lesson and Reading's story for today ── */
.def-also { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 0 0 18px; }
.def-also__t { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 10px 12px; border-radius: 18px; text-decoration: none; color: var(--ink); }
.def-also__t > .i { flex: none; width: 26px; height: 26px; margin: 0 7px; color: var(--acc-ink); }
.def-also__t .art { flex: none; }
.def-also__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.def-also__main b { font-size: .92rem; line-height: 1.25; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.def-also__main .bk-n { color: var(--acc-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .def-also { grid-template-columns: minmax(0, 1fr); } }

/* ── the round buttons (back, close, the look, the options): each skin's bezel round the glass ─────────────────── */
html:not([data-watch="on"]):not([data-low="on"]):is([data-palette="ember"], :not([data-palette])) .btn--round.glass { box-shadow: 0 0 0 1.5px rgba(10, 13, 20, .7), inset 0 0 0 1px rgba(190, 210, 240, .18), inset 0 1px 0 var(--hi), var(--cast); }
html:not([data-watch="on"]):not([data-low="on"])[data-palette="steam"] .btn--round.glass { box-shadow: inset 0 0 0 1.5px var(--brass), inset 0 2px 0 1px rgba(255, 226, 168, .3), 0 0 0 1px var(--brass-lo), var(--cast); }
html:not([data-watch="on"]):not([data-low="on"])[data-palette="cyber"] .btn--round.glass { box-shadow: inset 0 0 0 1px rgba(69, 227, 255, .5), 0 0 14px -4px rgba(69, 227, 255, .55), var(--cast); }
html:not([data-watch="on"]):not([data-low="on"])[data-palette="ray"] .btn--round.glass { box-shadow: 0 0 0 2px rgba(230, 240, 245, .55), 0 0 0 3px rgba(70, 92, 102, .6), inset 0 1px 0 rgba(255, 255, 255, .3), var(--cast); }
html:not([data-watch="on"]):not([data-low="on"])[data-palette="west"] .btn--round.glass { box-shadow: inset 0 0 0 1.5px var(--brass, #c9984e), 0 0 0 1px rgba(60, 34, 16, .8), inset 0 1px 0 var(--hi), var(--cast); }
html:not([data-watch="on"]):not([data-low="on"])[data-palette="silk"] .btn--round.glass { box-shadow: inset 0 0 0 1px rgba(233, 182, 74, .75), 0 0 0 1px rgba(122, 33, 17, .5), inset 0 1px 0 var(--hi), var(--cast); }
html[data-look="milk"]:not([data-watch="on"]):not([data-low="on"])[data-palette="cyber"] .btn--round.glass { box-shadow: inset 0 0 0 1px rgba(10, 120, 150, .5), var(--cast); }
html[data-look="milk"]:not([data-watch="on"]):not([data-low="on"]):is([data-palette="ember"], :not([data-palette])) .btn--round.glass { box-shadow: 0 0 0 1.5px rgba(30, 44, 56, .26), inset 0 1px 0 var(--hi), var(--cast); }
