/* «Полка» in the profile (n97; n133 0.67.2: a lit walnut display case) — the owner's collectibles as cut-out pictures
   (collect-shelf/<id>.webp, rendered by scripts/collect-shelf.mjs) standing on wooden boards: a warm strip light under the
   top rail, a soft cone of light behind each item, a brass plaque per item on the board's front edge (name / serial).
   4 across (3 in a narrow card), two rows shown, «Вся полка · N» opens the rest. A tap opens the 3D inspector
   (collect3d/core.js, loaded then). Nothing moves by itself: hover/focus only lifts an item (never over a film). */
.cl3-pp { position: relative; margin: 2px 0 6px; }
.cl3-case { --rowh: 160px; --board: 34px; --cols: 4; container: cl3case / inline-size; position: relative; isolation: isolate; overflow: hidden;
  border-radius: 14px; padding: 12px 10px 8px;
  background:
    radial-gradient(110% 50% at 50% 0%, rgba(255, 196, 120, 0.10), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.016) 0 2px, transparent 2px 7px, rgba(0, 0, 0, 0.05) 7px 9px, transparent 9px 15px),
    linear-gradient(180deg, #1f160f, #140d09 70%, #0e0906);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 150, 0.08), inset 12px 0 18px -12px rgba(0, 0, 0, 0.9), inset -12px 0 18px -12px rgba(0, 0, 0, 0.9), 0 12px 26px -16px rgba(0, 0, 0, 0.95); }
.cl3-case::before { /* the top rail, a warm strip light under it */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, #74502e, #3e2716); box-shadow: 0 2px 0 rgba(255, 222, 165, 0.38), 0 6px 22px 2px rgba(255, 190, 110, 0.24); }
.cl3-case::after { /* the glass front: one faint diagonal reflection */
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.035) 46%, rgba(255, 255, 255, 0.012) 52%, transparent 58%); }
.cl3-shelf { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; margin: 0 -10px; padding: 0 10px;
  /* every row ends in a board: its lit top surface, a thin dark joint, the front edge the plaques are fixed to; and the
     board's shadow on the back wall of the row below */
  background:
    linear-gradient(180deg, transparent calc(var(--rowh) - var(--board)), #a1703f calc(var(--rowh) - var(--board)), #7d5230 calc(var(--rowh) - var(--board) + 6px),
      #2a180c calc(var(--rowh) - var(--board) + 6px), #2a180c calc(var(--rowh) - var(--board) + 7px), #63402a calc(var(--rowh) - var(--board) + 8px),
      #4a2e1a calc(var(--rowh) - 6px), #24160c calc(var(--rowh) - 1px), #120a05 var(--rowh)) 0 0 / 100% var(--rowh) repeat-y,
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 16px) 0 0 / 100% var(--rowh) repeat-y; }
.cl3-shelf-it { position: relative; flex: 0 0 calc(100% / var(--cols)); height: var(--rowh); min-width: 44px; box-sizing: border-box; display: block; margin: 0; padding: 0;
  border: 0; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cl3-shelf-it::before { /* its own spot from above, behind the item (z 0) */
  content: ''; position: absolute; left: 4%; right: 4%; top: 0; bottom: var(--board); z-index: 0; pointer-events: none; opacity: 0.55; transition: opacity 0.25s ease;
  background: radial-gradient(55% 80% at 50% 0%, rgba(255, 226, 170, 0.20), transparent 72%), linear-gradient(180deg, rgba(255, 220, 160, 0.07), transparent 55%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }
.cl3-shelf-it::after { /* the pool of light on the board's top under it */
  content: ''; position: absolute; left: 12%; right: 12%; bottom: calc(var(--board) - 7px); height: 9px; z-index: 0; pointer-events: none; border-radius: 50%; opacity: 0.6; transition: opacity 0.25s ease;
  background: radial-gradient(closest-side, rgba(255, 214, 150, 0.35), transparent); }
.cl3-shelf-pic { position: absolute; left: 4%; right: 4%; bottom: calc(var(--board) - 3px); z-index: 1; display: block; height: calc(var(--h, 0.85) * (var(--rowh) - var(--board) - 12px));
  transform-origin: 50% 100%; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1.15); }
.cl3-shelf-pic.cl3-pre { position: absolute; width: auto; height: calc(var(--h, 0.85) * (var(--rowh) - var(--board) - 12px)); overflow: visible; border-radius: 0;
  background: var(--cl3-shim) no-repeat, radial-gradient(48% 46% at 50% 60%, rgba(255, 226, 180, 0.10), transparent 72%); background-size: 240% 100%, 100% 100%; background-position: 130% 0, 0 0; }
.cl3-shelf-pic.cl3-pre.cl3-ok, .cl3-shelf-pic.cl3-pre.cl3-bad { background: none; }
.cl3-shelf-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; display: block;
  filter: brightness(0.95); transition: opacity 0.35s ease, filter 0.25s ease; }
.cl3-shelf-pic img.cl3-fbk { object-fit: cover; border-radius: 8px; } /* the cut-out failed: the studio still, framed */
.cl3-shelf-it:hover .cl3-shelf-pic, .cl3-shelf-it:focus-visible .cl3-shelf-pic { transform: translateY(-5px) scale(1.04); }
.cl3-shelf-it:hover .cl3-shelf-pic img, .cl3-shelf-it:focus-visible .cl3-shelf-pic img { filter: brightness(1.12) drop-shadow(0 7px 5px rgba(0, 0, 0, 0.5)); }
.cl3-shelf-it:hover::before, .cl3-shelf-it:focus-visible::before, .cl3-shelf-it:hover::after, .cl3-shelf-it:focus-visible::after { opacity: 1; }
.cl3-shelf-it:focus-visible { outline: none; }
.cl3-shelf-it:focus-visible .cl3-plq { outline: 2px solid #ffd58c; outline-offset: 2px; }
/* the brass plaque: the same width for every item, centred under it; the name whole (set smaller, then on two lines
   by club-collect.js — never «…»), the serial (and ★ for the one put first) small under it */
.cl3-plq { position: absolute; left: 4%; right: 4%; bottom: 3px; height: calc(var(--board) - 8px); z-index: 2; box-sizing: border-box; padding: 2px 4px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 2px; color: #3a2508; text-align: center;
  background: linear-gradient(180deg, #f6dfa4, #c39246 55%, #8a6128); box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 0 rgba(255, 242, 205, 0.45); }
.cl3-shelf-n { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; font: 650 9.5px/1.15 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: 0.01em; }
.cl3-shelf-n.cl3-wrap { white-space: normal; line-height: 1.05; overflow-wrap: anywhere; } /* the longest names in the narrowest card: two lines, still whole */
.cl3-plq-2 { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 8px; font: 600 7.5px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: 0.05em; opacity: 0.78; }
.cl3-shelf-s { font-variant-numeric: tabular-nums; }
.cl3-star { font-style: normal; color: #7a3d00; }
.cl3-shelf-k { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 3; max-width: 92%; box-sizing: border-box; white-space: nowrap; overflow: hidden;
  font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 8px; background: rgba(20, 16, 12, 0.82); color: #ffd58c; box-shadow: 0 0 0 1px rgba(255, 213, 140, 0.35); }
.cl3-try::before { opacity: 0.9; }
/* many items: two rows shown, the rest behind «Вся полка · N» (their pictures load when opened) */
.cl3-case:not(.cl3-all) .cl3-shelf-it:nth-child(n + 9) { display: none; }
.cl3-more { display: block; position: relative; z-index: 5; margin: 10px auto 2px; padding: 0 16px; min-height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255, 214, 150, 0.22); background: rgba(255, 214, 150, 0.06); color: #ecd6ac; font: 600 13px/1 inherit; font-family: inherit; }
.cl3-more:hover { background: rgba(255, 214, 150, 0.12); }
.cl3-more:focus-visible { outline: 2px solid #ffd58c; outline-offset: 2px; }
.cl3-more.cl3-m4 { display: none; } /* 7–8 items fit two rows of four */
@container cl3case (max-width: 380px) {
  .cl3-shelf { --cols: 3; --rowh: 152px; }
  .cl3-case:not(.cl3-all) .cl3-shelf-it:nth-child(n + 7) { display: none; }
  .cl3-more.cl3-m4 { display: block; }
}
@container cl3case (max-width: 270px) { .cl3-shelf { --rowh: 134px; } }
@media (prefers-reduced-motion: reduce) {
  .cl3-shelf-pic, .cl3-shelf-pic img, .cl3-shelf-it::before, .cl3-shelf-it::after { transition: none; }
  .cl3-shelf-it:hover .cl3-shelf-pic, .cl3-shelf-it:focus-visible .cl3-shelf-pic { transform: none; }
}
/* the shop tile and the options (before the engine's CSS comes) */
.cl3-tile { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #15130f; }
/* n97 2C: the showcase's door to «Киносюрприз» (not a .club-buy: the box's decorator locks those on surprise-only picks) */
.cl3-buy { display: flex; flex-direction: column; gap: 8px; }
.cl3-sur-go { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid rgba(214, 166, 255, .6); color: #fbeaff; font: 700 15px/1 inherit; font-family: inherit; cursor: pointer;
  background: linear-gradient(100deg, rgba(150, 60, 200, .6), rgba(230, 110, 70, .55)); }
.cl3-only { border-color: rgba(214, 166, 255, .45) !important; color: #f1d6ff; }
/* n106 (0.66.1): the preloader of every 3D item's picture in a list — the showcase's options and tile, the «Полка», the box's
   reel tiles (they copy the showcase's) and the live stages: a soft shimmer in the tile's own 4:3 shape + a small spinner;
   the still fades in when it has loaded, the 3D fades in over it after its first frame (collect3d/core.js). Never an empty
   or black tile, no layout jump (the shape is there before the picture). Reduced motion: a static placeholder. */
.cl3-pre, .cl3-stage:not(.cl3-ok) { --cl3-shim: linear-gradient(100deg, transparent 32%, rgba(255, 232, 200, 0.09) 50%, transparent 68%); }
.cl3-pre { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: inherit;
  background: var(--cl3-shim) no-repeat, radial-gradient(120% 95% at 50% 40%, #3b342d 0%, #1d1a17 55%, #0b0a09 100%); background-size: 240% 100%, 100% 100%; background-position: 130% 0, 0 0; }
/* n109: the corner buttons over the card's stage — ⤢ look closer (always there), ⟲ back as it was (only while the object is turned away) */
.cl3-card { position: relative; }
.cl3-corner { position: absolute; top: 8px; z-index: 3; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(14, 12, 10, 0.6); color: #f1e8da; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity 0.25s ease, visibility 0s linear 0s, background 0.15s ease; }
.cl3-corner:hover { background: rgba(48, 40, 30, 0.82); border-color: rgba(255, 214, 150, 0.5); }
.cl3-corner:focus-visible { outline: 2px solid #ffd58c; outline-offset: 2px; }
.cl3-corner svg { display: block; pointer-events: none; }
.cl3-zoom { right: 8px; }
.cl3-home { left: 8px; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.cl3-stage.cl3-off ~ .cl3-home { opacity: 1; visibility: visible; transition: opacity 0.25s ease, visibility 0s linear 0s; }
.cl3-stage.cl3-flat ~ .cl3-home { display: none; }
@media (prefers-reduced-motion: reduce) { .cl3-corner, .cl3-home, .cl3-stage.cl3-off ~ .cl3-home { transition: none; } }
.cl3-card > .cl3-stage { position: relative; overflow: hidden; aspect-ratio: 4 / 3; width: 100%; border-radius: 14px; } /* the card's stage keeps its shape before the engine's CSS comes */
.cl3-stage:not(.cl3-ok) { background: var(--cl3-shim) no-repeat, radial-gradient(120% 95% at 50% 40%, #3b342d 0%, #1d1a17 55%, #0b0a09 100%); background-size: 240% 100%, 100% 100%; background-position: 130% 0, 0 0; }
.cl3-pre > img.cl3-pi, .cl3-stage > img.cl3-pi { opacity: 0; transition: opacity 0.35s ease; }
.cl3-pre > img.cl3-pi.cl3-ok, .cl3-stage > img.cl3-pi.cl3-ok { opacity: 1; }
.cl3-opt .shop-opt-a { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.cl3-sp { display: none; position: absolute; left: 50%; top: 50%; z-index: 1; width: 16px; height: 16px; margin: -10px 0 0 -10px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255, 231, 194, 0.2); border-top-color: rgba(255, 231, 194, 0.85); }
.cl3-pre:not(.cl3-ok):not(.cl3-bad) > .cl3-sp, .cl3-stage:not(.cl3-ok):not(.cl3-bad):not(.cl3-flat) > .cl3-sp, .cl3-stage.cl3-want:not(.cl3-live):not(.cl3-flat):not(.cl3-bad) > .cl3-sp { display: block; }
.cl3-big > .cl3-sp { width: 22px; height: 22px; margin: -13px 0 0 -13px; }
@media (prefers-reduced-motion: no-preference) {
  .cl3-pre:not(.cl3-ok):not(.cl3-bad), .cl3-stage:not(.cl3-ok):not(.cl3-bad) { animation: cl3-shim 1.5s ease-in-out infinite; }
  .cl3-sp { animation: cl3-sp 0.8s linear infinite; }
}
@keyframes cl3-shim { to { background-position: -30% 0, 0 0; } }
@keyframes cl3-sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cl3-sp { display: none !important; } .cl3-pre > img.cl3-pi, .cl3-stage > img.cl3-pi { transition: none; } }
.sur-rl-a > .cl3-pre { border-radius: 8px; }
/* n106: the showcase's twenty options as a grid of small 4:3 tiles (2 across in the shop's side panel, 3 on a phone) — before,
   each was an inline button as wide as its loaded picture: the list jumped from ~2 300 to ~4 800 px as the stills came in */
.club-items .cl3-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.club-items .cl3-opts > .shop-opt { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: auto; min-width: 0; margin: 0; padding: 4px 4px 6px; }
.club-items .cl3-opts .shop-opt-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
