/* Shared Wunder / BounceX bottom tray.
   Order: Read List, Reels, For You (raised center), Comments (article) or Settings (feed). */
.wtray{
  overflow:visible;
  background:rgba(11,12,16,.96);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-top:1px solid #1d1f27;
  padding-bottom:env(safe-area-inset-bottom);
}
#wunderTray.wtray, nav.wtray#wunderTray{
  position:fixed;left:0;right:0;bottom:0;z-index:80;
}
.wtray-slot{
  position:relative;
  display:flex;align-items:stretch;
  max-width:560px;margin:0 auto;height:56px;
}
.wtray-left,.wtray-right{
  flex:1;display:flex;align-items:stretch;min-width:0;
}
.wtray-left{justify-content:space-evenly;padding-right:40px}
.wtray-right{justify-content:flex-end;padding-left:40px}
.wtray-right .wtray-btn{flex:0 0 50%;max-width:50%}
.wtray-btn{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;height:100%;width:100%;padding:0;margin:0;border:0;background:none;cursor:pointer;
  font:600 10px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,system-ui,sans-serif;
  color:#c9ccd6;white-space:nowrap;text-decoration:none;-webkit-tap-highlight-color:transparent;
}
.wtray-btn.on{color:#fff}
.wtray-btn.on svg{stroke-width:2.2}
.wtray-btn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
.wtray-btn .cnt{
  position:absolute;top:5px;left:calc(50% + 5px);min-width:16px;height:16px;padding:0 4px;
  border-radius:8px;background:#e3262f;color:#fff;font:700 9.5px/16px -apple-system,system-ui,sans-serif;
  text-align:center;
}
.wtray-btn .cnt[hidden]{display:none}

/* Raised, centered For You — Instagram-style middle button */
.wtray-fy{
  position:absolute;left:50%;bottom:env(safe-area-inset-bottom);transform:translateX(-50%);
  z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  width:76px;height:56px;padding:0 0 4px;margin:0;border:0;background:none;cursor:pointer;
  -webkit-tap-highlight-color:transparent;color:inherit;
}
.wtray-fy-bub{
  width:56px;height:56px;border-radius:50%;
  display:grid;place-items:center;
  margin-bottom:2px;
  transform:translateY(-16px);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wtray-fy:active .wtray-fy-bub{transform:translateY(-14px) scale(.96)}
.wtray-fy-bub svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block}
.wtray-fy-lab{
  position:relative;z-index:1;margin-top:-14px;
  font:700 9px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,system-ui,sans-serif;
  letter-spacing:-.01em;white-space:nowrap;pointer-events:none;
}

/* Wunder (dark) — cream cameo on the midnight bar */
.wtray--wunder .wtray-fy-bub{
  background:#f3efe6;color:#14161a;
  box-shadow:0 10px 22px rgba(0,0,0,.48),0 0 0 3px rgba(11,12,16,.98),inset 0 1px 0 rgba(255,255,255,.7);
}
.wtray--wunder .wtray-fy-lab{color:#f3efe6}
.wtray--wunder .wtray-fy.on .wtray-fy-bub{
  background:#fff;
  box-shadow:0 12px 26px rgba(0,0,0,.52),0 0 0 3px #e3262f,inset 0 1px 0 #fff;
}

/* BounceX (light, publisher brand) */
.wtray--bounce{
  background:color-mix(in srgb,var(--bg,#fff) 94%,transparent);
  border-top-color:var(--line,#e6e8ec);
}
.wtray--bounce .wtray-btn{color:var(--mut,var(--sub,#5c6168));font-family:Inter,system-ui,sans-serif}
.wtray--bounce .wtray-btn.on{color:var(--ink,#14161a)}
.wtray--bounce .wtray-btn .cnt{background:var(--p,var(--accent,#6001d2))}
.wtray--bounce .wtray-fy-bub{
  background:var(--p,var(--accent,#6001d2));color:#fff;
  box-shadow:0 8px 20px color-mix(in srgb,var(--p,var(--accent,#6001d2)) 48%,transparent),0 2px 6px rgba(0,0,0,.18),0 0 0 3px #fff,inset 0 1px 0 rgba(255,255,255,.28);
}
.wtray--bounce .wtray-fy-lab{color:var(--ink,#14161a)}
.wtray--bounce .wtray-fy.on .wtray-fy-bub{
  box-shadow:0 10px 24px color-mix(in srgb,var(--p,var(--accent,#6001d2)) 55%,transparent),0 2px 6px rgba(0,0,0,.2),0 0 0 3px color-mix(in srgb,var(--p,var(--accent,#6001d2)) 35%,#fff),inset 0 1px 0 rgba(255,255,255,.35);
}

body.is-light .wtray--wunder,
body.is-light .wtray:not(.wtray--bounce){
  background:rgba(255,255,255,.96);border-top-color:#e6e8ec;
}
body.is-light .wtray--wunder .wtray-btn,
body.is-light .wtray:not(.wtray--bounce) .wtray-btn{color:#5c6168}
body.is-light .wtray--wunder .wtray-btn.on,
body.is-light .wtray:not(.wtray--bounce) .wtray-btn.on{color:#111}
body.is-light .wtray--wunder .wtray-fy-lab{color:#111}
body.is-light .wtray--wunder .wtray-fy-bub{
  background:#14161a;color:#f3efe6;
  box-shadow:0 8px 20px rgba(0,0,0,.28),0 0 0 3px #fff;
}
