/* punk-steam.css — THUD PUNK's Steampunk (2026-10-11), ported from Matcha Edition's (its app/skins/steampunk.css: Playfair
   Display and its small capitals, Matcha Book for text, gilt edges, engraved rules, brass for the controls, the count a
   gauge) onto THUD's glass. By night walnut and leather under the lamp, by day parchment in the morning sun. The faces
   are under the OFL (fonts-punk/, beside their licences); none is applied to what a card teaches: the learner's own face
   stays. */
@font-face { font-family: "Playfair PUNK"; src: url("fonts-punk/PlayfairPUNK.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair SC PUNK"; src: url("fonts-punk/PlayfairSCPUNK.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Book PUNK"; src: url("fonts-punk/BookPUNK-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Book PUNK"; src: url("fonts-punk/BookPUNK-Bold.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }

html[data-palette="steam"] {
  --caps: "Playfair SC PUNK", "Playfair PUNK", Georgia, serif;
  --display: "Playfair PUNK", Georgia, serif;
  --ui: "Book PUNK", Georgia, serif;   /* Gentium Book Plus, cut whole: a learner's Ł, ő or ș in it too (TYPE.md) */
  --gold: #ecc77e;
  --gold-hot: #fff1c8;
  --brass-hi: #f4d98f;
  --brass: #c9a04e;
  --brass-lo: #7a5420;
  /* the glass: a brass bezel for its edge, lamplight for its sheen */
  --rim: rgba(244, 208, 132, .78);
  --rim-soft: rgba(201, 152, 72, .26);
  --rim-far: rgba(122, 80, 30, .5);
  --hi: rgba(255, 226, 168, .2);
  --glass-top: rgba(255, 212, 140, .075);
  --spot: rgba(255, 196, 110, .24);
  --sheen: rgba(255, 224, 168, .16);
  --engrave: rgba(214, 170, 92, .26);
}
html[data-look="milk"][data-palette="steam"] {
  --gold: #85560f;
  --rim: rgba(176, 124, 46, .72);
  --rim-soft: rgba(201, 152, 72, .2);
  --rim-far: rgba(122, 80, 30, .3);
  --hi: rgba(255, 255, 255, .72);
  --spot: rgba(255, 228, 176, .38);
  --engrave: rgba(150, 105, 40, .3);
}
html[data-palette="steam"] body { font-family: var(--ui); }

/* titles in Playfair Display, labels in its small capitals (lowercase set in the SC face), numbers lining */
html[data-palette="steam"] :is(.def-hero__title, .phead h1, .t-display, .t-large, .t-title, .t-head, .def-card__title, .sheet .t-title, .fr-res .rs-head, .brief__title) {
  font-family: var(--display); font-weight: 700; letter-spacing: 0; text-transform: none; }
html[data-palette="steam"] .def-hero__title { font-weight: 800; font-size: clamp(32px, 9.2vw, 50px); line-height: 1.02; }
html[data-palette="steam"] .caps { font-family: var(--caps); font-weight: 400; text-transform: lowercase; letter-spacing: .085em; font-size: 13.5px; }
html[data-palette="steam"] :is(.def-cell b, .fr-arc__n, .fr-tiles b, .fr-tile b) { font-family: var(--display); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; }
html[data-palette="steam"] .def-brand b { font-family: var(--display); font-weight: 900; letter-spacing: .04em; }
html[data-palette="steam"] .def-brand i { font-family: var(--caps); text-transform: lowercase; font-weight: 400; letter-spacing: .14em; }
html[data-palette="steam"] :is(.btn, .chip, .row__title, .seg__opt) { font-family: var(--ui); }
html[data-palette="steam"] .btn--primary { font-family: var(--caps); text-transform: lowercase; letter-spacing: .07em; font-size: 19px; font-weight: 400;
  text-shadow: 0 1px 0 rgba(255, 244, 214, .55); }

/* the panels: an engraved rule inside the bezel (the readiness plates' four rivets went with every skin's dots, PUNK.md
   call 40) */
html[data-palette="steam"] .glass:is(.group, .def-cell, .fr-tile, .sheet, .checkin, .empty, .card) { outline: 1px solid var(--engrave); outline-offset: -6px; }

/* the strategies' covers on the rails: a brass frame and an engraved inner rule */
html[data-palette="steam"] .def-card { border-radius: 12px; outline: 1px solid rgba(240, 205, 130, .3); outline-offset: -8px; }
html[data-palette="steam"] .def-card::before { padding: 1.5px;
  background: linear-gradient(145deg, var(--brass-hi), rgba(201, 160, 78, .35) 40%, rgba(122, 84, 32, .3) 62%, var(--brass)); }
html[data-palette="steam"] .def-card__n { color: var(--brass-hi); }

/* the count is a gauge: its track ticked like a dial */
html[data-palette="steam"] .ring__track { stroke-dasharray: 1 3.2; stroke-linecap: butt; }
html[data-palette="steam"] .fr-arc .ring__bar { filter: drop-shadow(0 0 8px rgba(240, 190, 90, .55)); }
/* the Debrief's score in a brass rim: Matcha Edition's own (art/steam/bezel.webp, cut by scripts/cut_skins.py), its opening
   0.865 of it, so 208 px round the 152 px gauge holds the ticks (thud-def.css, 176 px) inside it; room made above and below */
html[data-palette="steam"] .fr-arc, html[data-palette="steam"] .fr-res .fr-arc { margin: 30px 0 28px; }
html[data-palette="steam"] .fr-arc .ring::after { content: ""; position: absolute; inset: -28px; pointer-events: none;
  background: url("art/steam/bezel.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
html[data-look="milk"][data-palette="steam"] .fr-arc .ring::after { filter: drop-shadow(0 6px 10px rgba(74, 52, 20, .28)); }

/* the hero: lamplight on the name */
html[data-palette="steam"] .def-hero__title { text-shadow: 0 1px 0 rgba(0, 0, 0, .45), 0 0 26px rgba(255, 190, 90, .28); }
html:not([data-look="milk"])[data-palette="steam"] .def-hero__eyebrow { color: var(--brass-hi); }

/* ── the ram's burst (RAM.md §7, thud.js burst): little brass cogs that spin as they fly, and a puff of steam rising
   behind his horns ── */
[data-ram="steam"] .petal { left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, #1a1208 0 1.6px, #e2b45a 2px 3.2px, #9a6a22 3.6px) !important;
  outline: 2px dotted #d9ab55; outline-offset: -1px; box-shadow: 0 0 6px rgba(255, 196, 110, .45); }
[data-ram="steam"] .petal.p1, [data-ram="steam"] .petal.p3 { left: -3.5px; top: -3.5px; width: 7px; height: 7px; }
.puff { position: absolute; left: -14px; top: -40px; width: 28px; height: 28px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 252, 245, .85), rgba(255, 252, 245, 0) 70%); animation: ram-puff 1.3s var(--ease-out) both; }
.puff--2 { left: 2px; top: -46px; width: 22px; height: 22px; animation-delay: .12s; }
@keyframes ram-puff { 0% { opacity: 0; transform: translateY(8px) scale(.4); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateY(-26px) scale(1.6); } }
