/* Fun Room round 2: Favorite color (fr-color.js; classes start cl-). The splotch is the color as a mask over Codex's painted blob
   (art/scene/paint-blob-N.webp, white with its own shading), the shading multiplied on top, a wet shine sliding over it. */
.cl-wrap{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;--c:#6b6358}

/* the splotch: the biggest thing on the screen, spread across it (Marc, 2 Dec: "maybe the splotch of paint could be wider") */
.cl-art{position:relative;flex:none;width:94cqw;height:min(34cqh,68cqw);margin-top:2px}
.cl-wrap.ro .cl-art{width:96cqw;height:min(56cqh,96cqw)}
.cl-blob{position:absolute;inset:0;isolation:isolate;filter:drop-shadow(0 12px 12px rgba(0,0,0,.5));transition:transform .35s cubic-bezier(.2,1.3,.4,1)}
.cl-blob i{position:absolute;inset:0;display:block}
.cl-fill{background:var(--c);-webkit-mask:var(--blob) center/100% 100% no-repeat;mask:var(--blob) center/100% 100% no-repeat;transition:background-color .12s}
.cl-wrap.none .cl-fill{opacity:.55}
.cl-shade{background:var(--blob) center/100% 100% no-repeat;mix-blend-mode:multiply;filter:contrast(1.35)}
.cl-spec{background:var(--blob) center/100% 100% no-repeat;mix-blend-mode:soft-light;opacity:.28}
.cl-hi{-webkit-mask:var(--blob) center/100% 100% no-repeat;mask:var(--blob) center/100% 100% no-repeat;opacity:0;
  background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.6) 49%,rgba(255,255,255,.12) 53%,transparent 60%) -160% 0/260% 100% no-repeat;mix-blend-mode:soft-light}
.cl-hi.go{opacity:1;animation:clWet var(--dur,7s) ease-in-out both}
@keyframes clWet{0%{background-position:-160% 0}100%{background-position:160% 0}}
/* the brush lies beside it, its tip in the color */
.cl-brush{position:absolute;right:2%;bottom:2%;width:min(44%,190px);aspect-ratio:4/1;transform:rotate(17deg);filter:drop-shadow(0 6px 5px rgba(0,0,0,.55));z-index:2;pointer-events:none}
.cl-brush i{position:absolute;inset:0;display:block}
.cl-b{background:url(art/scene/brush-white-tip.webp) center/contain no-repeat}
.cl-tint{-webkit-mask:url(art/scene/brush-white-tip.webp) center/contain no-repeat;mask:url(art/scene/brush-white-tip.webp) center/contain no-repeat;
  background:linear-gradient(90deg,var(--c) 0 27%,transparent 27%);mix-blend-mode:multiply}
.cl-wrap.none .cl-tint{display:none}

/* the color's name, lettered by it */
.cl-name{flex:none;text-align:center;max-width:100%;padding:0 12px}
.cl-name span{display:block;font:700 clamp(22px,7cqw,29px)/1.1 var(--display);letter-spacing:.08em;color:#fff6dc;text-shadow:0 2px 4px #000,0 0 18px var(--c);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cl-name small{display:block;min-height:13px;margin-top:3px;font:600 12px var(--display);letter-spacing:.24em;text-transform:uppercase;color:rgba(216,178,92,.9)}

/* the field of colors (no gold ring round it) and the slim softer/stronger slider */
.cl-ctl{flex:none;display:flex;flex-direction:column;align-items:center;gap:clamp(4px,1.2cqh,10px);width:100%}
.cl-field{position:relative;width:94cqw;height:min(31cqh,64cqw);border-radius:14px;touch-action:none;cursor:crosshair;
  box-shadow:0 0 0 1px rgba(255,236,200,.22),0 7px 14px rgba(0,0,0,.55)}
.cl-field canvas{display:block;width:100%;height:100%;border-radius:14px}
.cl-knob{position:absolute;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 2px #3a2408,0 3px 6px #000;pointer-events:none;transition:width .15s,height .15s,margin .15s}
.cl-knob.wait{opacity:.85;border-style:dashed}
.cl-knob.held{width:36px;height:36px;margin:-18px 0 0 -18px}
.cl-sl{position:relative;width:94cqw;height:44px;touch-action:none;cursor:pointer;outline-offset:3px}
.cl-sl::before{content:"";position:absolute;left:0;right:0;top:50%;height:14px;margin-top:-7px;border-radius:7px;background:var(--track,#777);
  box-shadow:0 0 0 1px rgba(255,236,200,.25),inset 0 1px 3px rgba(0,0,0,.45),0 3px 6px rgba(0,0,0,.45)}
.cl-sl i{position:absolute;top:50%;left:50%;width:28px;height:28px;margin:-14px 0 0 -14px;border-radius:50%;background:url(art/scene/brass-button.webp) center/cover;filter:drop-shadow(0 2px 3px #000);pointer-events:none}

/* the mascot never blocks the wheel or the slider under him (he tucks away by himself) */
.sc-palette .k-guide,.sc-palette .k-guide *{pointer-events:none!important}
