/* ================================
   БАЗА
================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  background: #000;
}

.screen {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ЭКРАН 1 */
.screen-first {
  background: #000 url("bg-start.png") center center / cover no-repeat;
}

/* ЭКРАН 2 */
.screen-second {
  background: #000 url("bg-second.png") center center / cover no-repeat;
}

/* ================================
   ПЕРЕМЕННЫЕ CA-БАННЕРА (твои)
================================ */

:root {
  --ca-top: 57%;
  --ca-left: 65%;
}

/* ================================
   КНОПКА МУЗЫКИ
================================ */

.sound-toggle {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 10;
}

.sound-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s;
}

.sound-toggle.muted .sound-icon {
  opacity: 0.4;
}

/* ================================
   ЦЕНТРАЛЬНАЯ НАДПИСЬ
================================ */

.title-centered {
  display: block;
  height: auto;
  max-width: min(70vw, 1822px);
  width: 1822px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

/* ================================
   CA-БАННЕР
================================ */

.ca-banner {
  position: absolute;
  top: var(--ca-top);
  left: var(--ca-left);
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  background: rgba(245, 245, 245, 0.92);
  border-radius: 6px;
  display: none;
  align-items: center;
  gap: 8px;

  font-family: "Just Another Hand", cursive;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: #111;
  z-index: 2;
}

.ca-label {
  flex: 0 0 auto;
}

.ca-value {
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  max-width: 420px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ================================
   КАМЕРЫ (твои размеры)
================================ */

.camera {
  position: absolute;
  width: 150px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.92;
  z-index: 1;
}

.camera-left {
  top: 40px;
  left: 0px;
}

.camera-right {
  top: 40px;
  right: 0px;
}

/* ================================
   ГРУППА ХОМЯКОВ
================================ */

.hamsters-strip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0px;

  width: min(60vw, 2342px);
  height: auto;

  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

/* ================================
   СТРЕЛКА ВНИЗ
================================ */

.scroll-down {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 72px;
  height: 72px;
  border: none;
  background: transparent;
  cursor: pointer;
  animation: arrow-bounce 1.3s ease-in-out infinite;
  z-index: 3;
}

.scroll-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* ================================
   PUSH TO PLAY
================================ */

.push-text {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Just Another Hand", cursive;
  font-size: min(12vw, 110px);
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0,0,0,0.65);
  letter-spacing: 0.03em;
  pointer-events: none;
  z-index: 4;
  animation: push-sway 1.8s ease-in-out infinite;
}

@keyframes push-sway {
  0%   { transform: translateX(-50%) rotate(-2deg); }
  50%  { transform: translateX(-50%) rotate(2deg); }
  100% { transform: translateX(-50%) rotate(-2deg); }
}

/* ================================
   PLAY BUTTON
================================ */

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -35%);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.12s ease;
  z-index: 4;
}

.play-btn:active {
  transform: translate(-50%, -35%) scale(0.95);
}

.play-image {
  width: min(30vw, 380px);
  height: auto;
  object-fit: contain;
}

/* ================================
   СЧЁТЧИК ZHUMSTERS
================================ */

.score-panel {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: "Just Another Hand", cursive;
  font-size: min(4vw, 32px);
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
  z-index: 4;
}

/* ================================
   ОБЛАСТЬ ИГРЫ
================================ */

.hamster-area {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hamster-img {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(45vw, 420px);
  height: auto;
  z-index: 3;
}

.answer-panel {
  position: absolute;
  top: 72%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 32px;
  z-index: 3;
}

.answer-btn {
  width: min(14vw, 120px);
  height: min(14vw, 120px);
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.answer-btn:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.7));
}

.answer-btn:active {
  transform: scale(0.95);
}

.answer-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ================================
   ФИДБЕК (галочка/крест)
================================ */

.feedback {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(18vw, 140px);
  height: min(18vw, 140px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 5;
}

.feedback-show {
  opacity: 1;
}

.feedback-hidden {
  opacity: 0;
}

.feedback-correct {
  background-image: url("feedback-yes.png");
}

.feedback-wrong {
  background-image: url("feedback-no.png");
}

/* ================================
   ФУТЕР
================================ */

.footer-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  height: 85px;
  width: min(60vw, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
}

.footer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* CA слева */
.footer-ca {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  font-family: "Just Another Hand", cursive;
  font-size: min(3vw, 26px);
  color: #ffffff;
  pointer-events: auto;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
}

.footer-ca-value {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

/* КНОПКИ (твои параметры) */

.footer-buttons {
  position: absolute;
  left: 70%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.footer-btn-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Объём и анимации */
.footer-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 4px 14px rgba(0,0,0,0.9);
  filter: brightness(1.06);
}

.footer-btn:active {
  transform: translateY(2px) scale(0.94);
  box-shadow: 0 1px 6px rgba(0,0,0,0.8) inset;
  filter: brightness(0.96);
}

/* ================================
   ОТКЛЮЧЕННЫЕ КНОПКИ
================================ */

.disabled-btn {
  filter: grayscale(1) brightness(0.6);
  opacity: 0.6;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.disabled-btn:hover,
.disabled-btn:active {
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(1) brightness(0.6) !important;
}

/* ================================
   ТОСТ "COPIED"
================================ */

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 6px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-family: "Just Another Hand", cursive;
  font-size: 26px;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.copy-toast.show {
  opacity: 1;
}
