/* Career mode: the kit (G1.D1). The stage, the embers, the character, the typed line,
   buttons, toasts, the sheet and dialog, card backs and the flip. Taken from the studies
   (docs/design/game/studies), rewritten for style-src 'self': no inline styles anywhere. */

/* ---------- the stage ---------- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.nogl #stage { display: none; }
.nogl body { background: radial-gradient(90% 55% at 20% -8%, rgba(246, 196, 120, .22), transparent 62%), radial-gradient(70% 55% at 100% 0%, rgba(208, 31, 60, .18), transparent 65%), #0B0F1D; background-attachment: fixed; }
.nogl.slate body { background: radial-gradient(90% 55% at 20% -8%, rgba(244, 227, 138, .16), transparent 62%), radial-gradient(70% 55% at 100% 0%, rgba(155, 227, 195, .14), transparent 65%), #08201D; background-attachment: fixed; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; pointer-events: none; }

/* ---------- page frame ---------- */
.page { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 36px) 120px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0 10px; flex-wrap: wrap; }
.logo { height: 24px; width: auto; display: block; }
/* the owner's animated wordmark (fix round 1), placed as static/app.css places it on the old pages */
.hiredevil-logo { position: relative; aspect-ratio: 1990 / 312; isolation: isolate; flex: none; }
.hiredevil-logo__wordmark { display: block; width: 100%; height: auto; margin: 0; }
.hiredevil-logo__fire { position: absolute; left: -4.6231155779%; top: -60.8974358974%; width: 109.1457286432%; height: 232.0512820513%; display: block; z-index: 1; pointer-events: none; }
h2 { font: 400 22px/1.1 var(--serif); margin: 0 0 4px; }
.sub { color: var(--text2); font-size: 13.5px; margin: 0 0 16px; }
svg.g { width: 15px; height: 15px; flex: none; }

/* ---------- the agent speaks: the typed line ---------- */
.agent { display: grid; grid-template-columns: clamp(70px, 9vw, 104px) 1fr; gap: clamp(12px, 2vw, 22px); align-items: center; margin: 8px 0 26px; }
.agent small { display: block; font: 500 12.5px var(--sans); color: var(--text3); margin-bottom: 4px; }
.agent p { margin: 0; font: 400 clamp(21px, 2.9vw, 34px)/1.16 var(--serif); letter-spacing: -.008em; text-wrap: balance; min-height: 2.3em; overflow-wrap: anywhere; }
.agent p em, .q em, .verdict em { font-style: normal; color: var(--brass2); }
.coachmode .agent p em, .coachmode .verdict em { color: var(--chalk); }
.w { display: inline-block; opacity: 0; transform: translateY(7px); animation: word .38s var(--ease) forwards; animation-delay: calc(var(--i) * 52ms); }
@keyframes word { to { opacity: 1; transform: none; } }

/* ---------- the character ---------- */
.rig { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); }
.rig .bob { animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(2.5px); } }
.rig .head { transform-box: fill-box; transform-origin: 50% 90%; transition: transform .5s var(--spring); }
.rig .eye, .rig .brow, .rig .horn { transform-box: fill-box; transform-origin: center; transition: transform .14s; }
.rig .horn { transform-origin: 50% 100%; }
.rig .eyes { transform: translate(calc(var(--ex, 0) * 1px), calc(var(--ey, 0) * 1px)); transition: transform .18s ease-out; }
.rig .mouth, .rig .winkarc { opacity: 0; }
.rig .m-smirk { opacity: 1; }
.rig .shades, .rig .cap { transform: translateY(-80px) rotate(-12deg); opacity: 0; transition: transform .6s var(--spring), opacity .15s; transform-box: fill-box; transform-origin: center; }
.rig .whistle { opacity: 0; transition: opacity .3s .3s; }
.rig .tie { transition: opacity .3s; }
.rig.blink .eye { transform: scaleY(.08); }
.rig.wink .er, .rig.wink .hir { opacity: 0; } .rig.wink .winkarc { opacity: 1; } .rig.wink .head { transform: rotate(6deg); }
.rig.grin .m-smirk { opacity: 0; } .rig.grin .m-grin { opacity: 1; } .rig.grin .brow { transform: translateY(-3px); }
.rig.wow .m-smirk { opacity: 0; } .rig.wow .m-o { opacity: 1; } .rig.wow .eye { transform: scale(1.3); } .rig.wow .brow { transform: translateY(-6px); }
.rig.cool .shades { transform: none; opacity: 1; } .rig.cool .m-smirk { opacity: 0; } .rig.cool .m-grin { opacity: 1; }
.rig.coach .cap { transform: none; opacity: 1; } .rig.coach .whistle { opacity: 1; } .rig.coach .tie { opacity: 0; }
.rig.talk .m-smirk { opacity: 1; animation: flapa .24s steps(1) infinite; }
.rig.talk .m-open { animation: flapb .24s steps(1) infinite; }
.rig.talk .m-grin, .rig.talk .m-o { opacity: 0; }
@keyframes flapa { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes flapb { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
.rig.twitch .hl { animation: twl .5s var(--ease); } .rig.twitch .hr { animation: twr .5s var(--ease); }
@keyframes twl { 40% { transform: rotate(-14deg); } } @keyframes twr { 40% { transform: rotate(14deg); } }
.rig.hop .bob { animation: hop .7s var(--ease); }
@keyframes hop { 30% { transform: translateY(-12px) rotate(-4deg); } 60% { transform: translateY(2px); } }
.mini { width: 34px; height: 34px; flex: none; }

/* ---------- buttons ---------- */
.btn { min-height: 50px; border-radius: 14px; font-weight: 600; font-size: 15.5px; border: 1px solid var(--rule2); background: rgba(255,255,255,.03); color: var(--text); padding: 0 20px; transition: transform .12s var(--ease), background .2s, opacity .2s; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; }
.btn:hover { background: rgba(255,255,255,.07); }
.btn:active { transform: scale(.97); } .btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.btn.go { border: 0; color: #fff; background: linear-gradient(110deg, var(--crimson2), var(--crimson) 60%, #E2452B); box-shadow: 0 12px 26px -12px var(--crimson); }
.btn.gold { border: 0; color: var(--ink); background: linear-gradient(180deg, #F9D56E, #EDB73A); }
.btn.chalk { border: 0; color: #0E2622; background: linear-gradient(180deg, #F8EBA0, #EBD466); }
.btn.ink { border-color: rgba(27,21,34,.22); color: var(--ink); background: transparent; }
.btn.ink:hover { background: rgba(27,21,34,.06); }
.btn.sm { min-height: 40px; font-size: 13.5px; padding: 0 14px; border-radius: 11px; }
.btn.wide { width: 100%; }
.btn .g { width: 16px; height: 16px; }
.link { background: none; border: 0; padding: 6px 2px; color: var(--text2); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }
.link:hover { color: var(--text); }
.btn.busy { position: relative; color: transparent; }
.btn.busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spinb .7s linear infinite; }
@keyframes spinb { to { transform: rotate(360deg); } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 80; left: 50%; top: 14px; transform: translate(-50%, -90px); background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 99px; font-weight: 600; font-size: 13.5px; box-shadow: 0 16px 40px -14px #000; transition: transform .5s var(--spring); display: flex; gap: 8px; align-items: center; max-width: 94vw; text-align: center; }
.toast.on { transform: translate(-50%, 0); }
.toast i { font-style: normal; color: var(--crimson2); }
.toast.bad { background: #F8D9D2; }

/* ---------- paper and the signature ---------- */
.paper { background: linear-gradient(170deg, #FBF4E8, #EFE4D1); color: var(--ink); border-radius: 8px; box-shadow: 0 24px 46px -26px #000; }
.sig path { fill: none; stroke: #C2200F; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; }
.signing .sig path { animation: write 1.5s .1s cubic-bezier(.5, 0, .3, 1) forwards; filter: drop-shadow(0 0 6px rgba(242, 112, 29, .95)); }
@keyframes write { to { stroke-dashoffset: 0; } }

/* ---------- the sheet and the dialog ---------- */
.scrim { position: fixed; inset: 0; background: rgba(6, 8, 16, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 30; visibility: hidden; }
.sheet { position: fixed; z-index: 31; left: 50%; bottom: 0; width: min(640px, 100vw); max-height: 92vh; max-height: 92dvh; transform: translate(-50%, 104%); transition: transform .5s var(--ease), visibility 0s .5s; background: linear-gradient(180deg, #1B2238, #121829); border: 1px solid var(--rule2); border-bottom: 0; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; box-shadow: 0 -30px 80px -20px rgba(0,0,0,.9); visibility: hidden; }
.sheet::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--crimson), var(--ember), var(--brass), transparent); }
.sheet.open { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease); }
.sheeton .scrim { opacity: 1; pointer-events: auto; visibility: visible; }
@media (min-width: 760px) { .sheet { bottom: auto; top: 50%; border-radius: 22px; border-bottom: 1px solid var(--rule2); transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .4s var(--ease), opacity .3s, visibility 0s .4s; } .sheet.open { transform: translate(-50%, -50%); opacity: 1; transition: transform .4s var(--ease), opacity .3s; } }
.sheet > header { padding: 20px 22px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sheet h2 { font-size: 25px; margin: 0; overflow-wrap: anywhere; } .sheet h2:focus { outline: none; }
.sheet .kick { font-size: 12.5px; color: var(--text3); margin-bottom: 3px; overflow-wrap: anywhere; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule2); background: none; font-size: 19px; line-height: 1; flex: none; display: grid; place-items: center; }
.sbody { padding: 4px 22px 18px; overflow-y: auto; overscroll-behavior: contain; }
.sbar { padding: 12px 22px calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 10px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.sbar .btn { flex: 1; min-width: 130px; padding: 0 12px; }
.sbar:empty { display: none; }
.peek { position: absolute; top: -40px; right: 74px; width: 62px; height: 40px; overflow: hidden; pointer-events: none; }
.peek svg { width: 62px; height: 62px; display: block; transform: translateY(44px); transition: transform .5s var(--spring) .45s; }
.sheet.open .peek svg { transform: translateY(3px); }
.say { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; margin: 0 0 16px; font-size: 15px; }
.say svg { width: 34px; height: 34px; }
.say p { margin: 5px 0 0; }
.coachsheet { background: linear-gradient(180deg, #14362F, #0E2622); border-color: rgba(244, 227, 138, .3); }
.coachsheet::before { background: linear-gradient(90deg, transparent, var(--chalk), var(--mint), transparent); }
.coachsheet .kick { color: var(--chalk); font-weight: 600; }

/* a plain confirmation dialog (the native element: focus and Escape for free) */
dialog.ask { border: 1px solid var(--rule2); border-radius: 20px; background: linear-gradient(180deg, #1B2238, #121829); color: var(--text); padding: 22px; width: min(440px, calc(100vw - 28px)); box-shadow: 0 30px 80px -20px #000; }
dialog.ask::backdrop { background: rgba(6, 8, 16, .7); }
dialog.ask h2 { font-size: 24px; margin: 0 0 8px; }
dialog.ask p { margin: 0 0 18px; color: var(--text2); }
dialog.ask .row { display: flex; gap: 10px; flex-wrap: wrap; } dialog.ask .row .btn { flex: 1; min-width: 120px; }

/* ---------- the card back, and the flip ---------- */
.cardback { background: repeating-linear-gradient(45deg, rgba(246, 218, 154, .16) 0 2px, transparent 2px 13px), repeating-linear-gradient(-45deg, rgba(246, 218, 154, .16) 0 2px, transparent 2px 13px), radial-gradient(circle at 50% 50%, #F2701D 0 7%, transparent 7.5%), linear-gradient(160deg, #7A1730, #2A0E22 60%, #171331); box-shadow: inset 0 0 0 6px #2A0E1B, inset 0 0 0 7.5px rgba(246, 218, 154, .7); }
.dealt { animation: deal .8s backwards; animation-delay: var(--d, 0s); }
.dealt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; z-index: 5; animation: backoff .8s backwards linear; animation-delay: var(--d, 0s);
  background: repeating-linear-gradient(45deg, rgba(246, 218, 154, .16) 0 2px, transparent 2px 13px), repeating-linear-gradient(-45deg, rgba(246, 218, 154, .16) 0 2px, transparent 2px 13px), radial-gradient(circle at 50% 50%, #F2701D 0 7%, transparent 7.5%), linear-gradient(160deg, #7A1730, #2A0E22 60%, #171331); box-shadow: inset 0 0 0 6px #2A0E1B, inset 0 0 0 7.5px rgba(246, 218, 154, .7); }
.turned { animation: turn .7s backwards; animation-delay: var(--d, 0s); }
.turned::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; z-index: 3; animation: backoff .7s backwards linear; animation-delay: var(--d, 0s);
  background: repeating-linear-gradient(45deg, rgba(246, 218, 154, .16) 0 2px, transparent 2px 13px), repeating-linear-gradient(-45deg, rgba(246, 218, 154, .16) 0 2px, transparent 2px 13px), radial-gradient(circle at 50% 50%, #F2701D 0 7%, transparent 7.5%), linear-gradient(160deg, #7A1730, #2A0E22 60%, #171331); box-shadow: inset 0 0 0 4px #2A0E1B, inset 0 0 0 5px rgba(246, 218, 154, .7); }
.still, .still::after { animation: none !important; }
@keyframes deal { 0% { transform: translate(-60vw, -70px) rotateY(180deg) rotate(-16deg) scale(.85); animation-timing-function: cubic-bezier(.4, 0, 1, 1); } 50% { transform: translate(-12vw, -30px) rotateY(90deg) rotate(-6deg) scale(.95); animation-timing-function: cubic-bezier(0, 0, .2, 1); } }
@keyframes turn { 0% { transform: rotateY(180deg) translateY(16px); animation-timing-function: cubic-bezier(.4, 0, 1, 1); } 50% { transform: rotateY(90deg) translateY(6px); animation-timing-function: cubic-bezier(0, 0, .2, 1); } }
@keyframes backoff { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- the talent card (desk and sign-up) ---------- */
.tc-wrap { perspective: 1100px; width: min(330px, 86vw); margin: 0 auto; position: relative; }
.tc-wrap::after { content: ""; position: absolute; inset: -6px; border-radius: 27px; border: 2px solid var(--brass2); opacity: 0; pointer-events: none; }
.tc-wrap.up::after { animation: ring 1.1s var(--ease); }
@keyframes ring { from { opacity: .95; transform: scale(.97); } to { opacity: 0; transform: scale(1.2); } }
.tc { position: relative; aspect-ratio: 5 / 7; display: grid; border-radius: 22px; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); transition: transform .7s var(--ease); cursor: pointer; border: 0; padding: 0; width: 100%; display: block; text-align: left; background: none; color: inherit; font: inherit; }
.tc.live { transition: transform .12s linear; }
/* both sides share one grid cell: the card is 5 by 7 at least, and grows with what is on it (fix round 1: nothing on a card is ever clipped) */
.tc .side-f, .tc .side-b { grid-area: 1 / 1; position: relative; min-width: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0,0,0,.9), 0 0 0 1px rgba(246, 218, 154, .5), inset 0 0 0 5px #2A0E1B, inset 0 0 0 6.5px rgba(246, 218, 154, .65); }
.tc .side-f { background: radial-gradient(120% 80% at 20% 0%, #7A1730, transparent 60%), linear-gradient(160deg, #3A1026 0%, #1D0F26 55%, #12142A 100%); padding: 26px 24px 22px; display: flex; flex-direction: column; color: #FBF1E2; }
.tc .side-b { transform: rotateY(180deg); background: linear-gradient(160deg, #F7EFE1, #EADFCB); color: var(--ink); padding: 24px 22px; display: flex; flex-direction: column; }
.tc.gold .side-f { background: radial-gradient(120% 80% at 20% 0%, #A8741C, transparent 62%), linear-gradient(160deg, #4A3410 0%, #231A12 55%, #15131F 100%); box-shadow: 0 30px 70px -26px rgba(246, 196, 83, .55), 0 0 0 1px rgba(255, 232, 170, .8), inset 0 0 0 5px #2A1C08, inset 0 0 0 6.5px rgba(255, 232, 170, .85); }
.foil { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: var(--foil, .5); background: linear-gradient(115deg, transparent 22%, rgba(255, 214, 140, .7) 38%, rgba(255, 120, 96, .5) 46%, rgba(130, 196, 255, .5) 54%, rgba(255, 240, 200, .6) 62%, transparent 78%); background-size: 260% 260%; background-position: var(--fx, 30%) var(--fy, 40%); transition: opacity .8s; }
.glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--px, 30%) var(--py, 20%), rgba(255,255,255,.28), transparent 42%); }
.tc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mono { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font: 400 27px/1 var(--serif); color: #2A0E1B; background: radial-gradient(circle at 35% 30%, #FBE7B5, #DDAA4B 70%); box-shadow: 0 0 0 3px #2A0E1B, 0 0 0 4.5px rgba(246,218,154,.8); flex: none; }
.mono.todo { background: none; color: rgba(246,218,154,.6); box-shadow: 0 0 0 2px rgba(246,218,154,.4); }
.lvl { text-align: right; font-size: 12px; color: #E8CFA5; }
.lvl b { display: block; font: 400 34px/.9 var(--serif); color: #FBE7B5; }
.tc h3 { font: 400 33px/1.05 var(--serif); margin: 18px 0 4px; overflow-wrap: anywhere; }
.tc .side-f > * { flex: none; }
/* the back takes the front's size and scrolls if it holds more, so it never stretches the card */
.tc .side-b { position: absolute; inset: 0; overflow-y: auto; }
.tc h3.long { font-size: 25px; }
.tc h3.todo { color: rgba(251, 241, 226, .32); }
.tc .line { font-size: 13.5px; line-height: 1.35; color: #E6D2C4; min-height: 18px; overflow-wrap: anywhere; }
.best { margin: auto 0; padding: 12px 0; min-height: 74px; }
.best b { display: block; font: 400 40px/1.05 var(--serif); color: #FBE7B5; overflow-wrap: anywhere; }
.best span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: #E6D2C4; }
.sk { display: block; height: 11px; border-radius: 6px; background: rgba(255,255,255,.09); margin-bottom: 9px; } .sk.w1 { width: 62%; height: 26px; } .sk.w2 { width: 84%; }
.stats { margin: 0; display: grid; gap: 9px; }
.stat { display: grid; grid-template-columns: 88px minmax(24px, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; }
.stat i { height: 5px; border-radius: 9px; background: rgba(255,255,255,.14); position: relative; overflow: hidden; }
.stat i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, #F2701D, #F6DA9A); transition: width .9s var(--ease); }
.stat span:first-child { overflow-wrap: anywhere; line-height: 1.25; }
.stat span:last-child { text-align: right; color: #E8CFA5; white-space: nowrap; min-width: 50px; }
.repd { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(246,218,154,.3); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #E8CFA5; }
.repd svg { width: 22px; height: 22px; flex: none; }
.side-b h4 { font: 400 21px/1.1 var(--serif); margin: 0 0 4px; }
.side-b p { margin: 0 0 12px; font-size: 12.5px; color: var(--ink2); }
.side-b ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13px; }
.side-b li { padding: 8px 10px; border-radius: 9px; background: rgba(27, 21, 34, .06); border-left: 3px solid var(--crimson); overflow-wrap: anywhere; }
.side-b .foot { margin-top: auto; font-size: 12px; color: var(--ink2); padding-top: 8px; }
.tc-hint { text-align: center; font-size: 12.5px; color: var(--text3); margin: 12px 0 0; }
.cchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; min-height: 22px; }
.cchips span { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: rgba(246, 218, 154, .16); color: #FBE7B5; animation: pop .5s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.bump { animation: bump .6s var(--spring); } @keyframes bump { 35% { scale: 1.045; } }

/* ---------- seals ---------- */
.seals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.seal { text-align: center; font-size: 11.5px; color: var(--text3); line-height: 1.25; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.seal i { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 6px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rule2); transition: transform .6s var(--spring), background .4s, box-shadow .4s; }
.seal svg { width: 22px; height: 22px; stroke: var(--text3); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.seal.on { color: var(--text); }
.seal.on i { background: radial-gradient(circle at 35% 30%, #F0563B, #9E1230 72%); box-shadow: 0 8px 18px -8px #D01F3C, inset 0 -3px 5px rgba(0,0,0,.3), inset 0 2px 3px rgba(255,255,255,.25); }
.seal.on svg { stroke: #FFE9CC; }
.seal.pop i { transform: scale(1.25) rotate(-8deg); }

/* ---------- the stamp ---------- */
.stamp { mix-blend-mode: multiply; pointer-events: none; }

/* ---------- a fact card (pitch, coach) ---------- */
.fc { background: linear-gradient(170deg, #FBF4E8, #EFE4D1); color: var(--ink); border-radius: 12px; padding: 12px 12px 14px; font-size: 13px; line-height: 1.35; box-shadow: 0 14px 26px -16px #000; position: relative; overflow-wrap: anywhere; }
.fc b { display: block; font: 400 22px/1 var(--serif); color: var(--crimson2); margin-bottom: 6px; }
.fc small { display: block; margin-top: 8px; color: var(--ink2); font-size: 11.5px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #fx { display: none; } .w { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}
.calm #fx { display: none; } .calm .w { opacity: 1; transform: none; animation: none; }
.calm *, .calm *::before, .calm *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
.copy { border: 1px solid var(--rule2); background: none; border-radius: 9px; padding: 0 11px; min-height: 36px; font-weight: 600; font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.copy.ok { border-color: var(--done); color: var(--done); }
/* Phones: no backdrop blur over the moving stage (it is redrawn every frame while
   scrolling); the panels are a little more opaque instead. */
@media (max-width: 820px), (pointer: coarse) {
  .lane, .spot, .panel, .spendbox, .scrim { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .lane { background: rgba(17, 23, 41, .9); } .spot { background: rgba(14, 44, 40, .92); } body:not(.coachmode) .spot { background: rgba(17, 23, 41, .92); }
  .panel { background: rgba(17, 23, 41, .92); } .scrim { background: rgba(6, 8, 16, .78); }
}
