/* БАЗА — под экран 1920×1080 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  font-family: "Lacquer", system-ui, sans-serif;
}

/* ФОН */

.background-layer {
  position: fixed;
  inset: 0;
  background: url("bg_patient.png") center center / cover no-repeat;
  z-index: 0;
}

/* ОБЩИЙ КОНТЕНТ */

.content {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ТЕКСТЫ SOL PRICE / DEPOSIT */

.label-text {
  font-family: "Lacquer", sans-serif;
  font-size: 93px;
  color: #000;
}

.value-text {
  font-family: "Lacquer", sans-serif;
  font-size: 60px;
  margin-left: 20px;
  color: #000;
}

.sol-price-block {
  position: absolute;
  left: 70px;
  top: 60px;
  display: flex;
  align-items: baseline;
}

.deposit-block {
  position: absolute;
  left: 70px;
  bottom: 80px;
  display: flex;
  align-items: baseline;
}

/* PATIENT */

.title-wrapper {
  position: absolute;
  width: 100%;
  top: 350px;
  left: 0;
  text-align: center;
  z-index: 2;
}

.title-main {
  display: inline-block;
  font-family: "Lacquer", sans-serif;
  font-size: 226px;
  color: #ff0000;
  letter-spacing: 6px;
  position: relative;
  z-index: 2;
}

/* ПЛАСТЫРЬ — твои параметры */

.plaster-image {
  position: absolute;
  width: 220px;
  height: 180px;
  left: 1500px;
  top: 10px;
  transform: rotate(-8deg);
  z-index: 3;
  pointer-events: none;
}

/* БАНКА + USE ME */

.pill-wrapper {
  position: absolute;
  right: 150px;
  top: 160px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3;
}

/* покачивание банки */

.pill-image {
  width: 250px;
  height: 318px;
  transform: rotate(10deg);
  animation: pillFloat 4.5s ease-in-out infinite;
}

@keyframes pillFloat {
  0% { transform: translateY(0) rotate(10deg); }
  25% { transform: translateY(-6px) rotate(8deg); }
  50% { transform: translateY(0) rotate(11deg); }
  75% { transform: translateY(6px) rotate(9deg); }
  100% { transform: translateY(0) rotate(10deg); }
}

/* дрожащий USE ME */

.pill-text {
  margin-bottom: 5px;
  font-family: "Lacquer", sans-serif;
  font-size: 36px;
  color: #000;
  animation: pillTextJitter 0.12s infinite;
}

@keyframes pillTextJitter {
  0%   { transform: rotate(-5deg); }
  25%  { transform: rotate(-4deg) translate(1px,-1px); }
  50%  { transform: rotate(-6deg) translate(-1px,1px); }
  75%  { transform: rotate(-4deg) translate(1px,1px); }
  100% { transform: rotate(-5deg); }
}

/* КНОПКИ */

.bottom-buttons {
  position: absolute;
  right: 70px;
  bottom: 60px;
  display: flex;
  gap: 24px;
  z-index: 3;
}

.action-button {
  position: relative;
  width: 205px;
  height: 79px;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform 0.12s ease-out;
}

.action-button:hover {
  transform: translateY(-3px);
}

.action-button:active {
  transform: translateY(3px);
}

.button-bg {
  position: absolute;
  width: 205px;
  height: 79px;
  left: 0;
  top: 0;
}

.button-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Lacquer", sans-serif;
  color: #000;
}

.button-label-big { font-size: 57px; }
.button-label-small { font-size: 40px; }

/* 🔥 НЕАКТИВНАЯ КНОПКА CA — теперь полностью серая */

.action-button.inactive {
  cursor: not-allowed;
  filter: grayscale(100%) brightness(55%) contrast(120%);
  transform: none !important;
}

.action-button.inactive:hover {
  transform: none !important;
}

/* СОВЕТЫ */

#adviceLayer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.advice-image {
  position: absolute;
  width: 650px;
  height: 251px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.35s, transform 0.35s;
}

.advice-image.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* СТРЕЛКИ */

#arrowsLayer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.arrow-image {
  position: absolute;
  width: 658px;
  height: 658px;
  bottom: -658px;
  opacity: 0.9;
  animation-name: arrowUp;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

/* быстрые + сильные движения */

@keyframes arrowUp {
  0%   { transform: translate(0,0) rotate(0deg); }
  20%  { transform: translate(-40px,-400px) rotate(-10deg); }
  40%  { transform: translate(35px,-800px) rotate(12deg); }
  60%  { transform: translate(-45px,-1200px) rotate(-14deg); }
  80%  { transform: translate(40px,-1600px) rotate(10deg); }
  100% { transform: translate(-30px,-2100px) rotate(8deg); }
}

/* TOAST COPIED */

.copy-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  padding: 18px 40px;
  background: rgba(255,255,255,0.95);
  border: 3px solid #000;
  font-family: "Lacquer", sans-serif;
  font-size: 72px;
  transform: translate(-50%, -50%);
  z-index: 10;
  animation: copyToastFade 1.4s forwards;
  pointer-events: none;
}

@keyframes copyToastFade {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(0.9); }
 10% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
 80% { opacity: 1; }
100% { opacity: 0; transform: translate(-50%,-50%) scale(0.95); }
}
