/* nocam.css — camera-off looks: what a player's tile shows while their camera is off (on both screens),
 * on the results podium and in the shop. Markup comes from Shop.nocamHtml():
 *   .nocam.it-<id> > .nc-bg (backdrop layer), .nc-a + .nc-b (free decoration layers), .nc-art (item emoji), .nc-name, .nc-off
 * Colors for the result card's canvas live in items.json (`bg`). */

.nocam {
  --nc1: #2a1054; --nc2: #120a24;
  position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-bottom: 40px; background: radial-gradient(circle at 50% 40%, var(--nc1), var(--nc2) 75%); color: #f6f0ff; text-align: center;
}
.nocam .nc-bg, .nocam .nc-a, .nocam .nc-b { position: absolute; pointer-events: none; }
.nocam .nc-bg { inset: 0; }
.nocam .nc-art { position: relative; z-index: 1; font-size: 3rem; line-height: 1; }
.nocam .nc-name { position: relative; z-index: 1; margin-top: 6px; max-width: 90%; font-weight: 900; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nocam .nc-off { position: relative; z-index: 1; font-size: .7rem; color: rgba(246, 240, 255, .6); margin-top: 2px; }
.tile-ph.has-nocam { padding: 0; }

/* shop card art: a small tile */
.art-nocam { position: relative; display: block; width: 100px; height: 75px; margin: 0 auto; border-radius: 10px; overflow: hidden; }
.art-nocam .nocam { padding-bottom: 0; }
.art-nocam .nc-art { font-size: 1.9rem; }
.art-nocam .nc-name { font-size: .62rem; margin-top: 2px; }
.art-nocam .nc-off { display: none; }
/* podium face (a circle) */
.nocam-face { position: relative; width: 100%; height: 100%; }
.nocam-face .nocam { padding-bottom: 0; }
.nocam-face .nc-name, .nocam-face .nc-off { display: none; }
.podium .chump .nocam-face .nc-art { font-size: 2.2rem; }
.podium .champ .nocam-face .nc-art { font-size: 3.6rem; }
/* the shop preview: trying on a camera-off look hides your camera */
.preview-tile.show-nocam .preview-cam { display: none !important; }
.preview-tile.show-nocam .tile-ph { display: flex !important; }

/* ---------- item looks ---------- */
/* Mic Check (starter): a mic in a soft pool of light, gently bobbing */
.nocam.it-nc_mic .nc-bg { background: radial-gradient(ellipse 40% 55% at 50% 35%, rgba(255, 233, 77, .22), transparent 70%); animation: ncBreathe 3s ease-in-out infinite; }
.nocam.it-nc_mic .nc-art { animation: ncBob 2.6s ease-in-out infinite; }

/* On Air: red studio, a blinking ON AIR light */
.nocam.it-nc_radio { --nc1: #4a1018; --nc2: #140508; }
.nocam.it-nc_radio .nc-a { top: 10%; left: 50%; transform: translateX(-50%); padding: 2px 8px; border: 2px solid #ff4757; border-radius: 4px; font: 900 .7rem/1.2 system-ui, sans-serif; letter-spacing: .1em; color: #ff4757; animation: ncOnAir 1.4s steps(1) infinite; }
.nocam.it-nc_radio .nc-a::before { content: 'ON AIR'; }
.art-nocam .nocam.it-nc_radio .nc-a { font-size: .45rem; top: 6%; padding: 0 4px; }
@keyframes ncOnAir { 0% { color: #ff4757; border-color: #ff4757; box-shadow: 0 0 12px #ff4757; } 50% { color: #5a1a20; border-color: #5a1a20; box-shadow: none; } }

/* Spotlight Stage: wooden floor, a sweeping spotlight */
.nocam.it-nc_spotlight { --nc1: #2b1f0a; --nc2: #0a0703; }
.nocam.it-nc_spotlight .nc-bg { top: auto; height: 30%; background: repeating-linear-gradient(90deg, #5a3a1a 0 18px, #4a2e14 18px 20px); box-shadow: 0 -6px 18px rgba(0, 0, 0, .7) inset; }
.nocam.it-nc_spotlight .nc-a { top: -20%; left: 50%; width: 70%; height: 140%; margin-left: -35%; transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(255, 245, 200, .45), rgba(255, 245, 200, .05)); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); animation: ncSweep 4s ease-in-out infinite; }
@keyframes ncSweep { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(18deg); } }

/* Mixtape: a cassette with two spinning reels */
.nocam.it-nc_cassette { --nc1: #145a6e; --nc2: #06161c; }
.nocam.it-nc_cassette .nc-a, .nocam.it-nc_cassette .nc-b { top: 50%; width: 22%; aspect-ratio: 1; margin-top: -24%; border-radius: 50%; border: 4px dashed rgba(255, 255, 255, .55); animation: ncSpin 2s linear infinite; }
.nocam.it-nc_cassette .nc-a { left: 8%; }
.nocam.it-nc_cassette .nc-b { right: 8%; }
.art-nocam .nocam.it-nc_cassette .nc-a, .art-nocam .nocam.it-nc_cassette .nc-b { border-width: 2px; }

/* Neon Sign: your name in flickering pink neon on a brick wall */
.nocam.it-nc_neon { --nc1: #1a0630; --nc2: #05010c; }
.nocam.it-nc_neon .nc-bg { background: repeating-linear-gradient(0deg, transparent 0 14px, rgba(255, 255, 255, .04) 14px 16px), repeating-linear-gradient(90deg, transparent 0 30px, rgba(255, 255, 255, .03) 30px 32px); }
.nocam.it-nc_neon .nc-art { font-size: 1.4rem; opacity: .8; }
.nocam.it-nc_neon .nc-name { font-size: 1.6rem; font-style: italic; color: #ffe0f2; text-shadow: 0 0 4px #ff2d95, 0 0 12px #ff2d95, 0 0 24px #ff2d95; animation: ncFlicker 3s infinite; }
.art-nocam .nocam.it-nc_neon .nc-name { font-size: .8rem; }
@keyframes ncFlicker { 0%, 89%, 100% { opacity: 1; } 90% { opacity: .3; } 92% { opacity: 1; } 95% { opacity: .5; } }

/* Retro TV: static noise and scanlines, a little TV mascot bouncing */
.nocam.it-nc_static { --nc1: #3a3a3a; --nc2: #101010; }
.nocam.it-nc_static .nc-bg { inset: -50%; opacity: .35;
  background: repeating-radial-gradient(circle at 17% 32%, #fff 0 1px, #000 1px 2px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .15) 0 1px, transparent 1px 3px);
  animation: ncStatic .25s steps(4) infinite; }
.nocam.it-nc_static .nc-a { inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 2px, transparent 2px 4px); }
.nocam.it-nc_static .nc-art { animation: ncHop .9s ease-in-out infinite; }
@keyframes ncStatic { 0% { transform: translate(0, 0); } 25% { transform: translate(-5%, 3%); } 50% { transform: translate(4%, -4%); } 75% { transform: translate(-3%, -2%); } }

/* Lava Lamp: slow, groovy blobs */
.nocam.it-nc_lava { --nc1: #ff3d7f; --nc2: #4a0a5e; }
.nocam.it-nc_lava .nc-a, .nocam.it-nc_lava .nc-b { width: 45%; aspect-ratio: 1; border-radius: 50%; filter: blur(6px); background: #ffb347; mix-blend-mode: screen; }
.nocam.it-nc_lava .nc-a { left: 10%; animation: ncLava 7s ease-in-out infinite; }
.nocam.it-nc_lava .nc-b { right: 8%; width: 32%; background: #ff6ad5; animation: ncLava 9s ease-in-out -3s infinite reverse; }
@keyframes ncLava { 0%, 100% { top: 70%; border-radius: 50% 45% 55% 50%; } 50% { top: 0%; border-radius: 40% 60% 45% 55%; } }

/* Disco Ball: a spinning ball and dancing light spots */
.nocam.it-nc_disco { --nc1: #2b0b4f; --nc2: #07021a; }
.nocam.it-nc_disco .nc-bg { inset: -40%; background: radial-gradient(circle, rgba(255, 255, 255, .7) 0 2px, transparent 3px) 0 0 / 34px 34px,
  radial-gradient(circle, rgba(39, 232, 255, .6) 0 2px, transparent 3px) 17px 17px / 34px 34px; animation: ncSpin 14s linear infinite; }
.nocam.it-nc_disco .nc-art { animation: ncSpin 3s linear infinite; filter: drop-shadow(0 0 10px #fff); }

/* Trophy Case: gold with a shine sweeping across */
.nocam.it-nc_trophy { --nc1: #5a420a; --nc2: #140e02; }
.nocam.it-nc_trophy .nc-a { top: 0; bottom: 0; width: 35%; left: -40%; background: linear-gradient(100deg, transparent, rgba(255, 245, 200, .45), transparent); animation: ncShine 3s ease-in-out infinite; }
.nocam.it-nc_trophy .nc-bg { top: auto; height: 22%; background: linear-gradient(#3a2a06, #1a1202); border-top: 3px solid #d4a017; }
.nocam.it-nc_trophy .nc-name { color: #ffe08a; }
@keyframes ncShine { 0% { left: -40%; } 60%, 100% { left: 110%; } }

/* Snow Globe (Frostbite pack): snow falling inside a glass globe */
.nocam.it-nc_frost { --nc1: #2b6fa8; --nc2: #0a1c33; }
.nocam.it-nc_frost .nc-bg { background: radial-gradient(circle, #fff 0 1.5px, transparent 2px) 0 0 / 26px 26px, radial-gradient(circle, rgba(255, 255, 255, .7) 0 1px, transparent 1.5px) 13px 9px / 18px 18px; animation: ncSnow 6s linear infinite; }
.nocam.it-nc_frost .nc-a { left: 50%; top: 50%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -58%); border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); box-shadow: inset -8px -10px 20px rgba(255, 255, 255, .18); }
@keyframes ncSnow { from { background-position: 0 0, 13px 9px; } to { background-position: 20px 260px, -7px 189px; } }

/* Staff Office */
.nocam.it-nc_staff { --nc1: #4a3b08; --nc2: #151002; }
.nocam.it-nc_staff .nc-bg { background: repeating-linear-gradient(45deg, rgba(255, 210, 63, .12) 0 12px, transparent 12px 24px); }
.nocam.it-nc_staff .nc-name { color: #ffd23f; }

@keyframes ncBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ncHop { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes ncBreathe { 50% { opacity: .55; } }
@keyframes ncSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .nocam *, .nocam *::before { animation: none !important; }
}
