html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #335539;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#world {
  position: fixed;
  left: 0;
  top: 0;
  display: block;
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1232px;
  height: 648px;
  transform-origin: 0 0;
  pointer-events: none;
  /* Lilita One без кириллицы: русские буквы берутся из Rubik */
  font-family: 'Lilita One', 'Rubik', 'Arial Black', sans-serif;
  color: #fff;
  line-height: 1;
}

#stage .hit { pointer-events: auto; cursor: pointer; }

.a { position: absolute; }
.ico { display: inline-block; vertical-align: middle; pointer-events: none; }
.hide { display: none !important; }

/* обводка текста */
.o1 { text-shadow: 1.5px 0 0 #111, -1.5px 0 0 #111, 0 1.5px 0 #111, 0 -1.5px 0 #111, 1px 1px 0 #111, -1px 1px 0 #111, 1px -1px 0 #111, -1px -1px 0 #111, 0 2px 0 #111; }
.o2 { text-shadow: 2px 0 0 #111, -2px 0 0 #111, 0 2px 0 #111, 0 -2px 0 #111, 1.5px 1.5px 0 #111, -1.5px 1.5px 0 #111, 1.5px -1.5px 0 #111, -1.5px -1.5px 0 #111, 0 3px 0 #111, 1.5px 2.5px 0 #111, -1.5px 2.5px 0 #111; }
.o3 { text-shadow: 3px 0 0 #111, -3px 0 0 #111, 0 3px 0 #111, 0 -3px 0 #111, 2.2px 2.2px 0 #111, -2.2px 2.2px 0 #111, 2.2px -2.2px 0 #111, -2.2px -2.2px 0 #111, 0 4px 0 #111, 2px 3.6px 0 #111, -2px 3.6px 0 #111; }

.c-gold { color: #f5a918; }
.c-gem { color: #c050e0; }
.c-cyan { color: #0f9ce0; }
.c-red { color: #8a0c00; }
.c-green { color: #3cc83a; }

/* ---------- HUD ---------- */
.hudnum { font-size: 37px; left: 88px; white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #111;
  border-radius: 6px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.28);
  text-align: center;
  transition: transform 0.06s, filter 0.1s;
}
.btn.hit:active { transform: translateY(2px); }
.btn.hit:hover { filter: brightness(1.08); }
.b-green { background: #32900d; }
.b-gray { background: #5f5f5f; }
.b-blue { background: #0b88b0; }
.b-lgreen { background: #1c9c22; }

.topbtn { top: 0; height: 50px; border-top-left-radius: 4px; border-top-right-radius: 4px; }
#btnBonus { left: 567px; width: 93px; }
#btnBonus .l1 { position: absolute; left: 0; right: 0; top: 2px; font-size: 18px; line-height: 20px; }
#btnBonus .l2 { position: absolute; left: 0; right: 0; top: 22px; font-size: 16px; line-height: 20px; overflow: hidden; }
#btnBonus.on { background: #10a4cf; }
#btnLb { left: 670px; width: 116px; font-size: 11.5px; }
#btnLb div { position: absolute; left: 0; right: 0; }
#btnMult { left: 848px; top: 5px; width: 74px; height: 38px; font-size: 21px; line-height: 32px; }

#title { right: 60px; top: 5px; font-size: 38px; white-space: nowrap; text-align: right; }
#title.center { right: auto; left: 1009px; transform: translateX(-50%); }

/* ---------- боковые кнопки ---------- */
.side { left: 771px; width: 58px; height: 58px; background: #5f5f5f; border-radius: 6px; }
.side img { position: absolute; left: 5px; top: 4px; width: 44px; height: 44px; }
.side.off img { filter: grayscale(1) brightness(0.72) contrast(1.05); }
.side.off img.keep { filter: none; }
.side .excl {
  position: absolute; left: -15px; top: 6px; width: 17px; height: 48px; filter: none !important;
  transform-origin: 50% 92%;
  animation: excl 1.8s ease-in-out infinite;
}
/* «!» подпрыгивает и покачивается, затем отдыхает */
@keyframes excl {
  0%, 52%, 100% { transform: translateY(0) rotate(0) scale(1); }
  8%  { transform: translateY(-5px) rotate(-12deg) scale(1.12); }
  16% { transform: translateY(-2px) rotate(11deg) scale(1.12); }
  24% { transform: translateY(-4px) rotate(-8deg) scale(1.08); }
  32% { transform: translateY(0) rotate(5deg) scale(1.03); }
  40% { transform: translateY(0) rotate(-2deg) scale(1); }
}
/* при «уменьшении движения» в системе — только мягкая пульсация, без прыжков */
@keyframes exclSoft { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .side .excl { animation: exclSoft 1.6s ease-in-out infinite; } }
.side .sub { position: absolute; left: 0; right: 0; bottom: 5px; font-size: 18px; color: #3cc83a; text-align: center; }

/* ---------- карточки машин ---------- */
.card {
  position: absolute;
  left: 845px;
  width: 323px;
  height: 77px;
  box-sizing: border-box;
  background: #634522;
  border: 2px solid #120b04;
  border-radius: 7px;
  box-shadow: inset 0 0 0 3px #4a3219;
}
.card .thumb { position: absolute; left: 7px; top: 5px; width: 60px; height: 64px; background: #53381c; border-radius: 4px; }
.card .thumb img { position: absolute; left: 0; top: -3px; width: 59px; height: 64px; }
.card .lv { position: absolute; left: 12px; top: 49px; font-size: 15px; }
.card .lv b { color: #006cc7; font-weight: normal; }
.card .nm { position: absolute; left: 70px; width: 150px; top: 4px; font-size: 21px; text-align: center; white-space: nowrap; }
.card .inc { position: absolute; left: 70px; width: 150px; top: 29px; font-size: 17px; text-align: center; white-space: nowrap; }
.card .inc .ico { width: 18px; height: 18px; margin: -3px 1px 0 3px; }
.card .bar { position: absolute; left: 84px; top: 49px; width: 121px; height: 16px; border-radius: 8px; background: #53381c; overflow: hidden; }
.card .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #4270ff; border-radius: 8px; }
.card .buy { left: 220px; top: 5px; width: 93px; height: 57px; }
.card .buy .l1 { position: absolute; left: 0; right: 0; top: 7px; font-size: 18px; }
.card .buy .l2 { position: absolute; left: 0; right: 0; top: 29px; font-size: 18px; white-space: nowrap; }
.card .buy .l2 .ico { width: 19px; height: 19px; margin: -3px 2px 0 0; }
/* закрытая машина: силуэт и «???» */
.card .later, .card .qbuy { display: none; }
.card.mystery .later { display: block; position: absolute; left: 70px; width: 150px; top: 36px; font-size: 16px; text-align: center; white-space: nowrap; color: #c9a77a; }
.card.mystery .qbuy { display: block; left: 220px; top: 5px; width: 93px; height: 57px; line-height: 57px; text-align: center; font-size: 38px; color: #fff; cursor: default; }
.card.mystery .nm { color: #c9a77a; }
.card.mystery .thumb img { filter: brightness(0); opacity: 0.55; }
.card.mystery .lv, .card.mystery .inc, .card.mystery .bar, .card.mystery .buy { display: none; }

/* ---------- улучшения ---------- */
.ucell {
  position: absolute;
  width: 74px;
  height: 73px;
  box-sizing: border-box;
  background: #bd7241;
  border: 2px solid #111;
  border-radius: 6px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25);
}
.ucell .box { position: absolute; left: 4px; top: 4px; width: 62px; height: 44px; border-radius: 4px; background: #7b4727; }
.ucell .box img { width: 60px; height: 44px; margin-left: 1px; }
.ucell .cost { position: absolute; left: 0; right: 0; top: 50px; font-size: 16px; text-align: center; white-space: nowrap; color: #b25ad8; }
.ucell .cost .ico { width: 17px; height: 17px; margin: -3px 2px 0 0; }
.ucell .cost.no { color: #8a0c00; }
.ucell.maxed .cost { color: #3cc83a; }

.tip {
  position: absolute;
  width: 190px;
  height: 100px;
  box-sizing: border-box;
  background: #704630;
  border: 2px solid #111;
  border-radius: 5px;
  box-shadow: inset 0 0 0 3px #87553b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 17px;
  line-height: 22px;
  padding: 0 10px;
  z-index: 5;
}
.tip .ico { width: 18px; height: 18px; margin-top: -3px; }
.tip .lvl { font-size: 12px; line-height: 14px; margin-top: 4px; color: #e8cfae; }
.tg { color: #52d63a; }
.ty { color: #f7c21e; }
.tc { color: #3cc6f2; }
.tp { color: #c77df5; }
.tq { color: #f5c518; }
.tr { color: #ff7055; }
.tt { color: #00c98f; }

/* подписи в кнопках не переносятся — длинные ужимаются скриптом (data-fit) */
[data-fit] { white-space: nowrap; }

/* ---------- задания ---------- */
.trow {
  position: absolute;
  left: 839px;
  width: 323px;
  height: 71px;
  box-sizing: border-box;
  background: #704732;
  border: 2px solid #120b04;
  border-radius: 7px;
  box-shadow: inset 0 0 0 3px #5a3824;
}
.trow .tbox { position: absolute; left: 6px; top: 5px; width: 56px; height: 57px; border-radius: 4px; background: #5c3a24; }
.trow .tbox img { width: 52px; height: 52px; margin: 2px; }
.trow .ttl { position: absolute; left: 66px; width: 152px; top: 9px; font-size: 17px; text-align: center; white-space: nowrap; }
.trow .ttl.sm { font-size: 14.5px; top: 11px; }
.trow .tbar { position: absolute; left: 70px; top: 33px; width: 144px; height: 23px; border-radius: 12px; background: #5a3824; overflow: hidden; }
.trow .tbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #1e7fd6; border-radius: 12px; }
.trow .tbar span { position: absolute; left: 0; right: 0; top: 3px; font-size: 18px; text-align: center; }
.trow .rw { left: 222px; top: 8px; width: 92px; height: 50px; }
.trow .rw .l1 { position: absolute; left: 0; right: 0; top: 4px; font-size: 17px; }
.trow .rw .l2 { position: absolute; left: 0; right: 0; top: 23px; font-size: 17px; color: #b25ad8; white-space: nowrap; }
.trow .rw .l2 .ico { width: 18px; height: 18px; margin: -3px 2px 0 0; }
.trow .val { position: absolute; right: 14px; top: 23px; font-size: 20px; }

/* ---------- престиж ---------- */
.pbox {
  position: absolute;
  box-sizing: border-box;
  background: #764625;
  border: 2px solid #111;
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px #603719;
}
.pline { position: absolute; left: 0; right: 0; text-align: center; font-size: 17.5px; white-space: nowrap; }
.pline .ico { width: 19px; height: 19px; margin-top: -3px; }
.pgreen { color: #3cc83a; }
.pbar { position: absolute; left: 71px; top: 232px; width: 129px; height: 19px; border-radius: 10px; background: #4d2e16; overflow: hidden; }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #32902e; border-radius: 10px; }
#btnHold { left: 949px; top: 336px; width: 120px; height: 53px; background: #0088e7; font-size: 18px; overflow: hidden; }
#btnHold .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 255, 255, 0.3); }
#btnHold .l { position: absolute; left: 0; right: 0; top: 7px; line-height: 19px; }
#btnHold.dis { background: #5f5f5f; }
#btnX2 { left: 950px; top: 411px; width: 116px; height: 55px; background: #0d86b2; font-size: 16px; }
#btnX2 .l { position: absolute; left: 0; right: 0; top: 8px; line-height: 19px; }
#btnX2.on { background: #129c5a; }

/* ---------- магазин престижа ---------- */
#btnPerk { left: 941px; top: 219px; width: 135px; height: 56px; font-size: 17px; }
#btnPerk .l1 { position: absolute; left: 0; right: 0; top: 7px; }
#btnPerk .l2 { position: absolute; left: 0; right: 0; top: 28px; }
#btnPerk .ico { width: 19px; height: 19px; margin: -3px 2px 0 0; }

/* ---------- достижения ---------- */
.achhead .pline { font-size: 18px; }
.achgrid {
  position: absolute; left: 846px; top: 148px; width: 324px; height: 500px;
  box-sizing: border-box; padding: 5px 0 12px 2px;
  display: grid; grid-template-columns: repeat(4, 72px); grid-auto-rows: 72px; gap: 10px;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: none; touch-action: pan-y;
}
.achgrid::-webkit-scrollbar { display: none; }
.acell {
  position: relative; box-sizing: border-box; width: 72px; height: 72px;
  border: 2px solid #000; border-radius: 6px; background: #444;
  box-shadow: inset 0 0 0 3px #676767, inset 0 0 0 5px #393939;
  cursor: pointer;
}
.acell img { position: absolute; left: 2px; top: 2px; width: 64px; height: 64px; pointer-events: none; }
.acell .agrey { filter: grayscale(1) brightness(1.08); }
/* цветной слой: фиолетовый фон + цветная иконка, открывается маской conic-gradient */
.acell .acol {
  position: absolute; inset: 0; border-radius: 4px; background: #553084;
  box-shadow: inset 0 0 0 1px #7041ab, inset 0 0 0 3px #7f4ac2;
}
.acell .acol img { left: 2px; top: 2px; }
.atip {
  position: absolute; width: 185px; height: 112px; box-sizing: border-box; z-index: 6;
  background: #764625; border: 2px solid #111; border-radius: 5px; box-shadow: inset 0 0 0 3px #8e552e;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-size: 17px; line-height: 20px; padding: 0 8px; pointer-events: none;
}
.atip .ico { width: 17px; height: 17px; margin-top: -3px; }
.atip .v { margin-top: 18px; color: #f0a818; }
.atip .s { color: #3cc83a; }
.achtoast {
  position: absolute; left: 52px; top: 540px; width: 120px; text-align: center; z-index: 4;
  font-size: 13px; line-height: 13px; color: #1fb52f; pointer-events: none;
  animation: achtoast 2.8s ease-out forwards;
}
.acell.mini { width: 30px; height: 30px; margin: 5px auto 0; border-width: 2px; border-radius: 4px; cursor: default; }
.acell.mini .acol { box-shadow: inset 0 0 0 2px #7f4ac2; border-radius: 2px; }
.acell.mini img { left: 2px; top: 2px; width: 22px; height: 22px; }
@keyframes achtoast {
  0% { opacity: 0; transform: translateY(10px) scale(.7); }
  10% { opacity: 1; transform: translateY(0) scale(1.08); }
  16% { transform: translateY(0) scale(1); }
  75% { opacity: 1; transform: translateY(-8px); }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* ---------- настройки ---------- */
.slabel { position: absolute; left: 855px; width: 315px; height: 30px; line-height: 30px; text-align: center; font-size: 26px; color: #f3dfb3; }
.sbox {
  position: absolute; left: 855px; width: 315px; box-sizing: border-box;
  background: #654032; border: 2px solid #1a0f08; border-radius: 6px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18);
}
/* переключатель: оранжевая рамка, зелёная половина + светлая ручка справа (вкл) */
.tgl {
  position: absolute; left: 17px; top: 20px; width: 62px; height: 38px; box-sizing: border-box;
  border: 2px solid #111; border-radius: 8px; background: #ae6c14; cursor: pointer;
}
.tgl i { position: absolute; left: 3px; top: 3px; right: 3px; bottom: 3px; border-radius: 4px; background: #7b7b7b; }
.tgl.on i { background: #46ac35; }
.tgl b {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: 26px; border-radius: 4px;
  background: #c1bd91; box-shadow: inset 2px 2px 0 #d3d0b2, -1px 0 0 #6b6a55; transition: left 0.12s;
}
.tgl.on b { left: 29px; }
/* ползунок */
.sld { position: absolute; left: 98px; top: 18px; width: 202px; height: 41px; cursor: pointer; touch-action: none; }
.sld .trk {
  position: absolute; left: 0; right: 0; top: 7px; height: 26px; box-sizing: border-box;
  border: 2px solid #111; border-radius: 13px; background: #939494;
  box-shadow: inset 0 0 0 3px #ae6c14; overflow: hidden;
}
.sld .trk i { position: absolute; left: 0; top: 0; bottom: 0; background: #46ac35; box-shadow: inset 0 3px 0 #ae6c14, inset 0 -3px 0 #ae6c14, inset 3px 0 0 #ae6c14; }
.sld b {
  position: absolute; top: 1px; width: 29px; height: 37px; margin-left: -14.5px; box-sizing: border-box;
  border: 2px solid #111; border-radius: 5px; background: #c1bd91; box-shadow: inset 2px 2px 0 #d3d0b2, inset -2px -2px 0 #9e9a76;
}
.stxt { position: absolute; left: 95px; right: 12px; top: 26px; font-size: 20px; line-height: 26px; text-align: center; }
.gbtn { width: 142px; height: 40px; font-size: 15px; line-height: 34px; white-space: nowrap; }
.gbtn .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 255, 255, 0.3); }
.gbtn span { position: relative; }
.ver { position: absolute; left: 1064px; width: 160px; top: 627px; text-align: right; font-size: 14px; }

/* ---------- офлайн-бонус ---------- */
.offwrap { position: absolute; left: 0; top: 0; width: 1232px; height: 648px; z-index: 20; }
.offdim { position: absolute; left: -3000px; top: -3000px; width: 7232px; height: 6648px; background: rgba(0, 0, 0, 0.76); cursor: default; }
.offtitle {
  position: absolute; left: 0; right: 0; top: 170px; text-align: center; font-size: 60px; line-height: 66px;
  text-shadow: 4px 0 0 #000, -4px 0 0 #000, 0 4px 0 #000, 0 -4px 0 #000, 3px 3px 0 #000, -3px 3px 0 #000, 3px -3px 0 #000, -3px -3px 0 #000, 0 6px 0 #000, 3px 5px 0 #000, -3px 5px 0 #000;
}
.offbox {
  position: absolute; left: 491px; top: 255px; width: 250px; box-sizing: border-box; padding: 12px 22px 12px;
  background: #664b36; border: 2px solid #1e140c; border-radius: 5px; box-shadow: inset 0 0 0 3px #7a5b42;
  text-align: center; font-size: 17px; line-height: 18.5px;
}
.offbox .ico { width: 18px; height: 18px; margin: -3px 2px 0 0; }
.offtake, .offx2 { top: 408px; width: 140px; height: 55px; border-radius: 6px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.3); }
.offtake { left: 454px; background: #0a8a28; font-size: 34px; line-height: 48px; }
.offx2 { left: 635px; background: #f28b10; font-size: 20px; line-height: 48px; text-align: left; }
.offx2 span {
  position: absolute; left: 68px; right: 4px; top: 0; bottom: 6px;
  display: flex; align-items: center; justify-content: center; text-align: center; line-height: 18px;
}
.offx2 .play { position: absolute; left: 8px; top: 7px; width: 58px; height: 36px; border-radius: 5px; background: #d93427; box-shadow: inset 0 0 0 2px #a8241b; }
.offx2 .play::after { content: ''; position: absolute; left: 22px; top: 7px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 0 1px #000); }

/* ---------- тестовая реклама ---------- */
#adOverlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 12, 10, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lilita One', 'Rubik', 'Arial Black', sans-serif;
  color: #fff;
  line-height: 1;
}
#adOverlay .adbox {
  position: relative;
  width: 340px;
  padding: 28px 24px 22px;
  box-sizing: border-box;
  text-align: center;
  background: #704630;
  border: 2px solid #111;
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px #87553b;
}
#adOverlay .adlbl {
  position: absolute;
  left: 10px;
  top: 8px;
  padding: 2px 6px;
  font-size: 12px;
  color: #111;
  background: #f7c21e;
  border-radius: 3px;
}
#adOverlay .adttl { font-size: 24px; }
#adOverlay .adbar { position: relative; height: 18px; margin: 18px 0 12px; border-radius: 9px; background: #4d2e16; overflow: hidden; }
#adOverlay .adbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #32902e; border-radius: 9px; }
#adOverlay .adtxt { font-size: 19px; }
#adOverlay.got .adtxt { color: #52d63a; }
#adOverlay .adclose {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 36px;
  text-align: center;
  color: #ddd;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
#adOverlay .adclose:hover { background: rgba(255, 255, 255, 0.25); }

/* ---------- уведомление ---------- */
#notice {
  left: 416px;
  top: 250px;
  transform: translateX(-50%);
  padding: 12px 18px;
  font-size: 20px;
  text-align: center;
  white-space: nowrap;
  background: #704630;
  border: 2px solid #111;
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px #87553b;
  transition: opacity 0.4s;
}
#notice .ico { width: 22px; height: 22px; margin-top: -4px; }

/* ---------- список машин: прокручивается, машин больше, чем помещается ---------- */
.cargrid {
  position: absolute; left: 845px; top: 52px; width: 335px; height: 596px; box-sizing: border-box;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y;
  scrollbar-width: thin; scrollbar-color: #8a5b2c #3a2612;
}
.cargrid::-webkit-scrollbar { width: 8px; }
.cargrid::-webkit-scrollbar-track { background: #3a2612; border-radius: 4px; }
.cargrid::-webkit-scrollbar-thumb { background: #8a5b2c; border-radius: 4px; border: 1px solid #120b04; }
.cargrid .card { left: 0; }

/* ---------- дерево перков ---------- */
.psum { text-align: center; font-size: 18px; line-height: 20px; }
.psum .ico { width: 18px; height: 18px; margin: -3px 2px 0 8px; }
.pbr { text-align: center; font-size: 15px; line-height: 18px; color: #f3dfb3; white-space: nowrap; }
.pnode {
  position: absolute; width: 74px; height: 64px; box-sizing: border-box;
  background: #764625; border: 2px solid #111; border-radius: 7px; box-shadow: inset 0 0 0 3px #8e552e;
  transition: transform 0.06s, filter 0.1s;
}
.pnode:active { transform: translateY(2px); }
.pnode .pi { position: absolute; left: 0; right: 0; top: 4px; height: 40px; }
.pnode .pi img { display: block; margin: 0 auto; max-width: 62px; max-height: 40px; object-fit: contain; pointer-events: none; }
.pnode .pc { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 15px; line-height: 16px; white-space: nowrap; }
.pnode .pc .ico { width: 15px; height: 15px; margin: -3px 2px 0 0; }
.pnode .pc span { color: #ff7a66; }
.pnode .chk { display: none; }
/* можно купить: зелёная пульсирующая рамка */
.pnode.can { box-shadow: inset 0 0 0 3px #46ac35, 0 0 8px #46ac35; animation: pcan 1.4s ease-in-out infinite; }
.pnode.can .pc span { color: #7ee05a; }
@keyframes pcan { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@media (prefers-reduced-motion: reduce) { .pnode.can { animation: none; } }
/* закрыт: серый */
.pnode.locked { background: #444; box-shadow: inset 0 0 0 3px #676767, inset 0 0 0 5px #393939; cursor: default; }
.pnode.locked .pi img { filter: grayscale(1) brightness(0.9); opacity: 0.7; }
.pnode.locked .pc span { color: #9a9a9a; }
/* куплен: фиолетовый, как выполненное достижение */
.pnode.bought { background: #553084; box-shadow: inset 0 0 0 1px #7041ab, inset 0 0 0 3px #7f4ac2; }
.pnode.bought .pc .ico, .pnode.bought .pc span { display: none; }
.pnode.bought .chk { display: inline-block; width: 8px; height: 15px; border-right: 4px solid #7ee05a; border-bottom: 4px solid #7ee05a; transform: rotate(45deg) translate(-2px, -3px); filter: drop-shadow(0 1px 0 #111); }
.pcon { position: absolute; width: 6px; height: 14px; background: #1a0f08; border-radius: 1px; }
.pcon.on { background: #7ee05a; box-shadow: 0 0 4px #46ac35; }
/* вершина дерева */
.pnode.cap { width: 322px; }
.pnode.cap .pi { right: auto; left: 8px; top: 9px; width: 46px; height: 46px; }
.pnode.cap .pi img { max-width: 44px; max-height: 44px; }
.pnode.cap .pname { position: absolute; left: 62px; width: 170px; top: 7px; font-size: 19px; line-height: 22px; text-align: left; color: #ffd21f; }
.pnode.cap .pdesc { position: absolute; left: 62px; width: 170px; top: 30px; font-size: 14px; line-height: 15px; text-align: left; color: #ffffff; }
.pnode.cap .pc { left: auto; right: 10px; top: 20px; bottom: auto; width: 74px; font-size: 18px; text-align: right; }
.pnode.cap.locked .pname { color: #9a9a9a; }
.ptip {
  position: absolute; width: 200px; box-sizing: border-box; z-index: 6; padding: 10px 10px 9px;
  background: #764625; border: 2px solid #111; border-radius: 5px; box-shadow: inset 0 0 0 3px #8e552e;
  text-align: center; pointer-events: none;
}
.ptip .t { font-size: 18px; line-height: 20px; margin-bottom: 6px; color: #ffd21f; }
.ptip .d { font-size: 16px; line-height: 19px; color: #52d63a; margin-bottom: 8px; }
.ptip .s { font-size: 15px; line-height: 18px; }
.ptip .s .ico { width: 16px; height: 16px; margin-top: -3px; }
.ptip .s.ok { color: #c58cff; }
.ptip .s.lock { color: #b4b4b4; }
.ptip .s.no { color: #ff7a66; }
.ptip .s.yes { color: #7ee05a; }
