/* CLIK.ma - the banners' cube in real 3D (__clik_cube_spin.tpl, js/core/clik-cube3d.js from ts-src/c3). 23 Nov (the owner: « use
   100% 3D cube that i showed you », « remove the white lines », « darker cube for day … white cube for night »): a rounded grey
   block drawn by WebGL in the canvas (1.4 x the box, so its corners never leave it while it rolls); until it is drawn - or where
   WebGL is missing - the owner's own picture of the cube is the box's background (white by day, dark at night since round 69). */
.clik-c3 { --c3: 64px; position: relative; display: inline-block; flex: none; width: var(--c3); height: var(--c3); line-height: 0; vertical-align: middle; background: url("../images/clik-cube-grey-light.webp") center / contain no-repeat; }
/* round 69 (the owner: « dark by night & white on day »): the white cube by day, the dark one at night */
body.night-mode .clik-c3 { background-image: url("../images/clik-cube-grey-dark.webp"); }
.clik-c3-cv { position: absolute; left: -20%; top: -20%; width: 140%; height: 140%; display: block; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.clik-c3.is-gl, body.night-mode .clik-c3.is-gl { background: none; }
.clik-c3.is-gl .clik-c3-cv { opacity: 1; }
.clik-c3.no-gl .clik-c3-cv { display: none; }
@media (prefers-reduced-motion: reduce) { .clik-c3-cv { transition: none; } }
/* 24 Nov (the owner: « the cube should be smart to react to peoples clicks and hovering or touching »): a press squashes it and
   it springs back, a drag turns it (the page doesn't scroll under the finger on the cube itself) */
.clik-c3[data-smart] { cursor: grab; touch-action: none; transition: transform .45s cubic-bezier(.3, 1.8, .5, 1); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.clik-c3[data-smart].is-press { transform: scale(.9, .86); transition-duration: .12s; transition-timing-function: ease-out; }
.clik-c3[data-smart].is-drag { cursor: grabbing; transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .clik-c3[data-smart], .clik-c3[data-smart].is-press, .clik-c3[data-smart].is-drag { transform: none; transition: none; } }
/* 24 Nov (the owner's extra 1): a member's photo on the cube names them in a dark pill over the pointer, a click opens their
   profile */
.clik-c3[data-smart].is-member { cursor: pointer; }
.clik-c3-tip { position: fixed; z-index: 1080; left: 0; top: 0; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 16px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: #fff; background: rgba(12, 18, 32, .88); box-shadow: 0 6px 16px rgba(4, 20, 70, .3); pointer-events: none; opacity: 0; transform: translate(-50%, -100%) translateY(4px); transition: opacity .14s ease, transform .16s ease; }
.clik-c3-tip.is-on { opacity: 1; transform: translate(-50%, -100%); }
body.night-mode .clik-c3-tip { color: #050505; background: rgba(255, 255, 255, .94); }
@media (prefers-reduced-motion: reduce) { .clik-c3-tip { transition: none; } }
