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

:root {
  --bg: #0b1530;
  --bg2: #13224a;
  --teal: #14b8a6;
  --teal-d: #0d9488;
  --yellow: #facc15;
  --yellow-d: #eab308;
  --ink: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
}

html, body { height: 100%; }

body {
  font-family: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(ellipse at 50% 35%, var(--bg2), var(--bg) 70%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- şerit ---------- */
.tape {
  position: relative;
  z-index: 3;
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  padding: 8px 0;
  font-weight: 700;
  letter-spacing: .12em;
  font-size: 14px;
  color: var(--ink);
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, #1f2937 22px 44px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
.tape span {
  flex-shrink: 0;
  padding: 2px 0;
  background: var(--yellow);
  animation: marquee 30s linear infinite;
}
.tape--top { transform: rotate(-1.2deg) scale(1.02); margin-top: 14px; }
.tape--bottom { transform: rotate(1deg) scale(1.02); margin-bottom: 14px; }
.tape--bottom span { animation-direction: reverse; }

@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- arka plan dişlileri ---------- */
.gear {
  position: fixed;
  border-radius: 50%;
  border: 22px dashed rgba(20, 184, 166, .12);
  pointer-events: none;
  animation: spin 18s linear infinite;
}
.gear::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 14px solid rgba(20, 184, 166, .12);
}
.gear--a { width: 260px; height: 260px; top: 8%; left: -90px; }
.gear--b { width: 180px; height: 180px; bottom: 6%; right: -50px; animation-direction: reverse; animation-duration: 12s; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- yerleşim ---------- */
.wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  position: relative;
  z-index: 2;
}

.scene {
  position: relative;
  width: 420px;
  height: 300px;
  margin-bottom: 18px;
}

.ground {
  position: absolute;
  left: -20px; right: -20px; bottom: 18px;
  height: 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, .35);
}

/* ---------- vinç ---------- */
.crane__mast {
  position: absolute;
  left: 22px; bottom: 20px;
  width: 18px; height: 250px;
  border: 3px solid var(--yellow-d);
  background: repeating-linear-gradient(45deg, transparent 0 9px, var(--yellow-d) 9px 12px);
}
.crane__jib {
  position: absolute;
  left: 10px; top: 22px;
  width: 340px; height: 16px;
  border: 3px solid var(--yellow-d);
  background: repeating-linear-gradient(-45deg, transparent 0 9px, var(--yellow-d) 9px 12px);
}
.crane__cabin {
  position: absolute;
  left: 40px; top: 38px;
  width: 26px; height: 22px;
  border-radius: 0 0 6px 6px;
  background: var(--yellow);
  box-shadow: inset 6px 4px 0 -2px #7dd3fc;
}
.crane__hook {
  position: absolute;
  left: 280px; top: 38px;
  transform-origin: top center;
  animation: swing 3.2s ease-in-out infinite;
}
.crane__cable {
  width: 2px; height: 58px;
  margin: 0 auto;
  background: #cbd5e1;
}
.crane__sign {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  white-space: nowrap;
  border: 3px solid var(--teal);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}
.crane__sign b { color: var(--teal); }
.crane__sign::before {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border: 3px solid #cbd5e1;
  border-radius: 50%;
}

@keyframes swing {
  0%, 100% { transform: rotate(7deg); }
  50% { transform: rotate(-7deg); }
}

/* ---------- kahve ---------- */
.coffee {
  position: absolute;
  left: 60px; bottom: 22px;
}
.coffee__cup {
  position: relative;
  width: 26px; height: 24px;
  border-radius: 3px 3px 9px 9px;
  background: #f8fafc;
  box-shadow: inset 0 5px 0 #78350f;
}
.coffee__cup::after {
  content: "";
  position: absolute;
  right: -9px; top: 5px;
  width: 10px; height: 11px;
  border: 3px solid #f8fafc;
  border-left: 0;
  border-radius: 0 8px 8px 0;
}
.coffee__steam {
  position: absolute;
  bottom: 26px; left: 2px;
  width: 24px; height: 30px;
}
.coffee__steam i {
  position: absolute;
  bottom: 0;
  width: 4px; height: 14px;
  border-radius: 4px;
  background: rgba(226, 232, 240, .6);
  animation: steam 2.4s ease-out infinite;
  opacity: 0;
}
.coffee__steam i:nth-child(1) { left: 3px; }
.coffee__steam i:nth-child(2) { left: 10px; animation-delay: .8s; }
.coffee__steam i:nth-child(3) { left: 17px; animation-delay: 1.6s; }

@keyframes steam {
  0% { transform: translateY(0) scaleY(.6); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: translateY(-22px) translateX(4px) scaleY(1.2); opacity: 0; }
}

/* ---------- kapsül usta ---------- */
.pill {
  position: absolute;
  left: 110px; bottom: 22px;
  width: 88px; height: 148px;
  border-radius: 44px;
  background: linear-gradient(to bottom, var(--teal) 0 50%, #f8fafc 50% 100%);
  box-shadow:
    inset -10px 0 0 rgba(0, 0, 0, .08),
    inset 8px 8px 0 rgba(255, 255, 255, .25),
    0 10px 0 -4px rgba(0, 0, 0, .25);
  transform-origin: bottom center;
  animation: bob 1s ease-in-out infinite;
}
.pill::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 4px;
  margin-top: -2px;
  background: rgba(15, 23, 42, .15);
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  40% { transform: translateY(2px) scaleY(.97) rotate(2deg); }
}

.pill__hat {
  position: absolute;
  top: -16px; left: 4px;
  width: 80px; height: 40px;
  border-radius: 40px 40px 6px 6px;
  background: linear-gradient(to right, var(--yellow) 0 44%, var(--yellow-d) 44% 56%, var(--yellow) 56%);
  z-index: 2;
}
.pill__hat::after {
  content: "";
  position: absolute;
  bottom: -4px; left: -10px;
  width: 104px; height: 9px;
  border-radius: 6px;
  background: var(--yellow-d);
}

.pill__sweat {
  position: absolute;
  top: 26px; left: 6px;
  width: 9px; height: 12px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #7dd3fc;
  animation: sweat 2s ease-in infinite;
  opacity: 0;
}
@keyframes sweat {
  0%, 40% { transform: translate(0, 0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(-8px, 30px); opacity: 0; }
}

.pill__eyes {
  position: absolute;
  top: 40px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
}
.pill__eyes i {
  width: 11px; height: 14px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 3px 3px 0 -1px #fff;
  animation: blink 4s infinite;
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(.1); }
}

.pill__cheeks {
  position: absolute;
  top: 56px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 38px;
}
.pill__cheeks i {
  width: 12px; height: 7px;
  border-radius: 50%;
  background: rgba(244, 114, 182, .7);
}

.pill__mouth {
  position: absolute;
  top: 56px; left: 50%;
  width: 22px; height: 11px;
  margin-left: -11px;
  border-radius: 0 0 22px 22px;
  background: var(--ink);
  overflow: hidden;
}
.pill__mouth::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 5px;
  width: 12px; height: 7px;
  border-radius: 50%;
  background: #fb7185;
}

/* kol + çekiç */
.pill__arm {
  position: absolute;
  top: 82px; left: 72px;
  width: 62px; height: 10px;
  border-radius: 6px;
  background: #f8fafc;
  border: 2px solid rgba(15, 23, 42, .15);
  transform-origin: 4px 50%;
  animation: hammer 1s cubic-bezier(.5, 0, .75, 0) infinite;
  z-index: 3;
}
.hammer {
  position: absolute;
  right: -34px; top: -2px;
  width: 38px; height: 10px;
  border-radius: 3px;
  background: #a16207;
}
.hammer::after {
  content: "";
  position: absolute;
  right: -4px; top: -14px;
  width: 16px; height: 38px;
  border-radius: 4px;
  background: linear-gradient(to right, #94a3b8, #64748b);
}

@keyframes hammer {
  0% { transform: rotate(-55deg); }
  40% { transform: rotate(7deg); }
  48% { transform: rotate(2deg); }
  100% { transform: rotate(-55deg); animation-timing-function: ease-out; }
}

/* tahta, çivi, efektler */
.board {
  position: absolute;
  left: 242px; bottom: 22px;
  width: 80px; height: 16px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, #b45309 0 18px, #92400e 18px 20px);
}
.nail {
  position: absolute;
  left: 275px; bottom: 38px;
  width: 4px; height: 16px;
  background: #cbd5e1;
  transform-origin: bottom;
  animation: nail 1s infinite;
}
.nail::before {
  content: "";
  position: absolute;
  top: -3px; left: -4px;
  width: 12px; height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
}
@keyframes nail {
  0%, 38% { transform: scaleY(1); }
  42%, 90% { transform: scaleY(.7); }
}

.bang {
  position: absolute;
  left: 296px; bottom: 74px;
  font-weight: 700;
  font-size: 22px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 #b45309;
  transform: rotate(12deg) scale(0);
  animation: bang 1s infinite;
}
@keyframes bang {
  0%, 38% { transform: rotate(12deg) scale(0); opacity: 0; }
  44% { transform: rotate(12deg) scale(1.25); opacity: 1; }
  60% { transform: rotate(8deg) scale(1); opacity: 1; }
  75%, 100% { transform: rotate(8deg) scale(.8) translateY(-10px); opacity: 0; }
}

.dust { position: absolute; left: 270px; bottom: 40px; }
.dust i {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(226, 232, 240, .7);
  opacity: 0;
  animation: dust 1s infinite;
}
.dust i:nth-child(1) { --dx: -22px; }
.dust i:nth-child(2) { --dx: 22px; }
.dust i:nth-child(3) { --dx: 0px; width: 7px; height: 7px; }
@keyframes dust {
  0%, 40% { transform: translate(0, 0) scale(.3); opacity: 0; }
  45% { opacity: .9; }
  80%, 100% { transform: translate(var(--dx), -16px) scale(1.4); opacity: 0; }
}

/* ---------- yazılar ---------- */
.title {
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 4px 0 var(--teal-d), 0 10px 24px rgba(0, 0, 0, .4);
}
.title span {
  display: inline-block;
  animation: wave 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * .08s);
}
@keyframes wave {
  0%, 60%, 100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-14px) rotate(-4deg); color: var(--yellow); }
  40% { transform: translateY(2px) rotate(2deg); }
}

.subtitle {
  margin-top: 14px;
  font-size: clamp(18px, 3.4vw, 26px);
  color: var(--text);
}
.subtitle strong {
  color: var(--teal);
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08) rotate(-2deg); }
}

/* ---------- ilerleme ---------- */
.progress {
  width: min(420px, 86vw);
  height: 22px;
  margin-top: 30px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .7);
  border: 2px solid rgba(148, 163, 184, .3);
}
.progress__bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .25) 0 10px, transparent 10px 20px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--teal), #2dd4bf);
  animation:
    fill 3.5s cubic-bezier(.2, .9, .3, 1) forwards,
    stripes .8s linear infinite,
    jitter 2.5s ease-in-out 3.5s infinite;
}
@keyframes fill {
  0% { width: 0; }
  70% { width: 99.5%; }
  80% { width: 95%; }
  100% { width: 99%; }
}
@keyframes stripes { to { background-position: 28px 0, 0 0; } }
@keyframes jitter {
  0%, 100% { width: 99%; }
  50% { width: 98.4%; }
}

.progress__label {
  margin-top: 10px;
  font-weight: 600;
  color: var(--yellow);
}
.progress__label span { color: var(--muted); font-weight: 400; }

/* ---------- dönen durum mesajları ---------- */
.status {
  position: relative;
  height: 28px;
  width: 100%;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}
.status span {
  position: absolute;
  left: 0; right: 0;
  opacity: 0;
  animation: status 15s infinite;
}
.status span:nth-child(2) { animation-delay: 3s; }
.status span:nth-child(3) { animation-delay: 6s; }
.status span:nth-child(4) { animation-delay: 9s; }
.status span:nth-child(5) { animation-delay: 12s; }
@keyframes status {
  0% { opacity: 0; transform: translateY(12px); }
  4%, 17% { opacity: 1; transform: translateY(0); }
  21%, 100% { opacity: 0; transform: translateY(-12px); }
}

.foot {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- mobil ---------- */
@media (max-width: 480px) {
  .scene { transform: scale(.74); margin: -36px 0 -20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  .status span:first-child { opacity: 1; }
}
