/* Flavor picker — slide the portraits, pick a flavor. Description sits below the rail. */
.kk-picker{padding:1.4rem 0 5rem}
.kk-card{
  background:var(--foam);
  border:1px solid var(--line);
  border-radius:1.5rem;
  box-shadow:var(--shadow);
  padding:1rem 1rem 1.15rem;
  display:flex;
  flex-direction:column;
  max-width:760px;
  margin:0 auto;
}
.kk-card > .kk-kicker,
.kk-card > .kk-lead{
  order:-1;
}
.kk-kicker{
  margin:0 0 .15rem;text-align:center;
  font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  font-size:.7rem;color:var(--amber);
}
.kk-lead{
  font-family:var(--font-display);
  text-align:center;margin:0 0 .7rem;
  font-size:clamp(1.45rem, 3vw, 1.9rem);
}
.kk-info{display:contents}
.kk-art{order:0;position:relative;margin:0 auto .15rem;width:min(100%, 520px);text-align:center;line-height:0}
.kk-art-inner{position:relative;display:inline-block;max-width:100%;line-height:0}
.kk-title{order:1;margin:.45rem 0 .35rem;text-align:center;
  font-family:var(--font-display);font-size:clamp(1.35rem, 3vw, 1.7rem);letter-spacing:-.02em}
.kk-cta{order:2;display:flex;justify-content:center;margin:.1rem 0 .45rem}
.kk-sharebar{order:3;display:flex;justify-content:center;gap:.45rem;flex-wrap:wrap;margin:0 0 .7rem}
.kk-rail-wrap{order:4;margin:0 0 .65rem}
.kk-blurb{order:5;margin:.15rem auto 0;max-width:40rem;text-align:center;
  color:var(--muted);font-size:.95rem;line-height:1.45;min-height:2.8em}

.kk-art img, .kk-art picture{
  width:auto;height:auto;max-width:100%;
  border-radius:1.15rem;
  margin:0 auto;display:block;
}
.kk-art img{
  max-height:min(42vh, 340px, calc(100svh - var(--nav-h) - 25rem));
  object-fit:contain;background:#1c110c;
}
.kk-badge, .kk-flavorname{
  position:absolute;z-index:2;
  font-weight:800;font-size:.72rem;letter-spacing:.02em;
  padding:.28rem .6rem;border-radius:999px;
  pointer-events:none;line-height:1.2;
}
.kk-badge{
  top:.5rem;right:.5rem;
  background:var(--foam);color:var(--espresso);
  border:1.5px solid var(--espresso);
}
.kk-flavorname{
  left:.5rem;bottom:.5rem;
  background:rgba(42,24,16,.86);color:var(--foam);
  max-width:70%;
}

.kk-sharebar .kk-xshare,
.kk-sharebar .kk-copylink{
  height:34px;padding:0 .9rem;border-radius:999px;
  font-size:.8rem;font-weight:800;text-decoration:none;
  display:inline-flex;align-items:center;border:1.5px solid transparent;
}
.kk-xshare{background:#1c1c1c;color:#fff;border-color:#1c1c1c}
.kk-xshare:hover{filter:brightness(1.15);color:#fff}
.kk-copylink{background:#fff;color:var(--espresso);border-color:var(--espresso)}
.kk-copylink:hover{background:var(--cream);color:var(--espresso)}
.kk-copylink.is-copied{background:var(--latte)}

/* Flavor rail */
.kk-rail-wrap{position:relative}
.kk-rail{
  display:flex;gap:.45rem;overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:thin;scrollbar-color:var(--tan) transparent;
  padding:.3rem .15rem .45rem;
  -webkit-overflow-scrolling:touch;
}
.kk-rail::-webkit-scrollbar{height:6px}
.kk-rail::-webkit-scrollbar-thumb{background:var(--tan);border-radius:99px}
.kk-chip{
  flex:0 0 auto;scroll-snap-align:center;
  width:70px;padding:0;border:0;background:transparent;cursor:pointer;
  font:inherit;color:inherit;text-align:center;
}
.kk-chip img{
  width:64px;height:64px;border-radius:50%;
  object-fit:contain;object-position:center;
  background:var(--foam);
  display:block;margin:0 auto .25rem;
  padding:3px;
  box-shadow:0 0 0 3px var(--foam), 0 0 0 5px rgba(106,61,40,.25);
  transition:transform .18s ease, box-shadow .18s ease;
}
.kk-chip[aria-current="true"] img{
  transform:scale(1.08);
  box-shadow:0 0 0 3px var(--foam), 0 0 0 6px var(--caramel);
}
.kk-chip span{
  display:block;font-size:.64rem;font-weight:800;line-height:1.15;
  color:var(--mocha);max-width:70px;margin:0 auto;
}
.kk-chip[aria-current="true"] span{color:var(--espresso)}
.kk-hint{text-align:center;margin:0;font-size:.78rem;color:var(--muted);font-weight:700}

@media (min-width:900px){
  .kk-art img{max-height:min(38vh, 300px, calc(100svh - var(--nav-h) - 24.5rem))}
  .kk-card{padding:.9rem 1.15rem 1.05rem}
}
@media (max-height:740px) and (min-width:860px){
  .kk-kicker{margin-bottom:0}
  .kk-lead{font-size:1.25rem;margin-bottom:.35rem}
  .kk-title{margin:.25rem 0 .15rem;font-size:1.3rem}
  .kk-art img{max-height:min(32vh, 240px, calc(100svh - var(--nav-h) - 23.5rem))}
  .kk-chip img{width:54px;height:54px}
  .kk-chip{width:60px}
  .kk-chip span{font-size:.6rem;max-width:60px}
  .kk-blurb{font-size:.86rem;min-height:2.2em;margin-top:.05rem}
  .kk-sharebar{margin-bottom:.45rem}
}
@media (max-width:430px){
  .kk-card{padding:.7rem .65rem .85rem}
  .kk-lead{font-size:1.3rem;margin-bottom:.45rem}
  .kk-chip{width:64px}
  .kk-chip img{width:58px;height:58px}
  .kk-art img{max-height:min(32vh, 228px, calc(100svh - var(--nav-h) - 27rem))}
  .kk-blurb{font-size:.88rem}
}

/* Mystery-cup picker: teaser first, cat art only after a pick */
.kk-cta.is-hidden, .kk-sharebar.is-hidden, .kk-art-inner.is-hidden{display:none}
.kk-teaser{
  width:min(100%, 520px, min(42vh, 340px, calc(100svh - var(--nav-h) - 25rem)));
  aspect-ratio:1;
  max-height:min(42vh, 340px, calc(100svh - var(--nav-h) - 25rem));
  margin:0 auto;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:.45rem;padding:1rem .9rem;
  box-sizing:border-box;
  border-radius:1.15rem;
  background:linear-gradient(180deg, #fff8ef 0%, #f0e0c8 100%);
  border:1px solid var(--line);
  line-height:1.3;
}
.kk-card.is-revealed .kk-teaser, .kk-teaser[hidden]{display:none}
.kk-card.is-revealed .kk-art-inner{display:inline-block}
.kk-card.is-revealed .kk-cta.is-hidden,
.kk-card.is-revealed .kk-sharebar.is-hidden{display:flex}
.kk-teaser-cups{display:flex;align-items:flex-end;justify-content:center;gap:.15rem;margin:0 0 .15rem}
.kk-teaser-cups img{
  width:72px;height:72px;object-fit:contain;background:transparent;
  filter:drop-shadow(0 4px 6px rgba(42,24,16,.16));
}
.kk-teaser-cups img:nth-child(2){width:96px;height:96px;z-index:1;margin:0 .1rem}
.kk-teaser-kicker{
  margin:0;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  font-size:.68rem;color:var(--amber);
}
.kk-teaser-line{
  margin:0;text-align:center;max-width:16rem;
  font-family:var(--font-display);font-size:1.15rem;color:var(--espresso);
  line-height:1.25;
}
@keyframes kk-reveal{
  from{opacity:0;transform:scale(.94) translateY(10px);filter:blur(6px)}
  to{opacity:1;transform:none;filter:none}
}
.kk-art-inner.kk-pop{animation:kk-reveal .48s ease}
@media (min-width:900px){
  .kk-teaser{max-height:min(38vh, 300px, calc(100svh - var(--nav-h) - 24.5rem))}
}
@media (max-height:740px) and (min-width:860px){
  .kk-teaser{max-height:min(32vh, 240px, calc(100svh - var(--nav-h) - 23.5rem));padding:.7rem}
  .kk-teaser-cups img{width:56px;height:56px}
  .kk-teaser-cups img:nth-child(2){width:76px;height:76px}
  .kk-teaser-line{font-size:1.05rem}
}
@media (max-width:430px){
  .kk-teaser{max-height:min(32vh, 228px, calc(100svh - var(--nav-h) - 27rem));padding:.75rem}
  .kk-teaser-cups img{width:58px;height:58px}
  .kk-teaser-cups img:nth-child(2){width:78px;height:78px}
  .kk-teaser-line{font-size:1.05rem}
}
@media (prefers-reduced-motion:reduce){
  .kk-art-inner.kk-pop{animation:none}
}
