/* ============================================================
   player by megaR0fLer — мусорные детали 2000-х
   ============================================================ */

/* ---------- розовая «тема»: текстура-фон ---------- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url('/chars/pink.jpg') center / cover no-repeat;
  opacity: 0.13;
}

/* ---------- доп. наклейки ---------- */
.yellow-arrow {
  left: 34px; top: 404px;
  color: #ffe600; font-size: 17px; font-weight: 900; text-align: center;
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(255, 230, 0, 0.8);
  transform: rotate(-6deg); line-height: 1.1;
  animation: wobB 1.4s ease-in-out infinite alternate;
}
.st-bolt {
  left: 46px; top: 479px; font-size: 46px;
  filter: drop-shadow(0 0 12px rgba(255, 240, 90, 0.9));
  animation: blinker 0.8s steps(1) infinite;
}
.st-sale {
  right: 150px; top: 302px;
  width: 80px;
  background: radial-gradient(circle at 30% 25%, #ff7ad9, #e91e8c 70%);
  color: #fff; font-size: 13px; text-align: center; line-height: 1.05;
  padding: 11px 6px; border-radius: 50%;
  border: 3px dashed #fff; transform: rotate(-10deg);
  box-shadow: 0 0 18px rgba(255, 105, 180, 0.7);
  animation: wobA 2.4s ease-in-out infinite alternate;
  text-shadow: 0 2px 3px #8f1055;
}

/* ---------- вращающийся CD ---------- */
.cd-spin {
  position: absolute; right: 140px; top: 160px;
  width: 92px; height: 92px; border-radius: 50%;
  background:
    radial-gradient(circle at center, #0b1020 0 12%, transparent 13%),
    conic-gradient(#ff5f5f, #ffd24a, #7dff8a, #5ad2ff, #a97bff, #ff7ad9, #ff5f5f);
  box-shadow: 0 0 18px rgba(180, 230, 255, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.7);
  animation: spinSlow 5.5s linear infinite;
  opacity: 0.9;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ---------- персонажи на фоне (только широкие экраны) ---------- */

.cast {
  position: absolute;
  border-radius: 10px;
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 16px rgba(159, 240, 255, 0.35);
  pointer-events: none;
  background: #000;
}
.cast.aliens    { left: 26px;  top: 295px; width: 150px; transform: rotate(3deg); }
.cast.liberty   { left: 24px;  top: 655px; width: 70px;  transform: rotate(-4deg); }
.cast.utkin     { left: 132px; top: 655px; width: 78px;  transform: rotate(5deg); }
.cast.spiderman { right: 16px; top: 308px; width: 100px; transform: rotate(-6deg); }
.cast.miku      { right: 140px; top: 407px; width: 95px;  transform: rotate(4deg); }
.cast.nesquik   { right: 16px; top: 460px; width: 108px; transform: rotate(-3deg); }
.cast.mcqueen   { right: 16px; top: 652px; width: 160px; transform: rotate(-3deg); }

/* ---------- окно-счётчик ---------- */
#visitor {
  position: fixed; z-index: 46;
  left: 26px; top: 132px;
  background: linear-gradient(180deg, #eef4fd, #dce9f9);
  border: 2px solid #3a6ea5; border-radius: 7px;
  box-shadow: 6px 8px 22px rgba(0, 0, 0, 0.5), inset 0 1px 0 #fff;
  color: #0a2a55; user-select: none;
}
.vw-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 5px 8px; font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #63a4ff, var(--xp-blue) 60%, #1a3fa0);
  border-radius: 5px 5px 0 0; text-shadow: 1px 1px 0 #123a8a;
  cursor: move;
}
.vw-x {
  font-style: normal; font-size: 10px; background: linear-gradient(180deg, #9ec9ff, #3a76e0);
  border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 3px;
  width: 17px; height: 15px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; cursor: default;
}
.vw-body { padding: 9px 11px; display: flex; align-items: center; gap: 8px; }
.v-label { font-size: 13px; font-weight: 700; }
.v-digits {
  font-family: 'VT323', monospace; font-size: 21px; letter-spacing: 3px;
  background: #06120a; color: var(--lcd);
  border: 1px solid #1d5c28; border-radius: 3px; padding: 1px 7px;
  text-shadow: 0 0 7px rgba(80, 255, 110, 0.8);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85);
}

/* ---------- конфетти из кнопок ---------- */
.confetti {
  position: fixed; z-index: 400; pointer-events: none;
  font-size: 18px; transform: translate(-50%, -50%);
  animation: confettiFly 0.9s ease-out forwards;
  text-shadow: 0 0 8px currentColor;
}
@keyframes confettiFly {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  to   { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.6) rotate(220deg); }
}

/* ============================================================
   Адаптив: весь мусор — только на больших экранах
   ============================================================ */
@media (max-width: 1439px) {
  #visitor, .cast { display: none; }
}
@media (max-width: 1279px) {
  .cd-spin, .st-sale { display: none; }
}
@media (max-width: 900px) {
  .yellow-arrow, .st-bolt { display: none; }
}
@media (max-width: 560px) {
  #ticker { flex-wrap: wrap; justify-content: center; row-gap: 6px; padding: 5px 6px 7px; }
  .tk-handles { flex-basis: 100%; justify-content: center; padding-right: 0; }
  .handle { font-size: 12.5px; padding: 3px 10px 3px 5px; }
}
