/* ============================================================
   NAH! 😤  —  Karşıdan görünen yumruk
   Baş parmak, işaret ve orta parmağın arasından çıkar
   Tamamen CSS ile çizilmiş el, saf HTML/CSS/JS
   ============================================================ */

:root {
  --skin:      #f2b28c;   /* ana ten rengi      */
  --skin-dark: #dd9667;   /* gölgeli ten rengi  */
  --skin-light:#fbd2b4;   /* aydınlık ten rengi */
  --nail:      #f9e0cc;   /* tırnak rengi       */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #ff9a8b, #ff6a88 50%, #ff99ac);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ---------- Sayfa düzeni ---------- */
.page {
  width: 100%;
  max-width: 540px;
  padding: 24px 16px;
  text-align: center;
}

.title {
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.subtitle {
  margin-top: 8px;
  color: #fff;
  opacity: .92;
  font-size: clamp(.9rem, 3vw, 1.05rem);
}

/* ---------- Sahne (elin durduğu yer) ---------- */
.scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 26px 0 6px;
}

/* Elin yerdeki gölgesi */
.scene::after {
  content: "";
  width: 190px;
  height: 26px;
  margin-top: 2px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .20), transparent 70%);
  border-radius: 50%;
}

.hand {
  position: relative;
  width: 220px;
  height: 300px;
  transform-origin: 50% 100%;
  animation: handFloat 2.6s ease-in-out infinite;
  will-change: transform;
}

/* Elin tamamı sürekli aşağı-yukarı */
@keyframes handFloat {
  0%, 100% { transform: translateY(-18px); }
  50%      { transform: translateY(16px); }
}

/* Butona basınca: hızlı şaka-şaka */
.hand.shake {
  animation: handShake .5s ease-in-out 3;
}

@keyframes handShake {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-40px) rotate(-7deg); }
  75%      { transform: translateY(30px) rotate(7deg); }
}

/* ---------- Yumruk gövdesi ---------- */
.fist {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 204px;
  z-index: 1;
}

/* Yumruğun dolgusu (baş parmağın üzerinde çizilir) */
.fist-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, var(--skin-light) 8%, var(--skin) 45%, var(--skin-dark) 100%);
  border-radius: 46px 46px 42px 42px;
  box-shadow: inset 0 -16px 22px rgba(160, 90, 50, .16),
              0 16px 26px rgba(0, 0, 0, .25);
  z-index: 1;
}

/* Kıvrılmış 4 parmak = boğum tepecikleri */
.fist::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 4px;
  right: 4px;
  height: 52px;
  background:
    radial-gradient(circle at 17% 55%, var(--skin-light) 0 22px, rgba(242, 178, 140, 0) 23px),
    radial-gradient(circle at 39% 55%, var(--skin-light) 0 22px, rgba(242, 178, 140, 0) 23px),
    radial-gradient(circle at 63% 55%, var(--skin-light) 0 22px, rgba(242, 178, 140, 0) 23px),
    radial-gradient(circle at 85% 55%, var(--skin-light) 0 22px, rgba(242, 178, 140, 0) 23px);
  z-index: 3;
}

/* Boğumların altındaki kıvrım çizgisi */
.fist::after {
  content: "";
  position: absolute;
  top: 46px;
  left: 10px;
  right: 10px;
  height: 14px;
  border-radius: 14px;
  background: rgba(160, 90, 50, .13);
  z-index: 2;
}

/* ---------- Baş parmak (işaret ile orta parmağın arasında) ---------- */
.thumb {
  position: absolute;
  top: -34px;
  left: 81px;
  width: 42px;
  height: 140px;
  background: linear-gradient(180deg, var(--skin), var(--skin-dark));
  border-radius: 21px;
  box-shadow: inset 0 -12px 16px rgba(160, 90, 50, .16);
  transform-origin: 50% 90%;
  animation: thumbSwing 1.8s ease-in-out infinite;
  z-index: 0; /* yumruğun ARKASINDAN çıkar → "arasından" hissi */
}

/* Baş parmak sağa-sola salınıyor */
@keyframes thumbSwing {
  0%, 100% { transform: rotate(14deg); }
  50%      { transform: rotate(-14deg); }
}

.hand.shake .thumb {
  animation-duration: .35s;
}

/* Baş parmak tırnağı */
.thumb-nail {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 30px;
  background: var(--nail);
  border-radius: 11px 11px 8px 8px;
  box-shadow: inset 0 -4px 6px rgba(200, 150, 110, .4);
}

/* ---------- Bilek ---------- */
.wrist {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 122px;
  height: 96px;
  background: linear-gradient(180deg, var(--skin), var(--skin-dark));
  border-radius: 0 0 34px 34px;
  box-shadow: inset 0 -12px 18px rgba(160, 90, 50, .12);
  z-index: 1;
}

/* ---------- Buton ---------- */
.nah-btn {
  margin-top: 26px;
  padding: 16px 36px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}

.nah-btn:hover  { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(0,0,0,.32); }
.nah-btn:active { transform: scale(.92); }
.nah-btn:disabled { opacity: .7; cursor: default; }

.hint {
  margin-top: 14px;
  color: #fff;
  opacity: .88;
  font-size: .95rem;
}

/* ---------- "NAH NAH NAH!" yazısı ---------- */
.pop {
  margin-top: 18px;
  display: inline-block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .35);
  animation: popAnim .9s ease forwards;
}

@keyframes popAnim {
  0%   { transform: scale(.2); opacity: 0; }
  40%  { transform: scale(1.35); opacity: 1; }
  70%  { transform: scale(1); }
  100% { transform: scale(1.1); opacity: 0; }
}

/* ---------- Mobil uyumluluk ---------- */
@media (max-width: 480px) {
  .hand {
    width: 165px;
    height: 235px;
  }
  .scene::after {
    width: 140px;
  }
  .fist {
    width: 150px;
    height: 152px;
    border-radius: 34px 34px 32px 32px;
  }
  .fist::before {
    top: -10px;
    height: 40px;
    background:
      radial-gradient(circle at 17% 55%, var(--skin-light) 0 17px, rgba(242, 178, 140, 0) 18px),
      radial-gradient(circle at 39% 55%, var(--skin-light) 0 17px, rgba(242, 178, 140, 0) 18px),
      radial-gradient(circle at 63% 55%, var(--skin-light) 0 17px, rgba(242, 178, 140, 0) 18px),
      radial-gradient(circle at 85% 55%, var(--skin-light) 0 17px, rgba(242, 178, 140, 0) 18px);
  }
  .fist::after {
    top: 34px;
    height: 10px;
  }
  .thumb {
    top: -16px;
    left: 61px;
    width: 30px;
    height: 98px;
  }
  .thumb-nail {
    top: 6px;
    width: 16px;
    height: 22px;
    border-radius: 8px 8px 6px 6px;
  }
  .wrist {
    width: 92px;
    height: 68px;
  }
}

/* ---------- Az hareket tercihi olan kullanıcılar ---------- */
@media (prefers-reduced-motion: reduce) {
  .hand,
  .thumb {
    animation: none;
  }
}

