/* Call Simulator — light section + iPhone mockup */
.call-sim {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 24px 32px;
  background: #f7f8fc;
  border: 1px solid #e8eaf2;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(26, 38, 128, 0.06);
}

.call-sim__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.call-sim__mode {
  font-size: 0.82rem;
  color: var(--text-muted, #5a6482);
}

.call-sim__hard-btn {
  background: rgba(108, 71, 255, 0.1) !important;
  color: var(--primary, #1a2680) !important;
  border: 1px solid rgba(108, 71, 255, 0.22) !important;
}

.call-sim__hard-btn:hover {
  background: rgba(108, 71, 255, 0.16) !important;
}

.call-sim__mod {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(108, 71, 255, 0.1);
  color: #5b4fd8;
  font-size: 0.72rem;
  font-weight: 700;
}

/* iPhone mockup — пропорции близкие к iPhone 15 (390×844) */
.call-sim__device {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.call-sim__device-frame {
  width: min(100%, 390px);
  aspect-ratio: 390 / 760;
  max-height: min(760px, 78vh);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
    linear-gradient(165deg, #3a3a3e 0%, #252528 38%, #141416 100%);
  border-radius: 54px;
  padding: 11px;
  box-shadow:
    0 32px 80px rgba(15, 18, 48, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  position: relative;
  display: flex;
  flex-direction: column;
}

.call-sim__device-side {
  position: absolute;
  background: linear-gradient(90deg, #2a2a2e, #45454a, #2a2a2e);
  border-radius: 2px;
  z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.call-sim__device-side--left {
  left: -2px;
  top: 118px;
  width: 3px;
  height: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 38px 0 0 #3a3a3e,
    0 74px 0 0 #3a3a3e;
}

.call-sim__device-side--right {
  right: -2px;
  top: 148px;
  width: 3px;
  height: 64px;
}

.call-sim__device-screen {
  flex: 1;
  min-height: 0;
  background: #fff;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}

.call-sim__device-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  background: #0a0a0c;
  border-radius: 20px;
  z-index: 6;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.35);
}

.call-sim__device-island::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a1a22, #050508);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.call-sim__device-home {
  width: 128px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 99px;
  margin: 9px auto 1px;
  flex-shrink: 0;
}

.call-sim__phone {
  flex: 1;
  min-height: 0;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.call-sim__deadline {
  padding: 10px 16px 0;
  background: #fff;
}

.call-sim__deadline-label {
  display: block;
  font-size: 0.72rem;
  color: #dc2626;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.call-sim__deadline-track {
  height: 6px;
  background: #eef0f6;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.call-sim__deadline-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f87171, #fbbf24);
  border-radius: 999px;
  transition: width 0.1s linear;
}

.call-sim__result-mod {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #5b4fd8;
  font-weight: 700;
}

.call-sim__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.call-sim__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 46px 18px 12px;
  background: #fff;
  border-bottom: 1px solid #eef0f6;
  flex-shrink: 0;
}

.call-sim__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c6cf0, #a89ee8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.call-sim__contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-main, #0d1230);
  font-size: 0.92rem;
}

.call-sim__status {
  font-size: 0.76rem;
  color: #059669;
}

.call-sim__timer {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: var(--text-muted, #5a6482);
}

.call-sim__chat {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f4f6fb;
}

.call-sim__row {
  display: flex;
}

.call-sim__row--bot { justify-content: flex-start; }
.call-sim__row--player { justify-content: flex-end; }

.call-sim__bubble {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.call-sim__bubble--bot {
  background: #fff;
  color: var(--text-main, #0d1230);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(15, 18, 48, 0.06);
  border: 1px solid #e8eaf2;
}

.call-sim__bubble--player {
  background: linear-gradient(135deg, #5b4fd8, #7c6cf0);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.call-sim__choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 14px;
  background: #fff;
  border-top: 1px solid #eef0f6;
  flex-shrink: 0;
  max-height: 38%;
  overflow-y: auto;
}

.call-sim__choice {
  text-align: left;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid #dfe3ef;
  background: #f8f9fc;
  color: var(--text-main, #0d1230);
  font-size: 0.84rem;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.call-sim__choice:hover {
  background: #eef0ff;
  border-color: rgba(108, 71, 255, 0.28);
}

.call-sim__result-box {
  background: #fff;
  border-radius: 20px;
  padding: 24px 22px;
  border: 1px solid #e8eaf2;
  box-shadow: 0 4px 20px rgba(15, 18, 48, 0.05);
}

.call-sim__badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.call-sim__badge--win { background: rgba(5, 150, 105, 0.12); color: #059669; }
.call-sim__badge--partial { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.call-sim__badge--fail { background: rgba(220, 38, 38, 0.1); color: #dc2626; }

.call-sim__result-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--text-main, #0d1230);
}

.call-sim__result-loyalty {
  margin: 0 0 16px;
  color: var(--text-muted, #5a6482);
  font-size: 0.9rem;
}

.call-sim__result-text {
  background: #f7f8fc;
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text-main, #0d1230);
  line-height: 1.55;
  font-size: 0.9rem;
  margin-bottom: 18px;
  border: 1px solid #eef0f6;
}

@media (max-width: 640px) {
  .call-sim {
    padding: 20px 14px 24px;
    border-radius: 18px;
    max-width: 100%;
  }

  .call-sim__device-frame {
    width: min(100%, 360px);
    aspect-ratio: 390 / 720;
    border-radius: 48px;
    padding: 9px;
  }

  .call-sim__device-screen { border-radius: 40px; }
  .call-sim__device-island { width: 104px; height: 30px; top: 10px; }
  .call-sim__header { padding-top: 42px; }

  .call-sim__bubble { max-width: 92%; font-size: 0.84rem; }
}
