* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%; height: 100%; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0d1a; color: #fff; user-select: none;
}

/* ===========================================================
   SAHNE B - OVA
   =========================================================== */
.scene { position: fixed; inset: 0; overflow: hidden; }

.scene .bg-pic {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; display: block;
}
.scene .bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  z-index: 1; pointer-events: none;
  transform: scale(1.05);
}
@media (max-width: 720px) {
  .scene .bg {
    object-position: center 65%;
    transform: scale(1.0);
  }
}

/* Vignette kapali - gorsel uctan uca dolgun gorunsun */
.bg-vignette { display: none; }

.hud {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 30; padding: 9px 22px;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, rgba(255,209,102,.95), rgba(240,168,48,.95));
  color: #1a1a2e; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 8px 24px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.4);
  white-space: nowrap;
}

.instruction {
  position: absolute; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 16px; font-size: 14.5px;
  background: linear-gradient(135deg, rgba(15,20,36,.92), rgba(30,40,70,.92));
  border: 1px solid rgba(255,209,102,.4);
  box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 4px rgba(255,209,102,.08);
  backdrop-filter: blur(8px);
  animation: floatHint 2.4s ease-in-out infinite;
  max-width: 90vw;
}
.instruction .ins-emoji {
  font-size: 22px;
  animation: handshake 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes floatHint {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-4px); }
}
@keyframes handshake {
  0%,100% { transform: rotate(-10deg); }
  50%     { transform: rotate(10deg); }
}

.lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 5; pointer-events: none;
}
.lines .link {
  fill: none; stroke: url(#linkGrad); stroke-width: 4;
  stroke-dasharray: 12 9; stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(255, 209, 102, .9));
  animation: dash 1s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -21; } }

/* ====== NPC ====== */
.npc-wrap {
  position: absolute; z-index: 6;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
  animation: bob 3.6s ease-in-out infinite;
}
.npc-wrap .npc {
  height: 36vh; max-height: 360px; width: auto;
  order: 1;
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.4));
}
.npc-wrap .npc-shadow {
  order: 2;
  width: 65%; height: 14px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 55%, transparent 80%);
  margin-top: -6px;
  filter: blur(4px);
  animation: shadowPulse 3.6s ease-in-out infinite;
  mix-blend-mode: multiply;
}
.npc-wrap .npc-name {
  order: 3;
  margin-top: 4px;
  font-size: 12.5px; font-weight: 700; padding: 5px 12px;
  background: rgba(0,0,0,.72); color: #ffd166;
  border-radius: 999px; border: 1px solid rgba(255,209,102,.4);
  white-space: nowrap; letter-spacing: .3px;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.npc-wrap.target-highlight .npc {
  animation: glow 0.7s ease-in-out infinite;
}
.npc-wrap.target-highlight .npc-name {
  background: linear-gradient(135deg, #ffd166, #f0a830);
  color: #1a1a2e;
  transform: scale(1.08);
}

@keyframes bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
@keyframes shadowPulse {
  0%,100% { transform: scaleX(1); opacity: .8; }
  50%     { transform: scaleX(.85); opacity: 1; }
}
@keyframes glow {
  0%,100% { filter: drop-shadow(0 14px 14px rgba(0,0,0,.4)) drop-shadow(0 0 12px #ffd166); }
  50%     { filter: drop-shadow(0 14px 14px rgba(0,0,0,.4)) drop-shadow(0 0 28px #ffd166); }
}

/* NPC konumları: merkezde toplu, ova orta hattında */
#wrap-1 { left: 22%; bottom: 22%; }
#wrap-2 { left: 50%; bottom: 22%; transform: translateX(-50%); }
#wrap-3 { right: 22%; bottom: 22%; }
/* Override the transform conflict for wrap-2 */
#wrap-2 { animation-name: bob2; }
@keyframes bob2 {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-10px); }
}

/* ====== BİZ ====== */
.biz-wrap {
  position: absolute; z-index: 12;
  bottom: 6%; left: 36%;
  display: flex; flex-direction: column; align-items: center;
  touch-action: none;
  animation: bob3 3.2s ease-in-out infinite;
}
.biz-wrap .biz {
  height: 42vh; max-height: 400px; width: auto;
  cursor: grab; order: 1;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.5));
  transition: filter .2s;
}
.biz-wrap .biz-shadow {
  order: 2;
  width: 60%; height: 16px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.65) 0%, rgba(0,0,0,.25) 55%, transparent 80%);
  margin-top: -4px;
  filter: blur(5px);
  mix-blend-mode: multiply;
}
.biz-wrap .biz-name {
  order: 3;
  margin-top: 2px;
  font-size: 12.5px; font-weight: 700; padding: 5px 14px;
  background: linear-gradient(135deg, #ffd166, #f0a830);
  color: #1a1a2e;
  border-radius: 999px;
  white-space: nowrap; letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.biz-wrap.dragging { animation: none; }
.biz-wrap.dragging .biz {
  cursor: grabbing;
  filter: drop-shadow(0 0 22px #ffd166) drop-shadow(0 6px 8px rgba(0,0,0,.5));
}
.biz-wrap.dragging .biz-shadow { transform: scale(.92); opacity: .6; }
@keyframes bob3 {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-7px); }
}

/* ===========================================================
   MODAL ortak
   =========================================================== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2,4,12,.82); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal.active { display: flex; animation: modalIn .35s ease-out; }
@keyframes modalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-card {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #20284a 100%);
  border: 1px solid #2d3658; border-radius: 22px;
  padding: 28px 26px 24px; width: 100%; max-width: 580px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
  text-align: center; position: relative;
  max-height: 96vh; overflow: hidden;
  display: flex; flex-direction: column;
  animation: cardIn .45s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes cardIn {
  from { transform: translateY(20px) scale(.92); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

/* ===========================================================
   NICK MODAL (Bayram teması)
   =========================================================== */
.nick-card {
  border: 1px solid rgba(255,209,102,.35);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,209,102,.15), transparent 60%),
    linear-gradient(160deg, #1a1a2e 0%, #221c3a 50%, #2a2050 100%);
  overflow: visible;
}
.nick-card::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: 24px; padding: 2px;
  background: linear-gradient(135deg, rgba(255,209,102,.6), transparent 30%, transparent 70%, rgba(255,107,133,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* === SVG ornament satırı (emoji yerine) === */
.ornament-row {
  display: flex; justify-content: center; align-items: center;
  gap: 14px; margin: 4px 0 8px;
}
.ornament-row .orn {
  width: 26px; height: 26px;
  filter: drop-shadow(0 0 8px rgba(255, 209, 102, .55));
  animation: ornBob 3s ease-in-out infinite;
}
.ornament-row .orn-crest {
  width: 42px; height: 42px;
  filter: drop-shadow(0 0 14px rgba(255, 209, 102, .7));
  animation: ornSpin 8s linear infinite, ornGlow 2.5s ease-in-out infinite;
}
.ornament-row .orn-moon.flip { transform: scaleX(-1); }
.ornament-row .orn:nth-child(1) { animation-delay: 0s; }
.ornament-row .orn:nth-child(2) { animation-delay: .25s; }
.ornament-row .orn:nth-child(4) { animation-delay: .5s; }
.ornament-row .orn:nth-child(5) { animation-delay: .75s; }
@keyframes ornBob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-5px); }
}
.ornament-row .orn-moon.flip { animation-name: ornBobFlip; }
@keyframes ornBobFlip {
  0%,100% { transform: scaleX(-1) translateY(0); }
  50%     { transform: scaleX(-1) translateY(-5px); }
}
@keyframes ornSpin {
  to { transform: rotate(360deg); }
}
@keyframes ornGlow {
  0%,100% { filter: drop-shadow(0 0 14px rgba(255, 209, 102, .7)); }
  50%     { filter: drop-shadow(0 0 24px rgba(255, 209, 102, 1)); }
}

/* === Köşe süslemeleri === */
.nick-card .corner {
  position: absolute; width: 50px; height: 50px;
  pointer-events: none; opacity: .9;
}
.nick-card .corner-tl { top: 10px; left: 10px; }
.nick-card .corner-tr { top: 10px; right: 10px; }

/* === Sparkle particles === */
.sparkles {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden; border-radius: 22px;
}
.sparkles .sp {
  position: absolute;
  width: 4px; height: 4px;
  background: #ffd166;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px #ffd166, 0 0 16px rgba(255, 209, 102, .6);
  animation: sparkle 4s ease-in-out infinite;
}
.sparkles .sp:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s; }
.sparkles .sp:nth-child(2) { top: 28%; left: 85%; animation-delay: .4s; }
.sparkles .sp:nth-child(3) { top: 60%; left: 8%;  animation-delay: .8s; }
.sparkles .sp:nth-child(4) { top: 75%; left: 92%; animation-delay: 1.2s; }
.sparkles .sp:nth-child(5) { top: 45%; left: 75%; animation-delay: 1.6s; width: 3px; height: 3px; }
.sparkles .sp:nth-child(6) { top: 22%; left: 50%; animation-delay: 2s; }
.sparkles .sp:nth-child(7) { top: 88%; left: 30%; animation-delay: 2.4s; width: 5px; height: 5px; }
.sparkles .sp:nth-child(8) { top: 38%; left: 25%; animation-delay: 2.8s; }
.sparkles .sp:nth-child(9) { top: 68%; left: 60%; animation-delay: 3.2s; width: 3px; height: 3px; }
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(.4); }
  50%      { opacity: 1; transform: scale(1.2); }
}

/* İçerik elemanları sparkle/corner katmanının üstüne çıksın */
.nick-card .sparkles { z-index: 0; }
.nick-card .corner    { z-index: 1; }
.nick-card > .ornament-row,
.nick-card > .logo,
.nick-card > .bayram-banner,
.nick-card > .bayram-title,
.nick-card > .bayram-sub,
.nick-card > input,
.nick-card > button,
.nick-card > .err-msg,
.nick-card > .bayram-foot {
  position: relative; z-index: 2;
}

.nick-card .logo {
  width: 70%; max-width: 280px; margin: 0 auto 10px; display: block;
  filter: drop-shadow(0 4px 14px rgba(255,209,102,.4));
}

.bayram-banner {
  position: relative; overflow: hidden;
  display: inline-block; padding: 6px 22px; margin: 6px auto 14px;
  background: linear-gradient(135deg, #e94560, #ff6b85);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(233,69,96,.45), inset 0 1px 0 rgba(255,255,255,.3);
}
.bayram-banner .banner-text {
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 2px;
  position: relative; z-index: 2;
}
.bayram-banner .shine {
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.6), transparent);
  animation: shineMove 2.4s ease-in-out infinite;
}
@keyframes shineMove {
  0%   { left: -60%; }
  60%  { left: 110%; }
  100% { left: 110%; }
}

.bayram-title {
  font-size: 22px; line-height: 1.3; margin-bottom: 8px;
  background: linear-gradient(135deg, #ffd166, #ffaa33, #ff6b85);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}
.bayram-sub {
  color: #c8d0e6; font-size: 14px; line-height: 1.55;
  margin-bottom: 18px; padding: 0 8px;
  text-wrap: balance; /* satır kırılımını dengeli dağıt */
  max-width: 460px; margin-left: auto; margin-right: auto;
}

.nick-card input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 2px solid #3a4470;
  background: #0f1424; color: #fff; font-size: 16px; text-align: center; outline: none;
  margin-bottom: 16px; font-weight: 600; letter-spacing: .5px;
  transition: border-color .2s, box-shadow .2s;
}
.nick-card input::placeholder { color: #5a6588; font-weight: 400; }
.nick-card input:focus {
  border-color: #ffd166;
  box-shadow: 0 0 0 4px rgba(255,209,102,.15);
}

.nick-card button {
  position: relative; overflow: hidden;
  width: 100%; padding: 15px; border-radius: 12px; border: 0;
  background: linear-gradient(135deg, #ffd166 0%, #f0a830 50%, #ff6b85 100%);
  color: #1a1a2e;
  font-size: 16px; font-weight: 800; cursor: pointer; letter-spacing: .5px;
  box-shadow: 0 10px 24px rgba(255,209,102,.4), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .15s, box-shadow .2s;
}
.nick-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255,209,102,.55);
}
.nick-card button .btn-glow {
  position: absolute; top: -50%; left: -100%; width: 60%; height: 200%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
  0%   { left: -100%; }
  50%  { left: 130%; }
  100% { left: 130%; }
}

.err-msg { color: #ff6b85; font-size: 13px; margin-top: 8px; min-height: 16px; font-weight: 600; }
.bayram-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px;
}
.bayram-foot .divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,209,102,.45), transparent);
}
.bayram-foot .foot-text {
  font-size: 11.5px; color: #b6bdd8; font-style: italic;
  letter-spacing: .5px; white-space: nowrap;
}

/* ===========================================================
   PAZARLIK MODAL
   =========================================================== */
.bargain-card {
  max-width: 760px; padding: 0; overflow: hidden;
  height: auto;
}
.video-area {
  width: 100%; background: #000; position: relative;
  height: 280px; transition: height .9s cubic-bezier(.4,0,.2,1);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.video-area.expanded {
  height: 80vh; max-height: 720px;
}
.video-area video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-area::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 -30px 50px -20px rgba(0,0,0,.6);
}

.bargain-area {
  padding: 20px 24px 22px;
  transition: opacity .4s, max-height .9s cubic-bezier(.4,0,.2,1), padding .9s;
  max-height: 700px; overflow: hidden;
}
.bargain-area.hidden { opacity: 0; max-height: 0; padding: 0 24px; pointer-events: none; }

/* Konuşma balonları */
.bubbles {
  display: flex; gap: 14px; margin-bottom: 16px; flex-wrap: wrap;
}
.bubble {
  flex: 1 1 280px;
  display: flex; gap: 10px; align-items: flex-start;
  position: relative;
}
.avatar {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, #ff8b94, #e94560);
  border: 2px solid #ffd166;
  box-shadow: 0 4px 12px rgba(233,69,96,.4);
  overflow: hidden;
}
/* NPC karakterinin gerçek resmi (kafa odaklı zoom) */
.avatar.npc-photo {
  background-size: 220% auto;
  background-position: center 6%;
  background-repeat: no-repeat;
}
.user-avatar {
  background: linear-gradient(135deg, #80d8ff, #0288d1);
  box-shadow: 0 4px 12px rgba(2,136,209,.4);
  border-color: #fff;
}
.bubble-body {
  flex: 1;
  background: #fff; color: #1a1a2e;
  border-radius: 14px; padding: 10px 14px;
  text-align: left; position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  min-height: 60px;
}
.bubble.npc-bubble .bubble-body::before {
  content: ''; position: absolute; left: -8px; top: 14px;
  width: 0; height: 0;
  border-style: solid; border-width: 8px 10px 8px 0;
  border-color: transparent #fff transparent transparent;
  filter: drop-shadow(-1px 0 0 rgba(0,0,0,.05));
}
.bubble.user-bubble { flex-direction: row-reverse; }
.bubble.user-bubble .bubble-body {
  background: linear-gradient(135deg, #80d8ff, #4fc3f7); color: #0a2a40;
}
.bubble.user-bubble .bubble-body::before {
  content: ''; position: absolute; right: -8px; top: 14px;
  width: 0; height: 0;
  border-style: solid; border-width: 8px 0 8px 10px;
  border-color: transparent transparent transparent #4fc3f7;
}
.bubble-label {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; color: #e94560; margin-bottom: 3px;
}
.bubble.user-bubble .bubble-label { color: #0288d1; }
.bubble-text { font-size: 14.5px; line-height: 1.45; min-height: 22px; font-weight: 500; }

/* Aksiyon butonları – giriş butonu gibi modern */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.actions button {
  position: relative; overflow: hidden;
  flex: 1 1 200px; padding: 15px 18px;
  border-radius: 12px; border: 0;
  font-size: 15px; font-weight: 700; cursor: pointer;
  letter-spacing: .4px; color: #1a1a2e;
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.actions button .btn-text { position: relative; z-index: 2; }
.actions button .btn-glow {
  position: absolute; top: -50%; left: -100%;
  width: 60%; height: 200%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3s ease-in-out infinite;
  z-index: 1; pointer-events: none;
}
.actions button.primary {
  background: linear-gradient(135deg, #ffd166 0%, #f0a830 50%, #ff6b85 100%);
  background-size: 200% 100%;
  box-shadow: 0 10px 24px rgba(255,209,102,.4), inset 0 1px 0 rgba(255,255,255,.4);
}
.actions button.secondary {
  background: linear-gradient(135deg, #6b7ab8 0%, #4a5784 50%, #3a4470 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(74,87,132,.4), inset 0 1px 0 rgba(255,255,255,.2);
}
.actions button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(255,209,102,.5);
}
.actions button.secondary:hover:not(:disabled) {
  box-shadow: 0 14px 30px rgba(74,87,132,.55);
}
.actions button:active:not(:disabled) { transform: translateY(-1px); }
.actions button:disabled { opacity: .45; cursor: not-allowed; }

.counter-form {
  background: #0f1424; border: 1px solid #2d3658; border-radius: 14px;
  padding: 16px; margin-top: 12px; text-align: left;
}
.counter-form label { font-size: 13px; color: #b8c0d8; display: block; margin-bottom: 10px; font-weight: 600; }
.counter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.counter-row input {
  flex: 1 1 130px; padding: 12px 14px; border-radius: 10px;
  border: 2px solid #3a4470;
  background: #1a1a2e; color: #fff; font-size: 17px; font-weight: 700; outline: none;
  text-align: center;
}
.counter-row input:focus { border-color: #ffd166; }
.counter-row button { padding: 12px 18px; border-radius: 10px; border: 0; font-weight: 700; cursor: pointer; font-size: 14px; }
.counter-row button.primary { background: linear-gradient(135deg, #ffd166, #f0a830); color: #1a1a2e; }
.counter-row button.secondary { background: #3a4470; color: #fff; }

.status {
  margin-top: 14px; text-align: center; font-size: 14px; color: #ffd166;
  min-height: 18px; font-weight: 700;
}

/* Kazanım ekranı */
.win-celebration {
  margin-top: 14px; padding: 18px 16px;
  background: linear-gradient(135deg, rgba(96,211,148,.18), rgba(255,209,102,.18));
  border: 2px solid #60d394; border-radius: 16px;
  position: relative; overflow: hidden;
  animation: winPop .6s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes winPop {
  0%   { transform: scale(.7); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}
.win-celebration .win-emoji {
  font-size: 36px; margin-bottom: 6px; display: block;
  animation: bounce 1s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.win-celebration .win-title {
  font-size: 14px; color: #80f4b0; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px;
}
.win-celebration .win-amount {
  font-size: 42px; font-weight: 900;
  background: linear-gradient(135deg, #ffd166, #ff6b85);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 6px 0 4px; line-height: 1;
}
.win-celebration .win-unit {
  font-size: 18px; color: #ffd166; font-weight: 700;
}
.win-celebration .win-sub {
  font-size: 12.5px; color: #c2c8e0; margin-top: 6px; font-weight: 500;
}

/* typing göstergesi */
.typing::after {
  content: '…'; display: inline-block; margin-left: 4px;
  animation: blink 1.2s infinite;
}
@keyframes blink {
  0%,100% { opacity: .3; }
  50%     { opacity: 1; }
}

/* ===========================================================
   SAYAÇ MODAL
   =========================================================== */
.timer-card { max-width: 500px; padding: 28px 28px 26px; }
/* Logo eski boyutunda, kutu hissi olmadan – sadece gölge yok, doğal görünüm */
.timer-card .logo.flush {
  display: block;
  width: 50%; max-width: 180px;
  margin: 0 auto 14px;
  filter: none;
  background: transparent;
}
.timer-card h2 { font-size: 18px; color: #ffd166; margin-bottom: 18px; line-height: 1.4; }

/* DEV: localhost'ta sayaç popup içindeki replay butonu */
.dev-replay-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px; border-radius: 12px;
  border: 1px dashed rgba(255,209,102,.6);
  background: linear-gradient(135deg, rgba(255,209,102,.15), rgba(255,107,133,.15));
  color: #ffd166;
  font-size: 14px; font-weight: 700; cursor: pointer; letter-spacing: .5px;
  transition: transform .12s, background .2s;
  position: relative; z-index: 2;
}
.dev-replay-btn:hover { background: linear-gradient(135deg, rgba(255,209,102,.25), rgba(255,107,133,.25)); transform: translateY(-2px); }
.dev-replay-btn:active { transform: translateY(0); }
.countdown {
  font-size: 56px; font-weight: 900; letter-spacing: 3px;
  font-family: "SF Mono", Menlo, monospace;
  background: linear-gradient(135deg, #ffd166, #ff6b85);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 14px 0 20px;
  text-shadow: 0 0 30px rgba(255,209,102,.3);
}
.timer-info {
  font-size: 14.5px; color: #e8ecff; line-height: 1.6;
  background: linear-gradient(135deg, rgba(255,209,102,.12), rgba(255,107,133,.12));
  padding: 16px; border-radius: 12px;
  border: 1px solid rgba(255,209,102,.3);
}

/* ===========================================================
   WIN POPUP – anlaşma sonrası bağımsız tebrik overlay
   =========================================================== */
.win-popup {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(10,13,26,.78);
  backdrop-filter: blur(10px);
  animation: winFadeIn .35s ease-out;
}
.win-popup.active { display: flex; }
@keyframes winFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.win-popup-card {
  position: relative;
  background: linear-gradient(160deg, #1a2240 0%, #2a1f4a 50%, #3a1f3a 100%);
  border: 2px solid transparent;
  border-radius: 24px;
  padding: 36px 44px;
  text-align: center;
  max-width: 460px; width: 90vw;
  box-shadow:
    0 30px 80px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,209,102,.4),
    0 0 60px rgba(255,209,102,.3);
  animation: winPop .55s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}
.win-popup-card::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: 26px; padding: 2px;
  background: linear-gradient(135deg, #ffd166, #ff6b85, #ffd166);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  animation: borderShine 3s linear infinite;
}
@keyframes borderShine {
  to { filter: hue-rotate(360deg); }
}
@keyframes winPop {
  0%   { transform: scale(.5); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}
.win-popup .win-emoji {
  font-size: 64px;
  margin-bottom: 8px;
  display: inline-block;
  animation: winBounce 1s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(255,209,102,.5));
}
@keyframes winBounce {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%     { transform: translateY(-12px) rotate(5deg); }
}
.win-popup .win-title-big {
  font-size: 18px; letter-spacing: 4px; font-weight: 800;
  color: #ffd166; margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(255,209,102,.4);
}
.win-popup .win-amount-big {
  font-size: 84px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #ffd166, #ff6b85);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 8px 0 4px;
  text-shadow: 0 4px 20px rgba(255,107,133,.3);
  animation: amountPulse 1.5s ease-in-out infinite;
}
@keyframes amountPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.04); }
}
.win-popup .win-unit-big {
  font-size: 18px; font-weight: 800; letter-spacing: 2px;
  color: #ffd166;
  margin-bottom: 12px;
}
.win-popup .win-sub-big {
  font-size: 14px; color: #c8d0e6; font-style: italic;
  margin-top: 4px;
}

/* Konfeti */
.win-confetti {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden; border-radius: 24px;
}
.win-confetti span {
  position: absolute; top: -20px;
  width: 8px; height: 14px;
  background: #ffd166;
  animation: confettiFall 3s linear infinite;
}
.win-confetti span:nth-child(1)  { left: 5%;  background: #ffd166; animation-delay: 0s;   }
.win-confetti span:nth-child(2)  { left: 14%; background: #ff6b85; animation-delay: .2s;  }
.win-confetti span:nth-child(3)  { left: 22%; background: #60d394; animation-delay: .4s;  }
.win-confetti span:nth-child(4)  { left: 30%; background: #ffd166; animation-delay: .6s;  }
.win-confetti span:nth-child(5)  { left: 38%; background: #4a90ff; animation-delay: .8s;  }
.win-confetti span:nth-child(6)  { left: 46%; background: #ff6b85; animation-delay: 1.0s; }
.win-confetti span:nth-child(7)  { left: 54%; background: #ffd166; animation-delay: 1.2s; }
.win-confetti span:nth-child(8)  { left: 62%; background: #60d394; animation-delay: 1.4s; }
.win-confetti span:nth-child(9)  { left: 70%; background: #ffd166; animation-delay: 1.6s; }
.win-confetti span:nth-child(10) { left: 78%; background: #ff6b85; animation-delay: 1.8s; }
.win-confetti span:nth-child(11) { left: 86%; background: #4a90ff; animation-delay: 2.0s; }
.win-confetti span:nth-child(12) { left: 94%; background: #ffd166; animation-delay: 2.2s; }
.win-confetti span:nth-child(13) { left: 18%; background: #60d394; animation-delay: 2.4s; }
.win-confetti span:nth-child(14) { left: 50%; background: #ff6b85; animation-delay: 2.6s; }
.win-confetti span:nth-child(15) { left: 82%; background: #ffd166; animation-delay: 2.8s; }
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(420px) rotate(540deg); opacity: 0; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 720px) {
  .npc-wrap .npc { height: 30vh; max-height: 280px; }
  .biz-wrap .biz { height: 34vh; max-height: 300px; }
  #wrap-1 { left: 8%; }
  #wrap-3 { right: 8%; }
  .npc-wrap .npc-name { font-size: 11px; padding: 4px 9px; }
  .countdown { font-size: 42px; letter-spacing: 2px; }
  .video-area { height: 220px; }
  .video-area.expanded { height: 65vh; }
  .bargain-card { max-width: 100%; }
  .bayram-title { font-size: 18px; }
  .nick-card .logo { width: 60%; }
  .win-celebration .win-amount { font-size: 36px; }
}

@media (max-height: 640px) {
  .npc-wrap .npc { height: 26vh; }
  .biz-wrap .biz { height: 30vh; }
  .biz-wrap { bottom: 1%; }
  #wrap-1, #wrap-2, #wrap-3 { bottom: 32%; }
  .video-area { height: 180px; }
}

@media (max-width: 480px) {
  .instruction { font-size: 13px; padding: 10px 16px; }
  .instruction b { display: block; }
}
