/* Deep Cuts - Scout Cards. Scoped to .dcx so it can't leak into other pages. */

body.dcx-page {
  background:
    radial-gradient(70% 38% at 12% 0%, rgba(110, 160, 255, 0.16), transparent 70%),
    radial-gradient(70% 38% at 88% 0%, rgba(255, 190, 110, 0.12), transparent 70%),
    #060a13;
  background-attachment: fixed;
}

.dcx {
  --panel: #0e1526;
  --panel2: #131c33;
  --line: rgba(255, 255, 255, 0.1);
  --acc: #ff7a2e;
  --txt: #f3f5fa;
  --dim: #9aa6bd;
  max-width: 460px;
  margin: 0 auto;
  padding: 6px 0 36px;
  color: var(--txt);
}

/* The site header and daily-circuit strip are sticky everywhere else; on the game page they scroll away so
   the question, input and card all fit above a phone keyboard. */
body.dcx-page .site-header, body.dcx-page .circuit-bar { position: static; }

/* ---------- tier palettes (used by cards, dots, mini cards, bars) ---------- */
.t-herd   { --c1: #6f7a8d; --c2: #2c3342; --edge: #94a0b5; --ink: #f1f4f9; --glow: #94a0b5; --bar: #94a0b5; }
.t-common { --c1: #d08a52; --c2: #5e3216; --edge: #f0b27c; --ink: #fff2e6; --glow: #f0a060; --bar: #e39a62; }
.t-solid  { --c1: #dfe5f1; --c2: #6a758b; --edge: #ffffff; --ink: #1b2233; --glow: #dbe4f7; --bar: #cfd8ea; }
.t-rare   { --c1: #ffe07a; --c2: #a8700a; --edge: #fff0b3; --ink: #3b2600; --glow: #ffd24a; --bar: #ffd24a; }
.t-deep   { --c1: #0c3c56; --c2: #2a0f55; --edge: #7be8ff; --ink: #e6fcff; --glow: #6fe3ff; --bar: #6fe3ff; }
.t-miss   { --c1: #2a1216; --c2: #130a0d; --edge: #ef3c3c; --ink: #ffd9d9; --glow: #ef3c3c; --bar: #ef3c3c; }

/* ---------- HUD ---------- */
.dcx-hud {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 10px;
  padding: 10px 12px 12px; margin: 4px 0 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.dcx-brand { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 26px; letter-spacing: .04em; color: var(--acc); line-height: 1; white-space: nowrap; }
.dcx-brand small { display: block; font-family: var(--font-body, Inter, sans-serif); font-weight: 700; font-size: 10px; letter-spacing: .16em; color: var(--dim); margin-top: 4px; }
.dcx-dots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dcx-dot {
  height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); border: 0;
  display: block; font-size: 0; transition: background .25s, box-shadow .25s, transform .25s;
}
.dcx-dot.f { background: var(--c1); box-shadow: 0 0 10px var(--glow); }
.dcx-dot.pop { animation: dcx-pop .45s ease; }
.dcx-dot.t-miss { background: #ef3c3c; box-shadow: 0 0 10px rgba(239, 60, 60, .7); }
.dcx-hudr { display: flex; align-items: center; gap: 8px; }
.dcx-score { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 34px; line-height: 1; color: var(--txt); text-align: right; }
.dcx-score small { font-size: 13px; color: var(--dim); margin-left: 4px; letter-spacing: .08em; }
.dcx-snd {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2);
  color: var(--txt); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
}
.dcx-snd[aria-pressed="false"] { opacity: .45; }

/* ---------- day navigation ---------- */
.dcx-nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.dcx-arrow {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--panel);
  color: var(--txt); font-size: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.dcx-arrow:disabled { opacity: .25; cursor: not-allowed; }
.dcx-date { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 17px; color: var(--dim); letter-spacing: .03em; text-align: center; }
.dcx-cal { position: relative; width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 17px; cursor: pointer; }
.dcx-cal input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.dcx-backtoday { text-align: center; margin: -4px 0 10px; }
.dcx-link { background: none; border: 0; color: var(--dim); font: inherit; font-size: 13px; min-height: 40px; padding: 0 6px; cursor: pointer; text-decoration: underline; }

/* ---------- question ---------- */
.dcx-q {
  padding: 16px 16px 14px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 122, 46, 0.1), transparent 45%), var(--panel);
  margin-bottom: 10px; scroll-margin-top: 8px;
}
.dcx-q .lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.dcx-q .txt { font-family: var(--font-body, Inter, sans-serif); font-weight: 800; font-size: 24px; line-height: 1.18; margin-top: 8px; letter-spacing: -0.01em; }
.dcx-q .txt em { font-style: normal; color: var(--acc); }
.dcx-q .sub { font-size: 12px; color: var(--dim); margin-top: 10px; }

/* ---------- input ---------- */
.dcx-input { margin-bottom: 10px; }
.dcx-row { display: flex; gap: 8px; align-items: stretch; }
.dcx-row .bk-ac-wrap { flex: 1; min-width: 0; display: block; }
.dcx-row input {
  width: 100%; min-height: 52px; background: var(--panel); border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 12px;
  padding: 0 14px; color: var(--txt); font-family: inherit; font-size: 16px; outline: none;
}
.dcx-row input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(255, 122, 46, .18); }
.dcx-row input.shake { animation: dcx-shake .35s ease; border-color: #ef3c3c; }
.dcx-input .bk-ac-item { padding: 12px 12px; font-size: 15px; }
.dcx-input .bk-ac-list { max-height: 264px; }
.dcx-go {
  font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 24px; letter-spacing: .06em; min-height: 52px; padding: 0 20px;
  border-radius: 12px; border: 0; background: var(--acc); color: #1a0d03; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 0 #b5470a;
}
.dcx-go:active { transform: translateY(2px); box-shadow: 0 2px 0 #b5470a; }
.dcx-go:disabled { opacity: .5; cursor: wait; }
.dcx-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; font-size: 13px; color: var(--dim); }
.dcx-msg { min-height: 22px; font-size: 14px; font-weight: 700; text-align: center; margin: 2px 0 8px; color: var(--dim); }
.dcx-msg.ok { color: #7ef0a8; } .dcx-msg.err { color: #ff8a8a; } .dcx-msg.note { color: #f2c94c; }

/* ---------- stage (pitch + cards + characters) ---------- */
.dcx-stage {
  position: relative; height: 336px; border-radius: 18px; overflow: hidden; margin-bottom: 8px;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 55% at 50% 100%, rgba(255, 255, 255, 0.07), transparent 70%),
    linear-gradient(180deg, #0a1426 0%, #0f2a22 42%, #14532d 100%);
  transition: height .25s ease;
}
.dcx-stage::before { /* pitch stripes */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .0) 0 26px, rgba(0, 0, 0, .13) 26px 52px);
  opacity: .9; pointer-events: none;
}
.dcx-stage::after { /* centre circle + halfway line */
  content: ""; position: absolute; left: 50%; bottom: -70px; width: 190px; height: 190px; margin-left: -95px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .16); pointer-events: none;
}
.dcx-crowd { position: absolute; left: 0; right: 0; top: 0; height: 34%; opacity: .55; pointer-events: none;
  background:
    radial-gradient(circle at 8% 60%, #ffd9a0 0 2px, transparent 3px), radial-gradient(circle at 21% 40%, #9bd0ff 0 2px, transparent 3px),
    radial-gradient(circle at 34% 70%, #ff9a9a 0 2px, transparent 3px), radial-gradient(circle at 47% 35%, #ffffff 0 2px, transparent 3px),
    radial-gradient(circle at 60% 65%, #ffd9a0 0 2px, transparent 3px), radial-gradient(circle at 73% 42%, #9bd0ff 0 2px, transparent 3px),
    radial-gradient(circle at 86% 68%, #ff9a9a 0 2px, transparent 3px), radial-gradient(circle at 95% 38%, #ffffff 0 2px, transparent 3px);
}
.dcx-slot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.dcx-slot .dcx-card { transform: scale(var(--cs, 1)); transform-origin: center; transition: transform .25s ease; }
.dcx.typing .dcx-stage { height: 212px; }
.dcx.typing { --cs: .62; }
.dcx.typing .dcx-q { padding: 11px 14px 10px; margin-bottom: 8px; }
.dcx.typing .dcx-q .txt { font-size: 19px; margin-top: 5px; }
.dcx.typing .dcx-q .sub { display: none; }
.dcx-fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.dcx-confetti { position: absolute; inset: 0; z-index: 4; pointer-events: none; width: 100%; height: 100%; }
.dcx-hint { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); pointer-events: none; }

/* ---------- cards ---------- */
.dcx-card { width: 220px; height: 304px; perspective: 1000px; flex: none; }
.dcx-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.2, .85, .25, 1); }
.dcx-card.facedown .dcx-card-inner { transform: rotateY(180deg); }
.dcx-card.wiggle .dcx-card-inner { animation: dcx-wiggle .5s ease-in-out infinite; }
.dcx-card.glow { filter: drop-shadow(0 10px 22px color-mix(in srgb, var(--glow) 55%, transparent)); }
.dcx-face { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.dcx-front {
  background: linear-gradient(155deg, var(--c1), var(--c2));
  border: 4px solid var(--edge); color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), 0 8px 24px rgba(0, 0, 0, .5);
}
.dcx-foil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .35), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .10) 0 2px, transparent 2px 11px);
}
.dcx-front::after { /* moving shine, gold + gem only */
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.t-rare .dcx-front::after, .t-deep .dcx-front::after { opacity: 1; animation: dcx-shine 3.2s ease-in-out .9s infinite; }
.t-deep .dcx-front {
  border: 4px solid transparent;
  background:
    linear-gradient(155deg, var(--c1), var(--c2)) padding-box,
    conic-gradient(from var(--ang, 0deg), #35e0ff, #b76cff, #ff6ad5, #ffd35a, #35e0ff) border-box;
  animation: dcx-spin 5s linear infinite;
}
.t-deep .dcx-foil {
  background:
    radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .28), transparent 60%),
    repeating-linear-gradient(115deg, rgba(120, 240, 255, .16) 0 2px, rgba(255, 120, 220, .10) 2px 5px, transparent 5px 12px);
}
.dcx-top { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; align-items: flex-start; }
.dcx-rar { font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; background: rgba(0, 0, 0, .28); color: var(--ink); }
.t-solid .dcx-rar, .t-rare .dcx-rar { background: rgba(255, 255, 255, .45); }
.dcx-pts { font-family: var(--font-display, 'Jersey 15', sans-serif); line-height: .8; text-align: right; }
.dcx-pts b { display: block; font-size: 64px; font-weight: 400; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.dcx-pts small { font-size: 13px; letter-spacing: .14em; opacity: .85; }
.dcx-shirt { position: absolute; left: 50%; top: 82px; width: 122px; margin-left: -61px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.dcx-shirt path.body { fill: var(--c2); stroke: var(--edge); stroke-width: 3; stroke-linejoin: round; }
.t-solid .dcx-shirt path.body { fill: #8c97ad; }
.t-rare .dcx-shirt path.body { fill: #c88a14; }
.dcx-shirt path.trim { fill: none; stroke: var(--edge); stroke-width: 3; opacity: .75; }
.dcx-shirt text { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 40px; fill: var(--ink); text-anchor: middle; }
.dcx-name { position: absolute; left: 10px; right: 10px; bottom: 58px; text-align: center; font-weight: 800; font-size: 19px; line-height: 1.1; text-shadow: 0 1px 0 rgba(0, 0, 0, .2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcx-stat { position: absolute; left: 10px; right: 10px; bottom: 34px; text-align: center; font-size: 12px; font-weight: 600; opacity: .9; }
.dcx-stat b { font-weight: 800; }
.dcx-meter { position: absolute; left: 18px; right: 18px; bottom: 16px; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .3); overflow: hidden; }
.dcx-meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--ink); opacity: .9; transition: width 1s cubic-bezier(.2, .8, .2, 1) .5s; }
.dcx-back {
  transform: rotateY(180deg); border: 4px solid #3a4a73; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 122, 46, .35), transparent 55%),
    repeating-linear-gradient(45deg, #121b33 0 10px, #17223f 10px 20px);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.dcx-crest { width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--acc); display: flex; align-items: center; justify-content: center; font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 46px; color: var(--acc); background: rgba(5, 8, 16, .75); letter-spacing: .02em; }
.dcx-back small { font-size: 11px; letter-spacing: .22em; color: #8b9bc2; font-weight: 700; }

/* the "offside" card for wrong answers */
.t-miss .dcx-front { background: linear-gradient(155deg, #3a1419, #150a0d); border: 4px dashed #ef3c3c; color: #ffd9d9; }
.t-miss .dcx-foil { background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 11px); }
.t-miss .dcx-pts b { font-size: 0; }
.dcx-flag { position: absolute; left: 50%; top: 78px; width: 110px; margin-left: -55px; transform-origin: 20% 100%; animation: dcx-flagwave 1.1s ease-in-out infinite; }
.t-miss .dcx-name { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #ef3c3c; }

/* ---------- hand (the five slots) ---------- */
.dcx-hand { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 12px; }
.dcx-mini {
  position: relative; aspect-ratio: 5 / 7; border-radius: 9px; border: 2px dashed rgba(255, 255, 255, .18); color: var(--dim);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
}
.dcx-mini.f {
  border: 2px solid var(--edge); background: linear-gradient(155deg, var(--c1), var(--c2)); color: var(--ink);
  flex-direction: column; gap: 0; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); overflow: hidden;
}
.dcx-mini.f b { font-family: var(--font-display, 'Jersey 15', sans-serif); font-weight: 400; font-size: 30px; line-height: .9; }
.dcx-mini.f span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; margin-top: 3px; }
.dcx-mini.f.t-deep { border-color: #7be8ff; box-shadow: 0 0 12px rgba(111, 227, 255, .55); }
.dcx-mini.f.t-miss { background: #1b0d10; border: 2px dashed #ef3c3c; }
.dcx-mini.f.t-miss b { font-size: 22px; color: #ff8a8a; }
.dcx-mini.pop { animation: dcx-pop .5s ease; }

/* ---------- final panel ---------- */
.dcx-final { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(170deg, rgba(255, 122, 46, .14), transparent 40%), var(--panel); padding: 18px 14px 16px; margin-bottom: 12px; }
.dcx-final .big { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 64px; line-height: 1; text-align: center; color: var(--acc); }
.dcx-final .big small { font-size: 24px; color: var(--dim); }
.dcx-final .ttl { text-align: center; font-weight: 800; font-size: 18px; margin-top: 4px; }
.dcx-final .beat { text-align: center; font-size: 13px; color: var(--dim); margin-top: 3px; min-height: 18px; }
.dcx-final .dcx-hand { margin: 14px 0 6px; }
.dcx-names { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 8px; }
.dcx-names span { font-size: 10px; line-height: 1.15; text-align: center; color: var(--dim); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.dcx-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.dcx-acts .full { grid-column: 1 / -1; }
.dcx-btn { font-family: inherit; font-weight: 800; font-size: 15px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dcx-btn.pri { background: var(--acc); color: #1a0d03; box-shadow: 0 4px 0 #b5470a; }
.dcx-btn.pri:active { transform: translateY(2px); box-shadow: 0 2px 0 #b5470a; }
.dcx-btn.gh { background: transparent; border: 1px solid rgba(255, 255, 255, .28); color: var(--txt); }
.dcx-reveal h3 { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 18px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; color: var(--acc); margin: 16px 0 8px; }
.dcx-top5 { display: grid; gap: 6px; }
.dcx-top5 .r { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 13px; position: relative; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .3); overflow: hidden; }
.dcx-top5 .r i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 122, 46, .22); }
.dcx-top5 .r span { position: relative; }
.dcx-top5 .r .mine { color: var(--acc); font-weight: 800; }
.dcx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dcx-chips span { padding: 6px 10px; border-radius: 99px; font-size: 12px; background: rgba(111, 227, 255, .1); border: 1px solid rgba(111, 227, 255, .45); color: #c5f3ff; }
.dcx-note { font-size: 12px; color: var(--dim); line-height: 1.45; margin-top: 8px; }
.dcx-next { text-align: center; margin-top: 14px; font-size: 13px; color: var(--dim); }
.dcx-next b { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 24px; font-weight: 400; color: var(--txt); letter-spacing: .05em; }
.dcx-yday { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.dcx-yday summary { cursor: pointer; padding: 11px 14px; font-size: 13px; font-weight: 700; color: var(--dim); min-height: 44px; display: flex; align-items: center; list-style: none; }
.dcx-yday summary::-webkit-details-marker { display: none; }
.dcx-yday summary::before { content: "\25B8"; margin-right: 8px; color: var(--acc); }
.dcx-yday[open] summary::before { content: "\25BE"; }
.dcx-yday .body { padding: 0 14px 12px; font-size: 13px; line-height: 1.5; color: #dde3f0; }
.dcx-yday .body .q { font-weight: 800; margin-bottom: 6px; color: var(--txt); }
.dcx-yday .body b { color: var(--acc); }

.dcx-how { margin-top: 22px; font-size: 14px; line-height: 1.6; color: #cdd5e6; }
.dcx-how h2 { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 22px; font-weight: 400; text-transform: uppercase; color: var(--acc); margin: 0 0 8px; }
.dcx-how ul { padding-left: 18px; margin: 8px 0; }
.dcx-tiers { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 10px 0; font-size: 13px; align-items: center; }
.dcx-tiers i { display: inline-block; width: 26px; height: 18px; border-radius: 4px; border: 2px solid var(--edge); background: linear-gradient(155deg, var(--c1), var(--c2)); }
.dcx-err { text-align: center; padding: 24px 12px; color: var(--dim); }

/* ---------- characters ---------- */
.dcx-actor { position: absolute; bottom: 4px; width: 104px; }
.dcx-actor svg { display: block; width: 100%; height: auto; overflow: visible; }
.dcx-bubble {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-30%); white-space: nowrap; margin-bottom: -4px;
  background: #fff; color: #111; font-weight: 800; font-size: 14px; padding: 6px 10px; border-radius: 12px; border: 2px solid #111;
}
.dcx-bubble::after { content: ""; position: absolute; left: 24px; bottom: -9px; width: 12px; height: 12px; background: #fff; border-right: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(45deg); }
.dcx-runner { left: 0; animation: dcx-run-lr var(--rt, 2.3s) linear forwards; }
.dcx-runner.back { animation: dcx-run-rl var(--rt, 2.3s) linear forwards; }
.dcx-runner.back .fig { transform: scaleX(-1); }
.dcx-runner .bob { animation: dcx-bob .3s ease-in-out infinite; }
.dcx-runner .legA { transform-origin: 54px 100px; animation: dcx-legA .3s ease-in-out infinite alternate; }
.dcx-runner .legB { transform-origin: 66px 100px; animation: dcx-legB .3s ease-in-out infinite alternate; }
.dcx-runner .armL { transform-origin: 42px 60px; animation: dcx-armL .3s ease-in-out infinite alternate; }
.dcx-runner .armR { transform-origin: 78px 60px; animation: dcx-armR .3s ease-in-out infinite alternate; }
.dcx-gaffer { right: 14px; animation: dcx-popup 2.8s ease forwards; width: 112px; }
.dcx-gaffer .head { transform-origin: 60px 44px; animation: dcx-tilt 1s ease-in-out infinite; }
.dcx-gaffer .shr { animation: dcx-shrug .9s ease-in-out infinite; }
.dcx-gaffer .qm { position: absolute; font-weight: 900; color: #ffd24a; font-size: 24px; text-shadow: 0 2px 0 #000; animation: dcx-qm 1.4s ease-in-out infinite; }
.dcx-emoji-pop { position: absolute; left: 50%; bottom: 20px; font-size: 40px; transform: translateX(-50%); animation: dcx-emoji 1.6s ease-out forwards; }

.dcx-gaffer .dcx-bubble { transform: translateX(-70%); }
.dcx-gaffer .dcx-bubble::after { left: auto; right: 22px; }

/* ---------- keyframes ---------- */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes dcx-spin { to { --ang: 360deg; } }
@keyframes dcx-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes dcx-pop { 0% { transform: scale(.7); opacity: .3; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes dcx-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes dcx-wiggle { 0%, 100% { transform: rotateY(180deg) rotateZ(-3deg); } 50% { transform: rotateY(180deg) rotateZ(3deg); } }
@keyframes dcx-flagwave { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes dcx-run-lr { from { transform: translateX(-130px); } to { transform: translateX(calc(var(--sw, 440px) + 30px)); } }
@keyframes dcx-run-rl { from { transform: translateX(calc(var(--sw, 440px) + 30px)); } to { transform: translateX(-130px); } }
@keyframes dcx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes dcx-legA { from { transform: rotate(-38deg); } to { transform: rotate(38deg); } }
@keyframes dcx-legB { from { transform: rotate(38deg); } to { transform: rotate(-38deg); } }
@keyframes dcx-armL { from { transform: rotate(88deg); } to { transform: rotate(122deg); } }
@keyframes dcx-armR { from { transform: rotate(-122deg); } to { transform: rotate(-88deg); } }
@keyframes dcx-popup { 0% { transform: translateY(130%); } 14% { transform: translateY(0); } 82% { transform: translateY(0); } 100% { transform: translateY(130%); } }
@keyframes dcx-tilt { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes dcx-shrug { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes dcx-qm { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px) scale(1.15); } }
@keyframes dcx-emoji { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.5); } 25% { opacity: 1; transform: translate(-50%, 0) scale(1.2); } 100% { opacity: 0; transform: translate(-50%, -60px) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .dcx *, .dcx *::before, .dcx *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .dcx-runner { left: 40%; }
}
@media (max-width: 380px) {
  .dcx-q .txt { font-size: 21px; }
  .dcx-card { width: 200px; height: 276px; }
  .dcx-pts b { font-size: 56px; }
  .dcx-shirt { width: 108px; margin-left: -54px; top: 76px; }
}

/* main-page extras: heading for search engines, leaderboard, FAQ */
.dcx-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dcx .dcx-lb { margin: 14px 0 0; }
.dcx .dcx-faq { margin-top: 22px; }
