:root {
  --bg: #050507;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f2ee;
  --muted: #8e8b96;
  --dim: #5b5963;
  --a1: #ff6a3d;
  --a2: #ff2e88;
  --a3: #8b5cf6;
  --a4: #22d3ee;
  --grad: linear-gradient(100deg, var(--a1), var(--a2) 35%, var(--a3) 65%, var(--a4));
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --r: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 120px;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--a2); color: #fff; }

/* ———————————————— Background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; mix-blend-mode: screen; }
.b1 { width: 55vw; height: 55vw; background: var(--a2); top: -20vw; left: -12vw; animation: drift 22s ease-in-out infinite; }
.b2 { width: 45vw; height: 45vw; background: var(--a3); top: 30vh; right: -15vw; animation: drift 28s ease-in-out infinite reverse; }
.b3 { width: 40vw; height: 40vw; background: var(--a1); bottom: -20vw; left: 25vw; opacity: 0.22; animation: drift 34s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8vw, 6vh) scale(1.1); }
  66% { transform: translate(-6vw, 10vh) scale(0.92); }
}
.spot {
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.06), transparent 60%);
}
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.09;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
#floaters .fl {
  position: absolute; opacity: 0.18;
  animation: float var(--d, 20s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r0, 0deg)); }
  50% { transform: translateY(-60px) rotate(var(--r1, 30deg)); }
}

/* ———————————————— Header */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(5, 5, 7, 0.85), rgba(5, 5, 7, 0.55));
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 4px; }
.logo-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 16px var(--a2); animation: spin 6s linear infinite; }
@keyframes spin { to { filter: hue-rotate(360deg); } }
.top nav { display: flex; gap: 6px; margin-left: auto; }
.top nav a {
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 8px 14px; border-radius: 99px; transition: 0.25s;
}
.top nav a i { font-style: normal; font-family: var(--display); font-size: 10px; color: var(--dim); margin-right: 4px; }
.top nav a:hover { color: var(--text); background: var(--panel-2); }
.mode { font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.mode.live { color: #7cf0b0; border-color: rgba(124, 240, 176, 0.3); }
.mode.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #7cf0b0; margin-right: 6px; box-shadow: 0 0 10px #7cf0b0; animation: blink 1.6s infinite; }
.mode.local { color: #ffc46b; border-color: rgba(255, 196, 107, 0.3); }
@keyframes blink { 50% { opacity: 0.3; } }

/* ———————————————— Hero */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px;
  min-height: calc(100vh - 70px); max-width: 1320px; margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 48px) 60px;
}
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 0 0 var(--a1); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(38px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.035em; margin: 0 0 26px;
}
.grad {
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradmove 6s ease-in-out infinite;
}
@keyframes gradmove { 50% { background-position: 100% 0; } }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--muted); max-width: 540px; margin: 0 0 34px; }
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.stat {
  padding: 14px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px; min-width: 120px;
}
.stat b { font-family: var(--display); font-size: 28px; font-weight: 700; }
.stat span { font-size: 12px; color: var(--muted); }
.cta {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  padding: 18px 30px; border-radius: 99px; background: var(--text); color: #000;
  transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.4), box-shadow 0.3s;
}
.cta span { transition: transform 0.3s; }
.cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 60px -10px var(--a2); }
.cta:hover span { transform: translateX(5px); }

.hero-art { position: relative; height: min(560px, 60vw); }
.hero-art .hc { position: absolute; filter: drop-shadow(0 30px 50px var(--glow)); animation: bob var(--d) ease-in-out infinite; }
.hero-art .hc svg { width: 100%; height: auto; display: block; }
.hero-art .hc.h0 { width: 46%; left: 6%; top: 18%; --d: 7s; transform: rotate(-14deg); }
.hero-art .hc.h1 { width: 36%; right: 4%; top: 2%; --d: 8.5s; animation-delay: -2s; }
.hero-art .hc.h2 { width: 30%; right: 16%; bottom: 4%; --d: 6s; animation-delay: -4s; }
.hero-art .ring {
  position: absolute; inset: 12%; border-radius: 50%;
  border: 1px dashed var(--line-2); animation: rot 60s linear infinite;
}
.hero-art .ring.r2 { inset: 26%; border-style: solid; border-color: var(--line); animation-duration: 40s; animation-direction: reverse; }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes bob {
  0%, 100% { translate: 0 0; rotate: -8deg; }
  50% { translate: 0 -26px; rotate: 6deg; }
}

/* ———————————————— Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: rgba(255, 255, 255, 0.015); }
.marquee-track { display: flex; gap: 42px; width: max-content; animation: marq 60s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; color: var(--dim); transition: color .3s; }
.marquee-track span:hover { color: var(--text); }
.marquee-track span i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ———————————————— Sections */
.sec { max-width: 1320px; margin: 0 auto; padding: 110px clamp(16px, 4vw, 48px) 20px; }
.sec-head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 42px; }
.num {
  font-family: var(--display); font-weight: 900; font-size: clamp(48px, 7vw, 96px); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-2);
}
h2 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4.4vw, 58px); letter-spacing: -0.03em; margin: 0 0 10px; line-height: 1; }
.sec-head p { margin: 0; color: var(--muted); font-size: 16px; max-width: 560px; line-height: 1.5; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }

/* ———————————————— People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.person {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: 20px; cursor: pointer; text-align: left;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), border-color .3s, background .3s;
  overflow: hidden;
}
.person::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at 20% 50%, hsla(var(--h), 90%, 60%, .22), transparent 70%);
}
.person:hover { transform: translateY(-4px); border-color: var(--line-2); }
.person:hover::before, .person.me::before { opacity: 1; }
.person.me { border-color: hsla(var(--h), 90%, 65%, .8); box-shadow: 0 0 0 1px hsla(var(--h), 90%, 65%, .5), 0 20px 50px -20px hsla(var(--h), 90%, 60%, .7); }
.avatar {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h), 90%, 62%), hsl(calc(var(--h) + 50), 85%, 45%));
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .25);
}
.avatar.sm { width: 26px; height: 26px; font-size: 9px; }
.avatar.xs { width: 20px; height: 20px; font-size: 7.5px; border: 2px solid var(--bg); }
.p-info { position: relative; min-width: 0; }
.p-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-picks { display: flex; gap: 3px; margin-top: 6px; height: 22px; align-items: center; }
.p-picks .cap { width: 20px; height: 22px; }
.p-picks .empty { width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed var(--dim); margin: 0 3px; }
.p-check {
  position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: #7cf0b0; color: #04301a; transform: scale(0); transition: transform .4s cubic-bezier(.2, .9, .3, 1.6);
}
.person.done .p-check { transform: scale(1); }

/* ———————————————— Filters & grid */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  padding: 10px 16px; border-radius: 99px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: .25s; display: inline-flex; align-items: center; gap: 8px;
}
.chip small { font-size: 11px; color: var(--dim); }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { background: var(--text); color: #000; border-color: var(--text); }
.chip.on small { color: #555; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
.card {
  --c: #888;
  position: relative; border-radius: var(--r); padding: 18px 18px 16px; cursor: pointer; outline: none;
  background: linear-gradient(170deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform .2s ease-out, border-color .3s, box-shadow .4s;
  display: flex; flex-direction: column; overflow: hidden;
  animation: cardIn .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--i, 0s);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--px, 50%) var(--py, 0%), color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
  opacity: .55; transition: opacity .4s;
}
.card:hover, .card:focus-visible { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.card:hover::before { opacity: 1; }
.card.sel { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 24px 60px -24px var(--c); }
.card-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; height: 118px; }
.card-cap { width: 96px; height: 108px; margin: 4px 0 0 -4px; transition: transform .6s cubic-bezier(.2, .9, .3, 1.4); filter: drop-shadow(0 14px 22px color-mix(in srgb, var(--c) 55%, transparent)); }
.card:hover .card-cap { transform: translateY(-8px) rotate(-12deg) scale(1.06); }
.card.pop .card-cap { animation: pop .55s cubic-bezier(.2, .9, .3, 1.6); }
@keyframes pop { 40% { transform: scale(1.25) rotate(12deg); } }
.range-tag { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: right; }
.badge {
  position: absolute; right: 0; bottom: 6px;
  min-width: 42px; height: 42px; padding: 0 10px; border-radius: 99px;
  display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 16px;
  background: var(--c); color: #000; transform: scale(0); transition: transform .4s cubic-bezier(.2, .9, .3, 1.6);
  box-shadow: 0 8px 30px -4px var(--c);
}
.card.sel .badge { transform: scale(1); }
.card h3 { position: relative; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; margin: 10px 0 2px; }
.card .full { position: relative; font-size: 11.5px; color: var(--dim); margin-bottom: 10px; }
.card p { position: relative; margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #cfccd4; flex: 1; }
.meter { position: relative; display: flex; gap: 3px; align-items: flex-end; height: 18px; margin-bottom: 12px; }
.meter i { flex: 1; border-radius: 2px; background: rgba(255, 255, 255, .08); height: calc(35% + var(--k) * 5%); }
.meter i.on { background: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent); }
.meter b { font-family: var(--display); font-size: 13px; margin-left: 8px; align-self: center; min-width: 20px; }
.special { position: relative; font-size: 12px; font-weight: 600; color: var(--c); margin-bottom: 12px; height: 18px; display: flex; align-items: center; }
.tags { position: relative; display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.tags span { font-size: 11px; padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: #bbb8c2; }
.card-foot { position: relative; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.cup { font-size: 12px; color: var(--muted); }
.card-btns { display: flex; gap: 6px; }
.rbtn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  display: grid; place-items: center; font-size: 18px; font-weight: 600; cursor: pointer; transition: .25s;
}
.rbtn.add { background: var(--text); color: #000; border-color: var(--text); }
.card:hover .rbtn.add { background: var(--c); border-color: var(--c); transform: rotate(90deg); }
.rbtn.minus { display: none; }
.card.sel .rbtn.minus { display: grid; }
.rbtn.minus:hover { background: rgba(255, 255, 255, .1); }
.decaf-pill { font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: var(--text); margin-left: 6px; vertical-align: middle; font-family: var(--body); letter-spacing: .04em; }
.disclaimer { color: var(--dim); font-size: 12px; margin-top: 22px; }

/* ———————————————— Order */
.order-top { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 16px; margin-bottom: 18px; }
.boxes-ctl { padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; overflow: hidden; }
.boxes-ctl::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 46, 136, .18), transparent 30%); animation: rot 8s linear infinite; }
.boxes-ctl > * { position: relative; }
.lbl { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 18px; }
.stepper button {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2);
  font-size: 26px; cursor: pointer; transition: .2s; display: grid; place-items: center;
}
.stepper button:hover { background: var(--text); color: #000; transform: scale(1.08); }
.stepper button:active { transform: scale(.92); }
.big-num { font-family: var(--display); font-weight: 900; font-size: 84px; line-height: 1; min-width: 130px; text-align: center; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-num.bump { animation: bump .35s cubic-bezier(.2, .9, .3, 1.6); }
@keyframes bump { 40% { transform: scale(1.15); } }
.sub { color: var(--muted); font-size: 14px; }
.sub b { color: var(--text); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.kpi { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.kpi b { font-family: var(--display); font-weight: 700; font-size: 36px; letter-spacing: -.02em; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi.warn b { color: #ffc46b; }
.kpi.good b { color: #7cf0b0; }

#hint:empty { display: none; }
.hint {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: 16px; margin-bottom: 18px; font-size: 14px;
  background: linear-gradient(90deg, rgba(255, 196, 107, .12), rgba(255, 196, 107, .03)); border: 1px solid rgba(255, 196, 107, .25);
}
.hint.ok { background: linear-gradient(90deg, rgba(124, 240, 176, .12), rgba(124, 240, 176, .03)); border-color: rgba(124, 240, 176, .25); }
.hint button { margin-left: auto; border: 0; border-radius: 99px; padding: 8px 14px; font-weight: 700; font-size: 13px; background: #ffc46b; color: #2a1a00; cursor: pointer; }
.hint button:hover { filter: brightness(1.1); }

.stackbar { display: flex; height: 58px; border-radius: 18px; overflow: hidden; gap: 3px; margin-bottom: 18px; background: var(--panel); border: 1px solid var(--line); padding: 4px; }
.stackbar .seg {
  position: relative; border-radius: 12px; background: var(--c); overflow: hidden;
  display: flex; align-items: center; justify-content: center; min-width: 0;
  transition: flex-grow .7s cubic-bezier(.2, .8, .2, 1);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 50%, rgba(0, 0, 0, .15));
}
.stackbar .seg span { font-size: 12px; font-weight: 800; color: rgba(0, 0, 0, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.stackbar .seg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.5s ease-in-out infinite; animation-delay: var(--i); }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.stackbar .empty-bar { flex: 1; display: grid; place-items: center; color: var(--dim); font-size: 13px; }

.order-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 60px; }
.orow {
  --c: #888;
  position: relative; display: grid; grid-template-columns: 54px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 20px 14px 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden;
  animation: cardIn .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--i, 0s);
}
.orow::before { content: ""; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.orow > * { position: relative; }
.orow .cap { width: 48px; height: 54px; filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--c) 50%, transparent)); }
.o-name { font-family: var(--display); font-weight: 700; font-size: 17px; }
.o-meta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.o-voters { display: flex; }
.o-voters .avatar { margin-left: -6px; }
.o-voters .avatar:first-child { margin-left: 0; }
.absorb { color: #ffc46b; }
.sleeves { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.sleeve { width: 30px; height: 10px; border-radius: 5px; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px); }
.o-qty { text-align: right; }
.o-qty b { font-family: var(--display); font-weight: 900; font-size: 30px; display: block; line-height: 1; }
.o-qty span { font-size: 12px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 40px; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 16px; letter-spacing: -.01em; }
.swaps, .coverage { display: flex; flex-direction: column; gap: 10px; }
.swap { padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); animation: cardIn .5s both; animation-delay: var(--i, 0s); }
.swap-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.swap .cap { width: 30px; height: 34px; }
.swap .nm { font-weight: 700; font-size: 14px; }
.swap .from .nm { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .4); color: var(--muted); }
.swap .arrow { font-size: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.swap .pair { display: flex; align-items: center; gap: 8px; }
.swap .why { font-size: 12px; color: var(--muted); margin-top: 8px; }
.swap .who { display: flex; gap: 4px; margin-left: auto; }
.empty-state { padding: 22px; border-radius: 16px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; text-align: center; }
.cov { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.cov .nm { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-picks { display: flex; gap: 6px; }
.cov-pick { position: relative; display: flex; align-items: center; }
.cov-pick .cap { width: 24px; height: 27px; }
.cov-pick.swapped .cap:first-child { opacity: .35; width: 18px; }
.cov-pick .mini-arrow { font-size: 10px; color: #ffc46b; margin: 0 1px; }
.cov .none { font-size: 12px; color: var(--dim); }

.order-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line-2); border-radius: 99px; padding: 16px 24px; font-weight: 700; font-size: 15px; cursor: pointer; transition: .25s; background: transparent; }
.btn.primary { background: var(--text); color: #000; border-color: var(--text); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--a2); }
.btn.ghost:hover { background: var(--panel-2); }

.foot { text-align: center; color: var(--dim); font-size: 12px; padding: 60px 16px 20px; }

/* ———————————————— Dock */
.dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 40;
  transform: translate(-50%, 150%); transition: transform .6s cubic-bezier(.2, .9, .3, 1.2);
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 14px; border-radius: 99px;
  background: rgba(20, 20, 26, .78); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  max-width: calc(100vw - 24px);
}
.dock.show { transform: translate(-50%, 0); }
.dock.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { translate: -8px 0; } 40%, 80% { translate: 8px 0; } }
.dock-me { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.dock-me .nm { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slots { display: flex; gap: 8px; }
.slot {
  width: 52px; height: 52px; border-radius: 16px; border: 1.5px dashed var(--line-2); background: transparent;
  display: grid; place-items: center; cursor: default; position: relative; transition: .3s; padding: 0;
}
.slot.full { border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 16%, transparent); cursor: pointer; }
.slot.full:hover::after { content: "×"; position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); color: #000; font-size: 13px; line-height: 18px; font-weight: 800; }
.slot .cap { width: 34px; height: 38px; animation: drop .5s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes drop { from { transform: translateY(-30px) scale(.4); opacity: 0; } }
.slot .n { font-family: var(--display); font-size: 12px; color: var(--dim); }
.dock-status { font-size: 12px; color: var(--muted); min-width: 92px; text-align: center; line-height: 1.3; }
.dock-status b { display: block; font-family: var(--display); font-size: 16px; color: var(--text); }
.dock-status.done b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dock-go { border: 0; border-radius: 99px; padding: 14px 18px; font-weight: 800; font-size: 13px; background: var(--grad); color: #fff; cursor: pointer; white-space: nowrap; background-size: 200%; animation: gradmove 4s infinite; }

/* ———————————————— Toast & confetti */
.toast {
  position: fixed; top: 84px; left: 50%; z-index: 60; transform: translate(-50%, -30px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 99px; font-weight: 600; font-size: 14px;
  background: var(--text); color: #000; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
  transition: .4s cubic-bezier(.2, .9, .3, 1.3); max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

/* ———————————————— Fun : thé, blagues, bursts */
.hero-ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tea-btn {
  border: 1px dashed var(--line-2); background: transparent; color: var(--muted);
  padding: 14px 18px; border-radius: 99px; font-size: 13px; cursor: pointer; transition: .25s;
}
.tea-btn u { text-decoration-color: var(--a2); text-underline-offset: 3px; color: var(--text); }
.tea-btn:hover { color: var(--text); border-color: #7cf0b0; transform: rotate(-2deg); }
body.quake { animation: quake .6s; }
@keyframes quake { 10%, 50%, 90% { translate: -10px 4px; } 30%, 70% { translate: 10px -4px; } }

.overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: fadeIn .3s both; }
.overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.tea-ov { overflow: hidden; }
.tea-box { position: relative; text-align: center; max-width: 560px; }
.tea-box h2 { font-size: clamp(34px, 7vw, 72px); background: linear-gradient(100deg, #7cf0b0, var(--a4), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 10px; }
.tea-box p { color: #d9d6de; font-size: 18px; margin: 0 0 28px; }
.finger { font-size: clamp(120px, 26vw, 240px); line-height: 1; animation: finger 1s cubic-bezier(.2, .9, .3, 1.5) both, wobble 1.2s .9s ease-in-out infinite; filter: drop-shadow(0 20px 60px rgba(255, 46, 136, .6)); }
@keyframes finger { from { transform: scale(0) rotate(-200deg); } }
@keyframes wobble { 50% { transform: rotate(-8deg) scale(1.05); } }
.tea-rain span, .burst span { position: absolute; pointer-events: none; will-change: transform; }
.tea-rain span { top: -60px; animation: rain linear forwards; }
@keyframes rain { to { transform: translateY(115vh) rotate(var(--rot)); } }
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 65; }
.burst span { font-size: 22px; animation: burst .9s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.4) rotate(var(--rot)); opacity: 0; } }

.pick-bar { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-bottom: 22px; }
.quiz-btn {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  padding: 14px 18px 14px 14px; border-radius: 20px; border: 1px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.4), box-shadow .3s;
}
.quiz-btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 20px 50px -20px var(--a3); }
.qb-emoji { font-size: 30px; animation: shrug 2.4s ease-in-out infinite; }
@keyframes shrug { 0%, 70%, 100% { transform: none; } 80% { transform: rotate(-14deg) scale(1.15); } 90% { transform: rotate(14deg) scale(1.15); } }
.quiz-btn b { display: block; font-family: var(--display); font-size: 15px; }
.quiz-btn small { color: var(--muted); font-size: 12px; }
.qb-go { font-size: 20px; margin-left: 6px; transition: transform .3s; }
.quiz-btn:hover .qb-go { transform: translateX(4px); }
.joke { font-size: 14px; color: var(--muted); font-style: italic; min-height: 20px; transition: opacity .4s, transform .4s; }
.joke.out { opacity: 0; transform: translateY(8px); }
.joke::before { content: "☕ "; font-style: normal; }

/* ———————————————— Quiz */
.quiz-box {
  position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 34px 28px 28px; border-radius: 28px;
  background: linear-gradient(170deg, #16151c, #0b0b0f); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -20px rgba(139, 92, 246, .45);
  animation: quizIn .5s cubic-bezier(.2, .9, .3, 1.3) both;
}
@keyframes quizIn { from { opacity: 0; transform: translateY(40px) scale(.94); } }
.quiz-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; font-size: 20px; cursor: pointer; }
.quiz-x:hover { background: var(--panel-2); }
.quiz-progress { height: 6px; border-radius: 6px; background: var(--panel-2); overflow: hidden; margin: 0 40px 26px 0; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.quiz-step { animation: stepIn .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); } }
.quiz-count { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.quiz-step h3 { font-family: var(--display); font-size: clamp(22px, 4vw, 30px); letter-spacing: -.02em; margin: 8px 0 22px; line-height: 1.15; }
.quiz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.qopt {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.5), border-color .25s, background .25s;
}
.qopt:hover { transform: translateY(-3px) scale(1.02); border-color: var(--line-2); background: var(--panel-2); }
.qopt.chosen { border-color: var(--a2); background: rgba(255, 46, 136, .14); transform: scale(.97); }
.qopt .e { font-size: 30px; }
.qopt b { display: block; font-size: 15px; }
.qopt small { color: var(--muted); font-size: 12px; }
.quiz-loading { text-align: center; padding: 40px 0 30px; }
.quiz-loading .cap { width: 90px; height: 100px; animation: qspin 1s linear infinite; }
@keyframes qspin { to { transform: rotate(360deg); } }
.quiz-loading p { color: var(--muted); margin: 18px 0 0; }
.quiz-result { text-align: center; animation: stepIn .5s both; }
.quiz-result .kick { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.quiz-result h3 { font-family: var(--display); font-size: clamp(28px, 5vw, 40px); margin: 8px 0 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quiz-result > p { color: #cfccd4; margin: 0 0 22px; }
.q-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.q-pick { padding: 16px 10px 14px; border-radius: 18px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); animation: cardIn .6s cubic-bezier(.2, .9, .3, 1.4) both; animation-delay: var(--i); }
.q-pick .cap { width: 60px; height: 68px; filter: drop-shadow(0 10px 20px color-mix(in srgb, var(--c) 60%, transparent)); }
.q-pick b { display: block; font-family: var(--display); font-size: 14px; margin-top: 6px; }
.q-pick small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; line-height: 1.35; }
.q-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ———————————————— Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 30px; }
  .hero-art { height: 320px; order: -1; max-width: 460px; width: 100%; margin: 0 auto; }
  .order-top, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top nav a { padding: 8px 8px; }
  .top nav a i { display: none; }
  .mode { display: none; }
  .logo { font-size: 13px; }
  .sec { padding-top: 80px; }
  .sec-head { gap: 14px; }
  .people { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .person { padding: 12px; gap: 10px; }
  .avatar { width: 38px; height: 38px; font-size: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 14px 12px 12px; }
  .card-top { height: 92px; }
  .card-cap { width: 72px; height: 82px; }
  .card h3 { font-size: 16px; }
  .card p { font-size: 12.5px; }
  .card .full, .tags { display: none; }
  .range-tag { font-size: 9.5px; }
  .badge { min-width: 34px; height: 34px; font-size: 13px; }
  .kpi b { font-size: 26px; }
  .big-num { font-size: 64px; min-width: 100px; }
  .orow { grid-template-columns: 40px 1fr auto; gap: 10px; padding: 12px; }
  .orow .cap { width: 38px; height: 42px; }
  .o-name { font-size: 14px; }
  .o-qty b { font-size: 22px; }
  .dock { gap: 8px; padding: 8px 8px 8px 10px; bottom: 12px; }
  .dock-me .nm, .dock-go { display: none; }
  .slot { width: 46px; height: 46px; }
  .dock-status { min-width: 60px; }
  .pick-bar { grid-template-columns: 1fr; }
  .tea-btn { font-size: 12px; }
  .quiz-box { padding: 28px 18px 20px; }
  .quiz-opts { grid-template-columns: 1fr 1fr; }
  .qopt { flex-direction: column; text-align: center; gap: 6px; padding: 14px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
