/* ============================================================
   MeyBet Bayram Bonus – v3
   - Tek sabit onboarding kartı (nick / loading / intro fazları)
   - Karakterler tıklanabilir (buton yok, bob yok)
   - Logo'lar dark plate üzerinde kontrastlı
   - Chat baloncukları kompakt
   ============================================================ */
* { 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, "Helvetica Neue", sans-serif;
  background: #0d2b4a; color: #fff; user-select: none;
}

/* ===========================================================
   SAHNE B – OVA (3 karakter, click-to-select, bob YOK)
   =========================================================== */
.scene { position: fixed; inset: 0; overflow: hidden; }
.scene .bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  z-index: 1; pointer-events: none;
}

.npc-row {
  position: absolute;
  left: 0; right: 0; bottom: 13%;
  display: flex; align-items: flex-end; justify-content: space-around;
  z-index: 6;
  padding: 0 4vw;
  pointer-events: none;
}

.npc-wrap {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: auto;
  flex: 0 0 auto;
  /* No bob animation */
}

.npc {
  height: 48vh; max-height: 460px; width: auto;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.45));
  transition: filter .25s, opacity .25s, transform .25s;
  display: block;
  pointer-events: none;
}

.npc-shadow {
  position: absolute; bottom: 38px; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 18px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 55%, transparent 80%);
  filter: blur(5px);
  mix-blend-mode: multiply;
  z-index: -1;
}

.npc-name {
  margin-top: 6px;
  font-size: 13px; font-weight: 800; padding: 5px 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(227,242,253,.92));
  color: #0d47a1;
  border-radius: 999px;
  border: 1px solid rgba(13,71,161,.35);
  white-space: nowrap; letter-spacing: .4px;
  box-shadow: 0 4px 12px rgba(13,71,161,.3);
  pointer-events: none;
}

/* Tıklanabilir state — ipucu */
.npc-wrap.active-target {
  cursor: pointer;
}
.npc-wrap.active-target .npc {
  animation: activeGlow 2.4s ease-in-out infinite;
}
.npc-wrap.active-target:hover .npc {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.5)) drop-shadow(0 0 30px rgba(75,166,224,.85));
}
.npc-wrap.active-target:active .npc {
  transform: translateY(-1px) scale(.99);
}
@keyframes activeGlow {
  0%,100% { filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)) drop-shadow(0 0 12px rgba(75,166,224,.4)); }
  50%     { filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)) drop-shadow(0 0 26px rgba(75,166,224,.85)); }
}
.npc-wrap.active-target .npc-name {
  background: linear-gradient(135deg, #1976d2, #0d47a1);
  color: #fff; border-color: rgba(255,255,255,.5);
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(13,71,161,.45);
}
.npc-wrap.active-target::after {
  content: 'Tıkla';
  position: absolute;
  top: -28px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #1976d2, #0d47a1);
  color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(13,71,161,.5);
  animation: clickHintBob 1.6s ease-in-out infinite;
  pointer-events: none;
  white-space: nowrap;
}
@keyframes clickHintBob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-4px); }
}

/* DONE: tamamlanmış karakter */
.npc-done-mark {
  position: absolute;
  top: 6%; right: -6px;
  display: none;
  flex-direction: column; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #fff;
  padding: 7px 11px; border-radius: 12px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.6);
  box-shadow: 0 6px 20px rgba(27,94,32,.45);
  z-index: 3;
  white-space: nowrap;
}
.npc-done-mark .dm-icon { font-size: 16px; line-height: 1; }
.npc-wrap.done .npc { opacity: .82; filter: drop-shadow(0 14px 18px rgba(0,0,0,.4)) saturate(.8) brightness(.92); }
.npc-wrap.done .npc-done-mark { display: inline-flex; }
.npc-wrap.done .npc-name { background: rgba(255,255,255,.85); color: #2e7d32; border-color: rgba(46,125,50,.35); }

/* LOCKED: kilit görseli zaten resim üzerinde */
.npc-wrap.locked { opacity: .92; }
.npc-wrap.locked .npc-name { background: rgba(13,43,74,.85); color: #b6d4f0; border-color: rgba(182,212,240,.3); }

/* Alt yönerge metni */
.ova-hint {
  position: absolute;
  left: 0; right: 0; bottom: 3%;
  display: flex; justify-content: center;
  z-index: 30;
  pointer-events: none;
}
.ova-hint-inner {
  padding: 12px 26px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(227,242,253,.94));
  color: #0d2b4a;
  font-size: 14.5px; font-weight: 600;
  border: 1px solid rgba(13,71,161,.3);
  box-shadow: 0 10px 30px rgba(13,43,74,.45);
  backdrop-filter: blur(8px);
  text-wrap: balance;
  text-align: center;
  max-width: 90vw;
}
.ova-hint-inner b { color: #0d47a1; }

/* ===========================================================
   MODAL ortak
   =========================================================== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13, 43, 74, .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, #ffffff 0%, #f5f9ff 60%, #e3f2fd 100%);
  border: 1px solid #cfe0f3;
  border-radius: 22px;
  width: 100%; max-width: 540px;
  box-shadow: 0 20px 60px rgba(13,43,74,.55), inset 0 1px 0 rgba(255,255,255,.6);
  text-align: center; position: relative;
  max-height: 96vh; overflow: hidden;
  color: #0d2b4a;
  animation: cardIn .45s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes cardIn {
  from { transform: translateY(20px) scale(.94); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

/* Genel butonlar */
.btn-primary {
  position: relative; overflow: hidden;
  padding: 14px 26px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  color: #fff;
  font-size: 15.5px; font-weight: 800; letter-spacing: .4px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 12px 28px rgba(25,118,210,.45), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(25,118,210,.6); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .55; cursor: wait; }
.btn-primary .btn-arrow { font-size: 18px; line-height: 1; transform: translateY(-1px); }
.btn-primary .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;
  pointer-events: none;
}
@keyframes btnShine {
  0%   { left: -100%; }
  50%  { left: 130%; }
  100% { left: 130%; }
}
.btn-secondary {
  padding: 13px 22px; border-radius: 14px;
  background: #e3f0fb; border: 1px solid #b6d4f0;
  color: #0d47a1;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, opacity .2s;
}
.btn-secondary:hover { background: #d2e5f7; transform: translateY(-1px); }
.btn-secondary:disabled { opacity: .45; cursor: not-allowed; }

.err-msg { color: #d32f2f; font-size: 13px; margin-top: 8px; min-height: 16px; font-weight: 700; }

/* ===========================================================
   LOGO PLATE – logo'yu açık arka plandan ayırır
   =========================================================== */
.logo-plate {
  display: inline-block;
  background:
    radial-gradient(ellipse at center top, rgba(75,166,224,.35), transparent 60%),
    linear-gradient(135deg, #0d2b4a 0%, #0d47a1 60%, #1976d2 100%);
  padding: 12px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 10px 26px rgba(13,43,74,.45),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.18);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.logo-plate::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.12), transparent 50%);
  pointer-events: none;
}
.logo-plate .lp-logo {
  display: block;
  width: 130px; max-width: 100%;
  height: auto;
  position: relative; z-index: 1;
}
.logo-plate.small { padding: 10px 16px; }
.logo-plate.small .lp-logo { width: 110px; }
.logo-plate.tiny { padding: 8px 14px; }
.logo-plate.tiny .lp-logo { width: 90px; }

/* ===========================================================
   ONBOARD MODAL – Nick / Loading / Intro tek sabit kart
   =========================================================== */
.onboard-card {
  padding: 0;
  min-height: 580px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(25,118,210,.35);
  background:
    radial-gradient(circle at 50% 0%, rgba(187,222,251,.55), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #f5f9ff 60%, #e3f2fd 100%);
}
.onboard-card::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: 24px; padding: 2px;
  background: linear-gradient(135deg, rgba(25,118,210,.6), transparent 30%, transparent 70%, rgba(75,166,224,.55));
  -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;
}

/* Sparkles ortak (nick fazında) */
.sparkles {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden; border-radius: 22px; z-index: 0;
}
.sparkles .sp {
  position: absolute;
  width: 4px; height: 4px;
  background: #1976d2;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px #4ba6e0, 0 0 16px rgba(25, 118, 210, .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); }
}

/* Faz container */
.onboard-phase {
  position: absolute;
  inset: 0;
  padding: 28px 28px 22px;
  display: flex; flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.985);
  transition: opacity .4s ease, transform .4s ease;
  z-index: 1;
}
.onboard-phase.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* PHASE: NICK */
.onboard-phase[data-phase="nick"] {
  align-items: center; justify-content: center; text-align: center;
}
.nick-pill {
  display: inline-block;
  padding: 5px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #1976d2, #0d47a1);
  color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: 2.5px;
  margin: 14px auto 12px;
  box-shadow: 0 6px 16px rgba(13,71,161,.4);
}
.nick-title {
  font-size: 26px; line-height: 1.2; font-weight: 900;
  background: linear-gradient(135deg, #0d47a1, #1976d2, #4ba6e0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.nick-sub {
  color: #4a6fa5; font-size: 14px; line-height: 1.55;
  margin-bottom: 22px;
  max-width: 360px;
}
.nick-input-group {
  position: relative;
  margin-bottom: 6px;
  width: 100%;
  max-width: 360px;
}
.nick-input-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-size: 18px; font-weight: 800;
  color: #1976d2;
  pointer-events: none;
}
.nick-input-group input {
  width: 100%; padding: 16px 18px 16px 42px; border-radius: 14px;
  border: 2px solid #b6d4f0;
  background: #ffffff; color: #0d2b4a;
  font-size: 16px; text-align: left;
  outline: none;
  font-weight: 700; letter-spacing: .5px;
  transition: border-color .2s, box-shadow .2s;
}
.nick-input-group input::placeholder { color: #6b89ac; font-weight: 500; }
.nick-input-group input:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 4px rgba(25,118,210,.18);
}
#start-btn { width: 100%; max-width: 360px; margin-top: 14px; }
.nick-foot {
  margin-top: 18px;
  font-size: 11.5px; color: #4a6fa5; font-style: italic;
  letter-spacing: .5px;
  border-top: 1px solid rgba(13,71,161,.12);
  padding-top: 14px;
  width: 100%;
  max-width: 360px;
}

/* PHASE: LOADING */
.onboard-phase[data-phase="loading"] {
  align-items: center; justify-content: center; text-align: center;
}
.loader-orbit {
  position: relative;
  width: 90px; height: 90px;
  margin: 22px auto 18px;
}
.orbit-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(25,118,210,.18);
  border-top-color: #1976d2;
  border-right-color: #4ba6e0;
  animation: orbitSpin 1.1s linear infinite;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.orbit-dot {
  position: absolute; top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ffb300);
  box-shadow: 0 0 12px #ffd700, 0 0 22px rgba(255,215,0,.6);
  transform-origin: 7px 51px;
  animation: orbitSpin 1.1s linear infinite;
}
.orbit-core {
  position: absolute; top: 50%; left: 50%;
  width: 30px; height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, #1976d2, #0d47a1);
  box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 6px 16px rgba(13,71,161,.45);
}
.loading-title {
  font-size: 18px; font-weight: 800; color: #0d47a1;
  margin-bottom: 18px;
  letter-spacing: .3px;
}
.loading-title::after {
  content: '...';
  display: inline-block;
  width: 20px;
  text-align: left;
  animation: dotsPulse 1.4s steps(4, end) infinite;
}
@keyframes dotsPulse {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
}
.loading-steps {
  text-align: left;
  display: flex; flex-direction: column; gap: 10px;
  background: #f5f9ff; border: 1px solid #cfe0f3; border-radius: 14px;
  padding: 14px 18px;
  width: 100%; max-width: 360px;
}
.lstep {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: #4a6fa5; font-weight: 600;
}
.lstep-bullet {
  width: 14px; height: 14px; border-radius: 50%;
  flex-shrink: 0;
  background: #cfe0f3;
  position: relative;
}
.lstep.done { color: #0d47a1; }
.lstep.done .lstep-bullet {
  background: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46,125,50,.18);
}
.lstep.done .lstep-bullet::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 800;
}
.lstep.loading { color: #0d47a1; font-weight: 700; }
.lstep.loading .lstep-bullet {
  background: #1976d2;
  box-shadow: 0 0 0 3px rgba(25,118,210,.2);
  animation: bulletPulse 1.1s ease-in-out infinite;
}
@keyframes bulletPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(25,118,210,.2); }
  50%     { box-shadow: 0 0 0 8px rgba(25,118,210,.05); }
}

/* PHASE: INTRO */
.onboard-phase[data-phase="intro"] {
  align-items: stretch; justify-content: space-between;
  padding: 22px 22px 18px;
  text-align: left;
}
.intro-progress {
  display: flex; gap: 6px; justify-content: center;
  margin-bottom: 14px;
}
.intro-progress .ip-step {
  width: 36px; height: 5px; border-radius: 3px;
  background: #cfe0f3;
  transition: background .25s, width .3s;
}
.intro-progress .ip-step.active {
  background: linear-gradient(90deg, #1976d2, #4ba6e0);
  width: 56px;
}
.intro-progress .ip-step.done {
  background: #2e7d32;
}
.intro-slides {
  flex: 1 1 auto;
  position: relative;
  min-height: 360px;
  overflow: hidden;
}
.intro-slide {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .3s, transform .3s;
}
.intro-slide.active {
  display: flex;
  opacity: 1; transform: translateX(0);
}

/* Slide 1 (welcome) */
.intro-slide[data-step="1"] { text-align: center; align-items: center; padding: 4px 4px 0; }
.intro-slide[data-step="1"] .intro-title { text-align: center; margin-top: 10px; }
.intro-slide[data-step="1"] .intro-text {
  text-align: center;
  max-width: 460px;
  margin: 0 auto 14px;
}
.intro-meta {
  width: 100%; max-width: 440px;
  margin: 4px auto 0;
  display: flex; flex-direction: column; gap: 10px;
}
.im-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid #cfe0f3;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(13,43,74,.06);
  transition: transform .2s, box-shadow .2s;
}
.im-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(25,118,210,.15);
  border-color: rgba(25,118,210,.35);
}
.im-row .im-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e3f0fb, #bbdefb);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid rgba(25,118,210,.2);
}
.im-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.im-text b {
  font-size: 13.5px; font-weight: 800; color: #0d47a1;
  letter-spacing: .2px;
}
.im-text span {
  font-size: 12.5px; color: #4a6fa5; line-height: 1.4;
}

/* Slide 2-4 (karakter tanıtımı) */
.intro-slide[data-step="2"],
.intro-slide[data-step="3"],
.intro-slide[data-step="4"] {
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.intro-char-photo {
  flex: 0 0 42%;
  position: relative;
  height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.intro-char-photo img {
  max-height: 100%; max-width: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.35));
  position: relative; z-index: 2;
}
.intro-char-glow {
  position: absolute; inset: 20% 8%;
  background: radial-gradient(ellipse, rgba(75,166,224,.35), transparent 65%);
  filter: blur(12px);
}
.intro-char-info { flex: 1; min-width: 0; }
.intro-round-pill {
  display: inline-block;
  padding: 4px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  border: 1px solid;
}
.intro-round-pill.round-1 {
  background: rgba(46,125,50,.14); color: #2e7d32; border-color: rgba(46,125,50,.4);
}
.intro-round-pill.round-2 {
  background: rgba(25,118,210,.14); color: #0d47a1; border-color: rgba(25,118,210,.4);
}
.intro-round-pill.round-3 {
  background: rgba(255,160,0,.14); color: #b76e00; border-color: rgba(255,160,0,.5);
}
.intro-title {
  font-size: 22px; line-height: 1.2; font-weight: 900;
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.intro-title .hl {
  background: linear-gradient(135deg, #4ba6e0, #1976d2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro-text {
  color: #335678; font-size: 14px; line-height: 1.55;
  margin-bottom: 12px;
  text-wrap: pretty;
}
.intro-text b { color: #0d47a1; font-weight: 800; }

/* Açılış koşulları kutusu (yenilenmiş) */
.intro-unlock {
  background: linear-gradient(135deg, rgba(255,215,0,.12) 0%, rgba(255,255,255,.85) 100%);
  border: 1px solid rgba(255,180,0,.45);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(255,180,0,.08);
}
.iu-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(180,120,0,.3);
}
.iu-header .iu-icon { font-size: 18px; }
.iu-header .iu-title {
  font-size: 12px; font-weight: 800; letter-spacing: 1.2px;
  color: #5a3e00;
  text-transform: uppercase;
}
.iu-conditions {
  display: flex; flex-direction: column; gap: 7px;
}
.iu-cond {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #4a3700; line-height: 1.45;
}
.iu-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b76e00, #8a4f00);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  margin-top: 1px;
}
.iu-cond b { color: #2c1f00; }

.intro-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(13,71,161,.1);
}
#intro-prev[disabled] { visibility: hidden; }

/* ===========================================================
   PAZARLIK MODAL – chat-style (kompakt)
   =========================================================== */
/* Pazarlık modal: tüm viewport'u kaplayan full-screen — çevresinde dim/gölge YOK,
   içeride renk adımı YOK. Hiçbir 'arka karartı' algısı oluşmuyor. */
#bargain-modal {
  background: #f5f9ff;
  backdrop-filter: none;
  padding: 0;
}
.bargain-card {
  width: 100vw;
  max-width: none;
  padding: 0;
  text-align: left;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #f5f9ff;
  display: flex; flex-direction: column;
  position: relative;
}

.bg-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.bg-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background-size: 220% auto;
  background-position: center 6%;
  background-repeat: no-repeat;
  background-color: #fff;
  border: 2px solid rgba(255,255,255,.7);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.bg-meta { flex: 1; min-width: 0; }
.bg-name { font-size: 16px; font-weight: 800; letter-spacing: .3px; }
.bg-sub { font-size: 11.5px; color: rgba(255,255,255,.7); margin-top: 1px; letter-spacing: .5px; text-transform: uppercase; }
.bg-round-pill {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px;
  flex-shrink: 0;
}

/* Chat thread – doğal top-down akış. Mesajlar üstten başlar, scroll ile aşağıya iner.
   ESKİ `margin-top:auto` trick'i kaldırıldı → mesajlar arasında garip boşluklar oluşmuyor.
   Arka plan: card ile AYNI (#f5f9ff), hiçbir boundary YOK. */
.bg-chat {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px 10px;
  background: #f5f9ff;
  display: flex; flex-direction: column; gap: 0;
  scroll-behavior: smooth;
}
.bg-chat::-webkit-scrollbar { width: 6px; }
.bg-chat::-webkit-scrollbar-thumb { background: #cfe0f3; border-radius: 3px; }
.bg-chat::-webkit-scrollbar-track { background: transparent; }

.msg {
  display: flex; gap: 8px;
  max-width: 80%;
  animation: msgIn .22s cubic-bezier(.2,.9,.3,1.1);
  align-items: flex-end;
  margin-top: 3px;
}
.msg:first-child { margin-top: 0; }
/* Sender değiştiğinde küçük bir nefes payı */
.msg.user + .msg.npc,
.msg.npc + .msg.user { margin-top: 6px; }
.msg.system { margin-top: 2px; margin-bottom: 2px; }
/* Aynı kişiden ardışık mesajlarda avatar gizlensin — kompakt görünüm */
.msg.npc + .msg.npc .msg-avatar,
.msg.user + .msg.user .msg-avatar {
  display: none;
}
.msg.npc + .msg.npc { padding-left: 36px; }
.msg.user + .msg.user { padding-right: 36px; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg.npc { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background-size: 220% auto;
  background-position: center 6%;
  background-repeat: no-repeat;
  background-color: #fff;
  flex-shrink: 0;
}
.msg.user .msg-avatar {
  background: linear-gradient(135deg, #4ba6e0, #1976d2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
}

/* Kompakt baloncuk – sadece satır kadar yer.
   box-shadow YOK — geniş mesajlarda yatay 'kararma bandı' oluşmasını önlüyoruz. */
.msg-bubble {
  background: #fff;
  border: 1px solid #c7dcee;
  border-radius: 14px;
  padding: 6px 12px;
  position: relative;
  font-size: 13.5px; line-height: 1.4;
  color: #0d2b4a;
  word-wrap: break-word;
}
.msg.npc .msg-bubble {
  border-bottom-left-radius: 4px;
}
.msg.user .msg-bubble {
  background: linear-gradient(135deg, #1976d2, #0d47a1);
  color: #fff; border-color: #0d47a1;
  border-bottom-right-radius: 4px;
}
.msg-bubble.typing::after {
  content: '';
  display: inline-block;
  width: 22px; height: 6px;
  margin-left: 2px;
  background-image:
    radial-gradient(circle at 4px 50%, #1976d2 2px, transparent 2.5px),
    radial-gradient(circle at 11px 50%, #1976d2 2px, transparent 2.5px),
    radial-gradient(circle at 18px 50%, #1976d2 2px, transparent 2.5px);
  background-repeat: no-repeat;
  vertical-align: middle;
  animation: typingDots 1s infinite ease-in-out;
}
@keyframes typingDots {
  0%,100% { opacity: .3; }
  50%     { opacity: 1; }
}

/* System message */
.msg.system {
  align-self: center;
  max-width: 90%;
  padding: 5px 12px;
  background: rgba(13,71,161,.08);
  color: #0d47a1;
  border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase;
  margin: 4px 0;
}

/* Aksiyon paneli – chat'in altında yumuşak geçiş.
   position:static ÖNEMLİ → celebrating'de .bg-handshake'in position:absolute'u
   doğrudan .bargain-card'a relative olur, tüm card'ı kaplayabilir. */
.bg-action {
  flex-shrink: 0;
  padding: 12px 14px 14px;
  background: #f5f9ff;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "video offer"
    "video buttons";
  gap: 10px 14px;
  align-items: center;
}
.bg-handshake {
  grid-area: video;
  position: relative;
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(13,71,161,.35);
  background: #0d2b4a;
  transition: transform .9s cubic-bezier(.34,1.56,.64,1), box-shadow .6s ease, border-width .6s ease;
  z-index: 5;
}
.bg-handshake video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.bg-handshake-ring {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid #4ba6e0;
  animation: ringPulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: .8; }
  50%     { transform: scale(1.12); opacity: .2; }
}

/* ============== ANLAŞMA ANİ (CELEBRATING) ==============
   Yuvarlak el sıkma videosu büyüyerek tüm dikdörtgen card'ı kaplar.
   Hiçbir yazı/rozet YOK — sadece video, sonra direkt FS popup. */
.bargain-card.celebrating .bg-header,
.bargain-card.celebrating .bg-chat,
.bargain-card.celebrating .bg-offer-info,
.bargain-card.celebrating .bg-buttons,
.bargain-card.celebrating .bg-counter {
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.bargain-card.celebrating .bg-action {
  background: transparent;
  pointer-events: none;
}
.bargain-card.celebrating .bg-handshake-ring { display: none; }

/* Handshake → tüm card'ı kaplayan tam ekran video.
   .bargain-card { position:relative } → bu absolute card'a relative oluyor.
   .bg-action position:static → handshake'i içermiyor pozisyon olarak. */
.bargain-card.celebrating .bg-handshake {
  position: absolute;
  inset: 0;
  width: auto; height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #0d2b4a;
  box-shadow: none;
  z-index: 10;
  animation: handshakeReveal 1.2s cubic-bezier(.34,1.3,.64,1) forwards;
}
.bargain-card.celebrating .bg-handshake video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Sol-altta yuvarlak (orijinal handshake konumu) → ortada çok büyük daire.
   Karenin köşeleri clip dışında kalır → daireden başlayıp dikdörtgeni kaplama efekti. */
@keyframes handshakeReveal {
  0%   { clip-path: circle(45px at 56px calc(100% - 70px)); }
  100% { clip-path: circle(150% at 50% 50%); }
}

.bg-offer-info {
  grid-area: offer;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px;
}
.bg-offer-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: #4a6fa5;
}
.bg-offer-value {
  display: flex; align-items: baseline; gap: 6px;
}
.bg-offer-value #bg-offer-amount {
  font-size: 32px; font-weight: 900;
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.bg-offer-unit {
  font-size: 13px; font-weight: 800; color: #1976d2;
  letter-spacing: 1.5px;
}

.bg-buttons {
  grid-area: buttons;
  display: flex; gap: 8px;
}
.bg-btn {
  flex: 1;
  padding: 12px 14px;
  border: 0; border-radius: 12px;
  font-size: 14px; font-weight: 800; letter-spacing: .3px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.bg-btn.primary {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(27,94,32,.4);
}
.bg-btn.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(27,94,32,.55);
}
.bg-btn.secondary {
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(25,118,210,.4);
}
.bg-btn.secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(25,118,210,.55);
}
.bg-btn:disabled { opacity: .45; cursor: not-allowed; }
.bg-btn:active:not(:disabled) { transform: translateY(0); }
.bg-btn .bgb-icon { font-size: 16px; }
.bg-btn.small { padding: 10px 14px; font-size: 13px; }

/* Counter form */
.bg-counter {
  grid-column: 1 / -1;
  background: #f5f9ff;
  border: 1px solid #cfe0f3;
  border-radius: 12px;
  padding: 12px;
  margin-top: 4px;
}
.bg-counter[hidden] { display: none; }
.bg-counter-row {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 2px solid #b6d4f0;
  border-radius: 12px;
  padding: 4px 6px;
  margin-bottom: 10px;
}
.bg-counter-row:focus-within {
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25,118,210,.15);
}
.ctr-step {
  width: 36px; height: 36px;
  border: 0; border-radius: 8px;
  background: #e3f0fb;
  color: #0d47a1;
  font-size: 20px; font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.ctr-step:hover { background: #d2e5f7; }
.ctr-step:active { transform: scale(.92); }
#counter-input {
  flex: 1;
  border: 0; outline: none;
  background: transparent;
  font-size: 22px; font-weight: 900;
  text-align: center;
  color: #0d2b4a;
  appearance: textfield;
  -moz-appearance: textfield;
}
#counter-input::-webkit-outer-spin-button,
#counter-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.ctr-unit {
  font-size: 13px; font-weight: 800; color: #1976d2;
  letter-spacing: 1.5px;
  padding-right: 6px;
}
.bg-counter-buttons { display: flex; gap: 8px; }

/* ===========================================================
   WIN POPUP – logo dark plate'li
   =========================================================== */
.win-popup {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(13, 43, 74, .82);
  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, #ffffff 0%, #e3f2fd 50%, #bbdefb 100%);
  border: 2px solid transparent;
  border-radius: 24px;
  padding: 28px 36px 24px;
  text-align: center;
  max-width: 460px; width: 90vw;
  box-shadow:
    0 30px 80px rgba(13, 43, 74, .55),
    0 0 0 1px rgba(25,118,210,.4),
    0 0 60px rgba(25,118,210,.35);
  animation: winPop .55s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
  color: #0d2b4a;
}
.win-popup-card::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: 26px; padding: 2px;
  background: linear-gradient(135deg, #1976d2, #4ba6e0, #0d47a1, #1976d2);
  background-size: 300% 100%;
  -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 {
  0%   { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}
@keyframes winPop {
  0%   { transform: scale(.5); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

/* Win popup içindeki logo plate */
.win-popup .logo-plate {
  margin: 0 auto 8px;
  position: relative; z-index: 3;
  animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-3px); }
}

.win-rays {
  position: absolute;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 120%;
  background:
    conic-gradient(from 0deg,
      rgba(25,118,210,.0) 0deg,
      rgba(25,118,210,.18) 12deg,
      rgba(25,118,210,.0) 24deg,
      rgba(25,118,210,.0) 36deg,
      rgba(25,118,210,.18) 48deg,
      rgba(25,118,210,.0) 60deg,
      rgba(25,118,210,.0) 72deg,
      rgba(25,118,210,.18) 84deg,
      rgba(25,118,210,.0) 96deg);
  animation: raySpin 12s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes raySpin {
  to { transform: translateX(-50%) rotate(360deg); }
}

.win-popup .win-title-big,
.win-popup .win-round-pill,
.win-popup .win-amount-big,
.win-popup .win-unit-big,
.win-popup .win-sub-big {
  position: relative; z-index: 2;
}

.win-popup .win-title-big {
  font-size: 18px; letter-spacing: 4px; font-weight: 800;
  color: #0d47a1; margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(25,118,210,.25);
}
.win-popup .win-round-pill {
  display: inline-block;
  padding: 4px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #1976d2, #0d47a1);
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1.2px;
  margin: 4px 0 8px;
  box-shadow: 0 4px 12px rgba(13,71,161,.4);
}
.win-popup .win-amount-big {
  font-size: 88px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #0d47a1, #1976d2, #4ba6e0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 4px 0;
  text-shadow: 0 4px 20px rgba(25,118,210,.25);
  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: #1976d2;
  margin-bottom: 12px;
}
.win-popup .win-sub-big {
  font-size: 14px; color: #4a6fa5; font-style: italic;
  margin-top: 4px;
}

.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: #1976d2;
  animation: confettiFall 3s linear infinite;
}
.win-confetti span:nth-child(1)  { left: 5%;  background: #1976d2; animation-delay: 0s;   }
.win-confetti span:nth-child(2)  { left: 14%; background: #4ba6e0; animation-delay: .2s;  }
.win-confetti span:nth-child(3)  { left: 22%; background: #ffffff; animation-delay: .4s;  }
.win-confetti span:nth-child(4)  { left: 30%; background: #0d47a1; animation-delay: .6s;  }
.win-confetti span:nth-child(5)  { left: 38%; background: #ffd700; animation-delay: .8s;  }
.win-confetti span:nth-child(6)  { left: 46%; background: #4ba6e0; animation-delay: 1.0s; }
.win-confetti span:nth-child(7)  { left: 54%; background: #1976d2; animation-delay: 1.2s; }
.win-confetti span:nth-child(8)  { left: 62%; background: #ffffff; animation-delay: 1.4s; }
.win-confetti span:nth-child(9)  { left: 70%; background: #0d47a1; animation-delay: 1.6s; }
.win-confetti span:nth-child(10) { left: 78%; background: #1976d2; animation-delay: 1.8s; }
.win-confetti span:nth-child(11) { left: 86%; background: #ffd700; animation-delay: 2.0s; }
.win-confetti span:nth-child(12) { left: 94%; background: #4ba6e0; animation-delay: 2.2s; }
.win-confetti span:nth-child(13) { left: 18%; background: #ffffff; animation-delay: 2.4s; }
.win-confetti span:nth-child(14) { left: 50%; background: #0d47a1; animation-delay: 2.6s; }
.win-confetti span:nth-child(15) { left: 82%; background: #1976d2; animation-delay: 2.8s; }
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(420px) rotate(540deg); opacity: 0; }
}

/* ===========================================================
   TIMER MODAL
   =========================================================== */
.timer-card { max-width: 500px; padding: 28px 28px 26px; }
.timer-card .logo-plate { margin: 0 auto 14px; }
.timer-card h2 { font-size: 18px; color: #0d47a1; margin-bottom: 12px; line-height: 1.4; }
.timer-round-pill {
  display: inline-block;
  margin: 0 auto 10px;
  padding: 6px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #1976d2, #0d47a1);
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(13,71,161,.35);
}
.countdown {
  font-size: 56px; font-weight: 900; letter-spacing: 3px;
  font-family: "SF Mono", Menlo, monospace;
  background: linear-gradient(135deg, #1976d2, #0d47a1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 14px 0 20px;
  text-shadow: 0 0 30px rgba(25,118,210,.25);
}
.timer-info {
  font-size: 14.5px; color: #0d2b4a; line-height: 1.7;
  background: linear-gradient(135deg, rgba(187,222,251,.5), rgba(227,242,253,.6));
  padding: 16px; border-radius: 12px;
  border: 1px solid rgba(25,118,210,.25);
}
.timer-info b {
  display: inline-block;
  margin-top: 4px;
  color: #0d47a1;
}

/* ===========================================================
   FINISH MODAL
   =========================================================== */
.finish-card { max-width: 480px; padding: 28px 28px 26px; }
.finish-card .logo-plate { margin: 0 auto 8px; }
.finish-emoji {
  font-size: 64px; line-height: 1; margin: 6px 0;
  filter: drop-shadow(0 4px 12px rgba(255,215,0,.5));
  animation: trophyBounce 1.6s ease-in-out infinite;
}
@keyframes trophyBounce {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%     { transform: translateY(-8px) rotate(5deg); }
}
.finish-card h2 {
  font-size: 22px; color: #0d47a1; margin-bottom: 10px;
}
.finish-text {
  font-size: 14.5px; color: #4a6fa5; line-height: 1.55;
  margin-bottom: 14px;
}
.finish-total {
  font-size: 56px; font-weight: 900; line-height: 1.1;
  background: linear-gradient(135deg, #1976d2, #0d47a1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 8px 0;
}
.finish-sub {
  font-size: 13px; color: #4a6fa5; font-style: italic;
  margin-top: 10px;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 720px) {
  /* Mobil arka plan — dikey kompozisyon (yüklendiğinde devreye girer) */
  #scene-ova .bg {
    content: url('../yeni-gorseller/arka-plan-mobil.png');
    object-position: center center;
  }

  /* 3 karakteri ekrana sığdır — height + max-width sınırla, object-fit ile orantı koru. */
  .npc-row {
    padding: 0 6px;
    bottom: 14%;
    justify-content: space-between;
    gap: 4px;
  }
  .npc-wrap { flex: 1 1 0; max-width: 33%; }
  .npc {
    height: 30vh;
    max-height: 260px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
  }
  .npc-name { font-size: 10.5px; padding: 3px 8px; letter-spacing: .2px; }
  .npc-shadow { bottom: 24px; width: 60%; }
  .npc-done-mark { padding: 5px 8px; font-size: 9px; right: -2px; }
  .npc-done-mark .dm-icon { font-size: 13px; }
  .ova-hint-inner { font-size: 12px; padding: 9px 16px; }
  .countdown { font-size: 42px; letter-spacing: 2px; }

  .onboard-card { min-height: 600px; }
  .onboard-phase { padding: 20px 18px 16px; }
  .nick-title { font-size: 22px; }

  /* Intro slide içerik mobile dikey ortalansın — "biraz yukarıda duruyor" sorununu çözer. */
  .onboard-phase[data-phase="intro"] {
    padding: 18px 16px 14px;
  }
  .intro-slides { min-height: 460px; }
  .intro-slide {
    justify-content: center;
  }
  .intro-slide[data-step="1"] {
    justify-content: flex-start;
    padding-top: 4px;
  }
  .intro-slide[data-step="2"],
  .intro-slide[data-step="3"],
  .intro-slide[data-step="4"] {
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 6px 2px;
  }
  .intro-char-photo { flex: 0 0 auto; height: 150px; width: 100%; }
  .intro-char-info { width: 100%; }
  .intro-title { font-size: 19px; margin-bottom: 6px; }
  .intro-text { font-size: 13px; margin-bottom: 8px; }
  .intro-round-pill { font-size: 10px; padding: 3px 12px; }
  .intro-unlock { padding: 10px 12px; }
  .iu-cond { font-size: 12px; gap: 8px; }
  .iu-num { width: 20px; height: 20px; font-size: 10px; }

  /* Bargain card zaten 100vw × 100dvh. Mobilde aksiyon dikey diziliyor. */
  .bg-handshake { width: 64px; height: 64px; margin: 0 auto; }
  .bg-offer-value #bg-offer-amount { font-size: 26px; }
  .bg-action {
    grid-template-columns: 1fr;
    grid-template-areas:
      "offer"
      "video"
      "buttons";
    gap: 6px;
    padding: 8px 12px 10px;
  }
  .bg-offer-info { align-items: center; text-align: center; }
  .bg-chat { padding: 12px 12px 8px; }
  .msg { max-width: 86%; }

  /* Mobil handshake reveal — desktop'taki sol-alt köşeden açılım yerine,
     mobilde handshake aksiyon paneli ortasında olduğundan reveal de oradan başlar. */
  .bargain-card.celebrating .bg-handshake {
    animation-name: handshakeRevealMobile;
  }

  .win-popup .win-amount-big { font-size: 64px; }
  .finish-total { font-size: 42px; }

  .logo-plate .lp-logo { width: 110px; }
  .logo-plate.small .lp-logo { width: 95px; }
}

/* Mobil için ayrı keyframe — circle origin handshake'in mobildeki ortalanmış konumunda. */
@keyframes handshakeRevealMobile {
  0%   { clip-path: circle(32px at 50% calc(100% - 120px)); }
  100% { clip-path: circle(160% at 50% 50%); }
}

@media (max-height: 640px) {
  .npc { height: 36vh; }
  .npc-row { bottom: 9%; }
  .ova-hint { bottom: 1%; }
  .onboard-card { min-height: 540px; }
  .intro-slides { min-height: 320px; }
  .intro-char-photo { height: 220px; }
  /* Bargain card zaten 100vh */
}
