/* Only loaded on Ideas para tejer. Positions follow the actual star button. */
body.ct-ideas-roulette-ready:not(:has([data-ideas-board] [data-ideas-overview][hidden])) .ctejidas-back-top { bottom:var(--ct-ideas-top-bottom,174px) !important; }
body:has([data-ideas-board] [data-ideas-overview][hidden]) .ct-ideas-roulette-trigger { display:none !important; }
.ct-ideas-roulette-trigger { position:fixed; right:18px; bottom:106px; z-index:150950; display:flex; align-items:center; justify-content:center; width:56px; min-width:56px; height:56px; padding:9px; border:0 !important; border-radius:50%; background:#F45A8E; color:#fff; box-shadow:0 5px 18px #0002; cursor:pointer; touch-action:manipulation; }
.ct-ideas-roulette-trigger:hover, .ct-ideas-roulette-trigger:focus-visible { background:#ee477f; color:#fff; }
.ct-ideas-roulette-trigger svg { display:block; width:30px; height:30px; flex:none; }
.ct-ideas-roulette-trigger__label { display:none; position:absolute; right:60px; padding:7px 10px; white-space:nowrap; background:#fff8fb; border:1px solid #f3c9d8; color:#171717; border-radius:6px; font:600 14px/1.3 Nunito,system-ui,sans-serif; }
.ct-ideas-roulette-trigger:hover .ct-ideas-roulette-trigger__label, .ct-ideas-roulette-trigger:focus-visible .ct-ideas-roulette-trigger__label { display:block; }
.ct-ideas-roulette-trigger:focus-visible, .ct-ideas-roulette button:focus-visible { outline:3px solid #171717; outline-offset:4px; }
html.ct-ideas-roulette-open { overflow:hidden; }
dialog.ct-ideas-roulette { position:fixed; inset:0; width:100%; max-width:none; height:100%; max-height:none; margin:0; padding:16px; border:0; overflow:auto; overscroll-behavior:contain; background:#17171770; color:#171717; z-index:2147483000; font-family:Nunito,system-ui,sans-serif; }
dialog.ct-ideas-roulette:not([open]) { display:none; }
dialog.ct-ideas-roulette[open] { display:flex; }
dialog.ct-ideas-roulette::backdrop { background:transparent; }
.ct-ideas-roulette *, .ct-ideas-roulette *::before, .ct-ideas-roulette *::after, .ct-ideas-roulette-trigger { box-sizing:border-box; }
.ct-ideas-roulette [hidden] { display:none !important; }
.ct-ideas-roulette__panel { position:relative; isolation:isolate; width:min(100%,460px); margin:auto; padding:16px 24px 24px; border:1px solid #f3c9d8; border-radius:20px; background:#fffafd; box-shadow:0 20px 60px #0003; text-align:center; }
.ct-ideas-roulette__controls { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:8px; }
.ct-ideas-roulette__controls button { min-height:44px; padding:8px; border:0; background:transparent; color:#5d5360; font:600 13px/1.3 Nunito,system-ui,sans-serif; cursor:pointer; }
.ct-ideas-roulette__controls [data-roulette-close] { width:44px; min-width:44px; border-radius:50%; background:#F45A8E; color:#fff; font:30px/1 Arial,sans-serif; }
.ct-ideas-roulette__eyebrow { margin:0 0 5px; color:#d72f69; font-size:11px; font-weight:800; letter-spacing:.09em; }
.ct-ideas-roulette h2 { margin:0 0 8px; color:#171717; font:700 clamp(25px,5vw,32px)/1.15 'League Spartan',Nunito,sans-serif; }
.ct-ideas-roulette__intro { margin:8px auto 12px; max-width:310px; color:#665b63; font-size:15px; line-height:1.45; }
.ct-ideas-roulette__wheel-wrap { position:relative; width:min(100%,290px,43vh); width:min(100%,290px,43dvh); margin:14px auto; }
.ct-ideas-roulette__wheel { display:block; width:100%; height:auto; border-radius:50%; filter:drop-shadow(0 5px 6px #8b457c22); }
.ct-ideas-roulette__pointer { position:absolute; z-index:2; top:-4px; left:50%; transform:translateX(-50%); width:0; height:0; border-left:12px solid transparent; border-right:12px solid transparent; border-top:26px solid #171717; }
.ct-ideas-roulette__hub { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:23%; aspect-ratio:1; border-radius:50%; background:#fff; border:4px solid #fff0f7; font-size:clamp(22px,6vw,32px); }
.ct-ideas-roulette__status { min-height:22px; margin:12px 0; font-size:15px; line-height:1.5; color:#5d5360; }
.ct-ideas-roulette__again { display:block; width:100%; min-height:46px; padding:12px 20px; border:1px solid #F45A8E; border-radius:7px; background:#F45A8E; color:#fff; font:800 16px/1.4 Nunito,system-ui,sans-serif; cursor:pointer; }
.ct-ideas-roulette__again:hover { background:#ee477f; color:#fff; }
.ct-ideas-roulette__card { display:flex; flex-direction:column; align-items:center; width:100%; padding:0; margin:16px 0 0; border:0; background:transparent; color:#171717; font:700 18px/1.3 Nunito,system-ui,sans-serif; cursor:pointer; }
.ct-ideas-roulette__card:hover, .ct-ideas-roulette__card:focus { background:transparent; color:#171717; }
.ct-ideas-roulette__photo { position:relative; display:block; width:min(100%,224px,28.8vh); width:min(100%,224px,28.8dvh); aspect-ratio:4/5; background:#ffe5ef; border-radius:8px; }
.ct-ideas-roulette__photo img { display:block; width:100%; height:100%; object-fit:cover; border-radius:8px; }
.ct-ideas-roulette__photo-fallback { position:absolute; inset:0; display:grid; place-items:center; font-size:60px; }
.ct-ideas-roulette__tap { position:absolute; z-index:1; right:-9px; bottom:8px; width:44px; height:44px; display:grid; place-items:center; border-radius:50%; background:#fff; box-shadow:0 3px 14px #0002; font-size:28px; animation:ctIdeasRouletteTap .85s ease-in-out 3; }
.ct-ideas-roulette [data-roulette-name] { display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin:12px 0 5px; }
.ct-ideas-roulette__hint { font-size:13px; font-weight:600; color:#665b63; text-decoration:underline; text-underline-offset:3px; }
.ct-ideas-roulette__confetti { position:absolute; z-index:3; inset:0; overflow:hidden; pointer-events:none; border-radius:inherit; }
.ct-ideas-roulette__confetti i { position:absolute; top:-12px; width:8px; height:12px; opacity:0; animation:ctIdeasRouletteConfetti 3.4s cubic-bezier(.15,.5,.7,1) forwards; }
@keyframes ctIdeasRouletteTap { 0%,100% { transform:translateY(0) scale(1); } 50% { transform:translateY(-7px) scale(1.08); } }
@keyframes ctIdeasRouletteConfetti { 0% { opacity:0; transform:translate3d(0,-8px,0) rotate(0); } 8%,75% { opacity:1; } 100% { opacity:0; transform:translate3d(var(--dx),660px,0) rotate(var(--turn)); } }
@media(max-width:600px) { .ct-ideas-roulette-trigger { right:14px; bottom:94px; width:54px; min-width:54px; height:54px; } .ct-ideas-roulette__panel { padding:12px 18px 18px; } }
@media(prefers-reduced-motion:reduce) { .ct-ideas-roulette__tap, .ct-ideas-roulette__confetti i { animation:none; } }
