/* TheTechFolk: card pictures (app/views/partials/card-art.php). Each card draws a small scene of what the tool does.
   Sizes are in em on top of a container-relative base, so a scene scales like an image with the card. */

.tcard-thumb { container-type: inline-size; --c1: #4f46e5; }
.tcard-thumb.c-social { --c1: #db2777; } .tcard-thumb.c-text { --c1: #0284c7; } .tcard-thumb.c-business { --c1: #7c3aed; }
.tcard-thumb.c-seo { --c1: #16a34a; } .tcard-thumb.c-dev { --c1: #4338ca; } .tcard-thumb.c-image { --c1: #ea580c; }
.tcard-thumb.c-design { --c1: #c026d3; } .tcard-thumb.c-finance { --c1: #059669; } .tcard-thumb.c-math { --c1: #2563eb; }
.tcard-thumb.c-converters { --c1: #ca8a04; } .tcard-thumb.c-health { --c1: #e11d48; } .tcard-thumb.c-everyday { --c1: #0d9488; }
.tcard.tcard-v .tcard-thumb, .tcard.tcard-mini .tcard-thumb {
  color: var(--ink);
  background:
    radial-gradient(110% 90% at 0% 0%, color-mix(in srgb, var(--c1) 20%, #fff) 0, transparent 62%),
    radial-gradient(90% 90% at 100% 100%, color-mix(in srgb, var(--c1) 13%, #fff) 0, transparent 60%),
    color-mix(in srgb, var(--c1) 5%, #fff);
}
.tcard-thumb::before { /* dotted texture */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--c1) 30%, transparent) 1px, transparent 1.2px); background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); mask-image: linear-gradient(135deg, #000, transparent 70%);
}

.art { position: absolute; inset: 0; display: grid; place-items: center; padding: 7% 8%; font-size: 4.1cqw; line-height: 1.25; text-align: left; }
.tcard-xl .art { font-size: 2.75cqw; }
.aw {
  position: relative; display: flex; flex-direction: column; gap: .45em; width: 100%; max-width: 20em; padding: .85em .95em;
  background: #fff; border: 1px solid rgba(15, 23, 42, .06); border-radius: .9em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 .9em 2.2em -.5em color-mix(in srgb, var(--c1) 40%, transparent);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.tcard-v:hover .aw { transform: translateY(-.4em) scale(1.025); box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1.4em 2.8em -.6em color-mix(in srgb, var(--c1) 55%, transparent); }
.art small { font-size: .72em; font-weight: 600; color: #64748b; letter-spacing: .01em; }
.art em { font-style: normal; font-size: .74em; color: #64748b; }
.art .big {
  font-size: 2.1em; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; white-space: nowrap;
  background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 50%, #0f172a)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.art .chip { align-self: flex-start; max-width: 100%; padding: .3em .6em; border-radius: .45em; background: #0f172a; color: #e2e8f0; font: 500 .72em/1.3 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* style: text styles */
.art-style .st-row { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .42em .55em .42em .7em; border: 1px solid #eef0f6; border-radius: .6em; background: #f8fafc; }
.art-style .st-row b { min-width: 0; font-size: 1.15em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-style .st-row i { flex: none; padding: .22em .6em; border: 1px solid #e2e8f0; border-radius: 99em; background: #fff; color: var(--c1); font: 700 .66em/1.2 var(--font); }
.art-style .st-row.on { border-color: color-mix(in srgb, var(--c1) 35%, #fff); background: color-mix(in srgb, var(--c1) 8%, #fff); }
.art-style .st-row.on i { border-color: transparent; background: var(--c1); color: #fff; }

/* ai: prompt, then results */
.ai-in { display: flex; align-items: center; gap: .5em; padding: .4em .45em .4em .7em; border: 1px solid #e2e8f0; border-radius: .65em; color: #475569; font-size: .8em; }
.ai-in span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-in b { flex: none; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .5em; background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; font-size: .9em; }
.caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--c1); animation: art-blink 1s steps(1) infinite; }
.ai-o { padding: .42em .65em; border-left: .22em solid var(--c1); border-radius: .5em; background: color-mix(in srgb, var(--c1) 7%, #fff); font-size: .84em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-v:hover .ai-o { animation: art-rise .5s var(--ease) both; animation-delay: calc(var(--d) * .09s); }

/* stat and chart */
.split { display: block; height: .55em; margin-top: .25em; border-radius: 99em; background: color-mix(in srgb, var(--c1) 22%, #fff); overflow: hidden; }
.split i { display: block; height: 100%; border-radius: inherit; background: var(--c1); transform-origin: left; }
.split-l { display: flex; justify-content: space-between; gap: .5em; font-size: .66em; color: #64748b; }
.split-l span:first-child::before, .art-chart .split-l span::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .3em; border-radius: .2em; vertical-align: -.05em; background: var(--c1); }
.art-chart .split-l span:first-child::before { background: color-mix(in srgb, var(--c1) 30%, #fff); }
.mbars, .gbars { display: flex; align-items: flex-end; gap: .32em; height: 2.6em; margin-top: .2em; }
.mbars i { flex: 1; height: var(--h); border-radius: .25em .25em 0 0; background: linear-gradient(180deg, var(--c1), color-mix(in srgb, var(--c1) 35%, #fff)); transform-origin: bottom; }
.gbars { height: 3.8em; }
.gbars i { flex: 1; position: relative; height: calc((var(--a) + var(--b)) * 1%); border-radius: .25em .25em 0 0; background: color-mix(in srgb, var(--c1) 28%, #fff); transform-origin: bottom; overflow: hidden; }
.gbars u { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--b) / (var(--a) + var(--b)) * 100%); background: var(--c1); }
.tcard-v:hover .split i { animation: art-growx .9s var(--ease); }
.tcard-v:hover .mbars i, .tcard-v:hover .gbars i { animation: art-growy .6s var(--ease) both; animation-delay: calc(var(--d) * .05s); }

/* convert */
.art-convert .aw { flex-direction: row; align-items: center; gap: .5em; padding: 1.2em .9em; }
.cv { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: .55em .3em; border: 1px solid #e2e8f0; border-radius: .65em; background: #f8fafc; }
.cv b { font-size: 1.85em; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.cv.to { border-color: color-mix(in srgb, var(--c1) 40%, #fff); background: color-mix(in srgb, var(--c1) 10%, #fff); }
.cv.to b { color: color-mix(in srgb, var(--c1) 75%, #0f172a); }
.cv-sw { flex: none; display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--c1); color: #fff; font-weight: 800; transition: transform .6s var(--ease); }
.tcard-v:hover .cv-sw { transform: rotate(180deg); }

/* code */
.art-code .aw { gap: 0; padding: 0; overflow: hidden; border-color: #1e293b; background: #0f172a; color: #e2e8f0; }
.art-code .bar { display: flex; align-items: center; gap: .35em; padding: .5em .75em; background: #1e293b; }
.art-code .bar i { width: .58em; height: .58em; border-radius: 50%; background: #f87171; }
.art-code .bar i:nth-child(2) { background: #fbbf24; } .art-code .bar i:nth-child(3) { background: #4ade80; }
.art-code .bar small { margin-left: auto; color: #94a3b8; }
.art-code .lines { display: flex; flex-direction: column; padding: .65em .85em .85em; font: .8em/1.6 var(--mono); white-space: pre; overflow: hidden; }
.tk-k { color: #c4b5fd; } .tk-s { color: #86efac; } .tk-n { color: #fdba74; } .tk-p { color: #7dd3fc; } .tk-c { color: #64748b; font-style: italic; }
.tcard-v:hover .art-code .ln { animation: art-type .35s steps(8) both; animation-delay: calc(var(--d) * .07s); }

/* text: before -> after */
.tx { display: block; padding: .5em .7em; border: 1px solid #e2e8f0; border-radius: .6em; background: #f8fafc; font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx small { display: block; margin-bottom: .1em; font-size: .64em; text-transform: uppercase; letter-spacing: .07em; }
.tx.out { border-color: color-mix(in srgb, var(--c1) 40%, #fff); background: color-mix(in srgb, var(--c1) 8%, #fff); font-weight: 700; }
.tx-go { z-index: 1; align-self: center; display: grid; place-items: center; width: 1.8em; height: 1.8em; margin: -.95em 0; border-radius: 50%; background: var(--c1); color: #fff; font-size: .85em; font-weight: 800; box-shadow: 0 0 0 .2em #fff; transition: transform .4s var(--ease); }
.tcard-v:hover .tx-go { transform: translateY(.15em) scale(1.1); }

/* list */
.art-list .aw { gap: 0; }
.art .ttl { margin-bottom: .25em; }
.li { display: flex; align-items: center; gap: .6em; padding: .32em 0; border-bottom: 1px dashed #eef0f6; font-size: .86em; }
.li:last-child { border-bottom: 0; }
.li b { flex: none; min-width: 2.9em; padding: .15em .45em; border-radius: .4em; text-align: center; font: 700 .9em/1.3 var(--mono); background: #e0e7ff; color: #3730a3; }
.li b.t0 { background: #dcfce7; color: #15803d; } .li b.t1 { background: #e0f2fe; color: #0369a1; } .li b.t2 { background: #fef3c7; color: #b45309; } .li b.t3 { background: #fee2e2; color: #b91c1c; }
.li span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-v:hover .li { animation: art-rise .45s var(--ease) both; animation-delay: calc(var(--d) * .07s); }

/* image */
.art-image .aw { gap: 0; padding: .45em; overflow: hidden; }
.photo { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: .6em; overflow: hidden; }
.ph { display: block; width: 100%; height: 100%; transition: transform .9s var(--ease); }
.tcard-v:hover .ph { transform: scale(1.07); }
.ph2 { position: absolute; inset: 0; filter: grayscale(1) contrast(1.1); clip-path: inset(0 0 0 50%); }
.handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transition: left .8s var(--ease); }
.handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: #fff; color: #0f172a; font-size: .8em; font-weight: 800; transform: translate(-50%, -50%); box-shadow: 0 .2em .5em rgba(15, 23, 42, .25); }
.crop { position: absolute; inset: 22% 24%; border: 2px dashed #fff; box-shadow: 0 0 0 99em rgba(15, 23, 42, .45); transition: inset .7s var(--ease); }
.tcard-v:hover .crop { inset: 16% 30%; }
.crop i { position: absolute; width: .7em; height: .7em; background: #fff; border-radius: .15em; }
.crop i:nth-child(1) { top: -.4em; left: -.4em; } .crop i:nth-child(2) { top: -.4em; right: -.4em; } .crop i:nth-child(3) { bottom: -.4em; left: -.4em; } .crop i:nth-child(4) { bottom: -.4em; right: -.4em; }
.meme { position: absolute; left: .45em; right: .45em; text-align: center; color: #fff; font: 900 1.3em/1 Impact, "Arial Black", sans-serif; letter-spacing: .02em; -webkit-text-stroke: .045em #000; paint-order: stroke fill; }
.meme.t { top: .9em; } .meme.b { bottom: .9em; }
.wm { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .85); font-size: 1.5em; font-weight: 800; letter-spacing: .1em; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); transform: rotate(-16deg); }
.fx-rotate .photo { transform: rotate(-7deg) scale(.86); transition: transform .8s var(--ease); }
.tcard-v:hover .fx-rotate .photo { transform: rotate(0) scale(.86); }
.rot { position: absolute; right: .7em; bottom: .7em; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--c1); color: #fff; font-size: 1.1em; }
.art-image.fx-profile .aw { background: transparent; border: 0; box-shadow: none; align-items: center; }
.art-image.fx-profile .photo { width: auto; height: 6.6em; max-width: 56%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 .3em #fff, 0 0 0 .55em var(--c1), 0 .8em 1.6em rgba(15, 23, 42, .2); }
.drop, .tab { position: absolute; display: flex; align-items: center; gap: .4em; padding: .3em .6em .3em .35em; border-radius: 99em; background: #fff; font: 700 .72em/1.2 var(--mono); box-shadow: 0 .3em .8em rgba(15, 23, 42, .2); }
.drop { right: .9em; top: .9em; }
.drop i { width: 1.3em; height: 1.3em; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #e2e8f0; }
.tab { left: .9em; bottom: .9em; border-radius: .5em .5em 0 0; font-family: var(--font); }
.tab i { width: 1.1em; height: 1.1em; border-radius: .25em; background: linear-gradient(135deg, var(--c1), #7c3aed); }
.tab u { margin-left: .4em; text-decoration: none; color: #94a3b8; }
.art-image .badge { position: absolute; left: 50%; bottom: 1.1em; padding: .35em .75em; border-radius: 99em; background: rgba(15, 23, 42, .88); color: #fff; font-size: .78em; font-weight: 700; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 .4em 1em rgba(15, 23, 42, .3); }
.fmt { position: absolute; right: 1em; top: 1em; display: flex; align-items: center; gap: .3em; }
.fmt b { padding: .25em .5em; border-radius: .4em; background: #fff; font: 800 .74em/1.2 var(--mono); box-shadow: 0 .2em .6em rgba(15, 23, 42, .2); }
.fmt b.to { background: var(--c1); color: #fff; }
.fmt i { color: #fff; font-style: normal; font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }

/* paper: signature, placeholder */
.art-paper .aw { align-items: center; justify-content: center; min-height: 8em; }
.art-paper:not(.fx-sign) .aw { background: repeating-linear-gradient(45deg, #f1f5f9 0 .6em, #e8edf4 .6em 1.2em); }
.art-paper:not(.fx-sign) .big { font-size: 1.7em; }
.sig { width: 84%; height: auto; }
.sig path { fill: none; stroke: #1e3a8a; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 640; }
.tcard-v:hover .sig path { animation: art-draw 1.4s ease both; }
.art-paper .line { display: block; width: 84%; height: 1px; background: #cbd5e1; }

/* color */
.art-color .aw { padding: .6em; }
.sw { display: flex; height: 6em; border-radius: .6em; overflow: hidden; }
.sw i { flex: 1; transition: flex .5s var(--ease); }
.tcard-v:hover .sw i:nth-child(2) { flex: 2; }
.grad { display: block; height: 6em; border-radius: .6em; background-size: 180% 180% !important; background-position: 0 0; transition: background-position 1s var(--ease); }
.tcard-v:hover .grad { background-position: 100% 100%; }
.fx-shadow .aw, .fx-textshadow .aw, .fx-triangle .aw { background: #f8fafc; }
.shad { display: block; width: 56%; height: 4.4em; margin: 1.2em auto 1.6em; border-radius: .8em; background: #fff; box-shadow: 0 .2em .4em rgba(15, 23, 42, .08), 0 1.4em 2.4em -.6em color-mix(in srgb, var(--c1) 60%, transparent); transition: transform .5s var(--ease), box-shadow .5s; }
.tcard-v:hover .shad { transform: translateY(-.3em); box-shadow: 0 .2em .4em rgba(15, 23, 42, .08), 0 2em 3em -.6em color-mix(in srgb, var(--c1) 70%, transparent); }
.blob { display: block; width: 5.6em; height: 5.6em; margin: .4em auto .6em; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transition: border-radius .9s var(--ease); }
.tcard-v:hover .blob { border-radius: 18%; }
.glass-bg { position: relative; display: block; height: 6em; border-radius: .6em; overflow: hidden; background: radial-gradient(circle at 26% 34%, var(--c1) 0 22%, transparent 23%), radial-gradient(circle at 76% 70%, var(--c2) 0 27%, transparent 28%), #e0e7ff; }
.glass { position: absolute; inset: 18% 20%; border: 1px solid rgba(255, 255, 255, .7); border-radius: .7em; background: rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 .5em 1.2em rgba(15, 23, 42, .12); transition: transform .6s var(--ease); }
.tcard-v:hover .glass { transform: translateX(.6em); }
.ctr { display: grid; place-items: center; height: 2.4em; border-radius: .25em; font-size: 2.5em; font-weight: 800; }
.tsh { display: block; padding: .35em 0; text-align: center; font-size: 2.3em; font-weight: 900; color: #fff; text-shadow: .05em .05em 0 var(--c1), .1em .1em 0 color-mix(in srgb, var(--c1) 50%, #0f172a), .16em .16em .3em rgba(15, 23, 42, .25); }
.cgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 2.6em 2.6em; gap: .35em; }
.cgrid i { border-radius: .4em; background: color-mix(in srgb, var(--c1) 22%, #fff); }
.cgrid i:first-child { grid-row: span 2; background: var(--c1); }
.tri { display: block; width: 0; height: 0; margin: .6em auto 1em; border-left: 2.8em solid transparent; border-right: 2.8em solid transparent; border-bottom: 4.6em solid; transition: transform .6s var(--ease); }
.tcard-v:hover .tri { transform: rotate(180deg); }
.ratio { position: relative; display: block; height: 6em; }
.ratio i { position: absolute; left: 0; bottom: 0; border: 2px solid var(--c1); border-radius: .3em; background: color-mix(in srgb, var(--c1) 8%, transparent); }
.ratio i:nth-child(1) { width: 10.4em; height: 5.85em; } .ratio i:nth-child(2) { width: 7.8em; height: 5.85em; opacity: .75; } .ratio i:nth-child(3) { width: 5.85em; height: 5.85em; opacity: .55; }

/* qr */
.art-qr .aw { width: auto; align-items: center; padding: .9em; overflow: hidden; }
.qrc { display: block; width: 7.4em; height: 7.4em; fill: currentColor; color: #0f172a; }
.qr-l { max-width: 9em; padding: .25em .7em; border-radius: 99em; background: color-mix(in srgb, var(--c1) 12%, #fff); color: color-mix(in srgb, var(--c1) 75%, #0f172a); font-size: .74em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-qr .aw::after { content: ""; position: absolute; left: .7em; right: .7em; top: .9em; height: 2px; border-radius: 2px; background: var(--c1); box-shadow: 0 0 .6em var(--c1); opacity: 0; }
.tcard-v:hover .art-qr .aw::after { animation: art-scan 1.3s ease-in-out infinite; }

/* timer */
.art-timer .aw { width: auto; align-items: center; justify-content: center; padding: .7em; border-radius: 50%; }
.ring { display: block; width: 8em; height: 8em; transform: rotate(-90deg); }
.ring .tr, .ring .tp { fill: none; stroke-width: 9; }
.ring .tr { stroke: #eef0f6; }
.ring .tp { stroke: var(--c1); stroke-linecap: round; transition: stroke-dasharray 1s var(--ease); }
.tcard-v:hover .ring .tp { stroke-dasharray: 327 327 !important; }
.tm { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.tm b { font-size: 1.9em; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* random */
.art-random .aw { position: relative; flex-direction: row; align-items: center; justify-content: center; gap: .8em; width: auto; min-width: 11em; min-height: 8em; padding: 1em 1.4em; }
.coin { display: grid; place-items: center; width: 5.6em; height: 5.6em; border-radius: 50%; color: #7c2d12; background: radial-gradient(circle at 35% 30%, #fef3c7, #fbbf24 45%, #d97706 80%, #b45309); box-shadow: inset 0 0 0 .4em rgba(255, 255, 255, .35), inset 0 0 0 .55em rgba(180, 83, 9, .35), 0 .6em 1.2em rgba(180, 83, 9, .35); transition: transform .9s var(--ease); }
.coin b { font-size: 2.4em; font-weight: 900; }
.tcard-v:hover .coin { transform: rotateY(360deg); }
.die { display: grid; grid-template-columns: repeat(3, 1fr); gap: .28em; width: 4.3em; height: 4.3em; padding: .6em; border: 1px solid #e2e8f0; border-radius: .9em; background: #fff; box-shadow: 0 .35em .9em rgba(15, 23, 42, .14); transition: transform .7s var(--ease); }
.die i { border-radius: 50%; }
.die i.on { background: #0f172a; }
.die.d0 { transform: rotate(-12deg); }
.die.d1 { border-color: transparent; background: var(--c1); transform: rotate(10deg) translateY(.4em); }
.die.d1 i.on { background: #fff; }
.tcard-v:hover .die.d0 { transform: rotate(-200deg); } .tcard-v:hover .die.d1 { transform: rotate(190deg) translateY(.4em); }
.wheel { position: relative; width: 7em; height: 7em; border-radius: 50%; background: conic-gradient(#f43f5e 0 60deg, #f59e0b 0 120deg, #22c55e 0 180deg, #06b6d4 0 240deg, #6366f1 0 300deg, #d946ef 0 360deg); box-shadow: 0 0 0 .3em #fff, 0 .6em 1.4em rgba(15, 23, 42, .22); transition: transform 1.6s cubic-bezier(.15, .8, .2, 1); }
.wheel::after { content: ""; position: absolute; inset: 40%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .15em rgba(15, 23, 42, .1); }
.tcard-v:hover .wheel { transform: rotate(560deg); }
.pin { position: absolute; top: .55em; left: 50%; width: 0; height: 0; border-left: .55em solid transparent; border-right: .55em solid transparent; border-top: 1em solid #0f172a; transform: translateX(-50%); }
.hearts { display: flex; align-items: center; gap: .15em; color: #f43f5e; font-size: 2.6em; line-height: 1; }
.hearts b { padding: 0 .15em; color: #0f172a; font-size: .55em; font-weight: 800; }
.tcard-v:hover .hearts { animation: art-beat .9s ease-in-out infinite; }
.pick { display: flex; flex-direction: column; align-items: center; gap: .35em; }
.pick b { padding: .4em .7em; border: 1.5px dashed var(--c1); border-radius: .55em; background: color-mix(in srgb, var(--c1) 9%, #fff); font: 700 1.25em/1.2 var(--mono); letter-spacing: .02em; white-space: nowrap; }

/* gauge */
.scale { position: relative; display: block; height: .6em; margin-top: .35em; border-radius: 99em; background: linear-gradient(90deg, #38bdf8, #22c55e 33%, #facc15 66%, #ef4444); }
.scale i { position: absolute; top: 50%; width: 1.15em; height: 1.15em; border: .22em solid #0f172a; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); transition: left .9s var(--ease); }
.tcard-v:hover .scale i { animation: art-nudge .9s var(--ease); }
.scale-l { display: flex; justify-content: space-between; font-size: .64em; color: #64748b; }

/* serp */
.s-url { display: flex; align-items: center; gap: .45em; color: #334155; font-size: .72em; }
.s-url i { width: 1.4em; height: 1.4em; border-radius: 50%; background: color-mix(in srgb, var(--c1) 20%, #fff); box-shadow: inset 0 0 0 .3em #fff, 0 0 0 1px #e2e8f0; }
.s-t { color: #1a0dab; font-size: 1.04em; font-weight: 500; line-height: 1.25; }
.tcard-v:hover .s-t { text-decoration: underline; }
.s-d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #4d5156; font-size: .74em; line-height: 1.45; }
.s-m { display: block; height: .32em; margin-top: .15em; border-radius: 99em; background: #e2e8f0; overflow: hidden; }
.s-m i { display: block; height: 100%; background: #22c55e; }

/* social */
.fx-chat .aw { gap: .4em; padding: 0 .65em .7em; overflow: hidden; background: #efe7dd; }
.chat-h { display: flex; align-items: center; gap: .45em; margin: 0 -.65em .2em; padding: .5em .7em; background: #075e54; color: #fff; font-size: .8em; font-weight: 700; }
.chat-h i { width: 1.5em; height: 1.5em; border-radius: 50%; background: linear-gradient(135deg, #a7f3d0, #34d399); }
.bub { max-width: 85%; padding: .42em .65em; border-radius: .65em; font-size: .8em; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.bub.in { align-self: flex-start; border-top-left-radius: 0; background: #fff; }
.bub.out { align-self: flex-end; border-top-right-radius: 0; background: #d9fdd3; color: #027eb5; text-decoration: underline; }
.tcard-v:hover .bub.out { animation: art-rise .5s var(--ease) both; }
.vid { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: .6em; overflow: hidden; }
.play { position: absolute; left: 50%; top: 50%; width: 2.9em; height: 2em; border-radius: .6em; background: #ef4444; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.play::after { content: ""; position: absolute; left: 1.1em; top: .55em; border-left: .8em solid #fff; border-top: .45em solid transparent; border-bottom: .45em solid transparent; }
.tcard-v:hover .play { transform: translate(-50%, -50%) scale(1.15); }
.vid small { position: absolute; right: .5em; bottom: .5em; padding: .15em .45em; border-radius: .3em; background: rgba(0, 0, 0, .8); color: #fff; }
.vid-l { font-size: .8em; font-weight: 700; }
.art-social.fx-video .aw { padding: .5em .5em .6em; }
.ig { display: grid; grid-template-columns: repeat(3, 1fr); gap: .22em; overflow: hidden; border-radius: .5em; transition: gap .5s var(--ease); }
.ig i { aspect-ratio: 1; background: linear-gradient(135deg, #f472b6, #fb923c 45%, #6366f1 80%); background-size: 300% 300%; background-position: calc(var(--x) * 50%) calc(var(--y) * 50%); }
.tcard-v:hover .ig { gap: .45em; }
.art-social.fx-grid .aw { width: auto; padding: .6em; }
.art-social.fx-grid .ig { width: 8em; }
.sizes { display: flex; align-items: flex-end; justify-content: center; gap: .7em; height: 6.4em; }
.sizes i { display: grid; place-items: center; width: calc(5.4em * min(1, var(--r))); height: calc(5.4em / max(1, var(--r))); border: 2px solid var(--c1); border-radius: .45em; background: color-mix(in srgb, var(--c1) 10%, #fff); transition: transform .5s var(--ease); }
.sizes i b { font-size: .72em; color: color-mix(in srgb, var(--c1) 80%, #0f172a); }
.tcard-v:hover .sizes i:nth-child(2) { transform: translateY(-.4em); }
.prof { display: flex; align-items: center; gap: .65em; }
.prof i { flex: none; width: 3em; height: 3em; border-radius: 50%; background: radial-gradient(circle, #fde68a 0 45%, transparent 47%), conic-gradient(#f59e0b, #ec4899, #8b5cf6, #f59e0b); box-shadow: inset 0 0 0 .18em #fff; }
.prof span { display: flex; flex-direction: column; min-width: 0; }
.prof b { font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bio { font-size: .8em; line-height: 1.45; }
.post-h { display: flex; align-items: center; gap: .45em; font-size: .78em; }
.post-h i { width: 1.6em; height: 1.6em; border-radius: 50%; background: conic-gradient(#f59e0b, #ec4899, #8b5cf6, #f59e0b); }
.post-t { font-size: .82em; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-m { font-size: .7em; color: #64748b; }

/* doc */
.art-doc .aw { gap: .45em; padding: 1em 1.1em; }
.doc-h { display: flex; align-items: baseline; justify-content: space-between; gap: .5em; }
.doc-h b { font-size: .95em; letter-spacing: .12em; }
.dl { display: block; width: 100%; height: .42em; border-radius: 99em; background: #e2e8f0; }
.dl.s { width: 62%; } .dl.m { width: 80%; }
.doc-t { display: flex; align-items: baseline; justify-content: space-between; margin-top: .25em; padding-top: .45em; border-top: 1px dashed #cbd5e1; }
.doc-t b { font-size: 1.25em; font-weight: 800; color: color-mix(in srgb, var(--c1) 75%, #0f172a); }
.stamp { position: absolute; right: 1.1em; top: 2.6em; padding: .1em .5em; border: .16em solid #16a34a; border-radius: .3em; color: #16a34a; font-size: .95em; font-weight: 900; letter-spacing: .12em; opacity: .85; transform: rotate(-12deg) scale(1); transition: transform .4s var(--ease); }
.tcard-v:hover .stamp { transform: rotate(-12deg) scale(1.15); }

/* keypad */
.art-keypad .aw { max-width: 14em; gap: .45em; padding: .6em; border-color: #1e293b; background: #0f172a; color: #fff; }
.disp { display: flex; flex-direction: column; align-items: flex-end; padding: .35em .6em; border-radius: .45em; background: #1e293b; }
.disp small { color: #94a3b8; } .disp b { font-size: 1.6em; font-weight: 800; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3em; }
.keys i { display: grid; place-items: center; height: 1.75em; border-radius: .4em; background: #1e293b; font-size: .74em; font-style: normal; transition: background .2s; }
.keys i.eq { background: var(--c1); }
.tcard-v:hover .keys i:nth-child(6) { background: #334155; }

/* fallback */
.aw-fb { width: auto; padding: 1.2em; color: var(--c1); }
.aw-fb .i { width: 3.4em; height: 3.4em; }

/* dark band on the home page */
.ai-band .tcard.tcard-v { background: #fff; color: var(--ink); border-color: transparent; }
.ai-band .tcard.tcard-v small { color: var(--muted); }

@keyframes art-blink { 50% { opacity: 0; } }
@keyframes art-rise { from { opacity: 0; transform: translateY(.6em); } }
@keyframes art-growx { from { transform: scaleX(0); } }
@keyframes art-growy { from { transform: scaleY(0); } }
@keyframes art-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes art-draw { from { stroke-dashoffset: 640; } to { stroke-dashoffset: 0; } }
@keyframes art-scan { 0% { top: .9em; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 1.2em); opacity: 0; } }
@keyframes art-beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.12); } 60% { transform: scale(.97); } }
@keyframes art-nudge { 0% { transform: translate(-50%, -50%); } 40% { transform: translate(-50%, -50%) scale(1.3); } 100% { transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) {
  .art *, .art *::before, .art *::after, .aw { animation: none !important; transition: none !important; }
  .tcard-v:hover .aw { transform: none; }
}

/* Small cards (two per row on phones): smaller label, scene moved below it. */
@media (max-width: 560px) {
  .tcard-v .tcard-tag { top: 6px; left: 6px; padding: 2px 6px; font-size: .56rem; }
  .art { padding: 17% 6% 5%; }
}

/* ---------- Card sheet: every card is its own white sheet with a visible edge; the picture sits inside it as a framed panel ---------- */
.tcard.tcard-v {
  padding: 7px; background: #fff; border: 1px solid #d9deea; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 24px -14px rgba(15, 23, 42, .28);
}
.tcard.tcard-v:hover { border-color: color-mix(in srgb, var(--brand) 45%, #d9deea); box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 22px 40px -18px rgba(79, 70, 229, .45); }
.tcard.tcard-v .tcard-thumb { border: 1px solid color-mix(in srgb, var(--c1) 16%, #e5e8f1); border-radius: 12px; }
.tcard-v .tcard-b { padding: 12px 9px 8px; }
.tgrid-v { gap: 18px; }
/* Long grids (all-tools page, categories) skip drawing cards that are far off screen. */
.tgrid-v > .tcard-v { content-visibility: auto; contain-intrinsic-size: auto 330px; }
@media (max-width: 560px) {
  .tcard.tcard-v { padding: 5px; border-radius: 14px; }
  .tcard.tcard-v .tcard-thumb { border-radius: 10px; }
  .tcard-v .tcard-b { padding: 9px 6px 6px; }
  .tgrid-v { gap: 10px; }
}

/* Category cards on the home page */
.cat-v .tcard-tag { background: rgba(15, 23, 42, .82); }

/* Small card: picture beside the name (tool page sidebar) */
.mini-list { display: grid; gap: 8px; }
.tcard.tcard-mini { display: flex; align-items: center; gap: 11px; padding: 6px 10px 6px 6px; border: 1px solid #d9deea; border-radius: 13px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.tcard.tcard-mini:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 45%, #d9deea); box-shadow: 0 10px 22px -12px rgba(79, 70, 229, .4); }
.tcard-mini .tcard-thumb { flex: none; width: 104px; aspect-ratio: 16 / 10; border: 1px solid color-mix(in srgb, var(--c1) 16%, #e5e8f1); border-radius: 9px; }
.tcard-mini .tcard-thumb::before { display: none; }
.tcard-mini .tcard-b { min-width: 0; }
.tcard-mini .tcard-b strong { font-size: .9rem; line-height: 1.25; }
.tcard-mini .tcard-b small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .78rem; margin-top: 2px; }
.tcard-mini:hover .aw { transform: none; }
