/* Käkalog card (public/card.js). Generated from test-card-binder.html and namespaced kc-*; edit freely from here. */
/* card: the collectible polaroid. All sizes in cqw so it scales from the pocket to the draw stage */
.kc-box{container-type:inline-size;width:100%}
.kc-pol{width:100%;padding:4.5cqw 4.5cqw 0;border-radius:2cqw;position:relative;background:var(--fg);color:var(--bg);box-shadow:0 1.5cqw 5cqw rgba(0,0,0,.5)}
.kc-pic{position:relative;aspect-ratio:1;background:#6b6b6b;border-radius:1cqw;overflow:hidden;display:flex;align-items:center;justify-content:center;text-align:center;color:#f0f0f0;font-size:5.6cqw;line-height:1.25;padding:8cqw;cursor:pointer}
.kc-pic.kc-empty{background:#1c1b1a;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);padding:0}
.kc-pic.kc-empty .kc-art{width:62%;height:62%;fill:none;stroke:#e6e1d8;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.kc-holo>.kc-face .kc-pic.kc-empty{background:#1d1a2e;box-shadow:0 0 0 .9cqw rgba(255,255,255,.7)}
.kc-holo>.kc-face .kc-pic.kc-empty .kc-art{stroke:url(#gHolo)}
.kc-vip>.kc-face .kc-pic.kc-empty{background:#0c0c0c}
.kc-vip>.kc-face .kc-pic.kc-empty .kc-art{stroke:url(#gGold);filter:drop-shadow(0 0 1cqw rgba(255,200,0,.35))}
.kc-pic .kc-num{position:absolute;left:3cqw;top:3cqw;line-height:1.2;background:rgba(14,12,11,.82);color:var(--fg);font-weight:700;font-size:max(11px,5cqw);border-radius:2cqw;padding:.6cqw 2.2cqw}
.kc-stats{display:grid;gap:2.4cqw 3cqw;padding:4cqw 1cqw 3cqw;grid-template-columns:.85fr 1.15fr}
.kc-stats div{min-width:0}
.kc-stats dt{font-size:max(10px,3.6cqw);letter-spacing:.4px;text-transform:uppercase;opacity:.75;font-weight:600}
.kc-stats dd{margin:.4cqw 0 0;font-weight:700;font-size:max(12px,5.6cqw);line-height:1.15;overflow-wrap:anywhere}
.kc-lock{display:flex;align-items:center;gap:1.6cqw;font-size:max(10px,3.4cqw);opacity:.75;padding:0 1cqw 3.6cqw;font-weight:600}
.kc-lock svg{width:3.6cqw;height:3.6cqw;fill:currentColor}

/* Midnight VIP: black metal frame, gold aura, embossed foil */
.kc-vip{background:linear-gradient(145deg,#030303 0%,#161616 38%,#2b2b2b 62%,#0a0a0a 100%);color:var(--gold);outline:1px solid rgba(255,215,0,.7);outline-offset:-1px;overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 0 0 1px rgba(0,0,0,.6),0 0 0 1px rgba(255,215,0,.35),0 0 3cqw rgba(255,215,0,.5),0 0 9cqw rgba(255,200,0,.38),0 0 18cqw rgba(255,190,0,.22),0 4cqw 8cqw rgba(0,0,0,.75)}
.kc-rare>*{position:relative;z-index:1}
/* a slow, soft gold pulse instead of a sheen sweep */
.kc-vip{animation:kcGlow 5s ease-in-out infinite}
@keyframes kcGlow{0%,100%{box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 0 0 1px rgba(0,0,0,.6),0 0 0 1px rgba(255,215,0,.35),0 0 3cqw rgba(255,215,0,.4),0 0 9cqw rgba(255,200,0,.26),0 0 18cqw rgba(255,190,0,.12),0 4cqw 8cqw rgba(0,0,0,.75)}
50%{box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 0 0 1px rgba(0,0,0,.6),0 0 0 1px rgba(255,215,0,.45),0 0 3cqw rgba(255,215,0,.6),0 0 9cqw rgba(255,200,0,.46),0 0 18cqw rgba(255,190,0,.26),0 4cqw 8cqw rgba(0,0,0,.75)}}
.kc-vip>.kc-face .kc-pic{background:#2a2a2a;color:#e6c84f;outline:1px solid rgba(255,215,0,.55);outline-offset:-1px;box-shadow:0 0 0 .5cqw var(--card-black),0 0 0 .9cqw rgba(255,215,0,.35)}
.kc-vip>.kc-face .kc-stats dt{color:rgba(255,226,120,.75);opacity:1}
.kc-vip>.kc-face .kc-stats dd,.kc-vip>.kc-face .kc-title{font-family:"Anton",Impact,sans-serif;font-weight:400;letter-spacing:.6px;text-transform:uppercase;
  background:linear-gradient(180deg,#fffce6 0%,#ffe45c 28%,#d9a400 49%,#6e4a00 51%,var(--gold-ring) 68%,#fff0a0 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
  -webkit-text-stroke:.15cqw #241800;filter:drop-shadow(0 .3cqw 0 rgba(0,0,0,.95))}
.kc-vip>.kc-face .kc-lock{color:#e6c84f}
.kc-vip>.kc-face .kc-loy{color:var(--gold)}
.kc-mast{letter-spacing:0}
.kc-holo>.kc-face .kc-loy{color:var(--holo-ink);text-shadow:none;font-weight:600}   /* not the lock line's outlined white */
.kc-rare>.kc-white{position:absolute;inset:0;z-index:5;display:none;padding:4.5cqw 4.5cqw 0;background:var(--fg);color:var(--bg);border-radius:2cqw}
.kc-rare>.kc-scan{position:absolute;left:-2cqw;right:-2cqw;top:0;height:1.8cqw;z-index:6;display:none;pointer-events:none;
  background:linear-gradient(90deg,transparent,#fff 12%,#fff6c4 50%,#fff 88%,transparent);box-shadow:0 0 4cqw 1cqw rgba(255,236,150,.95),0 0 11cqw 2.5cqw rgba(255,200,0,.7)}


/* Holo-Slick (Epic): pastel foil, white text with black outline */
.kc-holo{background:linear-gradient(115deg,#ff9ad5,#9af2ff,#fff59a,#b6ffb0,#ff9ad5,#9af2ff,#fff59a);background-size:300% 300%;animation:kcShimmer 7s linear infinite;color:#fff;box-shadow:0 1.5cqw 5cqw rgba(0,0,0,.55)}
@keyframes kcShimmer{0%{background-position:0% 50%}100%{background-position:300% 50%}}
.kc-holo>.kc-face .kc-pic{box-shadow:0 0 0 .9cqw rgba(255,255,255,.7);background:#7b7b7b}
.kc-holo>.kc-face .kc-stats dt{color:#fff;opacity:1;text-shadow:calc(-1 * max(.6px,.2cqw)) calc(-1 * max(.6px,.2cqw)) 0 #111,max(.6px,.2cqw) calc(-1 * max(.6px,.2cqw)) 0 #111,calc(-1 * max(.6px,.2cqw)) max(.6px,.2cqw) 0 #111,max(.6px,.2cqw) max(.6px,.2cqw) 0 #111}
.kc-holo>.kc-face .kc-stats dd,.kc-holo>.kc-face .kc-title{color:#fff;font-family:"Anton",Impact,sans-serif;font-weight:400;letter-spacing:.6px;text-transform:uppercase;text-shadow:calc(-1 * max(.8px,.3cqw)) calc(-1 * max(.8px,.3cqw)) 0 #111,max(.8px,.3cqw) calc(-1 * max(.8px,.3cqw)) 0 #111,calc(-1 * max(.8px,.3cqw)) max(.8px,.3cqw) 0 #111,max(.8px,.3cqw) max(.8px,.3cqw) 0 #111,0 .6cqw 1.6cqw rgba(0,0,0,.45)}
.kc-holo>.kc-face .kc-lock{color:#fff;opacity:1;text-shadow:calc(-1 * max(.6px,.2cqw)) calc(-1 * max(.6px,.2cqw)) 0 #111,max(.6px,.2cqw) calc(-1 * max(.6px,.2cqw)) 0 #111,calc(-1 * max(.6px,.2cqw)) max(.6px,.2cqw) 0 #111,max(.6px,.2cqw) max(.6px,.2cqw) 0 #111}
.kc-holo>.kc-scan{background:linear-gradient(90deg,transparent,#ff9ad5 12%,#9af2ff 38%,#fff59a 62%,#b6ffb0 88%,transparent);box-shadow:0 0 4cqw 1cqw rgba(255,255,255,.9),0 0 11cqw 2.5cqw rgba(154,242,255,.6)}

.kc-box{container-type:inline-size;width:100%}
.kc-stats{margin:0}
/* the dish's name is part of the card: set under the picture in the card's own type */
.kc-title{padding:3.6cqw 1cqw 0;font-weight:800;font-size:max(14px,7cqw);line-height:1.15;letter-spacing:-.01em;overflow-wrap:break-word;hyphens:auto;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.kc-title+.kc-stats{padding-top:2.4cqw}
.kc-loy{margin-left:auto;font-size:4cqw;letter-spacing:.3cqw;opacity:1;color:#8f6a00} /* 4.5:1 on the card face */
/* no photo: a dark, quiet plate with the dish engraved on it (muted, thin lines) and a faint rarity glow */
.kc-pic.kc-empty{background:linear-gradient(160deg,#121214,#1a1a1e);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),inset 0 0 7cqw rgba(255,255,255,.03)}
.kc-holo>.kc-face .kc-pic.kc-empty{background:radial-gradient(circle at 50% 42%,rgba(154,242,255,.14),transparent 62%),linear-gradient(160deg,#121214,#1a1a1e);box-shadow:0 0 0 .9cqw rgba(255,255,255,.7),inset 0 0 8cqw rgba(154,242,255,.12)}
.kc-vip>.kc-face .kc-pic.kc-empty{background:radial-gradient(circle at 50% 42%,rgba(255,200,0,.12),transparent 62%),linear-gradient(160deg,#121214,#1a1a1e);box-shadow:0 0 0 .5cqw var(--card-black),0 0 0 .9cqw rgba(255,215,0,.35),inset 0 0 8cqw rgba(255,200,0,.1)}
.kc-twe{display:block;width:62%;height:62%}
.kc-twe svg{display:block;width:100%;height:100%}
/* line-art version of the Twemoji: outlines only, coloured by rarity like the other fallback art */
.kc-twe svg{opacity:.5;filter:grayscale(100%) brightness(1.5)}
.kc-twe svg *{fill:none!important;stroke:#8f8b83;stroke-width:.7;stroke-linecap:round;stroke-linejoin:round}
.kc-holo>.kc-face .kc-twe svg *{stroke:url(#gHolo36)}
.kc-vip>.kc-face .kc-twe svg *{stroke:url(#gGold36)}
.kc-holo>.kc-face .kc-twe{filter:drop-shadow(0 0 1.2cqw rgba(154,242,255,.28))}
.kc-vip>.kc-face .kc-twe{filter:drop-shadow(0 0 1.4cqw rgba(255,200,0,.25))}
.kc-hype{display:inline-block;font-weight:600;font-size:var(--fs-sm);padding:var(--s-2) var(--s-3);border-radius:var(--r-pill);margin:0 0 var(--s-2)}
.kc-hype.epic{background:var(--holo-bg);color:var(--holo-ink);box-shadow:inset 0 0 0 2px var(--holo-ring)}
.kc-hype.gold{background:var(--card-black);color:var(--gold);box-shadow:inset 0 0 0 1px rgba(255,215,0,.6)}
@media (prefers-reduced-motion:reduce){.kc-holo{animation:none}.kc-vip{animation:none}}

/* the corners, as on the Dela card: number top-left, level top-right, rating bottom-right */
.kc-pic .kc-lvl,.kc-pic .kc-rate{position:absolute;right:3cqw;background:rgba(14,12,11,.82);border-radius:2cqw;padding:.6cqw 2.2cqw;line-height:1.2;font-weight:700}
.kc-pic .kc-lvl{top:3cqw}
.kc-pic .kc-rate{bottom:3cqw;color:var(--fg);font-size:max(11px,5cqw)}
.kc-pic .kc-lvl .kc-loy{margin:0;font-size:max(12px,6cqw);line-height:1;color:#d9a400}
.kc-holo>.kc-face .kc-pic .kc-loy{color:#e3d2ff}   /* the dark chip, not the holo face's ink */
