/* Thanksgiving, round 3 (Fable, 10-26; Daniel 4:49 pm "Why is it so bland? ... Where's the theme?"):
   kraft paper on a barn-wood table under lantern light, brass and leather for the hardware.
   One file for every Thanksgiving surface: /thanksgiving/, /t/, the door and the raffle screen.
   Textures are photographs (r3/img), served as WebP at the size each surface needs
   (768 at 1x, 1152 at 2x and up on phones, 1536 on the iPad and the hall screen), with one
   JPEG/PNG fallback each for a browser without image-set or WebP. */
@font-face {
  font-family: "Alfa Slab One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/alfa-slab-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* the fallback is sized to the slab's width so a title fits before the webfont lands */
@font-face {
  font-family: "Alfa Slab One Fallback";
  src: local("Rockwell Extra Bold"), local("Georgia Bold"), local("Georgia-Bold"), local("Georgia"), local("DejaVu Serif Bold"), local("DejaVuSerif-Bold");
  font-weight: 400;
  size-adjust: 95%;
}
:root {
  --font-poster: "Alfa Slab One", "Alfa Slab One Fallback", Georgia, serif;
  --sky-top: #fdf1d8; --sky-mid: #f7cf93; --land: #3b1d14;
  --wood-900: #1f130b; --wood-700: #3a2414; --wood-500: #5c3a1e;
  --leather-800: #2a1708; --leather-600: #4a2a12; --leather-400: #6e4220;
  --kraft-100: #e9d4ad; --kraft-200: #d9bb8f; --kraft-300: #c9a876;
  --brass-300: #f0c35a; --brass-500: #c9962a; --brass-700: #8f6316;
  --foil: linear-gradient(170deg, #f6d57a 0%, #d9a93a 38%, #f1c75c 52%, #b8841f 100%);
  --ink-kraft: #2a1708;   /* 9.3:1 on kraft-200: all reading text on paper */
  --saddle: #4a2a12;      /* 7.0:1 on kraft-200: every label on paper */
  --rule-kraft: rgba(42, 23, 8, 0.24);
  --gate-green: #1f7a3a; --gate-amber: #c77d12; --gate-red: #8a2d1c;
  --shadow-deep: 0 18px 40px -16px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.35);
  --ease-land: cubic-bezier(.22, 1, .36, 1);
  /* the hardware family (Fable UI-REIMAGINE §0, 10-27; Daniel 1:28 am "all the ui and buttons reimagined"):
     brass for the one primary action and every selected rim, leather for secondary and selected fills,
     kraft-white for idle; one height, one radius set, one press */
  --ctl-h: 56px; --ctl-h-sm: 48px; --ctl-h-door: 64px;
  --r-pill: 999px; --r-field: 14px; --r-tile: 16px; --tile-gap: 10px;
  --rim-brass: 2px solid var(--brass-500);
  --edge-leather: 1.5px solid var(--leather-600);
  --shadow-brass: 0 10px 24px -10px rgba(201, 150, 42, 0.55), 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-leather: 0 8px 20px -10px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.3);
  --ease-ctl: cubic-bezier(.4, 0, .2, 1); --t-micro: 150ms; --t-ctl: 180ms;
}
/* kraft fits the width and repeats down (cover would blow the grain up on a tall card such as 40 arrivals) */
/* materials. Each image is written three times on purpose: a plain url (any browser), then
   -webkit-image-set and image-set with the WebP cuts; a browser drops the ones it cannot parse
   and keeps the last it can (never through a var(), which would leave no background at all). */
.m-wood { background-color: var(--wood-900); background-image: url("/assets/img/thanksgiving/wood-1152.jpg"); background-image: -webkit-image-set(url("/assets/img/thanksgiving/wood-768.webp") 1x, url("/assets/img/thanksgiving/wood-1152.webp") 2x); background-image: image-set(url("/assets/img/thanksgiving/wood-768.webp") 1x, url("/assets/img/thanksgiving/wood-1152.webp") 2x); background-position: center top; background-size: 100% auto; background-repeat: repeat-y; }
.m-leather { background-color: var(--leather-800); background-image: url("/assets/img/thanksgiving/leather-1152.jpg"); background-image: -webkit-image-set(url("/assets/img/thanksgiving/leather-768.webp") 1x); background-image: image-set(url("/assets/img/thanksgiving/leather-768.webp") 1x); background-position: center; background-size: cover; }
.m-kraft { background-color: var(--kraft-200); background-image: url("/assets/img/thanksgiving/kraft-1024.jpg"); background-image: -webkit-image-set(url("/assets/img/thanksgiving/kraft-768.webp") 1x, url("/assets/img/thanksgiving/kraft-1152.webp") 2x); background-image: image-set(url("/assets/img/thanksgiving/kraft-768.webp") 1x, url("/assets/img/thanksgiving/kraft-1152.webp") 2x); background-position: center top; background-size: 100% auto; background-repeat: repeat-y; color: var(--ink-kraft); }
@media (min-width: 1000px) {
  .m-wood { background-image: url("/assets/img/thanksgiving/wood-1152.jpg"); background-image: -webkit-image-set(url("/assets/img/thanksgiving/wood-1152.webp") 1x, url("/assets/img/thanksgiving/wood-1536.webp") 2x); background-image: image-set(url("/assets/img/thanksgiving/wood-1152.webp") 1x, url("/assets/img/thanksgiving/wood-1536.webp") 2x); }
  .m-leather { background-image: url("/assets/img/thanksgiving/leather-1152.jpg"); background-image: -webkit-image-set(url("/assets/img/thanksgiving/leather-768.webp") 1x, url("/assets/img/thanksgiving/leather-1536.webp") 2x); background-image: image-set(url("/assets/img/thanksgiving/leather-768.webp") 1x, url("/assets/img/thanksgiving/leather-1536.webp") 2x); }
}
.on-wood { color: var(--sky-top); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65); }
.tg-foil { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tg-rope { height: 14px; flex: 1 1 0; min-width: 0; background-image: url("/assets/img/thanksgiving/rope-48.png"); background-image: -webkit-image-set(url("/assets/img/thanksgiving/rope-48.webp") 1x); background-image: image-set(url("/assets/img/thanksgiving/rope-48.webp") 1x); background-position: left center; background-size: auto 14px; background-repeat: repeat-x; }
.tg-star { background-image: url("/assets/img/thanksgiving/star-256.png"); background-image: -webkit-image-set(url("/assets/img/thanksgiving/star-128.webp") 1x, url("/assets/img/thanksgiving/star-256.webp") 2x); background-image: image-set(url("/assets/img/thanksgiving/star-128.webp") 1x, url("/assets/img/thanksgiving/star-256.webp") 2x); background-position: center; background-size: contain; background-repeat: no-repeat; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); }
.tg-lantern { background-color: var(--wood-700); background-image: url("/assets/img/thanksgiving/lantern-1280.jpg"); background-image: -webkit-image-set(url("/assets/img/thanksgiving/lantern-640.webp") 1x, url("/assets/img/thanksgiving/lantern-1280.webp") 2x); background-image: image-set(url("/assets/img/thanksgiving/lantern-640.webp") 1x, url("/assets/img/thanksgiving/lantern-1280.webp") 2x); background-size: cover; }
.tg-slab { font-family: var(--font-poster); font-weight: 400; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.01em; }

/* ── THE HARDWARE, round 2 (Fable, tg-premium2-1027; Daniel 10-27 11:44 pm: "the gold pill ... looks flat. It doesn't
   have any kind of proper borders"): minted brass, saddle-stitched leather, kraft paper buttons. One recipe for every
   gold control on the Thanksgiving pages. Each recipe also names the door's own classes (door.css), so the door's
   markup takes the material as it is; door.css keeps only their sizes and layout. ── */
:root {
  /* the brass face: struck metal, light from the top, a darker belly, a second glint at the bottom edge */
  --brass-face: linear-gradient(180deg, #f6dc86 0%, #e4bd54 36%, #cc9d31 56%, #d8ab3f 78%, #ecc75e 100%);
  /* the light across it, a still diagonal: a bright band at the top left, a shade at the lower right */
  --brass-light: linear-gradient(112deg, rgba(255, 251, 235, 0.55) 0%, rgba(255, 251, 235, 0.12) 30%, rgba(255, 251, 235, 0) 48%, rgba(74, 48, 8, 0.16) 72%, rgba(255, 251, 235, 0.22) 100%);
  --brass-edge: #6b4a12;        /* the dark bronze rim, 1.5 px */
  --brass-cut: rgba(84, 56, 10, 0.42);   /* the engraved line, 3 px in */
  --brass-glint: rgba(255, 251, 235, 0.72);
  --brass-ink: #2a1708;         /* 6.9:1 on the darkest face stop (#cc9d31), 11.5:1 on the lightest */
  --shadow-brass-up: 0 1px 0 #7a5614, 0 2px 0 #5a3d0e, 0 12px 26px -10px rgba(201, 150, 42, 0.55), 0 3px 6px -1px rgba(0, 0, 0, 0.35);
  --shadow-brass-down: 0 0 0 #7a5614, 0 1px 0 #5a3d0e, 0 4px 10px -6px rgba(201, 150, 42, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  /* kraft paper (the secondary on kraft): a sheet with a leather edge */
  --paper-face: linear-gradient(180deg, #fffdf8 0%, #f8f1e2 100%);
  --paper-face-down: linear-gradient(180deg, #f3ebd9 0%, #ede3cf 100%);
  --shadow-paper-up: 0 1px 0 rgba(42, 23, 8, 0.28), 0 6px 14px -8px rgba(42, 23, 8, 0.45);
  --shadow-paper-down: 0 0 0 rgba(42, 23, 8, 0.28), 0 2px 4px -3px rgba(42, 23, 8, 0.35);
  /* tooled leather (the secondary on wood or a dark plate): the texture, a brass hairline, a saddle stitch inside */
  --leather-face: linear-gradient(180deg, rgba(255, 244, 214, 0.08), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.22) 100%), var(--leather-600);
  --shadow-leather-up: 0 1px 0 rgba(0, 0, 0, 0.5), 0 10px 22px -10px rgba(0, 0, 0, 0.75), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-leather-down: 0 0 0 rgba(0, 0, 0, 0.5), 0 3px 8px -5px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.3);
  --t-press: 100ms; --t-lift: 260ms;
}
/* ── the base every button shares: the box, the face layers, the press ── */
.hw, .dr-btn, .dr-step, .dr-way,
.tg-pill, .tg-cta, .tg-pay #ev-submit, .tg-pay #ev-wallet-finish, .tg-pay .tg-cashgo, .tg-rafdone .rd-more, .tg-cashwait .cw-copy, .tg-cashwait .cw-back, .tg-cashwait .cw-open, .tk-actions .btn, .tk-find .btn, .tg-mine a, .rf .btn, .dr-primary, .dr-secondary, .pz-ib, .home-event-cta { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: 999px; border: 0; font: 700 17px/1 var(--font-body); color: var(--brass-ink); text-decoration: none; text-align: center;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-lift) var(--ease-land), box-shadow var(--t-lift) var(--ease-ctl), filter var(--t-micro) var(--ease-ctl); }
.hw:active, .dr-btn:active, .dr-step:active, .dr-way:active,
.tg-pill:active, .tg-cta:active, .tg-pay #ev-submit:active, .tg-pay #ev-wallet-finish:active, .tg-pay .tg-cashgo:active, .tg-rafdone .rd-more:active, .tg-cashwait .cw-copy:active, .tg-cashwait .cw-back:active, .tg-cashwait .cw-open:active, .tk-actions .btn:active, .tk-find .btn:active, .tg-mine a:active, .rf .btn:active, .dr-primary:active, .dr-secondary:active, .pz-ib:active { transform: translateY(1px); transition-duration: var(--t-press); }
.hw:focus-visible, .dr-btn:focus-visible, .dr-step:focus-visible, .dr-way:focus-visible,
.tg-pill:focus-visible, .tg-cta:focus-visible, .tg-pay #ev-submit:focus-visible, .tg-pay #ev-wallet-finish:focus-visible, .tg-pay .tg-cashgo:focus-visible, .tg-rafdone .rd-more:focus-visible, .tg-cashwait .cw-copy:focus-visible, .tg-cashwait .cw-back:focus-visible, .tg-cashwait .cw-open:focus-visible, .tk-actions .btn:focus-visible, .tk-find .btn:focus-visible, .tg-mine a:focus-visible, .rf .btn:focus-visible, .dr-primary:focus-visible, .dr-secondary:focus-visible, .pz-ib:focus-visible { outline: 3px solid var(--brass-300); outline-offset: 3px; }
.hw svg, .dr-btn svg, .dr-step svg,
.tg-pill svg:not(.pay-ico), .tg-cta svg:not(.pay-ico), .tg-pay #ev-submit svg:not(.pay-ico), .tg-pay #ev-wallet-finish svg:not(.pay-ico), .tg-rafdone .rd-more svg:not(.pay-ico), .tg-cashwait .cw-copy svg:not(.pay-ico), .tg-cashwait .cw-back svg:not(.pay-ico), .tk-actions .btn svg:not(.pay-ico), .tk-find .btn svg:not(.pay-ico), .tg-mine a svg:not(.pay-ico), .rf .btn svg:not(.pay-ico), .dr-primary svg:not(.pay-ico), .dr-secondary svg:not(.pay-ico) { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* the light (::before) sits between the face and the label; the engraved line (::after) sits 3 px inside the rim */
.hw::before, .hw::after, .dr-btn::before, .dr-btn::after, .dr-step::before, .dr-step::after, .dr-way::before, .dr-way::after,
.tg-pill::before, .tg-pill::after, .tg-cta::before, .tg-cta::after, .tg-pay #ev-submit::before, .tg-pay #ev-submit::after, .tg-pay #ev-wallet-finish::before, .tg-pay #ev-wallet-finish::after, .tg-pay .tg-cashgo::before, .tg-pay .tg-cashgo::after, .tg-rafdone .rd-more::before, .tg-rafdone .rd-more::after, .tg-cashwait .cw-copy::before, .tg-cashwait .cw-copy::after, .tg-cashwait .cw-back::before, .tg-cashwait .cw-back::after, .tg-cashwait .cw-open::before, .tg-cashwait .cw-open::after, .tk-actions .btn::before, .tk-actions .btn::after, .tk-find .btn::before, .tk-find .btn::after, .tg-mine a::before, .tg-mine a::after, .rf .btn::before, .rf .btn::after, .dr-primary::before, .dr-primary::after, .dr-secondary::before, .dr-secondary::after, .pz-ib::before, .pz-ib::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; }
.hw::before, .dr-btn::before, .dr-step::before, .dr-way::before,
.tg-pill::before, .tg-cta::before, .tg-pay #ev-submit::before, .tg-pay #ev-wallet-finish::before, .tg-pay .tg-cashgo::before, .tg-rafdone .rd-more::before, .tg-cashwait .cw-copy::before, .tg-cashwait .cw-back::before, .tg-cashwait .cw-open::before, .tk-actions .btn::before, .tk-find .btn::before, .tg-mine a::before, .rf .btn::before, .dr-primary::before, .dr-secondary::before, .pz-ib::before { inset: 0; z-index: -1; }
.hw::after, .dr-btn::after, .dr-step::after, .dr-way::after,
.tg-pill::after, .tg-cta::after, .tg-pay #ev-submit::after, .tg-pay #ev-wallet-finish::after, .tg-pay .tg-cashgo::after, .tg-rafdone .rd-more::after, .tg-cashwait .cw-copy::after, .tg-cashwait .cw-back::after, .tg-cashwait .cw-open::after, .tk-actions .btn::after, .tk-find .btn::after, .tg-mine a::after, .rf .btn::after, .dr-primary::after, .dr-secondary::after, .pz-ib::after { inset: 3px; }

/* ── BRASS: the one primary on a screen ── */
.hw-brass, .dr-gold,
.tg-pill-brass, .tg-cta:not(.is-quiet), .tg-pay #ev-submit, .tg-pay #ev-wallet-finish, .tg-rafdone .rd-more, .tk-actions .tk-save:not(.tk-send), .tk-actions .tk-lead, .tk-find .btn, .tg-mine a, .rf .btn-gold, .ops #prizesBtn.lead, .dr-primary:not(.dr-go), .home-event-cta { background: var(--brass-face); color: var(--brass-ink); border: 1.5px solid var(--brass-edge);
  text-shadow: 0 1px 0 rgba(255, 251, 235, 0.45);   /* the letters are struck into the metal: a light edge under the ink */
  box-shadow: inset 0 1px 0 var(--brass-glint), inset 0 -2px 0 rgba(84, 56, 10, 0.35), var(--shadow-brass-up); }
.hw-brass::before, .dr-gold::before,
.tg-pill-brass::before, .tg-cta:not(.is-quiet)::before, .tg-pay #ev-submit::before, .tg-pay #ev-wallet-finish::before, .tg-rafdone .rd-more::before, .tk-actions .tk-save:not(.tk-send)::before, .tk-actions .tk-lead::before, .tk-find .btn::before, .tg-mine a::before, .rf .btn-gold::before, .ops #prizesBtn.lead::before, .dr-primary:not(.dr-go)::before, .home-event-cta::before { background: var(--brass-light); }
.hw-brass::after, .dr-gold::after,
.tg-pill-brass::after, .tg-cta:not(.is-quiet)::after, .tg-pay #ev-submit::after, .tg-pay #ev-wallet-finish::after, .tg-rafdone .rd-more::after, .tk-actions .tk-save:not(.tk-send)::after, .tk-actions .tk-lead::after, .tk-find .btn::after, .tg-mine a::after, .rf .btn-gold::after, .ops #prizesBtn.lead::after, .dr-primary:not(.dr-go)::after, .home-event-cta::after { inset: 3px; border: 1px solid var(--brass-cut); box-shadow: 0 1px 0 rgba(255, 251, 235, 0.35), inset 0 1px 0 rgba(255, 251, 235, 0.2); }
.hw-brass:active, .dr-gold:active,
.tg-pill-brass:active, .tg-cta:not(.is-quiet):active, .tg-pay #ev-submit:active, .tg-pay #ev-wallet-finish:active, .tg-rafdone .rd-more:active, .tk-actions .tk-save:not(.tk-send):active, .tk-actions .tk-lead:active, .tk-find .btn:active, .tg-mine a:active, .rf .btn-gold:active, .ops #prizesBtn.lead:active, .dr-primary:not(.dr-go):active, .home-event-cta:active { box-shadow: inset 0 1px 0 rgba(255, 251, 235, 0.3), inset 0 2px 4px rgba(84, 56, 10, 0.35), var(--shadow-brass-down); filter: brightness(0.96); }
/* light that moves: one pass of a glint across the face when the button appears (primaries only, once), and on hover;
   the band at .7 (the mock's .55 was too faint on a phone, spec 1.1) */
.hw-brass > .hw-sheen, .dr-gold > .hw-sheen, .hw-sheen { position: absolute; inset: -40% -30%; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, rgba(255, 251, 235, 0) 40%, rgba(255, 251, 235, 0.7) 50%, rgba(255, 251, 235, 0) 60%); transform: translateX(-70%) skewX(-16deg); }
.hw-brass.is-lit > .hw-sheen, .dr-gold.is-lit > .hw-sheen, .is-lit > .hw-sheen { animation: hwSheen 1.1s 0.25s var(--ease-land) 1 both; }
/* a press lights it again at once, a little quicker (Part 4 #3: the button shows it took the tap) */
.is-lit.is-press > .hw-sheen { animation: hwSheen 0.9s var(--ease-land) 1 both; }
@keyframes hwSheen { 0% { opacity: 0; transform: translateX(-70%) skewX(-16deg); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(70%) skewX(-16deg); } }
@media (any-hover: hover) { .hw-brass:hover, .dr-gold:hover,
  .tg-pill-brass:hover, .tg-cta:not(.is-quiet):hover, .tg-pay #ev-submit:hover, .tg-pay #ev-wallet-finish:hover, .tg-rafdone .rd-more:hover, .tk-actions .tk-save:not(.tk-send):hover, .tk-actions .tk-lead:hover, .tk-find .btn:hover, .tg-mine a:hover, .rf .btn-gold:hover, .ops #prizesBtn.lead:hover, .dr-primary:not(.dr-go):hover { filter: brightness(1.04); }
  .hw-brass:hover > .hw-sheen, .dr-gold:hover > .hw-sheen, .is-lit:hover > .hw-sheen { animation: hwSheen 0.9s var(--ease-land) 1 both; } }

/* ── PAPER: the secondary on kraft ── */
.hw-paper, .dr-ink, .dr-way,
.tg-pill-kraft, .tk-actions .tk-send, .tk-actions .tk-copy, .tg-cashwait .cw-copy, .tg-cashwait .cw-back, .dr-secondary { background: var(--paper-face); color: var(--ink-kraft); border: 1.5px solid var(--leather-600);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(42, 23, 8, 0.1), var(--shadow-paper-up); }
.hw-paper::after, .dr-ink::after, .dr-way::after,
.tg-pill-kraft::after, .tk-actions .tk-send::after, .tk-actions .tk-copy::after, .tg-cashwait .cw-copy::after, .tg-cashwait .cw-back::after, .dr-secondary::after { border: 1px solid rgba(42, 23, 8, 0.1); }
.hw-paper:active, .dr-ink:active, .dr-way:active,
.tg-pill-kraft:active, .tk-actions .tk-send:active, .tk-actions .tk-copy:active, .tg-cashwait .cw-copy:active, .tg-cashwait .cw-back:active, .dr-secondary:active { background: var(--paper-face-down); box-shadow: inset 0 1px 2px rgba(42, 23, 8, 0.18), var(--shadow-paper-down); }
@media (any-hover: hover) { .hw-paper:hover, .dr-ink:hover, .dr-way:hover,
  .tg-pill-kraft:hover, .tk-actions .tk-send:hover, .tk-actions .tk-copy:hover, .tg-cashwait .cw-copy:hover, .tg-cashwait .cw-back:hover, .dr-secondary:hover { border-color: var(--leather-800); } }

/* ── LEATHER: the secondary on wood or a dark plate; also a quiet "on" fill ── */
.hw-leather, .dr-ghost, .dr-step,
.tg-pill-leather, .rf .btn-ghost-cream:not(.lead), .pz-ib { color: var(--sky-top); border: 1px solid rgba(240, 195, 90, 0.5);
  background-color: var(--leather-600); background-image: var(--leather-face); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.14), inset 0 -2px 0 rgba(0, 0, 0, 0.3), var(--shadow-leather-up); }
/* the saddle stitch: a dashed brass line 3 px inside the edge */
.hw-leather::after, .dr-ghost::after, .dr-step::after,
.tg-pill-leather::after, .rf .btn-ghost-cream:not(.lead)::after, .pz-ib::after { inset: 4px; border: 1px dashed rgba(240, 195, 90, 0.55); }
.hw-leather:active, .dr-ghost:active, .dr-step:active,
.tg-pill-leather:active, .rf .btn-ghost-cream:not(.lead):active, .pz-ib:active { box-shadow: inset 0 1px 0 rgba(255, 244, 214, 0.08), inset 0 2px 5px rgba(0, 0, 0, 0.45), var(--shadow-leather-down); }
@media (any-hover: hover) { .hw-leather:hover, .dr-ghost:hover, .dr-step:hover,
  .tg-pill-leather:hover, .rf .btn-ghost-cream:not(.lead):hover, .pz-ib:hover { border-color: rgba(240, 195, 90, 0.8); } }

/* ── states every material shares ── */
.hw:disabled, .hw[aria-disabled="true"], .hw.is-out, .dr-btn:disabled, .dr-btn[aria-disabled="true"], .dr-btn.is-out, .dr-step:disabled, .dr-way:disabled,
.tg-pill:disabled, .tg-pill[aria-disabled="true"], .tg-cta:disabled, .tg-pay #ev-submit:disabled, .tg-pay #ev-wallet-finish:disabled, .tg-cashwait .cw-copy:disabled, .tk-actions .btn:disabled, .tk-find .btn:disabled, .rf .btn:disabled, .dr-primary:disabled, .dr-secondary:disabled, .pz-ib:disabled { opacity: 0.45; filter: saturate(0.6); box-shadow: none; transform: none; pointer-events: none; }
.hw:disabled::before, .hw:disabled > .hw-sheen, .dr-btn:disabled::before, .dr-btn:disabled > .hw-sheen, .dr-step:disabled::before, .dr-way:disabled::before,
.tg-pill:disabled::before, .tg-pill:disabled > .hw-sheen, .tg-pill[aria-disabled="true"]::before, .tg-pill[aria-disabled="true"] > .hw-sheen, .tg-cta:disabled::before, .tg-cta:disabled > .hw-sheen, .tg-pay #ev-submit:disabled::before, .tg-pay #ev-submit:disabled > .hw-sheen, .tg-pay #ev-wallet-finish:disabled::before, .tg-pay #ev-wallet-finish:disabled > .hw-sheen, .tg-cashwait .cw-copy:disabled::before, .tg-cashwait .cw-copy:disabled > .hw-sheen, .tk-actions .btn:disabled::before, .tk-actions .btn:disabled > .hw-sheen, .tk-find .btn:disabled::before, .tk-find .btn:disabled > .hw-sheen, .rf .btn:disabled::before, .rf .btn:disabled > .hw-sheen, .dr-primary:disabled::before, .dr-primary:disabled > .hw-sheen, .dr-secondary:disabled::before, .dr-secondary:disabled > .hw-sheen, .pz-ib:disabled::before, .pz-ib:disabled > .hw-sheen { display: none; }
/* busy: the label dims, a brass line travels along the engraved ring's bottom edge (the raffle wait bar's own motion) */
.hw[aria-busy="true"], .dr-btn[aria-busy="true"], .tg-pay #ev-submit[aria-busy="true"], .tk-actions .tk-save[aria-busy="true"] { pointer-events: none; }
/* a busy button is also disabled (the logic blocks twice): it keeps its brass while it waits, never the faded "off" look */
.hw-brass[aria-busy="true"]:disabled, .dr-gold[aria-busy="true"]:disabled, .tg-pay #ev-submit[aria-busy="true"]:disabled, .tk-actions .tk-save:not(.tk-send)[aria-busy="true"]:disabled { opacity: 1; filter: none; box-shadow: inset 0 1px 0 var(--brass-glint), inset 0 -2px 0 rgba(84, 56, 10, 0.35), var(--shadow-brass-up); }
.hw-brass[aria-busy="true"]:disabled::before, .dr-gold[aria-busy="true"]:disabled::before, .tg-pay #ev-submit[aria-busy="true"]:disabled::before, .tk-actions .tk-save:not(.tk-send)[aria-busy="true"]:disabled::before { display: block; }
/* the kraft "Save ticket image" (Apple Wallet leads) keeps its paper while it makes the picture */
.tk-actions .tk-send.tk-save[aria-busy="true"]:disabled { opacity: 1; filter: none; box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(42, 23, 8, 0.1), var(--shadow-paper-up); }
.hw[aria-busy="true"] > :not(.hw-sheen):not(.hw-busy), .dr-btn[aria-busy="true"] > :not(.hw-sheen):not(.hw-busy), .tg-pay #ev-submit[aria-busy="true"] > :not(.hw-sheen):not(.hw-busy), .tk-actions .tk-save[aria-busy="true"] > :not(.hw-sheen):not(.hw-busy) { opacity: 0.55; }
.hw-busy { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(42, 23, 8, 0.18); display: none; }
.hw[aria-busy="true"] > .hw-busy, .dr-btn[aria-busy="true"] > .hw-busy, .tg-pay #ev-submit[aria-busy="true"] > .hw-busy, .tk-actions .tk-save[aria-busy="true"] > .hw-busy { display: block; }
.hw-busy::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: 2px; background: var(--brass-ink); animation: hwBusy 1.2s linear infinite; }
.hw-leather .hw-busy, .dr-ghost .hw-busy { background: rgba(255, 244, 214, 0.2); } .hw-leather .hw-busy::after, .dr-ghost .hw-busy::after { background: var(--brass-300); }
@keyframes hwBusy { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
/* a flat brass face for things that are not pressed: the segment indicator, the +N pill, the rank medal, a chip */
.hw-brass-flat, .dr-seg-ind,
.rf .jn, .rf .brow.first .rk, .rf .seg button[aria-pressed="true"], .rf .hit, .rf .ops .chk input:checked + .box, #tickets .chip-save, .t-raffle-seal, .tg-tile[aria-pressed="true"] .tg-tile-tick { background: var(--brass-face); color: var(--brass-ink); border: 1px solid var(--brass-edge); isolation: isolate; overflow: hidden;   /* no position here: the seg indicator is absolute already; chips and medals set position: relative themselves */
  box-shadow: inset 0 1px 0 var(--brass-glint), inset 0 -1px 0 rgba(84, 56, 10, 0.3), 0 1px 0 #7a5614, 0 3px 8px -3px rgba(0, 0, 0, 0.35); }
.hw-brass-flat::before, .dr-seg-ind::before,
.rf .jn::before, .rf .brow.first .rk::before, .rf .seg button[aria-pressed="true"]::before, .rf .hit::before, .rf .ops .chk input:checked + .box::before, #tickets .chip-save::before, .t-raffle-seal::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--brass-light); }
/* the 24 px tick carries the same light in its own background (one layer over the face), not in a ::before: the same look
   (measured: at most 68/765 on a few edge pixels), and button-center-check no longer reads a painted pseudo-element that small as the tick's label */
.tg-tile[aria-pressed="true"] .tg-tile-tick { background: var(--brass-light), var(--brass-face); }
.hw-sm { min-height: 48px; padding: 0 18px; font-size: 16px; }
.hw-xl { min-height: 64px; }
.hw-wide { display: flex; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .hw, .hw::before, .dr-btn, .dr-btn::before, .dr-step, .dr-way { transition: none; }
  .tg-pill, .tg-cta, .tg-pay #ev-submit, .tg-pay #ev-wallet-finish, .tg-pay .tg-cashgo, .tg-rafdone .rd-more, .tg-cashwait .cw-copy, .tg-cashwait .cw-back, .tg-cashwait .cw-open, .tk-actions .btn, .tk-find .btn, .tg-mine a, .rf .btn, .dr-primary, .dr-secondary, .pz-ib, .home-event-cta { transition: none; }
  .hw-brass.is-lit > .hw-sheen, .hw-brass:hover > .hw-sheen, .dr-gold.is-lit > .hw-sheen, .dr-gold:hover > .hw-sheen { animation: none; }
  .hw-busy::after { animation: none; width: 100%; opacity: 0.5; }
  .hw-sheen { display: none; }
}
